Author Topic: LDOUBLE  (Read 220 times)

Robert

  • Hero Member
  • *****
  • Posts: 664
    • View Profile
Re: LDOUBLE
« Reply #15 on: June 01, 2021, 12:56:36 AM »
Above edited. One digit cut and paste error.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 895
    • View Profile
Re: LDOUBLE
« Reply #16 on: June 01, 2021, 01:11:55 AM »
This code using enhanced USING$ from 772 ...

Code: [Select]
DIM pi AS LDOUBLE

pi =   3.141592653589793239L

PRINT "3.141592653589793239"

PRINT USING$("#.###################",pi)

pi = 4.0*ATANL(1.0)

PRINT USING$("#.###################",pi)

Produces (Mingw)
3.141592653589793239
3.141592653589793239
3.141592653589793239

Produces (LccWin32)
3.141592653589793239
3.141592653589793239
3.141592653589793238

Produces (Pelles, MSVC, and Clang)
3.141592653589793239
3.141592653588793116
3.141592653588793116
 

Robert

  • Hero Member
  • *****
  • Posts: 664
    • View Profile
Re: LDOUBLE
« Reply #17 on: June 01, 2021, 01:28:48 AM »
This code using enhanced USING$ from 772 ...

Code: [Select]
DIM pi AS LDOUBLE

pi =   3.141592653589793239L

PRINT "3.141592653589793239"

PRINT USING$("#.###################",pi)

pi = 4.0*ATANL(1.0)

PRINT USING$("#.###################",pi)

Produces (Mingw)
3.141592653589793239
3.141592653589793239
3.141592653589793239

Produces (LccWin32)
3.141592653589793239
3.141592653589793239
3.141592653589793238

Produces (Pelles, MSVC, and Clang)
3.141592653589793239
3.141592653588793116
3.141592653588793116

Great! Thanks for the LCCWin32 info. Jacob was definitely ahead of the curve with his qfloat numbers.