Hi.
Is there any easy way to limit the number of digits in an alterable value?
Thanks.
Printable View
Hi.
Is there any easy way to limit the number of digits in an alterable value?
Thanks.
You could always set the value to: Value mod 1000, with the same number of 0's as you want digits.
Or use a counter, but that's not always an option.
I don't see how that would work at all. All I can imagine it would do is reset my value when it reaches 1000.Quote:
Originally Posted by Werbad
Anyways I found another way:
floor(value * (10 pow digits)) / (10 pow digits)
a tad complicated, but works like a charm!
Anyways thanks for your quick reply, Werbad!
I was a little tired, sorry. The one I was thinking of was Max(Min(Value, <Upper Limit>), <Lower Limit>)