re: A92: quirks
[Prev][Next][Index][Thread]
re: A92: quirks
Andrew,
This was sent to me by the programmer who coded the parser of the
calcualtor. I hope this answers your question!!
> Shawn,
> These results occur because exact() and approx() are NOT true function
> calls. They are actually "temporary mode switches". Thus, if you construct
> compositions using exact() and approx(), you only get the result of the
> innermost switch. exact(approx(...)) is equivalent to simply approx(...).
> approx(exact(...)) is equivalent to simply exact(...).
>
> Regards,
> BudG
> ----------
>
> ------------------
> Original text
>
> From: Shawn Prestridge <sprestridge@ti.com>, on 7/28/97 8:33 AM:
> Bud,
> A set of two problems was recently sent in on the assembly-92
> mailing
> list (formerly the list-fargo). They seem a little counter-intuitive, but
> Glen
> vaguely recalls that there was some reason this occurs. Could you provide a
> little more information for my own benefit? Thanks... The problems and 92
> answers are as follows:
>
> exact(approx(.5)) => .5
> exact(approx(1/2)) => .5
> approx(exact(.5)) => 1/2
> approx(exact(1/2)) => 1/2
>
> Thanks in advance,
> Shawn Prestridge
> Texas Instruments, Inc.
> Educational & Productivity Solutions
> 7800 Banner Drive MS 3908
> Dallas, Texas 75251
> (972) 917-1698
> (972) 917-7103 FAX
>
>
Shawn Prestridge
Texas Instruments, Inc.
Educational & Productivity Solutions
7800 Banner Drive MS 3908
Dallas, Texas 75251
(972) 917-1698
(972) 917-7103 FAX
Follow-Ups:
References: