Deleted Added
sdiff udiff text old ( 10375:b1bc989611da ) new ( 12365:4444393b3551 )
full compact
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 137 unchanged lines hidden (view full) ---

146template <typename T>
147inline void
148_format_float(std::ostream &out, const T &data, Format &fmt)
149{
150 using namespace std;
151
152 ios::fmtflags flags(out.flags());
153
154 if (fmt.fill_zero)
155 out.fill('0');
156
157 switch (fmt.float_format) {
158 case Format::scientific:
159 if (fmt.precision != -1) {
160 if (fmt.width > 0)
161 out.width(fmt.width);
162
163 if (fmt.precision == 0)
164 fmt.precision = 1;

--- 208 unchanged lines hidden ---