Jump to content

Format a decimal number to an Integer


Tusk

Recommended Posts

I want to use a result for furtherer calculations but only want the whole number and not the decimal portion. In Excel there is a function "=INT(A1)" this ignores the decimal values in cell "A1", e.g. if call "A1=5.345"and I use the following function in cell "A2" "=INT(A1)*3" I get the result "15"How do I do this in JavaScript ?Thanks

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...