Fixes
This commit is contained in:
parent
7365602715
commit
5d3ab600f1
@ -47,12 +47,12 @@ public bool Num$near(double a, double b, double ratio, double absolute) {
|
||||
return (diff < epsilon);
|
||||
}
|
||||
|
||||
public CORD Num$format(double f, int64_t precision) {
|
||||
return CORD_asprintf("%.*f", (int)precision, f);
|
||||
public CORD Num$format(double f, Int_t precision) {
|
||||
return CORD_asprintf("%.*f", (int)Int$as_i64(precision), f);
|
||||
}
|
||||
|
||||
public CORD Num$scientific(double f, int64_t precision) {
|
||||
return CORD_asprintf("%.*e", (int)precision, f);
|
||||
public CORD Num$scientific(double f, Int_t precision) {
|
||||
return CORD_asprintf("%.*e", (int)Int$as_i64(precision), f);
|
||||
}
|
||||
|
||||
public double Num$mod(double num, double modulus) {
|
||||
@ -129,12 +129,12 @@ public bool Num32$near(float a, float b, float ratio, float absolute) {
|
||||
return (diff < epsilon);
|
||||
}
|
||||
|
||||
public CORD Num32$format(float f, int64_t precision) {
|
||||
return CORD_asprintf("%.*f", (int)precision, f);
|
||||
public CORD Num32$format(float f, Int_t precision) {
|
||||
return CORD_asprintf("%.*f", (int)Int$as_i64(precision), f);
|
||||
}
|
||||
|
||||
public CORD Num32$scientific(float f, int64_t precision) {
|
||||
return CORD_asprintf("%.*e", (int)precision, f);
|
||||
public CORD Num32$scientific(float f, Int_t precision) {
|
||||
return CORD_asprintf("%.*e", (int)Int$as_i64(precision), f);
|
||||
}
|
||||
|
||||
public float Num32$mod(float num, float modulus) {
|
||||
|
@ -18,8 +18,8 @@ CORD Num$as_text(const double *f, bool colorize, const TypeInfo *type);
|
||||
int32_t Num$compare(const double *x, const double *y, const TypeInfo *type);
|
||||
bool Num$equal(const double *x, const double *y, const TypeInfo *type);
|
||||
bool Num$near(double a, double b, double ratio, double absolute);
|
||||
CORD Num$format(double f, int64_t precision);
|
||||
CORD Num$scientific(double f, int64_t precision);
|
||||
CORD Num$format(double f, Int_t precision);
|
||||
CORD Num$scientific(double f, Int_t precision);
|
||||
double Num$mod(double num, double modulus);
|
||||
bool Num$isinf(double n);
|
||||
bool Num$finite(double n);
|
||||
@ -34,8 +34,8 @@ CORD Num32$as_text(const float *f, bool colorize, const TypeInfo *type);
|
||||
int32_t Num32$compare(const float *x, const float *y, const TypeInfo *type);
|
||||
bool Num32$equal(const float *x, const float *y, const TypeInfo *type);
|
||||
bool Num32$near(float a, float b, float ratio, float absolute);
|
||||
CORD Num32$format(float f, int64_t precision);
|
||||
CORD Num32$scientific(float f, int64_t precision);
|
||||
CORD Num32$format(float f, Int_t precision);
|
||||
CORD Num32$scientific(float f, Int_t precision);
|
||||
float Num32$mod(float num, float modulus);
|
||||
bool Num32$isinf(float n);
|
||||
bool Num32$finite(float n);
|
||||
|
Loading…
Reference in New Issue
Block a user