Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Bolt: How to show big number instead of scientific notation like1e+7

Discussion in 'Visual Scripting' started by freddieOP, Feb 13, 2021.

  1. freddieOP

    freddieOP

    Joined:
    Dec 31, 2020
    Posts:
    1
    Hello There,

    I trying to show the money value of 10000000 instead of 1e+7 and also 0.000001 instead of 1e-6.

    How do I solve this in Bolt?

    Please help.

    Thank you
     
  2. Haneferd

    Haneferd

    Joined:
    Feb 3, 2018
    Posts:
    36
    I am using the Visual Scripting in Unity 2021.1b5 , but I guess this will be similar in Bolt.

    You need to use the ToString with float and Format. For the Format, I just set .######### , and then it will show numbers in non scientific format:

    Here, float input is 1e+10:
    upload_2021-2-16_22-55-9.png


    And here it is 2e-10:
    upload_2021-2-16_22-56-11.png


    Hope this help :)

    Happy gamedev!