# NumberToLocalizedStringTransformer

class
**NumberToLocalizedStringTransformer** implements
DataTransformerInterface

Transforms between a number type 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

No description

Transforms a number type into localized number.

Transforms a localized number into an integer or float.

## Details

###
at line line 81
```
```**__construct**($scale = null, $grouping = false, $roundingMode = self::ROUND_HALF_UP)

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

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

**transform**(mixed $value)

Transforms a number type into localized number.

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

**reverseTransform**(mixed $value)

Transforms a localized number into an integer or float.