[Coco] The Coco's first webserver, written in Basic09
Willard Goosey
goosey at virgo.sdc.org
Wed Dec 30 23:36:21 EST 2009
On Wed, Dec 30, 2009 at 04:49:21PM -0800, Wayne Campbell wrote:
> 2*3+5/2
>
> is evaluated as
>
> 2*3/2+5, yielding a result of 8
Are you sure that's not evaluted as (2*3)+(5/2) which results in 8?
>
> To get the result of 5 (what we're looking for), it would have to be
> written as
I prefer languages where normal mathmatical precedence rules apply.
Willard
--
Willard Goosey goosey at sdc.org
Socorro, New Mexico, USA
I search my heart and find Cimmeria, land of Darkness and the Night.
-- R.E. Howard
More information about the Coco
mailing list