: 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: 925
133.2 .
All trig functions operate on radians, an angular unit in which radians measure a full revolution.
Hits: 899
133.3 .
Use the identical math to round a number to the nearest multiple of an integer.
Hits: 933
133.4 .
To round a number to the nearest decimal place
Hits: 959
133.5 .
Use Math.ceil( ) to round a number up.
Hits: 940
133.6 .
Use Math.floor( ) to round a number down
Hits: 990
133.7 .
Use Math.round( ) to round a number to the nearest integer
Hits: 910
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: 957
133.9 .
The exp() method requires one parameter
Hits: 1022
133.10 .
package{
Hits: 1053
133.11 .
The calculation for finding compound interest
Hits: 953
133.12 .
Finding the Greater or Lesser of Two Numbers
Hits: 913
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: 912
133.14 .
Random integer values
Hits: 1102
133.15 .
Generate a random number within a range that does not start with 0
Hits: 920
133.16 .
Generating Random Numbers
Hits: 980
133.17 .
Use round(), ceiling(), and floor() to round or truncate to decimal place values.
Hits: 982
133.18 .
The floor()returns the next-lowest integer.
Hits: 989
133.19 .
The ceil() method returns the next-highest integer value of the number passed it as an argument.
Hits: 917
133.20 .
Rounding and Truncating Numbers
Hits: 1039
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