tedexx 7 Posted May 20, 2017 Whats the best way to make an operation using floating values? Quote Share this post Link to post Share on other sites
0 Dastgir 1246 Posted May 20, 2017 It really depends on what you want to achieve Though Hercules doesn't support floating values , you could do it in source (assuming that you won't pass any values from script to source) Quote Share this post Link to post Share on other sites
0 meko 170 Posted May 20, 2017 You could also emulate it in your scripts by adding some zeros to your numbers, ie .@percent = rand(10000); if (.@percent == 4273) { // 42.73% } Quote Share this post Link to post Share on other sites
0 tedexx 7 Posted May 20, 2017 You could also emulate it in your scripts by adding some zeros to your numbers, ie .@percent = rand(10000); if (.@percent == 4273) { // 42.73% } Nope, something like calculate the % of EXP a quest will give for the current basejob, or anything slightly more complex. It will always exists a workaround, but with float would be so much simpler. Quote Share this post Link to post Share on other sites
Whats the best way to make an operation using floating values?
Share this post
Link to post
Share on other sites