So, deep down the goal is to determine the format for a negative decimal number. -0.1 should be formated with #.0 and -0.15 should be shown with -#.00
I thought with formula would work, but it didn’t if X10 - floor(X10) = 0 then format with -#.0.
Using X = -0.10 gave me (-1) - (-2) = 1
Ceiling will likely do something similar. Round with definitely not work becuse -1.5 would be rounded to -1.0
Anyone have a better idea? . . . and why doesn’t Xojo have a truncate function?