Re: UniBasic code that should work
- From: "Peter McMurray" <excalibur21@xxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 05:26:57 GMT
Ah! Jeremy
Your education is sadly lacking. Little Britain is an excellent televisual
feast of far out comedy from Britain of course, but luckily available on ABC
in Australia.
Yes I agree with the tricks you use as I say always scale as you go. I
still reckon that there is probably a flag in Unidata to force rounding at
some relevant digit after the decimal point. A fun way of seeing the effect
is to try squaring root two on a group of calculators.
Regards
Peter McMurray
<panzerboy@xxxxxxxxx> wrote in message
news:1143608417.617109.24080@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
May I ask what the 4.57 & 4.58 values actually represent?
Do the values have to be decimals?
I done 11 years in UniData and never hit a problem with wide zero.
But then I never use decimals where I could use integers then 'r26'
the result for output only. Only decimals I dealt with were for
currency conversions
and again, after the conversion the answer was '0'd to an integer.
ie $amts were stored as $$$cc not $$$.cc
This was more because of my experience in R83 and only 4 decimal
places trying to preserve precision than for wide zero. I've often
done divisions like this z=((x*10000)/y)/10000 to avoid precision
problems.
Um... Little Britain? whats that?
Jeremy Thomson
.
- Follow-Ups:
- Re: UniBasic code that should work
- From: symeonb
- Re: UniBasic code that should work
- References:
- UniBasic code that should work
- From: Mike Preece
- Re: UniBasic code that should work
- From: Mike Preece
- Re: UniBasic code that should work
- From: Excalibur
- Re: UniBasic code that should work
- From: Mike Preece
- Re: UniBasic code that should work
- From: panzerboy
- UniBasic code that should work
- Prev by Date: Re: UniBasic code that should work
- Next by Date: Re: UniBasic code that should work
- Previous by thread: Re: UniBasic code that should work
- Next by thread: Re: UniBasic code that should work
- Index(es):