Description Compares two strings for equality. The comparison is case-sensitive, meaning the String “hello” is not equal to the String “HELLO”. Syntax string.equals(string2) Parameters string : a variable of type String string2 : another variable of type String Returns true: if string equals string2 false: otherwise Example - StringComparisonOperators See also - String - equalsIgnoreCase() […]
Description Tests whether or not a String ends with the characters of another String. Syntax string.endsWith(string2) Parameters string: a variable of type String string2: another variable of type String Returns true: if string ends with the characters of string2 false: otherwise Example - StringStartsWithEndsWith See also - String - startsWith() Language Reference Home The text […]
Description Combines, or concatenates two strings into one new String. The second string is appended to the first. Syntax string.concat(string2) Parameters string, string2: variables of type String Example - StringAppendOperator See also - String - String Addition operator Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and […]
Description Compares two Strings, testing whether one comes before or after the other, or whether they’re equal. The strings are compared character by character, using the ASCII values of the characters. That means, for example, that ‘a’ comes before ‘b’ but after ‘A’. Numbers come before letters. Syntax string.compareTo(string2) Parameters string: a variable of type […]
Description Access a particular character of the String. Syntax string.charAt(n) Parameters string: a variable of type String n: the character to access Returns the n‘th character of the String See also - String - setCharAt() - [] (element access) Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, […]
Description Constructs an instance of the String class. There are multiple versions that construct Strings from different data types (i.e. format them as sequences of characters), including: a constant string of characters, in double quotes (i.e. a char array) a single constant character, in single quotes another instance of the String object a constant integer […]
Segmenting code into functions allows a programmer to create modular pieces of code that perform a defined task and then return to the area of code from which the function was “called”. The typical case for creating a function is when one needs to perform the same action multiple times in a program. For programmers […]
A variable is a way of naming and storing a value for later use by the program, such as data from a sensor or an intermediate value used in a calculation. Declaring Variables Before they are used, all variables have to be declared. Declaring a variable means defining its type, and optionally, setting an initial […]
Description Converts a value to the double data type. Syntax double(x) Parameters x: a value of any type Returns double See also - double Language Reference Home The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference […]
Description The 86Duino supports long double, an 80-bit “double extended” format of floating-point numbers. The double extended format has a range from approximately 3.65E−4951 to 1.18E+4932, but it was designed not to store data at higher precision as such, but rather primarily to allow for the computation of double results more reliably and accurately by […]