Home forums Report Bugs yValueFormatString consider 0 as non value

This topic contains 2 replies, has 2 voices, and was last updated by  javadevmtl 2 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6730

    javadevmtl
    Participant

    It seems that yValueFormatString when using # as formater that 0 is considered as a non value. I assume this is the same for the other valueFormatStrings functions.

    Here is the fiddle: http://jsfiddle.net/TA9g5/2/

    See the first column. You would expect it to print 0.00 but instead it prints .00

    Thanks

    #6733

    Sunil Urs
    Keymaster

    # is a placeholder for non-zero values. In case you want zero to be displayed, you should use “#0.##”. Here is a fiddle showing the same. http://jsfiddle.net/TA9g5/4/


    Sunil Urs

    #6740

    javadevmtl
    Participant

    Thanks though if I recall it says for the # formater in the docs “if a digit is present”. I suppose anything above a 0 is considered a digit and zero is not?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.