From 25199f9859ebfb704f9630588bd3fd57d8e3bba3 Mon Sep 17 00:00:00 2001 From: Jaakko Salli Date: Thu, 16 Dec 2010 16:12:55 +0000 Subject: [PATCH] Document how the sign is omitted from wxFloatProperty's displayed value when it is effectively zero (closes #12738). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/propgrid/property.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/wx/propgrid/property.h b/interface/wx/propgrid/property.h index e2bbb158ec..f67b50e0da 100644 --- a/interface/wx/propgrid/property.h +++ b/interface/wx/propgrid/property.h @@ -409,6 +409,12 @@ wxPG_PROP_BEING_DELETED = 0x00200000 Default float-to-text precision is 6 decimals, but this can be changed by modifying wxPG_FLOAT_PRECISION attribute. + Note that when displaying the value, sign is omitted if the resulting + textual representation is effectively zero (for example, -0.0001 with + precision of 3 will become 0.0 instead of -0.0). This behavior is unlike + what C standard library does, but should result in better end-user + experience in almost all cases. + @subsection wxBoolProperty Represents a boolean value. wxChoice is used as editor control, by the -- 2.45.2