Skip to content

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

@mjsuarez

Description

@mjsuarez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions