Alice Community

Alice Community (
-   How do I...? (
-   -   Integer-only number string (

kolz 12-29-2013 02:35 PM

Integer-only number string
I have created a repeating decreasing number variable used in a say method but it comes out as a decimal, ie 1.0 instead of just 1. Is there a way to define it as integer only?

Ygzaw 12-29-2013 02:48 PM

Yes, there is.
Use [B]int a[/B] function from the function in world.

kolz 12-29-2013 06:15 PM


All times are GMT -5. The time now is 05:40 AM.

Copyright ©2021, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.