2 Extern implementation of Nit module string
4 #include "standard___string._ffi.h"
6 String
Float_to_precision_native___impl( float recv
, bigint nb
)
8 #line 826 "../lib/standard/string.nit"
14 size
= snprintf(NULL
, 0, "%.*f", (int)nb
, recv
);
15 str
= malloc(size
+ 1);
16 sprintf(str
, "%.*f", (int)nb
, recv
);
18 return new_String_from_cstring( str
);