Thread: truncate
View Single Post
# 1 04-11-2004 , 10:34 PM
Dann's Avatar
Registered User
Join Date: Feb 2003
Location: Los Angeles
Posts: 695

truncate

Hey.

Does anyone know how to trucate a number with some degree of control? My float values often look like 0.5505370157 and when I print them out, I'd like to just print 0.55. Maya's trunc command would only print out 0, so that's no good. Maybe a way to round the value off?

Thanks for any thoughts.

-dann