BOMDAS Vs BODMAS
- From: Frederick Gotham <fgothamNO@xxxxxxxx>
- Date: Tue, 27 Jun 2006 18:56:04 GMT
Simon Biber posted:
In general you do not achieve the correct answer by multiplying first or
by dividing first, but rather by working left to right.
Yes I am well aware of how C operator precedence works -- I was referring
to the way human beings do math.
On the European side of the Atlantic, we learn BOMDAS rather than BODMAS,
and this would lead us to interpret the following line differently:
4 * 12 / 3 * 8
C compiler interpretation: 128
American interpretation: 128
European interpretation: 2
--
Frederick Gotham
.
- Follow-Ups:
- Re: BOMDAS Vs BODMAS
- From: Richard Heathfield
- Re: BOMDAS Vs BODMAS
- From: Richard Tobin
- Re: BOMDAS Vs BODMAS
- From: Tom St Denis
- Re: BOMDAS Vs BODMAS
- From: Mark McIntyre
- Re: BOMDAS Vs BODMAS
- References:
- Re: C Pointer problem
- From: jacob navia
- Re: C Pointer problem
- From: Jordan Abel
- Re: C Pointer problem
- From: Peter Nilsson
- Re: C Pointer problem
- From: Jordan Abel
- Re: C Pointer problem
- From: Dave Thompson
- Re: C Pointer problem
- From: pete
- Re: C Pointer problem
- From: Dave Thompson
- Re: C Pointer problem
- From: pete
- Re: C Pointer problem
- From: Mark McIntyre
- Re: C Pointer problem
- From: Simon Biber
- Re: C Pointer problem
- From: Frederick Gotham
- Re: C Pointer problem
- From: Simon Biber
- Re: C Pointer problem
- Prev by Date: Re: Multiplications by powers of 2
- Next by Date: Re: Segmentation Fault using the srand function
- Previous by thread: Re: C Pointer problem
- Next by thread: Re: BOMDAS Vs BODMAS
- Index(es):
Relevant Pages
|
Loading