Number Rounding up

Discuss issues and ideas you have to configuring displays with PowerVision
Hfluiter
Posts: 3
Joined: Mon Feb 28, 2011 7:00 am

Number Rounding up

Post by Hfluiter » Mon May 12, 2014 4:27 am

Hello,

I am showing the engine running hours variable (type double) in the dashboard screen with no decimals. When the variable has an value of 100.5 then the display shows 101. So it seems to be rounding up from 100.5 upwards. Can this be deactivated somehow without using any calculation variables in between?

I am using PV2.7

Thanks,

Regards Heico.
jpratt
Enovation Controls Development
Enovation Controls Development
Posts: 222
Joined: Mon Jun 21, 2010 11:18 am

Re: Number Rounding up

Post by jpratt » Mon May 12, 2014 6:04 am

There are a few options you could try. You could simply change the variable to a integer value. This should truncate the decimal information. Short of that you could use a calculated variable tied to the "Fire On Change" to remove it by using the Int(VariableName) function in the equation.
Jake Pratt
Software Development Manager