Skip to content

built in "integer" converter doesn't convert to integer if variable is real #73

Description

@mmrj

in a not strongly typed language (e.g. Julia), if I have the variable sampleInt that starts out as an integer (say, 10) but is then set to a real (say, 11.73), <span data-f-bind="sampleInt | i"/> displays 11.73 rather than 11 (trunc) or 12 (round).

if this is the expected behavior, is there a better name for the "integer" converter? i'm not sure what else it's doing...

this behavior is in both 0.9.0 and 0.10.0; didn't check farther back than that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions