render: $.fn.dataTable.render.number( ',', '.', 1 )
render: $.fn.dataTable.render.number( ',', '.', 1 )
h.sheng
Posts: 7Questions: 3Answers: 0
Here are the data and the rendered result:
62.98549 -> 62.0 => expected 63.0
62.86533 -> 62.9
61.98213 -> 61.0 => expected 62.0
61.66009 -> 61.7
This discussion has been closed.
Answers
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan
Here it is.
https://jsfiddle.net/p3udprap/2/#&togetherjs=nLItT3q5om
Capacity = Rate / Speed * 100
What browser are you using? I can see "61.98213" being rendered as "62.0" in Chrome Mac.
Also "62.98548" is being correctly rendered as "63.0".
Allan
chrome Version 54.0.2840.99 m & firefox 45.5.0 on windows 7
The attached screenshot is from firefox.
Thanks!
If you run the nightly version of DataTables it will work corrected: https://jsfiddle.net/p3udprap/3/ .
Allan
Thank you very much.
This will be in a new release then?
It will be in 1.10.13, which should drop next week.
Allan