CaioVictor Posted September 13, 2013 Group: Members Topic Count: 22 Topics Per Day: 0.01 Content Count: 75 Reputation: 0 Joined: 05/26/12 Last Seen: November 27, 2013 Share Posted September 13, 2013 (edited) Hi rAthena ^^' First excuse my English. I noticed that every division of numbers in NPC script returns a value rounded down. Example: 2/3 = 0.6666 • correct rounding = 1 • returned = 0 1/2 = 0.5 • correct rounding = 1 • returned = 0 1/3 = 0.333 • correct rounding = 0 • returned = 0 So i wonder if anyone knows a way to divide numbers and return a correct rounding, or if someone could help me develop a custom command that makes the division correctly. Any help will be greatly appreciated. Att, CaioVictor. Edited September 13, 2013 by CaioVictor Quote Link to comment Share on other sites More sharing options...
Question
CaioVictor
Hi rAthena ^^'
First excuse my English.
I noticed that every division of numbers in NPC script returns a value rounded down.
Example:
So i wonder if anyone knows a way to divide numbers and return a correct rounding, or if someone could help me develop a custom command that makes the division correctly.
Any help will be greatly appreciated.
Att,
CaioVictor.
Edited by CaioVictorLink to comment
Share on other sites
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.