I have a list of small numbers that I want rounded to 1 and -1, but not 0. Is there a setting I should be changing or should I use math to do it?

Tolerance could also be a thing talking about small numbers

my fault for not mentioning, but Iâ€™m working with sets, so even though it works, it ends up making it all the same number

assuming you didnâ€™t change the default range of your Random components, by pluggin the output of a Random to the Range of the new Random, your just generate smaller numbers (the max values you get from the second Random are the values output from the first Random: when you plug a value X as domain, itâ€™s considered to be â€ś0 to Xâ€ť )

at that point if you use a Rounding to 0 / 1, you will certainly have a neat prevalence of zeroes

but you -maybe- can multiply by 10^x and see if itâ€™s an odd or even number? it might be, but itâ€™s a patch to a patch

Only those 2 possible outputs/cases?

Itâ€™s a boolean then:

or

2 Likes