Under Review
Last Updated: 02 Dec 2021 12:19 by ADMIN
Created on: 12 Oct 2016 16:00
Category: Kendo UI for jQuery
Type: Feature Request
Fix kendo number formatting to avoid displaying negative or positive zero
Kendo's support for conditional number formatting results in it picking the negative or positive format even when the underlying value is being rounded to zero. This is generally not what users expect and is inconsistent with .NET's number formatting.

Here's an example:

kendo.toString(-0.1, "0;(0)") // results in "(0)" instead of the expected "0"

In contrast, .NET behaves differently:

(-.1).ToString("0;(0)") // results in "0"

It would be great if kendo's toString implementation incorporated this logic.

More information and examples are available in this Kendo forum post:

There's also this StackOverflow question: