Link Search Menu Expand Document

SSpread.SetFloat Method

Explanation Set floating point values for numeric, currency, and percentage cells.

The Clip, ClipValue, Text and Value for each properties can be set the cell value as a string, but this method sets the floating point value directly to the cell if the cell type is numeric, currency, or percentage.
Call format SetFloat(col, row, value)
Return value None
Arguments col Cell column number
row Cell row number
value Floating point value to set
Exception EXT-28 An error occurred in the SetFloat method
Example of use
    Col = 1;
    Row = 1;
    CellType = $CellTypeCurrency;
    
    SetFloat(1, 1, 123.45);
    var ret = GetFloat(1, 1);
    print(ret, ret.classname, "\n");   
    
Related item Clip, ClipValue, Text, Value properties
GetFloat, SetInteger, SetText methods