Unplanned
Last Updated: 19 Jan 2022 15:51 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
1 comment
ADMIN
Angel Petrov
Posted on: 19 Jan 2022 15:51

Hello,

It seems that if you create a .NET Console App the result will be 0, but if .NET Core Console App is created the result will be -0(as mentioned here). Either way we should follow the Microsoft conventions and will need to act on the formatting.

Regards,
Angel Petrov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.