Under Review
Last Updated: 02 Dec 2021 12:19 by ADMIN
Mike
Created on: 12 Oct 2016 16:00
Category: Kendo UI for jQuery
Type: Feature Request
5
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:
http://www.telerik.com/forums/kendo-showing-negative-zero-when-using-conditional-formatting-c729272b262d#0lTodzUtsEeF4d3xn8hhDA

There's also this StackOverflow question:
http://stackoverflow.com/questions/39977630/kendo-conditional-formatting-results-in-negative-zero
0 comments