how to get the decimal values after dot in a string in typescript code example Example: get decimals from float javascript js> 2.3 % 1 0.2999999999999998