Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #16325 > unrolled thread

Re: gives 919.8359999999999?`

Started byBob Hanlon <hanlonr357@gmail.com>
First post2013-12-06 07:10 +0000
Last post2013-12-06 07:10 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: gives 919.8359999999999?` Bob Hanlon <hanlonr357@gmail.com> - 2013-12-06 07:10 +0000

#16325 — Re: gives 919.8359999999999?`

FromBob Hanlon <hanlonr357@gmail.com>
Date2013-12-06 07:10 +0000
SubjectRe: gives 919.8359999999999?`
Message-ID<l7rt9s$o54$1@smc.vnet.net>
This is expected when operating with machine precision and the decimal
numbers do not have exact binary representations.

916.536+3.3//FullForm

919.8359999999999`

916.536+3.3//Rationalize//N//FullForm

919.836`

916.536+3.3//Rationalize[#,0]&//N//FullForm

919.836`


Bob Hanlon



On Thu, Dec 5, 2013 at 3:05 AM, Guillermo Sanchez <
guillermo.sanchez@hotmail.com> wrote:

> FullForm[916.536 + 3.3] gives 919.8359999999999 instead of 919.836?
>
> Guillermo
>
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web