Hi.
Being new to JMP, I'm sure this is a typical beginner's mistake.
I need to convert a decimal number to a whole number without rounding.
Example 1: The value 0.5986 is copied from column1 and saved to column2. 0 should be saved to column2. Instead 1 is being saved.
Example 2: The value 1.5986 is copied from column1 and saved to column2. 1 should be saved to column2. Instead 2 is being saved.
I've tried using Round(x, 0), but the number is always rounded up.
I've also tried formatting the value from column1, and converting back to a number (fails).
Column1 is defined:
New Column( "Time",
Numeric,
Continuous,
Format( Best, 12),
);
Column2 is defined:
New Column( "WholeSeconds",
Numeric,
Continuous,
Format( Fixed Dec, 5, 0),
);
Code:
For Each Row(
lvTime = dt:Time;
dt:WholeSeconds = Round( lvTime,0);
);
Any help is greatly appreciated.
Thank you.
Lawrence