Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Floating value is too small
Message
 
 
À
23/02/2014 19:28:10
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01595024
Message ID:
01595026
Vues:
39
Looks like the value you used is outside the range for float:

http://technet.microsoft.com/en-us/library/ms173773.aspx

- 1.79E+308 to -2.23E-308, 0 and 2.23E-308 to 1.79E+308

>I have this command:
>
>
>DECLARE @ModUser Int
>DECLARE @ModDate DateTime
>DECLARE @AvailableDiskSpace BigInt
>DECLARE @TotalDiskSpace BigInt
>DECLARE @AvailableDiskSpacePercent Float
>DECLARE @Numero Int
>
>SET @ModUser=1
>SET @ModDate='2014-02-23 18:24:58'
>SET @AvailableDiskSpace=4.34447218344401E-313
>SET @TotalDiskSpace=6.29967500442815E-313
>SET @AvailableDiskSpacePercent=68.963433516653
>SET @Numero=16
>
>UPDATE Storage
> SET ModUser=@ModUser,ModDate=@ModDate,AvailableDiskSpace=@AvailableDiskSpace,TotalDiskSpace=@TotalDiskSpace,
> AvailableDiskSpacePercent=@AvailableDiskSpacePercent
> WHERE Numero=@Numero
>
>
>I receive this:
>
>Warning: the floating point value '4.34447218344401E-313' is too small. It will be interpreted as 0.
>Warning: the floating point value '6.29967500442815E-313' is too small. It will be interpreted as 0.
>
>It is not clear what has to be adjusted.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform