comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: format value in property sheet
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: format value in property sheet [message #58800 is a reply to message #58799] Tue, 19 February 2008 09:33 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
bernat writes:

> The only thing I want is to show my value in the property sheet.
> I've a "problem" with that. I've a registered property as a FLOAT
> value and the property sheet gets the value and shows in a widget this
> float with 10 decimals.
> If my value is 0.3 the property sheet shows 0.3000000190369...
>
> Is it possible to change this ? If I get a value of 0.3, I want the
> property sheet to show the same value property.

I don't know about property sheets, but I find
NUMBER_FORMATTER extremely handy for formatting
numbers that will appear in text widgets:

http://www.fanning.com/programs/number_formatter.pro

This just looks to me like a bad case of using
too many digits in a formatting statement when the
number is converted to a string.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming (www.dfanning.com)
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: format value in property sheet
Next Topic: boxgrid isurface

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 19 03:55:09 PDT 2025

Total time taken to generate the page: 0.96132 seconds