: 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: 906
133.2 .
All trig functions operate on radians, an angular unit in which radians measure a full revolution.
Hits: 885
133.3 .
Use the identical math to round a number to the nearest multiple of an integer.
Hits: 915
133.4 .
To round a number to the nearest decimal place
Hits: 941
133.5 .
Use Math.ceil( ) to round a number up.
Hits: 920
133.6 .
Use Math.floor( ) to round a number down
Hits: 971
133.7 .
Use Math.round( ) to round a number to the nearest integer
Hits: 892
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: 938
133.9 .
The exp() method requires one parameter
Hits: 1003
133.10 .
package{
Hits: 1032
133.11 .
The calculation for finding compound interest
Hits: 931
133.12 .
Finding the Greater or Lesser of Two Numbers
Hits: 895
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: 895
133.14 .
Random integer values
Hits: 1086
133.15 .
Generate a random number within a range that does not start with 0
Hits: 906
133.16 .
Generating Random Numbers
Hits: 961
133.17 .
Use round(), ceiling(), and floor() to round or truncate to decimal place values.
Hits: 967
133.18 .
The floor()returns the next-lowest integer.
Hits: 972
133.19 .
The ceil() method returns the next-highest integer value of the number passed it as an argument.
Hits: 904
133.20 .
Rounding and Truncating Numbers
Hits: 1021
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