You are here: Re: float numbers « MsSQL Server « IT news, forums, messages
Re: float numbers

Posted by Tom Moreau on 04/03/06 19:20

I get:

0.66602742999999975


--
Tom

----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Toronto, ON Canada
..
"gabe101" <gabe101@gmail.com> wrote in message
news:1144080712.526308.302260@e56g2000cwe.googlegroups.com...
Something else that is puzzling me about all of this:

Put 'select @leftover' at the end of this code.

I get:

0.66602742999999975 as the @leftover value. Shouldn't that be
0.66602743........why did Query Analyzer do this?

If floor(@x) = 57
and
@Leftover = 57.66602743 - @x then the result should be 0.66602743

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация