Re: Integer Coersion




"David Frank" <dave_frank@xxxxxxxxxxx> wrote in message
news:Lg5yh.21388$w91.9682@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

"PJH" <abc@xxxxxxxxxxx> wrote in message
news:12sgvsvle6sr8c1@xxxxxxxxxxxxxxxxxxxxx

Also, has anyone any advice on how to check the number of bits in a REAL
variable.

Paul Holden



nbits = sizeof(anything)*8


Thanks David. I was hoping to avoid non-standard intrinsics and assumptions
about bits-per-byte. But I can't see any other way to do it, so I guess this
is going to be my simplest solution.

I thought there may be some clever way to cook something standard-compliant
up by using TRANSFER; the trouble is that either I'm not clever enough or it
isn't possible... probably the former.

Paul Holden


.



Relevant Pages

  • Re: [C] use of goto
    ... >>Nothing wrong with the advice you got from Attila and David, ... some of them "clever", but one should not try to be clever ...
    (alt.comp.lang.learn.c-cpp)
  • Re: java programming
    ... Someone comes here with a sincere question, if not great English, and you respond with a "clever" insult? ... Whether or not it was good advice I couldn't tell you without reading that document in its entirety, and it appears to be large. ... is that sending someone away with just a link to a "smart questions FAQ" is going to be interpreted by many as an admonishment for asking a dumb question. ...
    (comp.lang.java.programmer)
  • Re: What Evidence Do We Have From the Cosmos (or From the Bible) That Human Beings Are "Valuable?"
    ... "sharon" or a mad, censoring, filter-scripting control freak like David Grieg. ... There's no basis at all, in your insipid explanation or elsewhere. ... But not clever enough, Kermit old boy. ... you want legitimate, unadulterated responses to statements, then don't try to lead ...
    (talk.origins)
  • Re: border collie or no border collie?
    ... I'll keep this clever insult for later. ... such writing problems. ... You gave lousy advice. ... Do you make money from pure breeds ...
    (rec.pets.dogs.behavior)
  • Re: Its toe-tappingly tragic!
    ... David wrote: ... You've got to hand it to The Sara Conner Chronicles, ... very clever ways of staging movie sized massacres on a TV budget. ...
    (rec.arts.tv)