how to get the exactly decimal part of input number javascript code example Example: get decimals from float javascript js> 2.3 % 1 0.2999999999999998