Skript Version: Skript 2.2 (dev26f)
Skript Author: Njol and those guys
Minecraft Version: 1.11
---
Full Code:
command /fac:
trigger:
set {_facnum} to 1 + 0
loop 45 times:
set {_facnum} to loop-number * {_facnum}
broadcast "%{_facnum}%"
so what i tried to do was make a code that would do the faculty of a number. While it worked and was all good, the result from 45! was 119622220865480190000000000000000000000000000000000000000. Is there a way to get more precise numbers? Even if it cant do all the zeros it would be greatly appreciated
Same thing goes with logarithms. currently they only produce 1 digit (log(5) = 0.7) how do i fix this?
cheers!
Skript Author: Njol and those guys
Minecraft Version: 1.11
---
Full Code:
command /fac:
trigger:
set {_facnum} to 1 + 0
loop 45 times:
set {_facnum} to loop-number * {_facnum}
broadcast "%{_facnum}%"
so what i tried to do was make a code that would do the faculty of a number. While it worked and was all good, the result from 45! was 119622220865480190000000000000000000000000000000000000000. Is there a way to get more precise numbers? Even if it cant do all the zeros it would be greatly appreciated
Same thing goes with logarithms. currently they only produce 1 digit (log(5) = 0.7) how do i fix this?
cheers!