"decimals"

Sets the number of decimal places for an LCD number.

Synopsis

setValue(string shape,"decimals",int v);

getValue(string shape,"decimals",int &v);

shape.decimals(int v);

Parameter

Parameter Description
shape Name of the object
v The number of decimal places

Description

Sets the number of decimal places for an LCD number.

Example

The following example sets the number of decimal places to 2.

main(bool enter)
{
  LCD1.decimals(2);
}
Figure 1. LCD Number

Assignment

LCD number