Skip to content

Comparing floats does not work properly #40

Description

@RadoslawZambrowski

This is a Bug Report

Description

  • What went wrong?
    Comparing float numbers does not work properly because Cdbl function, which is used by the comparator, truncates fraction part.
Brightscript Debugger> ?TF_Utils__BaseComparator(2.1, 2.2)
true
  • What did you expect should have happened?
Brightscript Debugger> ?TF_Utils__BaseComparator(2.1,2.2)
false

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