Signature
s64 DValue::to_s64(s64 default_value = 0) const
Parameters
s64 : fallback returned when conversion is not possible
return value : converted value or the fallback
Converts strings, f64, bool, pointer, and single-value maps to a signed integer. Invalid or empty strings return the default. Values outside the signed range are clamped.
Example
DValue value; value = "-42"; print(value.to_s64(), "\n");
Output
-42