Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Limiting number of decimal places in a variable?
From: Stephen J. Pintauro
Date: Fri, 2 Jun 2000 17:36:37 +0100

Hello all,
I am playing with some arithmetic calculations in a Flash page. It is
pretty straightforward, however, i cannot figure out how to limit the
number of decimal places in a calculation. For example, when a user
enters their weight in pounds, i use a "set variable" function to
convert that to kilograms. So, if they enter 155 pounds, the "set
variable" function calculates the value of the variable "kilograms" to
155 / 2.2 = 70.4545454545. How can I get it to set the variable to
70.46?
Thanks in advance,
Stephen Pintauro

--
*****************************
Stephen J. Pintauro, Ph.D.
Associate Professor
Department of Nutrition and Food Sciences
University of Vermont
Phone: 802-656-0541
http://nutrition.uvm.edu/



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
World Animation Celebration - Big Internet Animation Pow Wow Discount Offer

Register before May 25 mention flasher and save 25%!! www.wacfest.com

Be discovered, get a job or have your web series picked up. A big talent search for Shockwave
and Flash animators is happening May 30-June 4 in Hollywood. Featuring Rob Burgess, Matt
Groening, Brad Bird and more. www.wacfest.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: Limiting number of decimal pl, Branden Hall

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]