![]() |
Forum Index : Microcontroller and PC projects : B4X Basic
Author | Message | ||||
JohnL Senior Member ![]() Joined: 10/01/2014 Location: SeychellesPosts: 128 |
https://www.b4x.com/index.html https://www.b4x.com/b4r.html https://www.b4x.com/b4r/documentation.html https://www.b4x.com/b4r/help/core.html |
||||
isochronic Guru ![]() Joined: 21/01/2012 Location: AustraliaPosts: 689 |
Looks as though the so-called "double" is only the renamed single precision, which usual for Arduino. Info from the the site : The following data types are available in B4R:
Numeric types: Byte: 0 - 255 Int (2 bytes): -32768 - 32768. Similar to Short type in other B4X tools. UInt (2 bytes): 0 - 65535. Long (4 bytes): -2,147,483,648 - 2,147,483,647. Similar to Int type in other B4X tools. ULong (4 bytes): 0 - 4,294,967,295 Double (4 bytes): 4 bytes floating point. Similar to Float in other B4X tools. Float is the same as Double. Short is the same as Int. The above is true on all boards, including the Arduino Due. Other types: Boolean: True or False. Practically it is saved as a byte with the value of 1 or 0. String: Strings are made from an array of bytes that end with a null byte (byte with the value of 0). Object: Objects can hold other types of values. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |