Skip to Content.
Sympa Menu

freetds - Re: TDS 7.0 (cvs), float types, MS SQL 7

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: TDS 7.0 (cvs), float types, MS SQL 7
  • Date: Fri, 25 Feb 2000 17:59:12 -0500 (EST)


Hmm..there are two float types: real and flt8 which are 4 byte and 8 byte
respectively. The should be a straight mapping to the float and double
types in C (real -> float, flt8 -> double). Can you provide some test
code to look at?

On Fri, 25 Feb 2000, Michael Suedkamp wrote:

> Hi (Brian),
>
> now I am at obtaining float types from my MS SQL7 server using TDS. As with
> recently the datetime values, I looked at convert.c for the conversion to a
> string representation (as I did with the datetimes recently).
>
> However, I seem to be unable to get values >=1. So e.g. "0.45633" works but
> "1.5465" not. In the latter case e.g. "00.000" is returned (depending on my
> format).
>
> What am I doing wrong?
>
> Michael
>





Archive powered by MHonArc 2.6.24.

Top of Page