# Number

class Number

## Methods

__construct($input)

No description

static Number
set($input)

Set an input value

string
toCurrency()

Convert number into currency format

int
toInteger()

Convert input into integer

float
toFloat()

Convert input to float data

toDecimal(int $decimalNumber = 2, string $decimalSeparator = ',', string $thousand = ',')

format number into decimal with some criteria

string
get(int|null $startPosition, int|null $endPosition = 0)

Get number by position number

string
len()

Get length of number

array
chunk(string $delimiter)

Chunk a number with some character

void
round(int $precision = 0)

Round some number

value
ceil()

Ceil number

void
mod(int $modNumber)

Modulus

__toString()

No description

## Details

###
at line 17
`__construct($input)`

No description

#### Parameters

| $input |

###
at line 28
`static Number set($input)`

Set an input value

#### Parameters

| $input |

#### Return Value

Number |

###
at line 38
`string toCurrency()`

Convert number into currency format

#### Return Value

string |

###
at line 48
`int toInteger()`

Convert input into integer

#### Return Value

int |

###
at line 58
`float toFloat()`

Convert input to float data

#### Return Value

float |

###
at line 66
`toDecimal(int $decimalNumber = 2, string $decimalSeparator = ',', string $thousand = ',')`

format number into decimal with some criteria

#### Parameters

int | $decimalNumber |
string | $decimalSeparator |
string | $thousand |

###
at line 78
`string get(int|null $startPosition, int|null $endPosition = 0)`

Get number by position number

#### Parameters

int|null | $startPosition |
int|null | $endPosition |

#### Return Value

string |

###
at line 88
`string len()`

Get length of number

#### Return Value

string |

###
at line 100
`array chunk(string $delimiter)`

Chunk a number with some character

#### Parameters

string | $delimiter |

#### Return Value

array |

###
at line 111
`void round(int $precision = 0)`

Round some number

#### Parameters

int | $precision |

#### Return Value

void |

###
at line 121
`value ceil()`

Ceil number

#### Return Value

value |

###
at line 132
`void mod(int $modNumber)`

Modulus

#### Parameters

int | $modNumber |

#### Return Value

void |

###
at line 137
`__toString()`

No description