Access keys

NaturalNumber

Kind of class: class
Inherits from: Integer < Number
Author: Martin Heidegger
Classpath: org.as2lib.data.type.NaturalNumber
File last modified: Saturday, 09 April 2005, 09:19:38
NaturalNumber represents a natural number.

Natural numbers are positive integers excluding 0 in this case. If you want
to allow 0 use NaturalNumberIncludingZero instead.

Summary

Constructor
Instance properties
Instance properties inherited from Integer
int
Instance methods
Instance methods inherited from Integer

Constructor

NaturalNumber

function NaturalNumber (
number:Number)
Constructs a new NaturalNumber instance.

Decimal places are cropped from the passed-in number if it has at least
one. The passed-in number must also not be negative.

Parameters:
number:
the natural number
Throws:
NumberFormatException if the passed-in number is negative number,
zero or (-)infinity