MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
rspigner
Posts: 4
Is the IF function currently the only one available for use with Transform?

Looking at the link provided under Documentation > Software > https://github.com/ncalc/ncalc
I see several other functions but they don't seem to work in the Transform text box. The only one that seems to work is the IF function.
I tried using CEILING($) or TRUNCATE($) but it doesn't seem to work.
2021-02-05 17:36
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi
I not try out these two functions ( cause never needed) ..... But in theory they should work....
If these not work for you please check your Syntax...... Specialy "Large and Lower case"

For example "If" will not work.... but "if" will do ( need to be written small)
Otherwiese "round" will not work..... but "Round" will do. ( need to be written Large)
And sure.... All large like IF, ROUND, and so on will never work !

If i check the Documentation both requested Commands "should" be written Large.... So Ceiling($) and Truncate($) ( Not tested but looks good)

So i thinky you maybe will be sucessfull if you try again. Please report experience !

*****************

Whatever NOTE:

I think both is not needed.....

Ceiling make no relay sense in Cockpitbuilding..... I will say i not know any situation this would ever be needed in many years. I´m intrested in a practicable example.

Truncate is also not needed cause it´s still implement in Mobiflight..... Behind the TRANSFORM each Float Value is truncated.....
So a Raw Float Value of e.g. 1,9999 OR a result of a calucaliton like 10/7 = 1,428571 will both result in "1" behind the Transform.... So in a optional Compare /Interpolation or as final Result there is only a Integer Number ( truncated) .
And if realy needed then "Floor" should do the same i think.... Isn´t it ?
Good Luck !
2021-02-05 22:50
Avatar
rspigner
Posts: 4
You are correct. TRUNCATE($) or truncate($) will not work but Truncate($) works.

Thank You!!
2021-02-06 16:07
icon