View Single Post
Integer data type missing in Alice.
Posts: n/a
Lightbulb Integer data type missing in Alice. - 10-14-2006, 01:05 PM

I agree that this is one of the more annoying design choices made in Alice 2.0 (although from an educational standpoint, I agree with it). Think you can solve your immediate problem by a de facto integer to floating point conversion by adding a small, non-integer amount to both your integer and your test variable, i.e., add 0.01 to 38 and then test for 38.01.

I've tested this about a half dozen times and it seems to work, but please let me know if it fails for you. I think (or at least hope) the long term solution will be in Alice 2.1 where you will have access to true Java functionality.

Reply With Quote