PureMVC Framework for haXe: API Documentation
Back | Index
class Std
The Std class provides standard methods for manipulating basic types.
static function int(x : Float) : Int
Convert a Float to an Int, rounded down.
static function is(v : Dynamic, t : Dynamic) : Bool
Tells if a value v is of the type t.
static function parseFloat(x : String) : Float
Convert a String to a Float, parsing different possible reprensations.
static function parseInt(x : String) : Null<Int>
Convert a String to an Int, parsing different possible representations. Returns null if could not be parsed.
static function random(x : Int) : Int
Return a random integer between 0 included and x excluded.
static function string(s : Dynamic) : String
Convert any value to a String
Back | Index