Jump to content




Math problem [Solved]


  • You cannot reply to this topic
2 replies to this topic

#1 TheJebForge

  • Members
  • 128 posts

Posted 04 February 2015 - 01:49 PM

How can I left only 2 numbers behind the comma. I mean:
The number: 7.527647763
And must be: 7.53
How can I do that?

Edited by TheJebForge, 04 February 2015 - 05:54 PM.


#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 04 February 2015 - 02:35 PM

Multiply the number by 100, round it down to whole number (math.floor, math.ceil, etc..) and divide it by 100.

#3 TheJebForge

  • Members
  • 128 posts

Posted 04 February 2015 - 05:53 PM

Thx





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users