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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: format value in property sheet [message #58797] Tue, 19 February 2008 11:31 Go to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
>> http://www.fanning.com/programs/number_formatter.pro

>> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
>
> Oops! Page not found!
>
> At least, that's what your website said when I clicked on your link
> David...


try http://www.dfanning.com/programs/number_formatter.pro

Jean
Re: format value in property sheet [message #58798 is a reply to message #58797] Tue, 19 February 2008 11:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Conor writes:

> Oops! Page not found!
>
> At least, that's what your website said when I clicked on your link
> David...

Ah, try *d*fanning.com. Still suffering from jet
lag after a week on the continent. :-(

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

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.")
Re: format value in property sheet [message #58799 is a reply to message #58797] Tue, 19 February 2008 11:05 Go to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Feb 19, 12:33 pm, David Fanning <n...@dfanning.com> wrote:
> 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.")

Oops! Page not found!

At least, that's what your website said when I clicked on your link
David...
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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: format value in property sheet
Next Topic: boxgrid isurface

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

Current Time: Sun Oct 12 10:28:47 PDT 2025

Total time taken to generate the page: 1.92302 seconds