Skip to content

Formattting of float between -5 and 0 #20564

@jomar-honsi

Description

@jomar-honsi

Expected behaviour

When using pointFormat with float precision 0 combined with a number between 0 and -0.5 one expects the result be be "0".

Actual behaviour

The string "-0" is displayed. This behaviour has been observed on the Dashboard climate demo, but is a Highcharts issue (see demo).

Live demo with steps to reproduce

https://jsfiddle.net/jomar_honsi/n0gm9r31/25/

  • Hover over December and observe that the tooltip says "-0"

Product version

Highcharts 11.3.0

Affected browser(s)

N.A.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions