long double calc
[m6w6/ext-psi] / psi.d / stdlib.psi
index 8a5257205e3433e9c7b404777e7f9bc14ef04ee9..bcc884d7b9d30a6f18d310eb13d50527e3126465 100644 (file)
@@ -20,3 +20,10 @@ function psi\lldiv(int $numerator, int $denominator) : array {
        let denominator = intval($denominator);
        return to_array(lldiv, to_int(quot), to_int(rem));
 }
+
+function psi\strtold(string $str, string &$end = null) : float {
+       let nptr = strval($str);
+       let endptr = &NULL;
+       return to_float(strtold);
+       set $end = to_string(*endptr);
+}
\ No newline at end of file