diff --git a/docs/globalization/intl/numberformatting.md b/docs/globalization/intl/numberformatting.md index bf23e715f86..7185630d4d9 100644 --- a/docs/globalization/intl/numberformatting.md +++ b/docs/globalization/intl/numberformatting.md @@ -16,118 +16,122 @@ The [`kendo.format`](/api/javascript/kendo#format) and [`kendo.toString`](/api/j The following runnable example demonstrates how to format numbers by using the [`kendo.toString`](/api/javascript/kendo/methods/tostring) method: ```dojo - - -

Number formats with US culture.

-
-

Number formats with DE culture.

-
-

Applying Number formatting to Grid columns.

-
- + + + +

Number formats with US culture.

+
+ +

Number formats with DE culture.

+
+ +

Applying Number formatting to Grid columns.

+
+ + ``` ## Default Number Formats * `"n"`—Renders a number. - kendo.culture("en-US"); - kendo.toString(1234.567, "n"); //1,234.57 + kendo.culture("en-US"); + kendo.toString(1234.567, "n"); //1,234.57 - kendo.toString(10.12, "n5"); //10.12000 - kendo.toString(10.12, "n0"); //10 + kendo.toString(10.12, "n5"); //10.12000 + kendo.toString(10.12, "n0"); //10 - kendo.culture("de-DE"); - kendo.toString(1234.567, "n3"); //1.234,567 + kendo.culture("de-DE"); + kendo.toString(1234.567, "n3"); //1.234,567 * `"c"`—Renders a currency value. - kendo.culture("en-US"); - kendo.toString(1234.567, "c"); //$1,234.57 + kendo.culture("en-US"); + kendo.toString(1234.567, "c"); //$1,234.57 - kendo.culture("en-US"); - kendo.toString(1234.567, "c0"); //$1,235 + kendo.culture("en-US"); + kendo.toString(1234.567, "c0"); //$1,235 - kendo.culture("de-DE"); - kendo.toString(1234.567, "c3"); //1.234,567 € + kendo.culture("de-DE"); + kendo.toString(1234.567, "c3"); //1.234,567 € * `"p"`—Renders a percentage (number is multiplied by 100). - kendo.culture("en-US"); - kendo.toString(0.222, "p"); //22.20 % + kendo.culture("en-US"); + kendo.toString(0.222, "p"); //22.20 % - kendo.culture("en-US"); - kendo.toString(0.222, "p0"); //22 % + kendo.culture("en-US"); + kendo.toString(0.222, "p0"); //22 % - kendo.culture("de-DE"); - kendo.toString(0.22, "p3"); //22.000 % + kendo.culture("de-DE"); + kendo.toString(0.22, "p3"); //22.000 % * `"e"`—Renders exponential values. - kendo.toString(0.122, "e"); //1.22e-1 - kendo.toString(0.122, "e4"); //1.2200e-1 + kendo.toString(0.122, "e"); //1.22e-1 + kendo.toString(0.122, "e4"); //1.2200e-1 ## Custom Number Formats @@ -165,77 +169,77 @@ The following specifiers are supported by Kendo UI: The following runnable example demonstrates how to use the [`kendo.toString`](/api/javascript/kendo/methods/tostring) method in the [`eventTemplate`](/api/javascript/ui/scheduler/configuration/eventtemplate) of the Scheduler: ```dojo -
- - -
- -
- - + + + ] + }); + } + ``` ## See Also