Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 13:16 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : B4X Basic

Author Message
JohnL
Senior Member

Joined: 10/01/2014
Location: Seychelles
Posts: 128
Posted: 02:23am 13 Jun 2016
Copy link to clipboard 
Print this post

  Quote  B4X programming language is a modern version of Visual Basic.


  Quote  The easy way to develop great, native, Android, iOS, IoT, desktop and server apps.


  Quote  B4R - The simplest way to develop native, powerful Arduino programs!




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
Edited by JohnL 2016-06-14
 
isochronic
Guru

Joined: 21/01/2012
Location: Australia
Posts: 689
Posted: 03:42pm 13 Jun 2016
Copy link to clipboard 
Print this post

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.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025