Can't set a simple number to a variable while using if

Hey hey,

I have a simple scenario, I thought.
I use a simple If then function to set a number. But every time I re-open the function the number is set to a different value.

Try to set the highlithed number to 9 (=12841467185037229)

I also attached the blueprint for testing. try also to set different ending numbers like 4 or 5.

Why?
set28.json (4.7 KB)

Or more easy to reproduce: set varable
{{if(random < 0.5; 17841467185037228; 17841467185037229)}}

Try to set the last number to ending 29
even adding a 1 to 178414671850372291 its not possible

:worried:

This phenomenon is already explained here Make keeps changing final numbers in a variable module - #3 by samliew

In short, your number is too large. You need to store it as a string instead.

Hope this helps! Let me know if there are any further questions or issues.

— @samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Solved it by storing the “numbers” as a text in data store