Is there a way to disable implicit conversion from float to int? #9319
Closed
advent94
started this conversation in
General Discussions
Replies: 1 comment 2 replies
-
This doesn't seem like what's going on, can you do: |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In this example I am checking inside the script if ARRAY[0] is a float but since it's 1.0, it get's converted to int and my statement returns false. This ruins/requires additional corner case coverage for my script's implementation when I am checking if either I am dealing with float value or array of floats and all of them get converted to ints. Is there a way to stop this conversion or give a warning whenever it happens?
I checked Array[Variant] and it doesn't solve this issue.
Beta Was this translation helpful? Give feedback.
All reactions