Search:

Type: Posts; User: Sean4u

Search: Search took 0.07 seconds.

  1. Replies
    7
    Views
    1,472

    Re: Question about rounding

    Hardware is a big space. Every compiled programming language will provide a maths library or attempt to use maths routines offered by the OS. The amount of work done in software and delegated to...
  2. Replies
    7
    Views
    1,472

    Re: Question about rounding

    It does spell out specifically, but not how double and float are implemented:

    This is what I expect the Java specification to be: no commitment to implementation details at the binary level. It...
  3. Replies
    7
    Views
    1,472

    Re: Question about rounding

    I'm not sure - I didn't actually try it - how that would round 1.5 to 2. Does it work?

    The way I would usually do this is through observing that 'nearest' is a two-way split: it's either next one...
Results 1 to 3 of 3