Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Arduino v Teensy float and double

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Posts
    10

    Arduino v Teensy float and double

    I was just reading that on Arduino a float and a double are the same
    and that precision is limited to 6 to 7 total digits.

    What are the stats for Teensy 3.1?

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,805
    On Teensy 3.1, float is 32 bits and double is 64 bits.

  3. #3
    Junior Member
    Join Date
    Jul 2014
    Posts
    7
    Just to provide a little extra info so not to confuse someone reading this, not all Arduinos have 32 bit double and floats, the Arduino Due uses an ARM core processor which has 64 bit doubles. Currently all of the Atmel based Arduinos have matched double and float precisions of 32 bits.

Posting Permissions

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