Rounding Numbers

build learning interactivity

Moderator: Nav

Rounding Numbers

Postby ScottA » Tue Jun 05, 2007 12:57 pm

I would like to display a rounded number that is the result of a calculation.

For example, when I perform a calculation on a variable, sometimes it results in 66.666666... For display purposes, I would like to round it to 66 or 66.6 . How can I do this?

I have been putting a rectangle over the part that I don't want displayed to hide it, but that approach isn't good if it runs over into another graphic right next to it.

Thanks
Scott Allison
Veterinary Information Network
ScottA
 
Posts: 51
Joined: Sat May 26, 2007 4:22 pm
Location: Davis, California

Making an enhancement / feature request

Postby Leif » Thu Jun 14, 2007 6:35 pm

Hi Scott,

You know...I just hit this same issue in a course I am working on.

This is a very good idea, and it has been logged.

For future reference, please log feature requests (or bugs you might find) at www.suddenlysmart.com/report_case.htm

Leif
Leif
 
Posts: 113
Joined: Fri Mar 30, 2007 2:56 pm

rounding numbers

Postby Leif » Thu Apr 03, 2008 5:31 pm

This has been enabled in 3.6.4. Number variables now have a round function so that you can eliminate an decimal places.
Leif
 
Posts: 113
Joined: Fri Mar 30, 2007 2:56 pm

Re: Rounding Numbers

Postby tahiya » Wed Mar 28, 2012 3:30 pm

I have the opposite question. Where do I set the result for a variable to show up with more than two decimal places?
tahiya
 
Posts: 116
Joined: Thu Apr 14, 2011 3:12 pm

Re: Rounding Numbers

Postby Nav » Wed Mar 28, 2012 3:55 pm

Hi Tahiya,
Currently this isn't possible. Out of curiosity, what units are you using that need that level of precision?

- Nav
Nav
 
Posts: 866
Joined: Mon Nov 05, 2007 2:58 pm

Re: Rounding Numbers

Postby tahiya » Mon Apr 02, 2012 10:35 am

I am using speed of light calculations for outputting conversions from wavelength to frequency in GHz. It's not crucial but it would help students see the math more clearly.

(Sheesh! I never thought I would type a sentence like that. What is this job doing to me? Electrical engineering and speed of light conversions? GHz? AAAAARRRRRGH! help.)
play, play, play
tahiya
 
Posts: 116
Joined: Thu Apr 14, 2011 3:12 pm


Return to Action/Flow Chart/Variable

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Not able to open ./cache/data_global.php