View Full Version : xpresso and decimal places (unwanted rounding)

02 February 2013, 04:19 PM
Hi there,
I'm wanting to create a long, changing string of numbers to feed into a motext object.
Currently I'm trying to generate an irrational number in xpresso, but the formula node always seems to round to 3 decimal places.
Any thoughts?

02 February 2013, 05:07 PM
i haven't tested it specifically for your case, but the rounding should be only a visual
help. internally the the values are being stored as without being rounded, so you can
still read them.

02 February 2013, 05:50 PM
Pass the number as a String into your MoText Object.

02 February 2013, 05:53 PM
I'm sure internally it's calculating further than that, but I can't find a way to access that.
There's no options that I can find to define the number of decimal places output by the formula node - by default it seems to be only to three places .

02 February 2013, 05:55 PM
Thanks Douwe, I think I can read the small python print in your example :)

02 February 2013, 11:16 PM
Thanks Douwe, I think I can read the small python print in your example :)

Ye. The Imagehost did some shrinking to that screenshot. Here's the original (

But you get the idea.
There's multiple ways to get a String into the MoText.
You can also work Strings with a Math Node.

02 February 2013, 02:16 PM
Excellent, thanks again!

CGTalk Moderation
02 February 2013, 02:16 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.