type: std::double
[contents]

Contents

Syntax

The syntax for std::double definitions is:

f++:  
std::double definitions
std::double(definitions)
:=(std::double, definitions)
n++:  
@std::double definitions
@std::double(definitions)
@:=(std::double, definitions)

Note: If you are using the first syntax for variable definitions and want to have more code and/or text following on the same line then simply end the definition with ';'.

Description

The std::double type is used for floating point values.

Note: ExprTk does not have direct access to variables of type std::double, if you want the convenience and efficiency of direct access then use double.

Note: If you need to define thousands of variables then := is faster, plus it has useful error messages for unrecognised types.

Options

The following options are available for std::double definitions:

option description
const definition of a constant
layer="x" define variable at layer x
private definition of a private
scope+="x" add x to scopes variable can be accessed from
option description

f++ example

Examples of std::double being defined with f++:

std::double a=10.5, b=12.2
std::double(x, y, z)
:=(std::double, count = 15.3)

n++ example

Examples of std::double being defined with n++:

@std::double a=10.5, b=12.2
@std::double(x, y, z)
@:=(std::double, count = 15.3)