Make skript like numbersmore

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MrPannkaka

Member
Apr 19, 2017
3
0
1
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!
 
Status
Not open for further replies.