Truncate the fractional part and preserve the decimal point.
I'd like to truncate the the factional part of a floating point number but preserve the decimal point in the output. I won't know the number in advance.
For example [4.25] -> [0.25]
Any help would be greatly appreciated.
two ways: the first using the [round] object and the second using the [trunc] operator in gen
Max Patch
Copy patch and select New From Clipboard in Max.
Thank you so much!! That did it!
expr $f1 - int($f1)