Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why not 1*(0.5-0.4-0.1) = 0?
Message
De
07/01/2005 12:08:07
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/01/2005 11:13:56
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Database:
MS SQL Server
Divers
Thread ID:
00974881
Message ID:
00975157
Vues:
38
>Hi Cetin,
>
>>>When I put this formula in Excel the result's -2,77556E-17, but if I format the cell to number, the result's 0. When do you format cell to number the same occcur?
>>>Btw, Congrats for Personality!
>>
>>Erick,
>>Real concern was not excel or display format, it was only the simpliest way I thought to show the problem. .Net, C, SQL server also have the same problem.
>>Cetin
>

>Ok. I'm sorry. 8-D
>PS: (SQL Server 2000) I put, in Query Analyser, Select 1*(0.5-0.4-0.1) Result and the Result's .0.

Yes but it's an analyzer bug which I think VB based. It doesn't always show you the correct values from tables.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform