1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Make skript like numbersmore

Discussion in 'Skript' started by MrPannkaka, Apr 25, 2017.

Thread Status:
Not open for further replies.
  1. MrPannkaka

    MrPannkaka Member

    Joined:
    Apr 19, 2017
    Messages:
    2
    Likes Received:
    0
    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!
     
Thread Status:
Not open for further replies.

Share This Page

Loading...