AnsweredAssumed Answered

vrf Decimal Rounding

Question asked by VRFuser on Jul 9, 2002
I agree. Text boxes for numeric input are a LOT better than REAL boxes.
I wrote a little function a while back that you (and others) might be
interested in. It converts REALs back into a NICE readable format. I've
attached a demo of the function comparing it to VEE's ToString. I think
you will be able to see the difference and why I like my way better.

Mike Groves
Cree Microwave

-----Original Message-----
From: Opti [mailto:phr@optonline.net]
Sent: Tuesday, July 09, 2002 11:51 AM
To: Gregg C Levine; Vrf
Subject: RE: vrf Decimal Rounding


In order to remove the rounding error, the as text object must be used.

Paul H. Rubin
Formerly with Ericsson Amplifier Technologies Inc.

-----Original Message-----
From:     owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com] On
Behalf Of Gregg C Levine
Sent:     Tuesday, July 09, 2002 1:37 PM
To:     Vrf
Subject:     RE: vrf Decimal Rounding

Hello from Gregg C Levine actually with Jedi Knight Computers
Look at it this way. That's the line running into, or out of the object.
It's the actual number as rendered by VEE. The object itself contains
the number that you want, as it follows the decimal rounding. Also for
some objects, display ones for example, the rounding of decimals can be
set.
-------------------
Gregg C Levine hansolofalcon@worldnet.att.net
------------------------------------------------------------
"The Force will be with you...Always." Obi-Wan Kenobi
"Use the Force, Luke."  Obi-Wan Kenobi
(This company dedicates this E-Mail to General Obi-Wan Kenobi )
(This company dedicates this E-Mail to Master Yoda )



> -----Original Message-----
> From: owner-vrf@lvld.agilent.com [mailto:owner-vrf@lvld.agilent.com]
On Behalf
> Of matt.mcnally@us.thalesatm.com
> Sent: Tuesday, July 09, 2002 1:26 PM
> To: ayoung09@harris.com; bill_ossmann@hsgmed.com; vrf@lvld.agilent.com
> Subject: RE: vrf Decimal Rounding
>
> Yes, It works but why is it when I move my mouse over the line it
still
> gives me this big long number?
>
>
>
> Matt McNally
> Thales ATM INC.
> Shawnee, KS
> 913-422-2600 X5180
>
>      -----Original Message-----
>      From:     Young, Andrew [SMTP:ayoung09@harris.com]
>      Sent:     Tuesday, July 09, 2002 12:20 PM
>      To:     'OSSMANN,BILL (A-hsgAndover,ex1)'; vrf@lvld.agilent.com
>      Subject:     RE: vrf Decimal Rounding
>
>      It seems that you need to use 10.0^(-n) or you'll always get a
> response of zero.
>      No automatic type conversion here...
>
>                -----Original Message-----
>                From:     OSSMANN,BILL (A-hsgAndover,ex1)
>      [mailto:bill_ossmann@hsgmed.com]
>                Sent:     Tuesday, July 09, 2002 1:05 PM
>                To:     vrf@lvld.agilent.com
>                Subject:     RE: vrf Decimal Rounding
>
>                Matt:
>
>                Use the round() function
>
>                round(z*10^n)*10^(-n)
>
>                Bill Ossmann
>                --
>                bill_ossmann@hsgmed.com
>                Philips Ultrasound
>
>                >-----Original Message-----
>                >From: matt.mcnally@us.thalesatm.com
>                >[mailto:matt.mcnally@us.thalesatm.com]
>                >Sent: Tuesday, July 09, 2002 12:27 PM
>                >To: vrf@lvld.agilent.com
>                >Subject: vrf Decimal Rounding
>                >
>                >
>                >Does any one know how to round to the nearest
> decimal x? Thanks
>      Matt
>                >
>                >
>                >
>                >Matt McNally
>                >Thales ATM INC.
>                >Shawnee, KS
>                >913-422-2600 X5180
>
>
> >---------------------------------------------------------------------
>                >This is the "vrf" maillist, managed by
Majordomo.
> To send
>      messages to
>                >this maillist, just email to
> "vrf@lvld.agilent.com".
>      Subscriptions and
>                >unsubscriptions are done through the address
>                >"vrf-request@lvld.agilent.com".
>                >If you need details, just send a message
containing
> the text
>      "help"
>                >to "vrf-request@lvld.agilent.com".
>
>
> >---------------------------------------------------------------------
>                >
>
>
> ---------------------------------------------------------------------
>                This is the "vrf" maillist, managed by
Majordomo.
> To send
>      messages to
>                this maillist, just email to
"vrf@lvld.agilent.com".
>      Subscriptions and
>                unsubscriptions are done through the address
>      "vrf-request@lvld.agilent.com".
>                If you need details, just send a message
containing
> the text
>      "help"
>                to "vrf-request@lvld.agilent.com".
>
>
> ---------------------------------------------------------------------
>
> ---------------------------------------------------------------------
>      This is the "vrf" maillist, managed by Majordomo.  To send
messages
> to
>      this maillist, just email to "vrf@lvld.agilent.com".
Subscriptions
> and
>      unsubscriptions are done through the address
> "vrf-request@lvld.agilent.com".
>      If you need details, just send a message containing the text
"help"
>      to "vrf-request@lvld.agilent.com".
>
> ---------------------------------------------------------------------
> ---------------------------------------------------------------------
> This is the "vrf" maillist, managed by Majordomo.  To send messages to
> this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions
and
> unsubscriptions are done through the address
"vrf-request@lvld.agilent.com".
> If you need details, just send a message containing the text "help"
> to "vrf-request@lvld.agilent.com".
> ---------------------------------------------------------------------

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

---------------------------------------------------------------------
This is the "vrf" maillist, managed by Majordomo.  To send messages to
this maillist, just email to "vrf@lvld.agilent.com".  Subscriptions and
unsubscriptions are done through the address "vrf-request@lvld.agilent.com".
If you need details, just send a message containing the text "help"
to "vrf-request@lvld.agilent.com".
---------------------------------------------------------------------

Outcomes