# IntegerToLocalizedStringTransformer

class
**IntegerToLocalizedStringTransformer** extends NumberToLocalizedStringTransformer

Transforms between an integer and a localized number with grouping (each thousand) and comma separators.

## Constants

ROUND_CEILING |
Rounds 1.4 to 2 and -1.4 to -1. |

ROUND_FLOOR |
Rounds 1.4 to 1 and -1.4 to -2. |

ROUND_UP |
Rounds 1.4 to 2 and -1.4 to -2. |

ROUND_DOWN |
Rounds 1.4 to 1 and -1.4 to -1. |

ROUND_HALF_EVEN |
Rounds 2.5, 1.6 and 1.5 to 2 and 1.4 to 1. |

ROUND_HALF_UP |
Rounds 2.5 to 3, 1.6 and 1.5 to 2 and 1.4 to 1. |

ROUND_HALF_DOWN |
Rounds 2.5 and 1.6 to 2, 1.5 and 1.4 to 1. |

## Methods

Constructs a transformer.

Transforms a number type into localized number.

Transforms a localized number into an integer or float.

## Details

###
at line line 29
```
```**__construct**($scale, $grouping = false, $roundingMode = self::ROUND_DOWN)

**__construct**($scale, $grouping = false, $roundingMode = self::ROUND_DOWN)

Constructs a transformer.

###
in NumberToLocalizedStringTransformer at line line 106
```
mixed
```**transform**(mixed $value)

**transform**(mixed $value)

Transforms a number type into localized number.

###
at line line 41
```
mixed
```**reverseTransform**(mixed $value)

**reverseTransform**(mixed $value)

Transforms a localized number into an integer or float.