Results 1 to 2 of 2

Thread: Numeric variables

  1. #1

    Question Numeric variables

    'https://www.thinbasic.com/public/products/thinBasic/help/html/numericvariables.htm
    Uses "console"
    
    dim e as currency = -9 ' currency range from -9.22x10^14 To +9.22x10^14
    dim f as double = -9   ' double range from 4.19x10^-307 To 1.79x10^308
    
    printl e 'prints -9
    printl f 'prints -9 too : Out of range defined in thinBasic Help Manual
    
    WaitKey
    
    Why Double numeric type is signed ? For me, the table on the help page is confusing. Is it just an error for Double? If yes, are there other error ?
    ThinBasic 1.11.6.0 ALPHA - Windows 8.1 x64

  2. #2
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,146
    Rep Power
    735
    Hi Sebastian,

    this is a mistake in the docs, the real range for DOUBLE and Float64 is -1.7E+308 to +1.7E+308.

    I will report this to Eros, thanks for the catch!


    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Similar Threads

  1. numeric input calc
    By christianssen in forum UI (User Interface)
    Replies: 8
    Last Post: 27-07-2011, 08:07
  2. Naming Variables
    By danbaron in forum Fixed or cleared errors in help material
    Replies: 2
    Last Post: 08-10-2010, 06:32
  3. New in next thinBasic: numeric type casting
    By ErosOlmi in forum thinBasic vaporware
    Replies: 9
    Last Post: 18-07-2008, 21:11
  4. Next thinBasic: how numeric tokens are stored internally
    By ErosOlmi in forum thinBasic vaporware
    Replies: 14
    Last Post: 12-07-2008, 16:47
  5. Replies: 3
    Last Post: 09-10-2007, 21:56

Members who have read this thread: 0

There are no members to list at the moment.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •