Some... inconsistencies with math functions.
|
|
Not a bug
BYOND Version: | 462 |
Operating System: | Windows 7 Home Premium |
Web Browser: | Firefox 3.5.7 |
|
Status: |
Not a bug
This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
|
|
|
Descriptive Problem Summary:
Modulo gives division by zero error when not dividing by zero, simple subtraction is returning incorrect values.
Code Snippet (if applicable) to Reproduce Problem:
mob verb test() src << (555.6 - 555) // returns 0.599976 src << (1.1 % 0.1) // division by zero compiler error
Expected Results:
555.6 - 555 = 0.6
1.1 % 0.1 isn't division by zero.
|
I think such minute malfunctions of BYOND math were posted before also.