Best way to get floating value?

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)

 
Last edited by a moderator:
You could also emulate it in your scripts by adding some zeros to your numbers, ie

Code:
.@percent = rand(10000);

if (.@percent == 4273) {
    // 42.73%
}
 
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.

 
Back
Top