Searched refs:frac (Results 1 – 5 of 5) sorted by relevance
47 whole, frac = divmod(percent, factor)48 while frac and not frac % 10:49 frac /= 1052 return '%d%s%%' % (whole, '.%0*d' % (precision, frac) if frac else '')94 frac = (size % magnitude) * (10 ** precision) / magnitude95 while frac and not frac % 10:96 frac /= 1097 return '%d%s %s' % (whole, '.%d' % frac if frac else '', suffixes[exp - 1])
249 double frac = 0; in ProcessProgressLine() local250 if (sscanf(line.c_str(), "global_progress %lf", &frac) == 1 && in ProcessProgressLine()251 !std::isnan(frac)) { in ProcessProgressLine()252 ReportProgress(frac); in ProcessProgressLine()259 void PostinstallRunnerAction::ReportProgress(double frac) { in ReportProgress() argument266 if (!std::isfinite(frac) || frac < 0) in ReportProgress()267 frac = 0; in ReportProgress()268 if (frac > 1) in ReportProgress()269 frac = 1; in ReportProgress()271 (accumulated_weight_ + partition_weight_[current_partition_] * frac) / in ReportProgress()
84 void ReportProgress(double frac);
806 double frac = erand48(random_seed); in determine_before_after() local807 sleep_before_collect = (unsigned) (((double)collection_interval) * frac); in determine_before_after()
185 int frac = atoi(argv[4]); in runCommand() local186 return sendGenericOkFail(cli, disk->partitionMixed(frac)); in runCommand()