Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Integer-only number string
Old
kolz
Junior Member
 
Status: Offline
Posts: 10
Join Date: Dec 2013
Default Integer-only number string - 12-29-2013, 03:35 PM

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?
   
Reply With Quote
Old
Ygzaw
Junior Member
 
Status: Offline
Posts: 11
Join Date: Dec 2013
Default 12-29-2013, 03:48 PM

Yes, there is.
Use int a function from the function in world.
   
Reply With Quote
Old
kolz
Junior Member
 
Status: Offline
Posts: 10
Join Date: Dec 2013
Default 12-29-2013, 07:15 PM

Thanks!
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



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