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
| Type | Name | Default | Description |
|---|---|---|---|
| String | varName (from partialGetReal) | Key | |
| String | section | "" | Section |
| Types.ExternINIFile | ini | External INI file object | |
| Boolean | strict | true | Return an error if there are characters on the line that aren't part of the value |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | y (from partialGetReal) | Real value | |
| Boolean | exist (from partialGetReal) | = true, if varName exits; = false, if it does not exist and y is set to 0.0 |