float data type in sql2005 and sql2000

  • Hi ,

    i was using sql2000 in which one table has float datatype and when i query it gives result like

    20.000000000000004

    but same thing when i query in sql2005 i get only 20.

    do i need to change anything in sql2005.

     

    thanks

     

  • Float is an approximate datatype so you can get some unusual values for seemingly simple maths.

    Decimal and Numeric are precise values.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply