Graduating the float feature

6 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 15, 2022, 5:14:21 PM9/15/22
to vim...@googlegroups.com

I have been wondering if there are any systems where the float feature
is no present.

There is a configure check for the float library functions that Vim
uses:
d = strtod("1.1", &s);
d = fabs(1.11);
d = ceil(1.11);
d = floor(1.11);
d = log10(1.11);
d = pow(1.11, 2.22);
d = sqrt(1.11);
d = sin(1.11);
d = cos(1.11);
d = atan(1.11);

AFAIK these are all part of C89, thus should always exist.
I guess this configure check pre-dates when we required C89.

Does anybody know of a problem when we would enable FEAT_FLOAT
always?

--
From "know your smileys":
:----} You lie like Pinocchio

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages