JaxGTO
Member
Better to add 0.499999 (5 9s for SLC and 6 for PLC5) to it then convert to Integer. That will force the SLC to round it up or down properly. Then subtract that from the original floating point number.
Used to do this all the time for calculating the day of the week based on the Julian date.
Used to do this all the time for calculating the day of the week based on the Julian date.