Another interesting way to do it would be to use POV-Ray's built-in 'floor'
function:
#declare AAA = 7.23;
#declare REMAINDER = AAA - floor(AAA);
--- I'm kind of surprised that POV-Ray doesn't have a 'remainder' function
built-in. I looked in all of the documentation sections that I could think of,
but no luck. It would be a useful addition for the future ;-)
Post a reply to this message
|