functiongetReal

Get scalar Real value from INI file

Extends from Interfaces.partialGetReal.

Information

If strict=true and the line being read contains more than a name=value pair this function will return an error. However, when strict=false it will return the value and ignore the rest of the line.

For example

[example_section]
name=65.2 ;this is a comment

In this example, if strict=true we will get an error but if strict=false it will return the value 65.2

Inputs

TypeNameDefaultDescription
StringvarName (from partialGetReal)Key
Stringsection""Section
Types.ExternINIFileiniExternal INI file object
BooleanstricttrueReturn an error if there are characters on the line that aren't part of the value

Outputs

TypeNameDefaultDescription
Realy (from partialGetReal)Real value
Booleanexist (from partialGetReal)= true, if varName exits; = false, if it does not exist and y is set to 0.0