I'd like to convert a float to a whole number in jquery. Actually, I want to store the integer value in a variable from a float type vlue like 10.44 to 10 and I want to convert it only using jquery.
Asked
Active
Viewed 48 times
0
-
`Math.floor(10.44)` will return `10` – Hexaquark Jul 05 '15 at 22:51
-
I want to use jquery. @vasilenicusor – sohag Jul 05 '15 at 22:56
-
1jQuery has no number conversion functions of its own. jQuery is javascript so you use the Javascript Math library to do this. – jfriend00 Jul 05 '15 at 22:57