$ value doesnt round. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

$ value doesnt round.

my table doesnt round money values on the cents. It keeps showing multiple zeros after period. what could be wrong?

8th Sep 2016, 5:19 PM
Tiago Fuelber
Tiago Fuelber - avatar
4 Answers
+ 1
use round () function to round figure the numerical values.. for more information please write your query here
8th Sep 2016, 6:35 PM
sangamesh naikar
sangamesh naikar - avatar
+ 1
Some weird stuff can happen when doing operations on floats that results in a rounding error.
8th Sep 2016, 6:47 PM
Zen
Zen - avatar
+ 1
moreover...use double data type or curency and avoid float.
9th Sep 2016, 1:02 PM
Tiger
Tiger - avatar
10th Sep 2016, 4:25 PM
Stephan Borsodi
Stephan Borsodi - avatar