diff options
Diffstat (limited to 'double.c')
| -rw-r--r-- | double.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -31,3 +31,8 @@ bool to_string(char* s, double d){ sprintf(s,"%f",d); return true; } + +bool root_to_string(char* s, double d, double p){ + to_string(s,pow(d,1/p)); + return true; +} |
