UCE Docs / DValue::to_string

Signature

String DValue::to_string(String default_value = "") const

Parameters

String : fallback returned when conversion is not possible
return value : converted value or the fallback

Returns the stored string, converts f64/bool/pointer values to text, and returns the default for empty strings, maps, unresolved references, or unknown types. Bool text is (true) or (false).

Example

DValue value;
value = true;
print(value.to_string(), "\n");
Output
1.000000