Legal Notice, Privacy Policy

Impressum, Datenschutzerklärung

Cerberus X Documentation

Class JsonNumber

Value representing a number. More...

Declarations

Extends
JsonValue This base class provides some fall-back functionality for the specific json value
Constructors
New ( value:String ) New value from string.
Methods
FloatValue : Float () Returns float value.
IntValue : Int () Returns integer value.
ToJson : String () Returns value as string.
Functions
Instance : JsonNumber ( value:String ) Returns an object containing value.
Inherited Properties
Type : Int () Indicates the type of the specific JsonValue object.
Inherited Methods
BoolValue : Bool () For a JsonBool, this will return its boolean value.
StringValue : String () For a JsonString, this will return its string value.

Detailed Discussion

Value representing a number.


Constructors Documentation

Method New ( value:String )

New value from string.

If value does not represent a numerical value, it will always be interpreted as 0.


Methods Documentation

Method FloatValue : Float ()

Returns float value.

Method IntValue : Int ()

Returns integer value.

Method ToJson : String ()

Returns value as string.


Functions Documentation

Function Instance : JsonNumber ( value:String )

Returns an object containing value.