<!-- 1. If you have a question and not a bug report please ask first at https://github.com/getndazn/kopytko-unit-testing-framework/issues 2. Please check if an issue already exists. This bug may have already been documented 3. Check out and follow our Guidelines: https://github.com/getndazn/kopytko-unit-testing-framework/blob/master/CONTRIBUTING.md 4. Fill out the whole template so we have a good overview on the issue 5. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue 6. Please follow the template, otherwise we'll have to ask you to update it --> # 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](https://github.com/getndazn/kopytko-unit-testing-framework/blob/master/src/source/UnitTestFramework.brs#L2814), 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 ```
This is a Bug Report
Description
Comparing float numbers does not work properly because
Cdblfunction, which is used by the comparator, truncates fraction part.