#Formula for output

1 messages · Page 1 of 1 (latest)

timber sphinx
#

Hi I am reading this offset for baro inch, and its showing the exact same output to mobiflight as expected, I of course just want the 4 digits before the decimal, i assume its a formula to scale it back for out put ?

red crag
#

add a Transform with formula
Round($,0)

#

In general, the syntax and functions used are provided by ncalc. You can google it to find all the other functions available.

timber sphinx
#

Thanks Jaime that did not work, I will check the ncalc

red crag
#

what is exactly the output that you are looking for? You said you wanted to strip the decimals to the right leaving only the whole part. Did I misunderstand?

#

Round(3017.96606,0) = 3018

timber sphinx
#

no you are correct i need the forst 4 digits, but its still outputting the large variable for some reason

red crag
#

show me

#

normally baro pressure in inHg would be 30.18, not 3018

#

unless you take care of the decimal point explicitly.

timber sphinx
#

ok so need a point in between then yes

red crag
#

Round($,0)/100

#

the picture you show does say the conversion was ok

#

it says 2988

#

in the right field

timber sphinx
#

i restarted and it worked! how do i obtain the decimal

red crag
#

I gave you a new formula above

timber sphinx
#

worked thanks