b8a1d025b9e09702debcf84cd656be0cf8032a62 braney Thu Feb 20 11:46:12 2020 -0800 work around a problem with %g going into scientific notation too early diff --git src/inc/common.h src/inc/common.h index b5ea818..b891d98 100644 --- src/inc/common.h +++ src/inc/common.h @@ -1543,16 +1543,19 @@ // Is this string date older than now? boolean dateIsOlderBy(const char *date,const char*format, time_t seconds); // Is this string date older than now by this many seconds? char *dateAddTo(char *date,char *format,int addYears,int addMonths,int addDays); /* Add years,months,days to a formatted date and returns the new date as a cloned string * format is a strptime/strftime format: %F = yyyy-mm-dd */ unsigned dayOfYear(); /* Return the day of the year. */ boolean haplotype(const char *name); /* Is this name a haplotype name ? _hap or _alt in the name */ +char *shorterDouble(double value); +/* Work around a "bug" in %g output that goes into scientific notation too early. */ + #endif /* COMMON_H */