[Info-vax] Where is EISNER:: and who funds it?
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Sun Dec 26 05:48:07 EST 2021
On 2021-12-25, Dave Froble <davef at tsoft-inc.com> wrote:
>
> As far as that goes, so is Fahrenheit with either. It's just a multiplier and
> an offset.
>
> A couple of lines from a simple VB program I have:
>
> C = (F - 32) * 5 / 9
> F = C * 9 / 5 + 32
>
I looked at the above two statements and basically went "eek!" at
all the implicit type conversions potentially going on above. :-)
Does VB do the right thing above or do variables F and C get
type converted to an integer (with loss of information) before
the above calculations are done ?
Just curious. (In situations like that, I would have written the
integers with a decimal component, so 32 would become 32.0 for example.)
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list