: Math : Development Flash / Flex / ActionScript examples
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
Flash / Flex / ActionScript examples
»
Development
»
Math
»
1
2
133.1 .
Generate random number in a range
Hits: 911
133.2 .
All trig functions operate on radians, an angular unit in which radians measure a full revolution.
Hits: 887
133.3 .
Use the identical math to round a number to the nearest multiple of an integer.
Hits: 921
133.4 .
To round a number to the nearest decimal place
Hits: 946
133.5 .
Use Math.ceil( ) to round a number up.
Hits: 926
133.6 .
Use Math.floor( ) to round a number down
Hits: 977
133.7 .
Use Math.round( ) to round a number to the nearest integer
Hits: 896
133.8 .
atan2(), takes two parameters (an X- and a Y-coordinate), and returns the angle formed by the right triangle measured in radians
Hits: 945
133.9 .
The exp() method requires one parameter
Hits: 1008
133.10 .
package{
Hits: 1036
133.11 .
The calculation for finding compound interest
Hits: 941
133.12 .
Finding the Greater or Lesser of Two Numbers
Hits: 899
133.13 .
If you are working with one six-sided die, you want to generate a random number between 1 and 6 each time
Hits: 900
133.14 .
Random integer values
Hits: 1088
133.15 .
Generate a random number within a range that does not start with 0
Hits: 908
133.16 .
Generating Random Numbers
Hits: 965
133.17 .
Use round(), ceiling(), and floor() to round or truncate to decimal place values.
Hits: 971
133.18 .
The floor()returns the next-lowest integer.
Hits: 976
133.19 .
The ceil() method returns the next-highest integer value of the number passed it as an argument.
Hits: 906
133.20 .
Rounding and Truncating Numbers
Hits: 1026
Flash / Flex / ActionScript examples
Development
»
Math
ByteArray
Camera
Cross domain policy
Date format
Date
Drag Drop
Error
Event
FileReference
Focus Event
Group
KeyboardEvent
Math
Microphone
MouseEvent
MovieClip
MP3
Print
SharedObject
SimpleButton
Sound
SoundMixer
Sprite
SpriteAsset
Stage
StageAlign
StyleSheet
System.Capabilities
Trace Utilities
Trace
Animation
Array
Class
Data Type
Development
Function
Graphics
Language
Network
Regular Expressions
Statement
String
TextField
XML