Alice Community  

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

Reply
 
Thread Tools Display Modes
problem with numbers
Old
keybasher
Member
 
Status: Offline
Posts: 17
Join Date: Jan 2013
Default problem with numbers - 03-12-2013, 04:45 PM

I'm working on Assignment 6, and I've run into a problem. Now, I have to create a world with a character singing "99 Bottles of Pop on the Wall." It's working fine, except for one thing: When I run the world, the numbers show up in the bubble as x.0 (1.0, 2.0, ...). I want the numbers to show up as x (1, 2, ...). How do I do this?

Here's the link:
Attached Files
File Type: a2w Assign6-JT.a2w (554.4 KB, 2 views)
   
Reply With Quote
whole numbers in Alice 2.3
Old
djslater107
Administrator
 
Status: Offline
Posts: 156
Join Date: Jan 2007
Default whole numbers in Alice 2.3 - 03-13-2013, 06:04 AM

The very latest release of Alice 2.3 (2.3.3) has replaced function "int(a) as String" with "int(a)". You will find this function in the world functions tab.

Use this function in your "say" statement with the value you are displaying.


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote
Old
keybasher
Member
 
Status: Offline
Posts: 17
Join Date: Jan 2013
Default 03-14-2013, 11:13 AM

Okay, 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 ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.