Re: Java 7 features



On Jul 31, 4:35 pm, Martin Gregorie <mar...@xxxxxxxxxxxxxxxxxxx>
wrote:
Arne Vajhøj wrote:
~kurt wrote:
Arne Vajhøj <a...@xxxxxxxxxx> wrote:
It is much more common to have a modulus operator than a
power operator.

C, and its "descendants" are the only languages I have used that
didn't have
one.

C has a rather large family !

:-)

Pascal does not have a power operator either.

Nor does COBOL, which is odd considering its useful for compound
interest calculations.

That's the same language whose two-digit-year date type was
responsible for ~70% of Y2K bugs, so you may be expecting a bit too
much of it here. :)

.



Relevant Pages

  • Re: Bug/Gross InEfficiency in HeathFields fgetline program
    ... calculations, when dealing with money. ... I haven't programmed or audited code for compound interest calculations, ... COBOL has built in support for fixed-point calculations, so when dealing ...
    (comp.lang.c)
  • Re: post prandial indicator 1,5 anhydroglucitol
    ... and still know nothing about how to manage their personal finances. ... When I was at school we were taught how to do compound interest ... calculations around age 14. ... calculator to be using the same calculation methods as the bank. ...
    (alt.support.diabetes)
  • Re: Packed decimal arithmetic in C
    ... COBOL is unable to parse such data when it reads a record from a file. ... of DEC COBOL rather than the IBM variety. ... If the corporate rule stipulate that all calculations MUST be ...
    (comp.os.vms)
  • Re: Alternative COBOL "telco" source program
    ... uses the million record input file and does calculations (most records ... Makes me wonder why he asked why people still use COBOL. ... >> formatting)? ...
    (comp.lang.cobol)
  • Re: Chipmunk Basic arrays (Attn: Ron Nicholson)
    ... representations of numbers. ... calculations are significantly slower. ... if the precision is two decimal places, .01 would be stored as 1). ... COBOL provides extremely flexible and precise formatting for fixed ...
    (comp.lang.basic.misc)

Loading