...
This commit is contained in:
@@ -223,6 +223,11 @@ static R rad2sxg(double ang, bool hms = false, int prec = 2)
|
||||
{
|
||||
R res;
|
||||
|
||||
if (!std::isfinite(ang)) {
|
||||
std::vformat_to(std::back_inserter(res), "{}", std::make_format_args(ang));
|
||||
return res;
|
||||
}
|
||||
|
||||
std::string fmt = "{:02.0f}:{:02.0f}:{:0" + std::to_string(prec + 3) + "." + std::to_string(prec) + "f}";
|
||||
// std::string fmt = "{:02.0f}:{:02.0f}:{:02." + std::to_string(prec) + "f}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user