egallesio / STklos

STklos Scheme
http://stklos.net
GNU General Public License v2.0
69 stars 17 forks source link

Read complexes with infs and nans #567

Closed jpellegrini closed 1 year ago

jpellegrini commented 1 year ago

STk_Cstr2number now calls Cstr2simple_number twice in order to read the two parts of a complex number...

Cstr2simple_number needs to modify some of its arguments, so we pass some pointers to it -- mostly to keep the basis and exactness consistent in the two parts of the number.

This should fix #564

jpellegrini commented 1 year ago

Should I change Cstr2simple_number to STk_Cstr2simple_number, and perhaps declare it inline?

jpellegrini commented 1 year ago

Should I change Cstr2simple_number to STk_Cstr2simple_number, and perhaps declare it inline?

I just did... :grin:

egallesio commented 1 year ago

That's really great! I have merged it.