Skip to content

Unit conversion sometimes fails #240

@FloMiLe

Description

@FloMiLe

I have noticed a strange behavior with unit conversions that I don't understand. In the MWE attached, the duration of an hour should be given in s (seconds), and the user gives his answer in ks (kilo seconds).

With the following lines in conversion_rules.php, the input answer 3.6 ks is correctly interpreted:

s: k;

With the following lines in conversion_rules.php, the input answer 3.6 ks is not correctly interpreted:

s: k;
1 min = 60 s;

With the following lines in conversion_rules.php, the input answer 3.6 ks is correctly interpreted:

s: k;
60 s = 1 min;
1 min = 60 s;

questions-Unit Conversion-20250623-2343.xml.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions