Computer Science, asked by achuaj5687, 10 months ago

How to get a decimal portion of a number with JavaScript?

Answers

Answered by Anonymous
0

Get decimal part of a number. If you need to get just de the decimal part of a number, you can use a simple formula based on the TRUNC function. This formula uses the TRUNC function to figure out the the integer portion of the number, then subtract that value from the original number. The result is the decimal portion

Similar questions