Arduino Programming Language: LongCast

Name

long()

Description

Converts a primitive datatype to its long representation. This equivalent to the cast operator (long).

Syntax

long (value)
(long) value

Parameters

  • value: int, long, float, char, byte

Returns

long 

Usage

Application

Examples

//it sets i to 3
long i = long(3.1415);


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc