Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"floor" in Funktion uses "int" instead of "floor" #2

Open
mjsuarez opened this issue Feb 20, 2024 · 0 comments
Open

"floor" in Funktion uses "int" instead of "floor" #2

mjsuarez opened this issue Feb 20, 2024 · 0 comments

Comments

@mjsuarez
Copy link

mjsuarez commented Feb 20, 2024

Hello, reporting this here since the cf modules appear to be abandoned. At any rate, the Funktion module uses int rather than floor at line 82. This is incorrect for negative voltages.

82: if (OP_STATE==3) {val = int(inputs[IN1_INPUT].getVoltage());fctDesc="floor";}

where it should be:
if (OP_STATE==3) {val = floor(inputs[IN1_INPUT].getVoltage());fctDesc="floor";}

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant