diff --git a/src/main/java/org/squiddev/cobalt/Buffer.java b/src/main/java/org/squiddev/cobalt/Buffer.java index 602e837c..a1793381 100644 --- a/src/main/java/org/squiddev/cobalt/Buffer.java +++ b/src/main/java/org/squiddev/cobalt/Buffer.java @@ -108,7 +108,7 @@ public Buffer(LuaString value) { * @return value as a {@link LuaValue}, converting as necessary */ public LuaValue value() { - return value != null ? value : this.tostring(); + return value != null ? value : this.toLuaString(); } /** @@ -129,7 +129,7 @@ public Buffer setvalue(LuaString value) { * * @return the value as a {@link LuaString} */ - public final LuaString tostring() { + public final LuaString toLuaString() { realloc(length, 0); return LuaString.valueOf(bytes, offset, length); } @@ -151,11 +151,37 @@ public String toString() { * @return {@code this} to allow call chaining */ public final Buffer append(byte b) { - makeroom(0, 1); + makeRoom(0, 1); bytes[offset + length++] = b; return this; } + /** + * Append a single character to the buffer. + * + * @param c The byte to append + * @return {@code this} to allow call chaining + */ + public final Buffer append(char c) { + makeRoom(0, 1); + bytes[offset + length++] = c < 256 ? (byte) c : 63; + return this; + } + + /** + * Append a character array to the buffer. + * + * @param chars The byte to append + * @return {@code this} to allow call chaining + */ + public final Buffer append(char[] chars) { + final int n = chars.length; + makeRoom(0, n); + LuaString.encode(chars, bytes, offset + length); + length += n; + return this; + } + /** * Append a {@link LuaString} to the buffer. * @@ -164,7 +190,7 @@ public final Buffer append(byte b) { */ public final Buffer append(LuaString str) { final int n = str.length; - makeroom(0, n); + makeRoom(0, n); str.copyTo(0, bytes, offset + length, n); length += n; return this; @@ -180,7 +206,7 @@ public final Buffer append(LuaString str) { */ public final Buffer append(String str) { final int n = str.length(); - makeroom(0, n); + makeRoom(0, n); LuaString.encode(str, bytes, offset + length); length += n; return this; @@ -194,7 +220,7 @@ public final Buffer append(String str) { */ public Buffer prepend(LuaString s) { int n = s.length; - makeroom(n, 0); + makeRoom(n, 0); System.arraycopy(s.bytes, s.offset, bytes, offset - n, n); offset -= n; length += n; @@ -208,7 +234,7 @@ public Buffer prepend(LuaString s) { * @param nbefore number of unused bytes which must precede the data after this completes * @param nafter number of unused bytes which must follow the data after this completes */ - public final void makeroom(int nbefore, int nafter) { + public final void makeRoom(int nbefore, int nafter) { if (value != null) { LuaString s = value; value = null; diff --git a/src/main/java/org/squiddev/cobalt/LuaString.java b/src/main/java/org/squiddev/cobalt/LuaString.java index 40ada8eb..b3d88465 100644 --- a/src/main/java/org/squiddev/cobalt/LuaString.java +++ b/src/main/java/org/squiddev/cobalt/LuaString.java @@ -604,6 +604,25 @@ public static void encode(String string, byte[] bytes, int off) { } } + /** + * Encode the given character array with characters limited to the 0-255 range, + * writing the result to bytes starting at offset. + * + * The string should be measured first with lengthAsUtf8 + * to make sure the given byte array is large enough. + * + * @param string Array of characters to be encoded + * @param bytes byte array to hold the result + * @param off offset into the byte array to start writing + * @see #decode(byte[], int, int) + */ + public static void encode(char[] string, byte[] bytes, int off) { + for (int i = 0; i < string.length; i++) { + int c = string[i]; + bytes[i + off] = (c < 256 ? (byte) c : 63); + } + } + //region UTF8 /** diff --git a/src/main/java/org/squiddev/cobalt/LuaTable.java b/src/main/java/org/squiddev/cobalt/LuaTable.java index 564e0019..6c14ed55 100644 --- a/src/main/java/org/squiddev/cobalt/LuaTable.java +++ b/src/main/java/org/squiddev/cobalt/LuaTable.java @@ -323,7 +323,7 @@ public LuaValue concat(LuaString sep, int i, int j) throws LuaError { sb.append(rawget(i).checkLuaString()); } } - return sb.tostring(); + return sb.toLuaString(); } @Override diff --git a/src/main/java/org/squiddev/cobalt/lib/FormatDesc.java b/src/main/java/org/squiddev/cobalt/lib/FormatDesc.java new file mode 100644 index 00000000..f00119e6 --- /dev/null +++ b/src/main/java/org/squiddev/cobalt/lib/FormatDesc.java @@ -0,0 +1,346 @@ +package org.squiddev.cobalt.lib; + +import org.squiddev.cobalt.Buffer; +import org.squiddev.cobalt.LuaError; +import org.squiddev.cobalt.LuaString; +import sun.misc.FormattedFloatingDecimal; + +class FormatDesc { + private boolean leftAdjust; + private boolean zeroPad; + private boolean explicitPlus; + private boolean space; + private boolean alternateForm; + private static final int MAX_FLAGS = 5; + + private int width; + int precision; + + public final int conversion; + public final int length; + + public FormatDesc(LuaString strfrmt, final int start) throws LuaError { + int p = start, n = strfrmt.length(); + int c = 0; + + boolean moreFlags = true; + while (moreFlags) { + switch (c = ((p < n) ? strfrmt.luaByte(p++) : 0)) { + case '-': + leftAdjust = true; + break; + case '+': + explicitPlus = true; + break; + case ' ': + space = true; + break; + case '#': + alternateForm = true; + break; + case '0': + zeroPad = true; + break; + default: + moreFlags = false; + break; + } + } + + if (p - start - 1 > MAX_FLAGS) { + throw new LuaError("invalid format (repeated flags)"); + } + + width = -1; + if (Character.isDigit((char) c)) { + width = c - '0'; + c = ((p < n) ? strfrmt.luaByte(p++) : 0); + if (Character.isDigit((char) c)) { + width = width * 10 + (c - '0'); + c = ((p < n) ? strfrmt.luaByte(p++) : 0); + } + } + + precision = -1; + if (c == '.') { + c = ((p < n) ? strfrmt.luaByte(p++) : 0); + if (Character.isDigit((char) c)) { + precision = c - '0'; + c = ((p < n) ? strfrmt.luaByte(p++) : 0); + if (Character.isDigit((char) c)) { + precision = precision * 10 + (c - '0'); + c = ((p < n) ? strfrmt.luaByte(p++) : 0); + } + } else { + precision = 0; + } + } + + if (Character.isDigit((char) c)) { + throw new LuaError("invalid format (width or precision too long)"); + } + + zeroPad &= !leftAdjust; // '-' overrides '0' + space &= !explicitPlus; + conversion = c; + length = p - start; + } + + public void format(Buffer buf, byte c) { + buf.append(c); + } + + public void format(Buffer buf, long number) { + String digits; + boolean hasSign = false; + + switch (conversion) { + case 'x': + digits = Long.toHexString(number); + break; + case 'X': + digits = Long.toHexString(number).toUpperCase(); + break; + case 'o': + digits = Long.toOctalString(number); + break; + case 'u': { + // In order to remain safe with Java 8 we inline Long.toUnsignedString + if (number >= 0) { + digits = Long.toString(number); + } else { + long quot = (number >>> 1) / 5; + long rem = number - quot * 10; + digits = Long.toString(quot) + rem; + } + break; + } + default: + digits = Long.toString(number); + hasSign = true; + break; + } + + if (number == 0) { + // "%.0d" and "%.0o" will be "". + // "%#.0d" will be "", but "%#.0o" will be "0". + if (precision == 0 && (conversion != 'o' || !alternateForm)) digits = ""; + } + + int minWidth = digits.length(); + int nDigits = minWidth; + int nZeros; + + if (hasSign) { + if (number < 0) { + nDigits--; + digits = digits.substring(1); + } else if (explicitPlus || space) { + minWidth++; + } + } + + String prefix = ""; + if (number != 0 && alternateForm) { + // If we're not 0 and we've some alternative form, then prefix with that. + // Note that octal's "0" counts as a digit but hex's "0x" does not. + switch (conversion) { + case 'x': + prefix = "0x"; + break; + case 'X': + prefix = "0X"; + break; + case 'o': + prefix = "0"; + nDigits++; + break; + } + minWidth += prefix.length(); + } + + + if (precision > nDigits) { + nZeros = precision - nDigits; + } else if (precision == -1 && zeroPad && width > minWidth) { + nZeros = width - minWidth; + } else { + nZeros = 0; + } + + minWidth += nZeros; + int nSpaces = width > minWidth ? width - minWidth : 0; + + if (!leftAdjust) pad(buf, ' ', nSpaces); + + if (hasSign) { + if (number < 0) { + buf.append('-'); + } else if (explicitPlus) { + buf.append('+'); + } else if (space) { + buf.append(' '); + } + } + + buf.append(prefix); + if (nZeros > 0) pad(buf, '0', nZeros); + buf.append(digits); + + if (leftAdjust) pad(buf, ' ', nSpaces); + } + + public void format(Buffer buf, double number) { + int effectiveWidth = width; + if (number < 0 || explicitPlus || space) effectiveWidth--; + + if (Double.isNaN(number)) { + if (!leftAdjust) pad(buf, ' ', effectiveWidth - 3); + appendSign(buf, number); + buf.append(Character.isUpperCase(conversion) ? "NAN" : "nan"); + if (leftAdjust) pad(buf, ' ', effectiveWidth - 3); + } else if (Double.isInfinite(number)) { + if (!leftAdjust) pad(buf, ' ', effectiveWidth - 3); + appendSign(buf, number); + buf.append(Character.isUpperCase(conversion) ? "INF" : "inf"); + if (leftAdjust) pad(buf, ' ', effectiveWidth - 3); + } else { + // Java handles %g all wrong: adding digits even when it shouldn't. + // To avoid that we have to write our own. + if (conversion == 'g' || conversion == 'G') { + try { + int prec = precision; + if (precision == -1) prec = 6; + if (precision == 0) prec = 1; + + char[] mantissa, exp; + int expRounded; + if (number == 0) { + mantissa = new char[]{'0'}; + exp = null; + expRounded = 0; + } else { + FormattedFloatingDecimal fd = FormattedFloatingDecimal.valueOf(Math.abs(number), prec, FormattedFloatingDecimal.Form.GENERAL); + mantissa = fd.getMantissa(); + exp = fd.getExponent(); + expRounded = fd.getExponentRounded(); + } + + StringBuilder mantissaBuilder = new StringBuilder(mantissa.length); + mantissaBuilder.append(mantissa); + stripZeros(mantissaBuilder); + if (alternateForm) { + prec -= exp != null ? 1 : expRounded + 1; + addZeros(mantissaBuilder, prec); + } + + // Calculate the effective width + effectiveWidth -= mantissaBuilder.length(); + if (exp != null) effectiveWidth -= 1 + exp.length; + if (alternateForm && prec == 0) effectiveWidth--; + + // Spaces must occur before the sign but 0s afterwards + if (!zeroPad && !leftAdjust) pad(buf, ' ', effectiveWidth); + appendSign(buf, number); + if (zeroPad && !leftAdjust) pad(buf, '0', effectiveWidth); + + // Append required parts of the mantissa. + buf.append(mantissaBuilder.toString()); + + // If the precision is zero and the '#' flag is set, add the requested decimal point. + if (alternateForm && prec == 0) buf.append('.'); + + if (exp != null) { + buf.append(conversion == 'G' ? 'E' : 'e'); + buf.append(exp); + } + + if (leftAdjust) pad(buf, ' ', effectiveWidth); + + return; + } catch (LinkageError ignored) { + } + } + + StringBuilder format = new StringBuilder("%"); + if (alternateForm) format.append('#'); + if (explicitPlus) format.append('+'); + if (space) format.append(' '); + if (width >= 0) { + if (leftAdjust) format.append('-'); + if (zeroPad) format.append('0'); + format.append(width); + } + format.append('.').append(precision >= 0 ? precision : 6); + format.append((char) conversion); + + buf.append(String.format(format.toString(), number)); + } + } + + public void format(Buffer buf, LuaString s) { + int nullindex = s.indexOf((byte) '\0', 0); + if (nullindex != -1) { + s = s.substring(0, nullindex); + } + if (precision >= 0 && s.length() > precision) { + s = s.substring(0, precision); + } + + int minwidth = s.length(); + int nspaces = width > minwidth ? width - minwidth : 0; + if (!leftAdjust) pad(buf, ' ', nspaces); + + buf.append(s); + + if (leftAdjust) pad(buf, ' ', nspaces); + } + + private void appendSign(Buffer buf, double number) { + if (number < 0) { + buf.append('-'); + } else if (explicitPlus) { + buf.append('+'); + } else if (space) { + buf.append(' '); + } + } + + private static void pad(Buffer buf, char c, int n) { + byte b = (byte) c; + while (n-- > 0) buf.append(b); + } + + private static void addZeros(StringBuilder v, int prec) { + // Look for the dot. If we don't find one, the we'll need to add + // it before we add the zeros. + int i; + for (i = 0; i < v.length(); i++) { + if (v.charAt(i) == '.') break; + } + boolean needDot = i == v.length(); + + // Determine existing precision. + int outPrec = v.length() - i - (needDot ? 0 : 1); + assert (outPrec <= prec); + if (outPrec == prec) return; + + // Add dot if previously determined to be necessary. + if (needDot) v.append('.'); + + // Add zeros. + for (int j = 0; j < prec - outPrec; j++) v.append('0'); + } + + private static void stripZeros(StringBuilder v) { + // If we don't end with a zero then skip. + if (v.charAt(v.length() - 1) != '0') return; + + // Ensure we've a dot + if (v.lastIndexOf(".") == -1) return; + + int length = v.length(); + while (v.charAt(length - 1) == '0' || v.charAt(length - 1) == '.') length--; + v.setLength(length); + } +} diff --git a/src/main/java/org/squiddev/cobalt/lib/StringLib.java b/src/main/java/org/squiddev/cobalt/lib/StringLib.java index 2b64055c..882ab94c 100644 --- a/src/main/java/org/squiddev/cobalt/lib/StringLib.java +++ b/src/main/java/org/squiddev/cobalt/lib/StringLib.java @@ -261,21 +261,19 @@ static Varargs format(Varargs args) throws LuaError { break; case L_ESC: if (i < n) { - if ((c = fmt.luaByte(i)) == L_ESC) { + if (fmt.luaByte(i) == L_ESC) { ++i; result.append((byte) L_ESC); } else { arg++; - FormatDesc fdsc = new FormatDesc(args, fmt, i); + FormatDesc fdsc = new FormatDesc(fmt, i); i += fdsc.length; switch (fdsc.conversion) { case 'c': - fdsc.format(result, (byte) args.arg(arg).checkInteger()); + fdsc.format(result, (byte) args.arg(arg).checkLong()); break; case 'i': case 'd': - fdsc.format(result, args.arg(arg).checkInteger()); - break; case 'o': case 'u': case 'x': @@ -305,11 +303,13 @@ static Varargs format(Varargs args) throws LuaError { throw new LuaError("invalid option '%" + (char) fdsc.conversion + "' to 'format'"); } } + } else { + throw new LuaError("invalid option '%' to 'format'"); } } } - return result.tostring(); + return result.toLuaString(); } private static void addquoted(Buffer buf, LuaString s) { @@ -337,207 +337,6 @@ private static void addquoted(Buffer buf, LuaString s) { buf.append((byte) '"'); } - private static final String FLAGS = "-+ #0"; - - static class FormatDesc { - - private boolean leftAdjust; - private boolean zeroPad; - private boolean explicitPlus; - private boolean space; - private boolean alternateForm; - private static final int MAX_FLAGS = 5; - - private int width; - private int precision; - - public final int conversion; - public final int length; - - public FormatDesc(Varargs args, LuaString strfrmt, final int start) throws LuaError { - int p = start, n = strfrmt.length(); - int c = 0; - - boolean moreFlags = true; - while (moreFlags) { - switch (c = ((p < n) ? strfrmt.luaByte(p++) : 0)) { - case '-': - leftAdjust = true; - break; - case '+': - explicitPlus = true; - break; - case ' ': - space = true; - break; - case '#': - alternateForm = true; - break; - case '0': - zeroPad = true; - break; - default: - moreFlags = false; - break; - } - } - if (p - start > MAX_FLAGS) { - throw new LuaError("invalid format (repeated flags)"); - } - - width = -1; - if (Character.isDigit((char) c)) { - width = c - '0'; - c = ((p < n) ? strfrmt.luaByte(p++) : 0); - if (Character.isDigit((char) c)) { - width = width * 10 + (c - '0'); - c = ((p < n) ? strfrmt.luaByte(p++) : 0); - } - } - - precision = -1; - if (c == '.') { - c = ((p < n) ? strfrmt.luaByte(p++) : 0); - if (Character.isDigit((char) c)) { - precision = c - '0'; - c = ((p < n) ? strfrmt.luaByte(p++) : 0); - if (Character.isDigit((char) c)) { - precision = precision * 10 + (c - '0'); - c = ((p < n) ? strfrmt.luaByte(p++) : 0); - } - } else { - precision = 0; - } - } - - if (Character.isDigit((char) c)) { - throw new LuaError("invalid format (width or precision too long)"); - } - - zeroPad &= !leftAdjust; // '-' overrides '0' - conversion = c; - length = p - start; - } - - public void format(Buffer buf, byte c) { - // TODO: not clear that any of width, precision, or flags apply here. - buf.append(c); - } - - public void format(Buffer buf, long number) { - String digits; - - if (number == 0 && precision == 0) { - digits = ""; - } else { - int radix; - switch (conversion) { - case 'x': - case 'X': - radix = 16; - break; - case 'o': - radix = 8; - break; - default: - radix = 10; - break; - } - digits = Long.toString(number, radix); - if (conversion == 'X') { - digits = digits.toUpperCase(); - } - } - - int minwidth = digits.length(); - int ndigits = minwidth; - int nzeros; - - if (number < 0) { - ndigits--; - } else if (explicitPlus || space) { - minwidth++; - } - - if (precision > ndigits) { - nzeros = precision - ndigits; - } else if (precision == -1 && zeroPad && width > minwidth) { - nzeros = width - minwidth; - } else { - nzeros = 0; - } - - minwidth += nzeros; - int nspaces = width > minwidth ? width - minwidth : 0; - - if (!leftAdjust) { - pad(buf, ' ', nspaces); - } - - if (number < 0) { - if (nzeros > 0) { - buf.append((byte) '-'); - digits = digits.substring(1); - } - } else if (explicitPlus) { - buf.append((byte) '+'); - } else if (space) { - buf.append((byte) ' '); - } - - if (nzeros > 0) { - pad(buf, '0', nzeros); - } - - buf.append(digits); - - if (leftAdjust) { - pad(buf, ' ', nspaces); - } - } - - public void format(Buffer buf, double number) { - StringBuilder format = new StringBuilder("%"); - if (explicitPlus) format.append("+"); - if (space) format.append(" "); - if (width >= 0) { - if (leftAdjust) format.append("-"); - if (zeroPad) format.append("0"); - format.append(width); - } - - format.append('.').append(precision >= 0 ? precision : 6); - format.append((char) conversion); - - buf.append(String.format(format.toString(), number)); - } - - public void format(Buffer buf, LuaString s) { - int nullindex = s.indexOf((byte) '\0', 0); - if (nullindex != -1) { - s = s.substring(0, nullindex); - } - if (precision >= 0 && s.length() > precision) { - s = s.substring(0, precision); - } - - int minwidth = s.length(); - int nspaces = width > minwidth ? width - minwidth : 0; - if (!leftAdjust) pad(buf, ' ', nspaces); - - buf.append(s); - - if (leftAdjust) pad(buf, ' ', nspaces); - } - - public static void pad(Buffer buf, char c, int n) { - byte b = (byte) c; - while (n-- > 0) { - buf.append(b); - } - } - } - /** * string.gmatch (s, pattern) * @@ -673,7 +472,7 @@ static Varargs gsub(LuaState state, Varargs args) throws LuaError { } } lbuf.append(src.substring(soffset, srclen)); - return varargsOf(lbuf.tostring(), valueOf(n)); + return varargsOf(lbuf.toLuaString(), valueOf(n)); } /** diff --git a/src/test/java/org/squiddev/cobalt/CompatibilityTest.java b/src/test/java/org/squiddev/cobalt/CompatibilityTest.java index 08f81521..6d5e7301 100644 --- a/src/test/java/org/squiddev/cobalt/CompatibilityTest.java +++ b/src/test/java/org/squiddev/cobalt/CompatibilityTest.java @@ -53,7 +53,10 @@ public static Collection getTests() { {"baselib"}, {"coroutinelib"}, {"debuglib"}, + {"errors"}, {"iolib"}, + {"format"}, + {"functions"}, {"manyupvals"}, {"mathlib"}, {"metatags"}, diff --git a/src/test/java/org/squiddev/cobalt/ScriptDrivenHelpers.java b/src/test/java/org/squiddev/cobalt/ScriptDrivenHelpers.java index be2da38f..0a11551a 100644 --- a/src/test/java/org/squiddev/cobalt/ScriptDrivenHelpers.java +++ b/src/test/java/org/squiddev/cobalt/ScriptDrivenHelpers.java @@ -92,7 +92,7 @@ public void runTest(String testName) throws Exception { actualOutput = actualOutput.replaceAll("\r\n", "\n"); expectedOutput = expectedOutput.replaceAll("\r\n", "\n"); - assertEquals(expectedOutput.replace("-nan", ""), actualOutput); + assertEquals(expectedOutput, actualOutput); } catch (LuaError e) { System.out.println(new String(output.toByteArray())); throw e; diff --git a/src/test/resources/compare/format.lua b/src/test/resources/compare/format.lua new file mode 100644 index 00000000..c57d379b --- /dev/null +++ b/src/test/resources/compare/format.lua @@ -0,0 +1,73 @@ +local modifiers = { '+', '-', ' ', '#', '0' } +local all_modifiers = {} + +local function gen_modifiers(idx, buffer) + if idx == 0 then + all_modifiers[#all_modifiers + 1] = buffer + else + gen_modifiers(idx - 1, buffer) + gen_modifiers(idx - 1, buffer .. modifiers[idx]) + end +end + +gen_modifiers(#modifiers, "") + +local precisions = { "", ".0", ".1", ".6" } +local widths = { "", "1", "2", "6", "20" } + +local function do_format(code, value) + local ok, res = pcall(string.format, code, value) + if not ok then + return res:gsub("format.lua:%d+: ", "") + else + return res + end +end + +local function format(convs, values) + for _, conv in ipairs(convs) do + print("= " .. conv .. " =") + for _, mod in ipairs(all_modifiers) do + for _, width in ipairs(widths) do + for _, precision in ipairs(precisions) do + local default_code = "%" .. mod .. conv + local code = "%" .. mod .. width .. precision .. conv + + for i = 1, #values do + local value = values[i] + local default_res = do_format(default_code, value) + local res = do_format(code, value) + + if default_res ~= res or default_code == code then + local value_code = type(value) == "string" and "q" or "s" + print(string.format("string.format(%q, %" .. value_code .. ") == %q", code, value, res)) + end + end + end + end + end + end +end + +print("== Integers ==") +format({ 'i', 'd', 'o', 'u', 'x', 'X', }, { + 0, 1, -1, 2, -2, 3, -3, + 1e2, 1e4, 1e5, 1e6, 1e7, +}) + +print("== Floats ==") +format({ 'e', 'E', 'f', 'F', 'g', 'G', }, { + 0, 1, -1, 2, -2, 3, -3, + math.abs(0 / 0), 1 / 0, -1 / 0, + 1e2, 1e4, 1e5, 1e6, 1e7, + 1e-2, 1e-4, 1e-5, 1e-6, 1e-7, + 123.456, 123.456e7, 123.456e-7, + 123.456789123, 123.456789123e7, 123.456789123e-7, +}) + +print("== Strings ==") +format({ 's' }, { + "", "a", "aa", ("a"):rep(10), ("a"):rep(20), ("a"):rep(101) +}) + + diff --git a/src/test/resources/compare/format.out b/src/test/resources/compare/format.out new file mode 100644 index 00000000..2e1cc1b9 --- /dev/null +++ b/src/test/resources/compare/format.out @@ -0,0 +1,76096 @@ +== Integers == += i = +string.format("%i", 0) == "0" +string.format("%i", 1) == "1" +string.format("%i", -1) == "-1" +string.format("%i", 2) == "2" +string.format("%i", -2) == "-2" +string.format("%i", 3) == "3" +string.format("%i", -3) == "-3" +string.format("%i", 100) == "100" +string.format("%i", 10000) == "10000" +string.format("%i", 100000) == "100000" +string.format("%i", 1000000) == "1000000" +string.format("%i", 10000000) == "10000000" +string.format("%.0i", 0) == "" +string.format("%.6i", 0) == "000000" +string.format("%.6i", 1) == "000001" +string.format("%.6i", -1) == "-000001" +string.format("%.6i", 2) == "000002" +string.format("%.6i", -2) == "-000002" +string.format("%.6i", 3) == "000003" +string.format("%.6i", -3) == "-000003" +string.format("%.6i", 100) == "000100" +string.format("%.6i", 10000) == "010000" +string.format("%1.0i", 0) == " " +string.format("%1.6i", 0) == "000000" +string.format("%1.6i", 1) == "000001" +string.format("%1.6i", -1) == "-000001" +string.format("%1.6i", 2) == "000002" +string.format("%1.6i", -2) == "-000002" +string.format("%1.6i", 3) == "000003" +string.format("%1.6i", -3) == "-000003" +string.format("%1.6i", 100) == "000100" +string.format("%1.6i", 10000) == "010000" +string.format("%2i", 0) == " 0" +string.format("%2i", 1) == " 1" +string.format("%2i", 2) == " 2" +string.format("%2i", 3) == " 3" +string.format("%2.0i", 0) == " " +string.format("%2.0i", 1) == " 1" +string.format("%2.0i", 2) == " 2" +string.format("%2.0i", 3) == " 3" +string.format("%2.1i", 0) == " 0" +string.format("%2.1i", 1) == " 1" +string.format("%2.1i", 2) == " 2" +string.format("%2.1i", 3) == " 3" +string.format("%2.6i", 0) == "000000" +string.format("%2.6i", 1) == "000001" +string.format("%2.6i", -1) == "-000001" +string.format("%2.6i", 2) == "000002" +string.format("%2.6i", -2) == "-000002" +string.format("%2.6i", 3) == "000003" +string.format("%2.6i", -3) == "-000003" +string.format("%2.6i", 100) == "000100" +string.format("%2.6i", 10000) == "010000" +string.format("%6i", 0) == " 0" +string.format("%6i", 1) == " 1" +string.format("%6i", -1) == " -1" +string.format("%6i", 2) == " 2" +string.format("%6i", -2) == " -2" +string.format("%6i", 3) == " 3" +string.format("%6i", -3) == " -3" +string.format("%6i", 100) == " 100" +string.format("%6i", 10000) == " 10000" +string.format("%6.0i", 0) == " " +string.format("%6.0i", 1) == " 1" +string.format("%6.0i", -1) == " -1" +string.format("%6.0i", 2) == " 2" +string.format("%6.0i", -2) == " -2" +string.format("%6.0i", 3) == " 3" +string.format("%6.0i", -3) == " -3" +string.format("%6.0i", 100) == " 100" +string.format("%6.0i", 10000) == " 10000" +string.format("%6.1i", 0) == " 0" +string.format("%6.1i", 1) == " 1" +string.format("%6.1i", -1) == " -1" +string.format("%6.1i", 2) == " 2" +string.format("%6.1i", -2) == " -2" +string.format("%6.1i", 3) == " 3" +string.format("%6.1i", -3) == " -3" +string.format("%6.1i", 100) == " 100" +string.format("%6.1i", 10000) == " 10000" +string.format("%6.6i", 0) == "000000" +string.format("%6.6i", 1) == "000001" +string.format("%6.6i", -1) == "-000001" +string.format("%6.6i", 2) == "000002" +string.format("%6.6i", -2) == "-000002" +string.format("%6.6i", 3) == "000003" +string.format("%6.6i", -3) == "-000003" +string.format("%6.6i", 100) == "000100" +string.format("%6.6i", 10000) == "010000" +string.format("%20i", 0) == " 0" +string.format("%20i", 1) == " 1" +string.format("%20i", -1) == " -1" +string.format("%20i", 2) == " 2" +string.format("%20i", -2) == " -2" +string.format("%20i", 3) == " 3" +string.format("%20i", -3) == " -3" +string.format("%20i", 100) == " 100" +string.format("%20i", 10000) == " 10000" +string.format("%20i", 100000) == " 100000" +string.format("%20i", 1000000) == " 1000000" +string.format("%20i", 10000000) == " 10000000" +string.format("%20.0i", 0) == " " +string.format("%20.0i", 1) == " 1" +string.format("%20.0i", -1) == " -1" +string.format("%20.0i", 2) == " 2" +string.format("%20.0i", -2) == " -2" +string.format("%20.0i", 3) == " 3" +string.format("%20.0i", -3) == " -3" +string.format("%20.0i", 100) == " 100" +string.format("%20.0i", 10000) == " 10000" +string.format("%20.0i", 100000) == " 100000" +string.format("%20.0i", 1000000) == " 1000000" +string.format("%20.0i", 10000000) == " 10000000" +string.format("%20.1i", 0) == " 0" +string.format("%20.1i", 1) == " 1" +string.format("%20.1i", -1) == " -1" +string.format("%20.1i", 2) == " 2" +string.format("%20.1i", -2) == " -2" +string.format("%20.1i", 3) == " 3" +string.format("%20.1i", -3) == " -3" +string.format("%20.1i", 100) == " 100" +string.format("%20.1i", 10000) == " 10000" +string.format("%20.1i", 100000) == " 100000" +string.format("%20.1i", 1000000) == " 1000000" +string.format("%20.1i", 10000000) == " 10000000" +string.format("%20.6i", 0) == " 000000" +string.format("%20.6i", 1) == " 000001" +string.format("%20.6i", -1) == " -000001" +string.format("%20.6i", 2) == " 000002" +string.format("%20.6i", -2) == " -000002" +string.format("%20.6i", 3) == " 000003" +string.format("%20.6i", -3) == " -000003" +string.format("%20.6i", 100) == " 000100" +string.format("%20.6i", 10000) == " 010000" +string.format("%20.6i", 100000) == " 100000" +string.format("%20.6i", 1000000) == " 1000000" +string.format("%20.6i", 10000000) == " 10000000" +string.format("%+i", 0) == "+0" +string.format("%+i", 1) == "+1" +string.format("%+i", -1) == "-1" +string.format("%+i", 2) == "+2" +string.format("%+i", -2) == "-2" +string.format("%+i", 3) == "+3" +string.format("%+i", -3) == "-3" +string.format("%+i", 100) == "+100" +string.format("%+i", 10000) == "+10000" +string.format("%+i", 100000) == "+100000" +string.format("%+i", 1000000) == "+1000000" +string.format("%+i", 10000000) == "+10000000" +string.format("%+.0i", 0) == "+" +string.format("%+.6i", 0) == "+000000" +string.format("%+.6i", 1) == "+000001" +string.format("%+.6i", -1) == "-000001" +string.format("%+.6i", 2) == "+000002" +string.format("%+.6i", -2) == "-000002" +string.format("%+.6i", 3) == "+000003" +string.format("%+.6i", -3) == "-000003" +string.format("%+.6i", 100) == "+000100" +string.format("%+.6i", 10000) == "+010000" +string.format("%+1.0i", 0) == "+" +string.format("%+1.6i", 0) == "+000000" +string.format("%+1.6i", 1) == "+000001" +string.format("%+1.6i", -1) == "-000001" +string.format("%+1.6i", 2) == "+000002" +string.format("%+1.6i", -2) == "-000002" +string.format("%+1.6i", 3) == "+000003" +string.format("%+1.6i", -3) == "-000003" +string.format("%+1.6i", 100) == "+000100" +string.format("%+1.6i", 10000) == "+010000" +string.format("%+2.0i", 0) == " +" +string.format("%+2.6i", 0) == "+000000" +string.format("%+2.6i", 1) == "+000001" +string.format("%+2.6i", -1) == "-000001" +string.format("%+2.6i", 2) == "+000002" +string.format("%+2.6i", -2) == "-000002" +string.format("%+2.6i", 3) == "+000003" +string.format("%+2.6i", -3) == "-000003" +string.format("%+2.6i", 100) == "+000100" +string.format("%+2.6i", 10000) == "+010000" +string.format("%+6i", 0) == " +0" +string.format("%+6i", 1) == " +1" +string.format("%+6i", -1) == " -1" +string.format("%+6i", 2) == " +2" +string.format("%+6i", -2) == " -2" +string.format("%+6i", 3) == " +3" +string.format("%+6i", -3) == " -3" +string.format("%+6i", 100) == " +100" +string.format("%+6.0i", 0) == " +" +string.format("%+6.0i", 1) == " +1" +string.format("%+6.0i", -1) == " -1" +string.format("%+6.0i", 2) == " +2" +string.format("%+6.0i", -2) == " -2" +string.format("%+6.0i", 3) == " +3" +string.format("%+6.0i", -3) == " -3" +string.format("%+6.0i", 100) == " +100" +string.format("%+6.1i", 0) == " +0" +string.format("%+6.1i", 1) == " +1" +string.format("%+6.1i", -1) == " -1" +string.format("%+6.1i", 2) == " +2" +string.format("%+6.1i", -2) == " -2" +string.format("%+6.1i", 3) == " +3" +string.format("%+6.1i", -3) == " -3" +string.format("%+6.1i", 100) == " +100" +string.format("%+6.6i", 0) == "+000000" +string.format("%+6.6i", 1) == "+000001" +string.format("%+6.6i", -1) == "-000001" +string.format("%+6.6i", 2) == "+000002" +string.format("%+6.6i", -2) == "-000002" +string.format("%+6.6i", 3) == "+000003" +string.format("%+6.6i", -3) == "-000003" +string.format("%+6.6i", 100) == "+000100" +string.format("%+6.6i", 10000) == "+010000" +string.format("%+20i", 0) == " +0" +string.format("%+20i", 1) == " +1" +string.format("%+20i", -1) == " -1" +string.format("%+20i", 2) == " +2" +string.format("%+20i", -2) == " -2" +string.format("%+20i", 3) == " +3" +string.format("%+20i", -3) == " -3" +string.format("%+20i", 100) == " +100" +string.format("%+20i", 10000) == " +10000" +string.format("%+20i", 100000) == " +100000" +string.format("%+20i", 1000000) == " +1000000" +string.format("%+20i", 10000000) == " +10000000" +string.format("%+20.0i", 0) == " +" +string.format("%+20.0i", 1) == " +1" +string.format("%+20.0i", -1) == " -1" +string.format("%+20.0i", 2) == " +2" +string.format("%+20.0i", -2) == " -2" +string.format("%+20.0i", 3) == " +3" +string.format("%+20.0i", -3) == " -3" +string.format("%+20.0i", 100) == " +100" +string.format("%+20.0i", 10000) == " +10000" +string.format("%+20.0i", 100000) == " +100000" +string.format("%+20.0i", 1000000) == " +1000000" +string.format("%+20.0i", 10000000) == " +10000000" +string.format("%+20.1i", 0) == " +0" +string.format("%+20.1i", 1) == " +1" +string.format("%+20.1i", -1) == " -1" +string.format("%+20.1i", 2) == " +2" +string.format("%+20.1i", -2) == " -2" +string.format("%+20.1i", 3) == " +3" +string.format("%+20.1i", -3) == " -3" +string.format("%+20.1i", 100) == " +100" +string.format("%+20.1i", 10000) == " +10000" +string.format("%+20.1i", 100000) == " +100000" +string.format("%+20.1i", 1000000) == " +1000000" +string.format("%+20.1i", 10000000) == " +10000000" +string.format("%+20.6i", 0) == " +000000" +string.format("%+20.6i", 1) == " +000001" +string.format("%+20.6i", -1) == " -000001" +string.format("%+20.6i", 2) == " +000002" +string.format("%+20.6i", -2) == " -000002" +string.format("%+20.6i", 3) == " +000003" +string.format("%+20.6i", -3) == " -000003" +string.format("%+20.6i", 100) == " +000100" +string.format("%+20.6i", 10000) == " +010000" +string.format("%+20.6i", 100000) == " +100000" +string.format("%+20.6i", 1000000) == " +1000000" +string.format("%+20.6i", 10000000) == " +10000000" +string.format("%-i", 0) == "0" +string.format("%-i", 1) == "1" +string.format("%-i", -1) == "-1" +string.format("%-i", 2) == "2" +string.format("%-i", -2) == "-2" +string.format("%-i", 3) == "3" +string.format("%-i", -3) == "-3" +string.format("%-i", 100) == "100" +string.format("%-i", 10000) == "10000" +string.format("%-i", 100000) == "100000" +string.format("%-i", 1000000) == "1000000" +string.format("%-i", 10000000) == "10000000" +string.format("%-.0i", 0) == "" +string.format("%-.6i", 0) == "000000" +string.format("%-.6i", 1) == "000001" +string.format("%-.6i", -1) == "-000001" +string.format("%-.6i", 2) == "000002" +string.format("%-.6i", -2) == "-000002" +string.format("%-.6i", 3) == "000003" +string.format("%-.6i", -3) == "-000003" +string.format("%-.6i", 100) == "000100" +string.format("%-.6i", 10000) == "010000" +string.format("%-1.0i", 0) == " " +string.format("%-1.6i", 0) == "000000" +string.format("%-1.6i", 1) == "000001" +string.format("%-1.6i", -1) == "-000001" +string.format("%-1.6i", 2) == "000002" +string.format("%-1.6i", -2) == "-000002" +string.format("%-1.6i", 3) == "000003" +string.format("%-1.6i", -3) == "-000003" +string.format("%-1.6i", 100) == "000100" +string.format("%-1.6i", 10000) == "010000" +string.format("%-2i", 0) == "0 " +string.format("%-2i", 1) == "1 " +string.format("%-2i", 2) == "2 " +string.format("%-2i", 3) == "3 " +string.format("%-2.0i", 0) == " " +string.format("%-2.0i", 1) == "1 " +string.format("%-2.0i", 2) == "2 " +string.format("%-2.0i", 3) == "3 " +string.format("%-2.1i", 0) == "0 " +string.format("%-2.1i", 1) == "1 " +string.format("%-2.1i", 2) == "2 " +string.format("%-2.1i", 3) == "3 " +string.format("%-2.6i", 0) == "000000" +string.format("%-2.6i", 1) == "000001" +string.format("%-2.6i", -1) == "-000001" +string.format("%-2.6i", 2) == "000002" +string.format("%-2.6i", -2) == "-000002" +string.format("%-2.6i", 3) == "000003" +string.format("%-2.6i", -3) == "-000003" +string.format("%-2.6i", 100) == "000100" +string.format("%-2.6i", 10000) == "010000" +string.format("%-6i", 0) == "0 " +string.format("%-6i", 1) == "1 " +string.format("%-6i", -1) == "-1 " +string.format("%-6i", 2) == "2 " +string.format("%-6i", -2) == "-2 " +string.format("%-6i", 3) == "3 " +string.format("%-6i", -3) == "-3 " +string.format("%-6i", 100) == "100 " +string.format("%-6i", 10000) == "10000 " +string.format("%-6.0i", 0) == " " +string.format("%-6.0i", 1) == "1 " +string.format("%-6.0i", -1) == "-1 " +string.format("%-6.0i", 2) == "2 " +string.format("%-6.0i", -2) == "-2 " +string.format("%-6.0i", 3) == "3 " +string.format("%-6.0i", -3) == "-3 " +string.format("%-6.0i", 100) == "100 " +string.format("%-6.0i", 10000) == "10000 " +string.format("%-6.1i", 0) == "0 " +string.format("%-6.1i", 1) == "1 " +string.format("%-6.1i", -1) == "-1 " +string.format("%-6.1i", 2) == "2 " +string.format("%-6.1i", -2) == "-2 " +string.format("%-6.1i", 3) == "3 " +string.format("%-6.1i", -3) == "-3 " +string.format("%-6.1i", 100) == "100 " +string.format("%-6.1i", 10000) == "10000 " +string.format("%-6.6i", 0) == "000000" +string.format("%-6.6i", 1) == "000001" +string.format("%-6.6i", -1) == "-000001" +string.format("%-6.6i", 2) == "000002" +string.format("%-6.6i", -2) == "-000002" +string.format("%-6.6i", 3) == "000003" +string.format("%-6.6i", -3) == "-000003" +string.format("%-6.6i", 100) == "000100" +string.format("%-6.6i", 10000) == "010000" +string.format("%-20i", 0) == "0 " +string.format("%-20i", 1) == "1 " +string.format("%-20i", -1) == "-1 " +string.format("%-20i", 2) == "2 " +string.format("%-20i", -2) == "-2 " +string.format("%-20i", 3) == "3 " +string.format("%-20i", -3) == "-3 " +string.format("%-20i", 100) == "100 " +string.format("%-20i", 10000) == "10000 " +string.format("%-20i", 100000) == "100000 " +string.format("%-20i", 1000000) == "1000000 " +string.format("%-20i", 10000000) == "10000000 " +string.format("%-20.0i", 0) == " " +string.format("%-20.0i", 1) == "1 " +string.format("%-20.0i", -1) == "-1 " +string.format("%-20.0i", 2) == "2 " +string.format("%-20.0i", -2) == "-2 " +string.format("%-20.0i", 3) == "3 " +string.format("%-20.0i", -3) == "-3 " +string.format("%-20.0i", 100) == "100 " +string.format("%-20.0i", 10000) == "10000 " +string.format("%-20.0i", 100000) == "100000 " +string.format("%-20.0i", 1000000) == "1000000 " +string.format("%-20.0i", 10000000) == "10000000 " +string.format("%-20.1i", 0) == "0 " +string.format("%-20.1i", 1) == "1 " +string.format("%-20.1i", -1) == "-1 " +string.format("%-20.1i", 2) == "2 " +string.format("%-20.1i", -2) == "-2 " +string.format("%-20.1i", 3) == "3 " +string.format("%-20.1i", -3) == "-3 " +string.format("%-20.1i", 100) == "100 " +string.format("%-20.1i", 10000) == "10000 " +string.format("%-20.1i", 100000) == "100000 " +string.format("%-20.1i", 1000000) == "1000000 " +string.format("%-20.1i", 10000000) == "10000000 " +string.format("%-20.6i", 0) == "000000 " +string.format("%-20.6i", 1) == "000001 " +string.format("%-20.6i", -1) == "-000001 " +string.format("%-20.6i", 2) == "000002 " +string.format("%-20.6i", -2) == "-000002 " +string.format("%-20.6i", 3) == "000003 " +string.format("%-20.6i", -3) == "-000003 " +string.format("%-20.6i", 100) == "000100 " +string.format("%-20.6i", 10000) == "010000 " +string.format("%-20.6i", 100000) == "100000 " +string.format("%-20.6i", 1000000) == "1000000 " +string.format("%-20.6i", 10000000) == "10000000 " +string.format("%-+i", 0) == "+0" +string.format("%-+i", 1) == "+1" +string.format("%-+i", -1) == "-1" +string.format("%-+i", 2) == "+2" +string.format("%-+i", -2) == "-2" +string.format("%-+i", 3) == "+3" +string.format("%-+i", -3) == "-3" +string.format("%-+i", 100) == "+100" +string.format("%-+i", 10000) == "+10000" +string.format("%-+i", 100000) == "+100000" +string.format("%-+i", 1000000) == "+1000000" +string.format("%-+i", 10000000) == "+10000000" +string.format("%-+.0i", 0) == "+" +string.format("%-+.6i", 0) == "+000000" +string.format("%-+.6i", 1) == "+000001" +string.format("%-+.6i", -1) == "-000001" +string.format("%-+.6i", 2) == "+000002" +string.format("%-+.6i", -2) == "-000002" +string.format("%-+.6i", 3) == "+000003" +string.format("%-+.6i", -3) == "-000003" +string.format("%-+.6i", 100) == "+000100" +string.format("%-+.6i", 10000) == "+010000" +string.format("%-+1.0i", 0) == "+" +string.format("%-+1.6i", 0) == "+000000" +string.format("%-+1.6i", 1) == "+000001" +string.format("%-+1.6i", -1) == "-000001" +string.format("%-+1.6i", 2) == "+000002" +string.format("%-+1.6i", -2) == "-000002" +string.format("%-+1.6i", 3) == "+000003" +string.format("%-+1.6i", -3) == "-000003" +string.format("%-+1.6i", 100) == "+000100" +string.format("%-+1.6i", 10000) == "+010000" +string.format("%-+2.0i", 0) == "+ " +string.format("%-+2.6i", 0) == "+000000" +string.format("%-+2.6i", 1) == "+000001" +string.format("%-+2.6i", -1) == "-000001" +string.format("%-+2.6i", 2) == "+000002" +string.format("%-+2.6i", -2) == "-000002" +string.format("%-+2.6i", 3) == "+000003" +string.format("%-+2.6i", -3) == "-000003" +string.format("%-+2.6i", 100) == "+000100" +string.format("%-+2.6i", 10000) == "+010000" +string.format("%-+6i", 0) == "+0 " +string.format("%-+6i", 1) == "+1 " +string.format("%-+6i", -1) == "-1 " +string.format("%-+6i", 2) == "+2 " +string.format("%-+6i", -2) == "-2 " +string.format("%-+6i", 3) == "+3 " +string.format("%-+6i", -3) == "-3 " +string.format("%-+6i", 100) == "+100 " +string.format("%-+6.0i", 0) == "+ " +string.format("%-+6.0i", 1) == "+1 " +string.format("%-+6.0i", -1) == "-1 " +string.format("%-+6.0i", 2) == "+2 " +string.format("%-+6.0i", -2) == "-2 " +string.format("%-+6.0i", 3) == "+3 " +string.format("%-+6.0i", -3) == "-3 " +string.format("%-+6.0i", 100) == "+100 " +string.format("%-+6.1i", 0) == "+0 " +string.format("%-+6.1i", 1) == "+1 " +string.format("%-+6.1i", -1) == "-1 " +string.format("%-+6.1i", 2) == "+2 " +string.format("%-+6.1i", -2) == "-2 " +string.format("%-+6.1i", 3) == "+3 " +string.format("%-+6.1i", -3) == "-3 " +string.format("%-+6.1i", 100) == "+100 " +string.format("%-+6.6i", 0) == "+000000" +string.format("%-+6.6i", 1) == "+000001" +string.format("%-+6.6i", -1) == "-000001" +string.format("%-+6.6i", 2) == "+000002" +string.format("%-+6.6i", -2) == "-000002" +string.format("%-+6.6i", 3) == "+000003" +string.format("%-+6.6i", -3) == "-000003" +string.format("%-+6.6i", 100) == "+000100" +string.format("%-+6.6i", 10000) == "+010000" +string.format("%-+20i", 0) == "+0 " +string.format("%-+20i", 1) == "+1 " +string.format("%-+20i", -1) == "-1 " +string.format("%-+20i", 2) == "+2 " +string.format("%-+20i", -2) == "-2 " +string.format("%-+20i", 3) == "+3 " +string.format("%-+20i", -3) == "-3 " +string.format("%-+20i", 100) == "+100 " +string.format("%-+20i", 10000) == "+10000 " +string.format("%-+20i", 100000) == "+100000 " +string.format("%-+20i", 1000000) == "+1000000 " +string.format("%-+20i", 10000000) == "+10000000 " +string.format("%-+20.0i", 0) == "+ " +string.format("%-+20.0i", 1) == "+1 " +string.format("%-+20.0i", -1) == "-1 " +string.format("%-+20.0i", 2) == "+2 " +string.format("%-+20.0i", -2) == "-2 " +string.format("%-+20.0i", 3) == "+3 " +string.format("%-+20.0i", -3) == "-3 " +string.format("%-+20.0i", 100) == "+100 " +string.format("%-+20.0i", 10000) == "+10000 " +string.format("%-+20.0i", 100000) == "+100000 " +string.format("%-+20.0i", 1000000) == "+1000000 " +string.format("%-+20.0i", 10000000) == "+10000000 " +string.format("%-+20.1i", 0) == "+0 " +string.format("%-+20.1i", 1) == "+1 " +string.format("%-+20.1i", -1) == "-1 " +string.format("%-+20.1i", 2) == "+2 " +string.format("%-+20.1i", -2) == "-2 " +string.format("%-+20.1i", 3) == "+3 " +string.format("%-+20.1i", -3) == "-3 " +string.format("%-+20.1i", 100) == "+100 " +string.format("%-+20.1i", 10000) == "+10000 " +string.format("%-+20.1i", 100000) == "+100000 " +string.format("%-+20.1i", 1000000) == "+1000000 " +string.format("%-+20.1i", 10000000) == "+10000000 " +string.format("%-+20.6i", 0) == "+000000 " +string.format("%-+20.6i", 1) == "+000001 " +string.format("%-+20.6i", -1) == "-000001 " +string.format("%-+20.6i", 2) == "+000002 " +string.format("%-+20.6i", -2) == "-000002 " +string.format("%-+20.6i", 3) == "+000003 " +string.format("%-+20.6i", -3) == "-000003 " +string.format("%-+20.6i", 100) == "+000100 " +string.format("%-+20.6i", 10000) == "+010000 " +string.format("%-+20.6i", 100000) == "+100000 " +string.format("%-+20.6i", 1000000) == "+1000000 " +string.format("%-+20.6i", 10000000) == "+10000000 " +string.format("% i", 0) == " 0" +string.format("% i", 1) == " 1" +string.format("% i", -1) == "-1" +string.format("% i", 2) == " 2" +string.format("% i", -2) == "-2" +string.format("% i", 3) == " 3" +string.format("% i", -3) == "-3" +string.format("% i", 100) == " 100" +string.format("% i", 10000) == " 10000" +string.format("% i", 100000) == " 100000" +string.format("% i", 1000000) == " 1000000" +string.format("% i", 10000000) == " 10000000" +string.format("% .0i", 0) == " " +string.format("% .6i", 0) == " 000000" +string.format("% .6i", 1) == " 000001" +string.format("% .6i", -1) == "-000001" +string.format("% .6i", 2) == " 000002" +string.format("% .6i", -2) == "-000002" +string.format("% .6i", 3) == " 000003" +string.format("% .6i", -3) == "-000003" +string.format("% .6i", 100) == " 000100" +string.format("% .6i", 10000) == " 010000" +string.format("% 1.0i", 0) == " " +string.format("% 1.6i", 0) == " 000000" +string.format("% 1.6i", 1) == " 000001" +string.format("% 1.6i", -1) == "-000001" +string.format("% 1.6i", 2) == " 000002" +string.format("% 1.6i", -2) == "-000002" +string.format("% 1.6i", 3) == " 000003" +string.format("% 1.6i", -3) == "-000003" +string.format("% 1.6i", 100) == " 000100" +string.format("% 1.6i", 10000) == " 010000" +string.format("% 2.0i", 0) == " " +string.format("% 2.6i", 0) == " 000000" +string.format("% 2.6i", 1) == " 000001" +string.format("% 2.6i", -1) == "-000001" +string.format("% 2.6i", 2) == " 000002" +string.format("% 2.6i", -2) == "-000002" +string.format("% 2.6i", 3) == " 000003" +string.format("% 2.6i", -3) == "-000003" +string.format("% 2.6i", 100) == " 000100" +string.format("% 2.6i", 10000) == " 010000" +string.format("% 6i", 0) == " 0" +string.format("% 6i", 1) == " 1" +string.format("% 6i", -1) == " -1" +string.format("% 6i", 2) == " 2" +string.format("% 6i", -2) == " -2" +string.format("% 6i", 3) == " 3" +string.format("% 6i", -3) == " -3" +string.format("% 6i", 100) == " 100" +string.format("% 6.0i", 0) == " " +string.format("% 6.0i", 1) == " 1" +string.format("% 6.0i", -1) == " -1" +string.format("% 6.0i", 2) == " 2" +string.format("% 6.0i", -2) == " -2" +string.format("% 6.0i", 3) == " 3" +string.format("% 6.0i", -3) == " -3" +string.format("% 6.0i", 100) == " 100" +string.format("% 6.1i", 0) == " 0" +string.format("% 6.1i", 1) == " 1" +string.format("% 6.1i", -1) == " -1" +string.format("% 6.1i", 2) == " 2" +string.format("% 6.1i", -2) == " -2" +string.format("% 6.1i", 3) == " 3" +string.format("% 6.1i", -3) == " -3" +string.format("% 6.1i", 100) == " 100" +string.format("% 6.6i", 0) == " 000000" +string.format("% 6.6i", 1) == " 000001" +string.format("% 6.6i", -1) == "-000001" +string.format("% 6.6i", 2) == " 000002" +string.format("% 6.6i", -2) == "-000002" +string.format("% 6.6i", 3) == " 000003" +string.format("% 6.6i", -3) == "-000003" +string.format("% 6.6i", 100) == " 000100" +string.format("% 6.6i", 10000) == " 010000" +string.format("% 20i", 0) == " 0" +string.format("% 20i", 1) == " 1" +string.format("% 20i", -1) == " -1" +string.format("% 20i", 2) == " 2" +string.format("% 20i", -2) == " -2" +string.format("% 20i", 3) == " 3" +string.format("% 20i", -3) == " -3" +string.format("% 20i", 100) == " 100" +string.format("% 20i", 10000) == " 10000" +string.format("% 20i", 100000) == " 100000" +string.format("% 20i", 1000000) == " 1000000" +string.format("% 20i", 10000000) == " 10000000" +string.format("% 20.0i", 0) == " " +string.format("% 20.0i", 1) == " 1" +string.format("% 20.0i", -1) == " -1" +string.format("% 20.0i", 2) == " 2" +string.format("% 20.0i", -2) == " -2" +string.format("% 20.0i", 3) == " 3" +string.format("% 20.0i", -3) == " -3" +string.format("% 20.0i", 100) == " 100" +string.format("% 20.0i", 10000) == " 10000" +string.format("% 20.0i", 100000) == " 100000" +string.format("% 20.0i", 1000000) == " 1000000" +string.format("% 20.0i", 10000000) == " 10000000" +string.format("% 20.1i", 0) == " 0" +string.format("% 20.1i", 1) == " 1" +string.format("% 20.1i", -1) == " -1" +string.format("% 20.1i", 2) == " 2" +string.format("% 20.1i", -2) == " -2" +string.format("% 20.1i", 3) == " 3" +string.format("% 20.1i", -3) == " -3" +string.format("% 20.1i", 100) == " 100" +string.format("% 20.1i", 10000) == " 10000" +string.format("% 20.1i", 100000) == " 100000" +string.format("% 20.1i", 1000000) == " 1000000" +string.format("% 20.1i", 10000000) == " 10000000" +string.format("% 20.6i", 0) == " 000000" +string.format("% 20.6i", 1) == " 000001" +string.format("% 20.6i", -1) == " -000001" +string.format("% 20.6i", 2) == " 000002" +string.format("% 20.6i", -2) == " -000002" +string.format("% 20.6i", 3) == " 000003" +string.format("% 20.6i", -3) == " -000003" +string.format("% 20.6i", 100) == " 000100" +string.format("% 20.6i", 10000) == " 010000" +string.format("% 20.6i", 100000) == " 100000" +string.format("% 20.6i", 1000000) == " 1000000" +string.format("% 20.6i", 10000000) == " 10000000" +string.format("% +i", 0) == "+0" +string.format("% +i", 1) == "+1" +string.format("% +i", -1) == "-1" +string.format("% +i", 2) == "+2" +string.format("% +i", -2) == "-2" +string.format("% +i", 3) == "+3" +string.format("% +i", -3) == "-3" +string.format("% +i", 100) == "+100" +string.format("% +i", 10000) == "+10000" +string.format("% +i", 100000) == "+100000" +string.format("% +i", 1000000) == "+1000000" +string.format("% +i", 10000000) == "+10000000" +string.format("% +.0i", 0) == "+" +string.format("% +.6i", 0) == "+000000" +string.format("% +.6i", 1) == "+000001" +string.format("% +.6i", -1) == "-000001" +string.format("% +.6i", 2) == "+000002" +string.format("% +.6i", -2) == "-000002" +string.format("% +.6i", 3) == "+000003" +string.format("% +.6i", -3) == "-000003" +string.format("% +.6i", 100) == "+000100" +string.format("% +.6i", 10000) == "+010000" +string.format("% +1.0i", 0) == "+" +string.format("% +1.6i", 0) == "+000000" +string.format("% +1.6i", 1) == "+000001" +string.format("% +1.6i", -1) == "-000001" +string.format("% +1.6i", 2) == "+000002" +string.format("% +1.6i", -2) == "-000002" +string.format("% +1.6i", 3) == "+000003" +string.format("% +1.6i", -3) == "-000003" +string.format("% +1.6i", 100) == "+000100" +string.format("% +1.6i", 10000) == "+010000" +string.format("% +2.0i", 0) == " +" +string.format("% +2.6i", 0) == "+000000" +string.format("% +2.6i", 1) == "+000001" +string.format("% +2.6i", -1) == "-000001" +string.format("% +2.6i", 2) == "+000002" +string.format("% +2.6i", -2) == "-000002" +string.format("% +2.6i", 3) == "+000003" +string.format("% +2.6i", -3) == "-000003" +string.format("% +2.6i", 100) == "+000100" +string.format("% +2.6i", 10000) == "+010000" +string.format("% +6i", 0) == " +0" +string.format("% +6i", 1) == " +1" +string.format("% +6i", -1) == " -1" +string.format("% +6i", 2) == " +2" +string.format("% +6i", -2) == " -2" +string.format("% +6i", 3) == " +3" +string.format("% +6i", -3) == " -3" +string.format("% +6i", 100) == " +100" +string.format("% +6.0i", 0) == " +" +string.format("% +6.0i", 1) == " +1" +string.format("% +6.0i", -1) == " -1" +string.format("% +6.0i", 2) == " +2" +string.format("% +6.0i", -2) == " -2" +string.format("% +6.0i", 3) == " +3" +string.format("% +6.0i", -3) == " -3" +string.format("% +6.0i", 100) == " +100" +string.format("% +6.1i", 0) == " +0" +string.format("% +6.1i", 1) == " +1" +string.format("% +6.1i", -1) == " -1" +string.format("% +6.1i", 2) == " +2" +string.format("% +6.1i", -2) == " -2" +string.format("% +6.1i", 3) == " +3" +string.format("% +6.1i", -3) == " -3" +string.format("% +6.1i", 100) == " +100" +string.format("% +6.6i", 0) == "+000000" +string.format("% +6.6i", 1) == "+000001" +string.format("% +6.6i", -1) == "-000001" +string.format("% +6.6i", 2) == "+000002" +string.format("% +6.6i", -2) == "-000002" +string.format("% +6.6i", 3) == "+000003" +string.format("% +6.6i", -3) == "-000003" +string.format("% +6.6i", 100) == "+000100" +string.format("% +6.6i", 10000) == "+010000" +string.format("% +20i", 0) == " +0" +string.format("% +20i", 1) == " +1" +string.format("% +20i", -1) == " -1" +string.format("% +20i", 2) == " +2" +string.format("% +20i", -2) == " -2" +string.format("% +20i", 3) == " +3" +string.format("% +20i", -3) == " -3" +string.format("% +20i", 100) == " +100" +string.format("% +20i", 10000) == " +10000" +string.format("% +20i", 100000) == " +100000" +string.format("% +20i", 1000000) == " +1000000" +string.format("% +20i", 10000000) == " +10000000" +string.format("% +20.0i", 0) == " +" +string.format("% +20.0i", 1) == " +1" +string.format("% +20.0i", -1) == " -1" +string.format("% +20.0i", 2) == " +2" +string.format("% +20.0i", -2) == " -2" +string.format("% +20.0i", 3) == " +3" +string.format("% +20.0i", -3) == " -3" +string.format("% +20.0i", 100) == " +100" +string.format("% +20.0i", 10000) == " +10000" +string.format("% +20.0i", 100000) == " +100000" +string.format("% +20.0i", 1000000) == " +1000000" +string.format("% +20.0i", 10000000) == " +10000000" +string.format("% +20.1i", 0) == " +0" +string.format("% +20.1i", 1) == " +1" +string.format("% +20.1i", -1) == " -1" +string.format("% +20.1i", 2) == " +2" +string.format("% +20.1i", -2) == " -2" +string.format("% +20.1i", 3) == " +3" +string.format("% +20.1i", -3) == " -3" +string.format("% +20.1i", 100) == " +100" +string.format("% +20.1i", 10000) == " +10000" +string.format("% +20.1i", 100000) == " +100000" +string.format("% +20.1i", 1000000) == " +1000000" +string.format("% +20.1i", 10000000) == " +10000000" +string.format("% +20.6i", 0) == " +000000" +string.format("% +20.6i", 1) == " +000001" +string.format("% +20.6i", -1) == " -000001" +string.format("% +20.6i", 2) == " +000002" +string.format("% +20.6i", -2) == " -000002" +string.format("% +20.6i", 3) == " +000003" +string.format("% +20.6i", -3) == " -000003" +string.format("% +20.6i", 100) == " +000100" +string.format("% +20.6i", 10000) == " +010000" +string.format("% +20.6i", 100000) == " +100000" +string.format("% +20.6i", 1000000) == " +1000000" +string.format("% +20.6i", 10000000) == " +10000000" +string.format("% -i", 0) == " 0" +string.format("% -i", 1) == " 1" +string.format("% -i", -1) == "-1" +string.format("% -i", 2) == " 2" +string.format("% -i", -2) == "-2" +string.format("% -i", 3) == " 3" +string.format("% -i", -3) == "-3" +string.format("% -i", 100) == " 100" +string.format("% -i", 10000) == " 10000" +string.format("% -i", 100000) == " 100000" +string.format("% -i", 1000000) == " 1000000" +string.format("% -i", 10000000) == " 10000000" +string.format("% -.0i", 0) == " " +string.format("% -.6i", 0) == " 000000" +string.format("% -.6i", 1) == " 000001" +string.format("% -.6i", -1) == "-000001" +string.format("% -.6i", 2) == " 000002" +string.format("% -.6i", -2) == "-000002" +string.format("% -.6i", 3) == " 000003" +string.format("% -.6i", -3) == "-000003" +string.format("% -.6i", 100) == " 000100" +string.format("% -.6i", 10000) == " 010000" +string.format("% -1.0i", 0) == " " +string.format("% -1.6i", 0) == " 000000" +string.format("% -1.6i", 1) == " 000001" +string.format("% -1.6i", -1) == "-000001" +string.format("% -1.6i", 2) == " 000002" +string.format("% -1.6i", -2) == "-000002" +string.format("% -1.6i", 3) == " 000003" +string.format("% -1.6i", -3) == "-000003" +string.format("% -1.6i", 100) == " 000100" +string.format("% -1.6i", 10000) == " 010000" +string.format("% -2.0i", 0) == " " +string.format("% -2.6i", 0) == " 000000" +string.format("% -2.6i", 1) == " 000001" +string.format("% -2.6i", -1) == "-000001" +string.format("% -2.6i", 2) == " 000002" +string.format("% -2.6i", -2) == "-000002" +string.format("% -2.6i", 3) == " 000003" +string.format("% -2.6i", -3) == "-000003" +string.format("% -2.6i", 100) == " 000100" +string.format("% -2.6i", 10000) == " 010000" +string.format("% -6i", 0) == " 0 " +string.format("% -6i", 1) == " 1 " +string.format("% -6i", -1) == "-1 " +string.format("% -6i", 2) == " 2 " +string.format("% -6i", -2) == "-2 " +string.format("% -6i", 3) == " 3 " +string.format("% -6i", -3) == "-3 " +string.format("% -6i", 100) == " 100 " +string.format("% -6.0i", 0) == " " +string.format("% -6.0i", 1) == " 1 " +string.format("% -6.0i", -1) == "-1 " +string.format("% -6.0i", 2) == " 2 " +string.format("% -6.0i", -2) == "-2 " +string.format("% -6.0i", 3) == " 3 " +string.format("% -6.0i", -3) == "-3 " +string.format("% -6.0i", 100) == " 100 " +string.format("% -6.1i", 0) == " 0 " +string.format("% -6.1i", 1) == " 1 " +string.format("% -6.1i", -1) == "-1 " +string.format("% -6.1i", 2) == " 2 " +string.format("% -6.1i", -2) == "-2 " +string.format("% -6.1i", 3) == " 3 " +string.format("% -6.1i", -3) == "-3 " +string.format("% -6.1i", 100) == " 100 " +string.format("% -6.6i", 0) == " 000000" +string.format("% -6.6i", 1) == " 000001" +string.format("% -6.6i", -1) == "-000001" +string.format("% -6.6i", 2) == " 000002" +string.format("% -6.6i", -2) == "-000002" +string.format("% -6.6i", 3) == " 000003" +string.format("% -6.6i", -3) == "-000003" +string.format("% -6.6i", 100) == " 000100" +string.format("% -6.6i", 10000) == " 010000" +string.format("% -20i", 0) == " 0 " +string.format("% -20i", 1) == " 1 " +string.format("% -20i", -1) == "-1 " +string.format("% -20i", 2) == " 2 " +string.format("% -20i", -2) == "-2 " +string.format("% -20i", 3) == " 3 " +string.format("% -20i", -3) == "-3 " +string.format("% -20i", 100) == " 100 " +string.format("% -20i", 10000) == " 10000 " +string.format("% -20i", 100000) == " 100000 " +string.format("% -20i", 1000000) == " 1000000 " +string.format("% -20i", 10000000) == " 10000000 " +string.format("% -20.0i", 0) == " " +string.format("% -20.0i", 1) == " 1 " +string.format("% -20.0i", -1) == "-1 " +string.format("% -20.0i", 2) == " 2 " +string.format("% -20.0i", -2) == "-2 " +string.format("% -20.0i", 3) == " 3 " +string.format("% -20.0i", -3) == "-3 " +string.format("% -20.0i", 100) == " 100 " +string.format("% -20.0i", 10000) == " 10000 " +string.format("% -20.0i", 100000) == " 100000 " +string.format("% -20.0i", 1000000) == " 1000000 " +string.format("% -20.0i", 10000000) == " 10000000 " +string.format("% -20.1i", 0) == " 0 " +string.format("% -20.1i", 1) == " 1 " +string.format("% -20.1i", -1) == "-1 " +string.format("% -20.1i", 2) == " 2 " +string.format("% -20.1i", -2) == "-2 " +string.format("% -20.1i", 3) == " 3 " +string.format("% -20.1i", -3) == "-3 " +string.format("% -20.1i", 100) == " 100 " +string.format("% -20.1i", 10000) == " 10000 " +string.format("% -20.1i", 100000) == " 100000 " +string.format("% -20.1i", 1000000) == " 1000000 " +string.format("% -20.1i", 10000000) == " 10000000 " +string.format("% -20.6i", 0) == " 000000 " +string.format("% -20.6i", 1) == " 000001 " +string.format("% -20.6i", -1) == "-000001 " +string.format("% -20.6i", 2) == " 000002 " +string.format("% -20.6i", -2) == "-000002 " +string.format("% -20.6i", 3) == " 000003 " +string.format("% -20.6i", -3) == "-000003 " +string.format("% -20.6i", 100) == " 000100 " +string.format("% -20.6i", 10000) == " 010000 " +string.format("% -20.6i", 100000) == " 100000 " +string.format("% -20.6i", 1000000) == " 1000000 " +string.format("% -20.6i", 10000000) == " 10000000 " +string.format("% -+i", 0) == "+0" +string.format("% -+i", 1) == "+1" +string.format("% -+i", -1) == "-1" +string.format("% -+i", 2) == "+2" +string.format("% -+i", -2) == "-2" +string.format("% -+i", 3) == "+3" +string.format("% -+i", -3) == "-3" +string.format("% -+i", 100) == "+100" +string.format("% -+i", 10000) == "+10000" +string.format("% -+i", 100000) == "+100000" +string.format("% -+i", 1000000) == "+1000000" +string.format("% -+i", 10000000) == "+10000000" +string.format("% -+.0i", 0) == "+" +string.format("% -+.6i", 0) == "+000000" +string.format("% -+.6i", 1) == "+000001" +string.format("% -+.6i", -1) == "-000001" +string.format("% -+.6i", 2) == "+000002" +string.format("% -+.6i", -2) == "-000002" +string.format("% -+.6i", 3) == "+000003" +string.format("% -+.6i", -3) == "-000003" +string.format("% -+.6i", 100) == "+000100" +string.format("% -+.6i", 10000) == "+010000" +string.format("% -+1.0i", 0) == "+" +string.format("% -+1.6i", 0) == "+000000" +string.format("% -+1.6i", 1) == "+000001" +string.format("% -+1.6i", -1) == "-000001" +string.format("% -+1.6i", 2) == "+000002" +string.format("% -+1.6i", -2) == "-000002" +string.format("% -+1.6i", 3) == "+000003" +string.format("% -+1.6i", -3) == "-000003" +string.format("% -+1.6i", 100) == "+000100" +string.format("% -+1.6i", 10000) == "+010000" +string.format("% -+2.0i", 0) == "+ " +string.format("% -+2.6i", 0) == "+000000" +string.format("% -+2.6i", 1) == "+000001" +string.format("% -+2.6i", -1) == "-000001" +string.format("% -+2.6i", 2) == "+000002" +string.format("% -+2.6i", -2) == "-000002" +string.format("% -+2.6i", 3) == "+000003" +string.format("% -+2.6i", -3) == "-000003" +string.format("% -+2.6i", 100) == "+000100" +string.format("% -+2.6i", 10000) == "+010000" +string.format("% -+6i", 0) == "+0 " +string.format("% -+6i", 1) == "+1 " +string.format("% -+6i", -1) == "-1 " +string.format("% -+6i", 2) == "+2 " +string.format("% -+6i", -2) == "-2 " +string.format("% -+6i", 3) == "+3 " +string.format("% -+6i", -3) == "-3 " +string.format("% -+6i", 100) == "+100 " +string.format("% -+6.0i", 0) == "+ " +string.format("% -+6.0i", 1) == "+1 " +string.format("% -+6.0i", -1) == "-1 " +string.format("% -+6.0i", 2) == "+2 " +string.format("% -+6.0i", -2) == "-2 " +string.format("% -+6.0i", 3) == "+3 " +string.format("% -+6.0i", -3) == "-3 " +string.format("% -+6.0i", 100) == "+100 " +string.format("% -+6.1i", 0) == "+0 " +string.format("% -+6.1i", 1) == "+1 " +string.format("% -+6.1i", -1) == "-1 " +string.format("% -+6.1i", 2) == "+2 " +string.format("% -+6.1i", -2) == "-2 " +string.format("% -+6.1i", 3) == "+3 " +string.format("% -+6.1i", -3) == "-3 " +string.format("% -+6.1i", 100) == "+100 " +string.format("% -+6.6i", 0) == "+000000" +string.format("% -+6.6i", 1) == "+000001" +string.format("% -+6.6i", -1) == "-000001" +string.format("% -+6.6i", 2) == "+000002" +string.format("% -+6.6i", -2) == "-000002" +string.format("% -+6.6i", 3) == "+000003" +string.format("% -+6.6i", -3) == "-000003" +string.format("% -+6.6i", 100) == "+000100" +string.format("% -+6.6i", 10000) == "+010000" +string.format("% -+20i", 0) == "+0 " +string.format("% -+20i", 1) == "+1 " +string.format("% -+20i", -1) == "-1 " +string.format("% -+20i", 2) == "+2 " +string.format("% -+20i", -2) == "-2 " +string.format("% -+20i", 3) == "+3 " +string.format("% -+20i", -3) == "-3 " +string.format("% -+20i", 100) == "+100 " +string.format("% -+20i", 10000) == "+10000 " +string.format("% -+20i", 100000) == "+100000 " +string.format("% -+20i", 1000000) == "+1000000 " +string.format("% -+20i", 10000000) == "+10000000 " +string.format("% -+20.0i", 0) == "+ " +string.format("% -+20.0i", 1) == "+1 " +string.format("% -+20.0i", -1) == "-1 " +string.format("% -+20.0i", 2) == "+2 " +string.format("% -+20.0i", -2) == "-2 " +string.format("% -+20.0i", 3) == "+3 " +string.format("% -+20.0i", -3) == "-3 " +string.format("% -+20.0i", 100) == "+100 " +string.format("% -+20.0i", 10000) == "+10000 " +string.format("% -+20.0i", 100000) == "+100000 " +string.format("% -+20.0i", 1000000) == "+1000000 " +string.format("% -+20.0i", 10000000) == "+10000000 " +string.format("% -+20.1i", 0) == "+0 " +string.format("% -+20.1i", 1) == "+1 " +string.format("% -+20.1i", -1) == "-1 " +string.format("% -+20.1i", 2) == "+2 " +string.format("% -+20.1i", -2) == "-2 " +string.format("% -+20.1i", 3) == "+3 " +string.format("% -+20.1i", -3) == "-3 " +string.format("% -+20.1i", 100) == "+100 " +string.format("% -+20.1i", 10000) == "+10000 " +string.format("% -+20.1i", 100000) == "+100000 " +string.format("% -+20.1i", 1000000) == "+1000000 " +string.format("% -+20.1i", 10000000) == "+10000000 " +string.format("% -+20.6i", 0) == "+000000 " +string.format("% -+20.6i", 1) == "+000001 " +string.format("% -+20.6i", -1) == "-000001 " +string.format("% -+20.6i", 2) == "+000002 " +string.format("% -+20.6i", -2) == "-000002 " +string.format("% -+20.6i", 3) == "+000003 " +string.format("% -+20.6i", -3) == "-000003 " +string.format("% -+20.6i", 100) == "+000100 " +string.format("% -+20.6i", 10000) == "+010000 " +string.format("% -+20.6i", 100000) == "+100000 " +string.format("% -+20.6i", 1000000) == "+1000000 " +string.format("% -+20.6i", 10000000) == "+10000000 " +string.format("%#i", 0) == "0" +string.format("%#i", 1) == "1" +string.format("%#i", -1) == "-1" +string.format("%#i", 2) == "2" +string.format("%#i", -2) == "-2" +string.format("%#i", 3) == "3" +string.format("%#i", -3) == "-3" +string.format("%#i", 100) == "100" +string.format("%#i", 10000) == "10000" +string.format("%#i", 100000) == "100000" +string.format("%#i", 1000000) == "1000000" +string.format("%#i", 10000000) == "10000000" +string.format("%#.0i", 0) == "" +string.format("%#.6i", 0) == "000000" +string.format("%#.6i", 1) == "000001" +string.format("%#.6i", -1) == "-000001" +string.format("%#.6i", 2) == "000002" +string.format("%#.6i", -2) == "-000002" +string.format("%#.6i", 3) == "000003" +string.format("%#.6i", -3) == "-000003" +string.format("%#.6i", 100) == "000100" +string.format("%#.6i", 10000) == "010000" +string.format("%#1.0i", 0) == " " +string.format("%#1.6i", 0) == "000000" +string.format("%#1.6i", 1) == "000001" +string.format("%#1.6i", -1) == "-000001" +string.format("%#1.6i", 2) == "000002" +string.format("%#1.6i", -2) == "-000002" +string.format("%#1.6i", 3) == "000003" +string.format("%#1.6i", -3) == "-000003" +string.format("%#1.6i", 100) == "000100" +string.format("%#1.6i", 10000) == "010000" +string.format("%#2i", 0) == " 0" +string.format("%#2i", 1) == " 1" +string.format("%#2i", 2) == " 2" +string.format("%#2i", 3) == " 3" +string.format("%#2.0i", 0) == " " +string.format("%#2.0i", 1) == " 1" +string.format("%#2.0i", 2) == " 2" +string.format("%#2.0i", 3) == " 3" +string.format("%#2.1i", 0) == " 0" +string.format("%#2.1i", 1) == " 1" +string.format("%#2.1i", 2) == " 2" +string.format("%#2.1i", 3) == " 3" +string.format("%#2.6i", 0) == "000000" +string.format("%#2.6i", 1) == "000001" +string.format("%#2.6i", -1) == "-000001" +string.format("%#2.6i", 2) == "000002" +string.format("%#2.6i", -2) == "-000002" +string.format("%#2.6i", 3) == "000003" +string.format("%#2.6i", -3) == "-000003" +string.format("%#2.6i", 100) == "000100" +string.format("%#2.6i", 10000) == "010000" +string.format("%#6i", 0) == " 0" +string.format("%#6i", 1) == " 1" +string.format("%#6i", -1) == " -1" +string.format("%#6i", 2) == " 2" +string.format("%#6i", -2) == " -2" +string.format("%#6i", 3) == " 3" +string.format("%#6i", -3) == " -3" +string.format("%#6i", 100) == " 100" +string.format("%#6i", 10000) == " 10000" +string.format("%#6.0i", 0) == " " +string.format("%#6.0i", 1) == " 1" +string.format("%#6.0i", -1) == " -1" +string.format("%#6.0i", 2) == " 2" +string.format("%#6.0i", -2) == " -2" +string.format("%#6.0i", 3) == " 3" +string.format("%#6.0i", -3) == " -3" +string.format("%#6.0i", 100) == " 100" +string.format("%#6.0i", 10000) == " 10000" +string.format("%#6.1i", 0) == " 0" +string.format("%#6.1i", 1) == " 1" +string.format("%#6.1i", -1) == " -1" +string.format("%#6.1i", 2) == " 2" +string.format("%#6.1i", -2) == " -2" +string.format("%#6.1i", 3) == " 3" +string.format("%#6.1i", -3) == " -3" +string.format("%#6.1i", 100) == " 100" +string.format("%#6.1i", 10000) == " 10000" +string.format("%#6.6i", 0) == "000000" +string.format("%#6.6i", 1) == "000001" +string.format("%#6.6i", -1) == "-000001" +string.format("%#6.6i", 2) == "000002" +string.format("%#6.6i", -2) == "-000002" +string.format("%#6.6i", 3) == "000003" +string.format("%#6.6i", -3) == "-000003" +string.format("%#6.6i", 100) == "000100" +string.format("%#6.6i", 10000) == "010000" +string.format("%#20i", 0) == " 0" +string.format("%#20i", 1) == " 1" +string.format("%#20i", -1) == " -1" +string.format("%#20i", 2) == " 2" +string.format("%#20i", -2) == " -2" +string.format("%#20i", 3) == " 3" +string.format("%#20i", -3) == " -3" +string.format("%#20i", 100) == " 100" +string.format("%#20i", 10000) == " 10000" +string.format("%#20i", 100000) == " 100000" +string.format("%#20i", 1000000) == " 1000000" +string.format("%#20i", 10000000) == " 10000000" +string.format("%#20.0i", 0) == " " +string.format("%#20.0i", 1) == " 1" +string.format("%#20.0i", -1) == " -1" +string.format("%#20.0i", 2) == " 2" +string.format("%#20.0i", -2) == " -2" +string.format("%#20.0i", 3) == " 3" +string.format("%#20.0i", -3) == " -3" +string.format("%#20.0i", 100) == " 100" +string.format("%#20.0i", 10000) == " 10000" +string.format("%#20.0i", 100000) == " 100000" +string.format("%#20.0i", 1000000) == " 1000000" +string.format("%#20.0i", 10000000) == " 10000000" +string.format("%#20.1i", 0) == " 0" +string.format("%#20.1i", 1) == " 1" +string.format("%#20.1i", -1) == " -1" +string.format("%#20.1i", 2) == " 2" +string.format("%#20.1i", -2) == " -2" +string.format("%#20.1i", 3) == " 3" +string.format("%#20.1i", -3) == " -3" +string.format("%#20.1i", 100) == " 100" +string.format("%#20.1i", 10000) == " 10000" +string.format("%#20.1i", 100000) == " 100000" +string.format("%#20.1i", 1000000) == " 1000000" +string.format("%#20.1i", 10000000) == " 10000000" +string.format("%#20.6i", 0) == " 000000" +string.format("%#20.6i", 1) == " 000001" +string.format("%#20.6i", -1) == " -000001" +string.format("%#20.6i", 2) == " 000002" +string.format("%#20.6i", -2) == " -000002" +string.format("%#20.6i", 3) == " 000003" +string.format("%#20.6i", -3) == " -000003" +string.format("%#20.6i", 100) == " 000100" +string.format("%#20.6i", 10000) == " 010000" +string.format("%#20.6i", 100000) == " 100000" +string.format("%#20.6i", 1000000) == " 1000000" +string.format("%#20.6i", 10000000) == " 10000000" +string.format("%#+i", 0) == "+0" +string.format("%#+i", 1) == "+1" +string.format("%#+i", -1) == "-1" +string.format("%#+i", 2) == "+2" +string.format("%#+i", -2) == "-2" +string.format("%#+i", 3) == "+3" +string.format("%#+i", -3) == "-3" +string.format("%#+i", 100) == "+100" +string.format("%#+i", 10000) == "+10000" +string.format("%#+i", 100000) == "+100000" +string.format("%#+i", 1000000) == "+1000000" +string.format("%#+i", 10000000) == "+10000000" +string.format("%#+.0i", 0) == "+" +string.format("%#+.6i", 0) == "+000000" +string.format("%#+.6i", 1) == "+000001" +string.format("%#+.6i", -1) == "-000001" +string.format("%#+.6i", 2) == "+000002" +string.format("%#+.6i", -2) == "-000002" +string.format("%#+.6i", 3) == "+000003" +string.format("%#+.6i", -3) == "-000003" +string.format("%#+.6i", 100) == "+000100" +string.format("%#+.6i", 10000) == "+010000" +string.format("%#+1.0i", 0) == "+" +string.format("%#+1.6i", 0) == "+000000" +string.format("%#+1.6i", 1) == "+000001" +string.format("%#+1.6i", -1) == "-000001" +string.format("%#+1.6i", 2) == "+000002" +string.format("%#+1.6i", -2) == "-000002" +string.format("%#+1.6i", 3) == "+000003" +string.format("%#+1.6i", -3) == "-000003" +string.format("%#+1.6i", 100) == "+000100" +string.format("%#+1.6i", 10000) == "+010000" +string.format("%#+2.0i", 0) == " +" +string.format("%#+2.6i", 0) == "+000000" +string.format("%#+2.6i", 1) == "+000001" +string.format("%#+2.6i", -1) == "-000001" +string.format("%#+2.6i", 2) == "+000002" +string.format("%#+2.6i", -2) == "-000002" +string.format("%#+2.6i", 3) == "+000003" +string.format("%#+2.6i", -3) == "-000003" +string.format("%#+2.6i", 100) == "+000100" +string.format("%#+2.6i", 10000) == "+010000" +string.format("%#+6i", 0) == " +0" +string.format("%#+6i", 1) == " +1" +string.format("%#+6i", -1) == " -1" +string.format("%#+6i", 2) == " +2" +string.format("%#+6i", -2) == " -2" +string.format("%#+6i", 3) == " +3" +string.format("%#+6i", -3) == " -3" +string.format("%#+6i", 100) == " +100" +string.format("%#+6.0i", 0) == " +" +string.format("%#+6.0i", 1) == " +1" +string.format("%#+6.0i", -1) == " -1" +string.format("%#+6.0i", 2) == " +2" +string.format("%#+6.0i", -2) == " -2" +string.format("%#+6.0i", 3) == " +3" +string.format("%#+6.0i", -3) == " -3" +string.format("%#+6.0i", 100) == " +100" +string.format("%#+6.1i", 0) == " +0" +string.format("%#+6.1i", 1) == " +1" +string.format("%#+6.1i", -1) == " -1" +string.format("%#+6.1i", 2) == " +2" +string.format("%#+6.1i", -2) == " -2" +string.format("%#+6.1i", 3) == " +3" +string.format("%#+6.1i", -3) == " -3" +string.format("%#+6.1i", 100) == " +100" +string.format("%#+6.6i", 0) == "+000000" +string.format("%#+6.6i", 1) == "+000001" +string.format("%#+6.6i", -1) == "-000001" +string.format("%#+6.6i", 2) == "+000002" +string.format("%#+6.6i", -2) == "-000002" +string.format("%#+6.6i", 3) == "+000003" +string.format("%#+6.6i", -3) == "-000003" +string.format("%#+6.6i", 100) == "+000100" +string.format("%#+6.6i", 10000) == "+010000" +string.format("%#+20i", 0) == " +0" +string.format("%#+20i", 1) == " +1" +string.format("%#+20i", -1) == " -1" +string.format("%#+20i", 2) == " +2" +string.format("%#+20i", -2) == " -2" +string.format("%#+20i", 3) == " +3" +string.format("%#+20i", -3) == " -3" +string.format("%#+20i", 100) == " +100" +string.format("%#+20i", 10000) == " +10000" +string.format("%#+20i", 100000) == " +100000" +string.format("%#+20i", 1000000) == " +1000000" +string.format("%#+20i", 10000000) == " +10000000" +string.format("%#+20.0i", 0) == " +" +string.format("%#+20.0i", 1) == " +1" +string.format("%#+20.0i", -1) == " -1" +string.format("%#+20.0i", 2) == " +2" +string.format("%#+20.0i", -2) == " -2" +string.format("%#+20.0i", 3) == " +3" +string.format("%#+20.0i", -3) == " -3" +string.format("%#+20.0i", 100) == " +100" +string.format("%#+20.0i", 10000) == " +10000" +string.format("%#+20.0i", 100000) == " +100000" +string.format("%#+20.0i", 1000000) == " +1000000" +string.format("%#+20.0i", 10000000) == " +10000000" +string.format("%#+20.1i", 0) == " +0" +string.format("%#+20.1i", 1) == " +1" +string.format("%#+20.1i", -1) == " -1" +string.format("%#+20.1i", 2) == " +2" +string.format("%#+20.1i", -2) == " -2" +string.format("%#+20.1i", 3) == " +3" +string.format("%#+20.1i", -3) == " -3" +string.format("%#+20.1i", 100) == " +100" +string.format("%#+20.1i", 10000) == " +10000" +string.format("%#+20.1i", 100000) == " +100000" +string.format("%#+20.1i", 1000000) == " +1000000" +string.format("%#+20.1i", 10000000) == " +10000000" +string.format("%#+20.6i", 0) == " +000000" +string.format("%#+20.6i", 1) == " +000001" +string.format("%#+20.6i", -1) == " -000001" +string.format("%#+20.6i", 2) == " +000002" +string.format("%#+20.6i", -2) == " -000002" +string.format("%#+20.6i", 3) == " +000003" +string.format("%#+20.6i", -3) == " -000003" +string.format("%#+20.6i", 100) == " +000100" +string.format("%#+20.6i", 10000) == " +010000" +string.format("%#+20.6i", 100000) == " +100000" +string.format("%#+20.6i", 1000000) == " +1000000" +string.format("%#+20.6i", 10000000) == " +10000000" +string.format("%#-i", 0) == "0" +string.format("%#-i", 1) == "1" +string.format("%#-i", -1) == "-1" +string.format("%#-i", 2) == "2" +string.format("%#-i", -2) == "-2" +string.format("%#-i", 3) == "3" +string.format("%#-i", -3) == "-3" +string.format("%#-i", 100) == "100" +string.format("%#-i", 10000) == "10000" +string.format("%#-i", 100000) == "100000" +string.format("%#-i", 1000000) == "1000000" +string.format("%#-i", 10000000) == "10000000" +string.format("%#-.0i", 0) == "" +string.format("%#-.6i", 0) == "000000" +string.format("%#-.6i", 1) == "000001" +string.format("%#-.6i", -1) == "-000001" +string.format("%#-.6i", 2) == "000002" +string.format("%#-.6i", -2) == "-000002" +string.format("%#-.6i", 3) == "000003" +string.format("%#-.6i", -3) == "-000003" +string.format("%#-.6i", 100) == "000100" +string.format("%#-.6i", 10000) == "010000" +string.format("%#-1.0i", 0) == " " +string.format("%#-1.6i", 0) == "000000" +string.format("%#-1.6i", 1) == "000001" +string.format("%#-1.6i", -1) == "-000001" +string.format("%#-1.6i", 2) == "000002" +string.format("%#-1.6i", -2) == "-000002" +string.format("%#-1.6i", 3) == "000003" +string.format("%#-1.6i", -3) == "-000003" +string.format("%#-1.6i", 100) == "000100" +string.format("%#-1.6i", 10000) == "010000" +string.format("%#-2i", 0) == "0 " +string.format("%#-2i", 1) == "1 " +string.format("%#-2i", 2) == "2 " +string.format("%#-2i", 3) == "3 " +string.format("%#-2.0i", 0) == " " +string.format("%#-2.0i", 1) == "1 " +string.format("%#-2.0i", 2) == "2 " +string.format("%#-2.0i", 3) == "3 " +string.format("%#-2.1i", 0) == "0 " +string.format("%#-2.1i", 1) == "1 " +string.format("%#-2.1i", 2) == "2 " +string.format("%#-2.1i", 3) == "3 " +string.format("%#-2.6i", 0) == "000000" +string.format("%#-2.6i", 1) == "000001" +string.format("%#-2.6i", -1) == "-000001" +string.format("%#-2.6i", 2) == "000002" +string.format("%#-2.6i", -2) == "-000002" +string.format("%#-2.6i", 3) == "000003" +string.format("%#-2.6i", -3) == "-000003" +string.format("%#-2.6i", 100) == "000100" +string.format("%#-2.6i", 10000) == "010000" +string.format("%#-6i", 0) == "0 " +string.format("%#-6i", 1) == "1 " +string.format("%#-6i", -1) == "-1 " +string.format("%#-6i", 2) == "2 " +string.format("%#-6i", -2) == "-2 " +string.format("%#-6i", 3) == "3 " +string.format("%#-6i", -3) == "-3 " +string.format("%#-6i", 100) == "100 " +string.format("%#-6i", 10000) == "10000 " +string.format("%#-6.0i", 0) == " " +string.format("%#-6.0i", 1) == "1 " +string.format("%#-6.0i", -1) == "-1 " +string.format("%#-6.0i", 2) == "2 " +string.format("%#-6.0i", -2) == "-2 " +string.format("%#-6.0i", 3) == "3 " +string.format("%#-6.0i", -3) == "-3 " +string.format("%#-6.0i", 100) == "100 " +string.format("%#-6.0i", 10000) == "10000 " +string.format("%#-6.1i", 0) == "0 " +string.format("%#-6.1i", 1) == "1 " +string.format("%#-6.1i", -1) == "-1 " +string.format("%#-6.1i", 2) == "2 " +string.format("%#-6.1i", -2) == "-2 " +string.format("%#-6.1i", 3) == "3 " +string.format("%#-6.1i", -3) == "-3 " +string.format("%#-6.1i", 100) == "100 " +string.format("%#-6.1i", 10000) == "10000 " +string.format("%#-6.6i", 0) == "000000" +string.format("%#-6.6i", 1) == "000001" +string.format("%#-6.6i", -1) == "-000001" +string.format("%#-6.6i", 2) == "000002" +string.format("%#-6.6i", -2) == "-000002" +string.format("%#-6.6i", 3) == "000003" +string.format("%#-6.6i", -3) == "-000003" +string.format("%#-6.6i", 100) == "000100" +string.format("%#-6.6i", 10000) == "010000" +string.format("%#-20i", 0) == "0 " +string.format("%#-20i", 1) == "1 " +string.format("%#-20i", -1) == "-1 " +string.format("%#-20i", 2) == "2 " +string.format("%#-20i", -2) == "-2 " +string.format("%#-20i", 3) == "3 " +string.format("%#-20i", -3) == "-3 " +string.format("%#-20i", 100) == "100 " +string.format("%#-20i", 10000) == "10000 " +string.format("%#-20i", 100000) == "100000 " +string.format("%#-20i", 1000000) == "1000000 " +string.format("%#-20i", 10000000) == "10000000 " +string.format("%#-20.0i", 0) == " " +string.format("%#-20.0i", 1) == "1 " +string.format("%#-20.0i", -1) == "-1 " +string.format("%#-20.0i", 2) == "2 " +string.format("%#-20.0i", -2) == "-2 " +string.format("%#-20.0i", 3) == "3 " +string.format("%#-20.0i", -3) == "-3 " +string.format("%#-20.0i", 100) == "100 " +string.format("%#-20.0i", 10000) == "10000 " +string.format("%#-20.0i", 100000) == "100000 " +string.format("%#-20.0i", 1000000) == "1000000 " +string.format("%#-20.0i", 10000000) == "10000000 " +string.format("%#-20.1i", 0) == "0 " +string.format("%#-20.1i", 1) == "1 " +string.format("%#-20.1i", -1) == "-1 " +string.format("%#-20.1i", 2) == "2 " +string.format("%#-20.1i", -2) == "-2 " +string.format("%#-20.1i", 3) == "3 " +string.format("%#-20.1i", -3) == "-3 " +string.format("%#-20.1i", 100) == "100 " +string.format("%#-20.1i", 10000) == "10000 " +string.format("%#-20.1i", 100000) == "100000 " +string.format("%#-20.1i", 1000000) == "1000000 " +string.format("%#-20.1i", 10000000) == "10000000 " +string.format("%#-20.6i", 0) == "000000 " +string.format("%#-20.6i", 1) == "000001 " +string.format("%#-20.6i", -1) == "-000001 " +string.format("%#-20.6i", 2) == "000002 " +string.format("%#-20.6i", -2) == "-000002 " +string.format("%#-20.6i", 3) == "000003 " +string.format("%#-20.6i", -3) == "-000003 " +string.format("%#-20.6i", 100) == "000100 " +string.format("%#-20.6i", 10000) == "010000 " +string.format("%#-20.6i", 100000) == "100000 " +string.format("%#-20.6i", 1000000) == "1000000 " +string.format("%#-20.6i", 10000000) == "10000000 " +string.format("%#-+i", 0) == "+0" +string.format("%#-+i", 1) == "+1" +string.format("%#-+i", -1) == "-1" +string.format("%#-+i", 2) == "+2" +string.format("%#-+i", -2) == "-2" +string.format("%#-+i", 3) == "+3" +string.format("%#-+i", -3) == "-3" +string.format("%#-+i", 100) == "+100" +string.format("%#-+i", 10000) == "+10000" +string.format("%#-+i", 100000) == "+100000" +string.format("%#-+i", 1000000) == "+1000000" +string.format("%#-+i", 10000000) == "+10000000" +string.format("%#-+.0i", 0) == "+" +string.format("%#-+.6i", 0) == "+000000" +string.format("%#-+.6i", 1) == "+000001" +string.format("%#-+.6i", -1) == "-000001" +string.format("%#-+.6i", 2) == "+000002" +string.format("%#-+.6i", -2) == "-000002" +string.format("%#-+.6i", 3) == "+000003" +string.format("%#-+.6i", -3) == "-000003" +string.format("%#-+.6i", 100) == "+000100" +string.format("%#-+.6i", 10000) == "+010000" +string.format("%#-+1.0i", 0) == "+" +string.format("%#-+1.6i", 0) == "+000000" +string.format("%#-+1.6i", 1) == "+000001" +string.format("%#-+1.6i", -1) == "-000001" +string.format("%#-+1.6i", 2) == "+000002" +string.format("%#-+1.6i", -2) == "-000002" +string.format("%#-+1.6i", 3) == "+000003" +string.format("%#-+1.6i", -3) == "-000003" +string.format("%#-+1.6i", 100) == "+000100" +string.format("%#-+1.6i", 10000) == "+010000" +string.format("%#-+2.0i", 0) == "+ " +string.format("%#-+2.6i", 0) == "+000000" +string.format("%#-+2.6i", 1) == "+000001" +string.format("%#-+2.6i", -1) == "-000001" +string.format("%#-+2.6i", 2) == "+000002" +string.format("%#-+2.6i", -2) == "-000002" +string.format("%#-+2.6i", 3) == "+000003" +string.format("%#-+2.6i", -3) == "-000003" +string.format("%#-+2.6i", 100) == "+000100" +string.format("%#-+2.6i", 10000) == "+010000" +string.format("%#-+6i", 0) == "+0 " +string.format("%#-+6i", 1) == "+1 " +string.format("%#-+6i", -1) == "-1 " +string.format("%#-+6i", 2) == "+2 " +string.format("%#-+6i", -2) == "-2 " +string.format("%#-+6i", 3) == "+3 " +string.format("%#-+6i", -3) == "-3 " +string.format("%#-+6i", 100) == "+100 " +string.format("%#-+6.0i", 0) == "+ " +string.format("%#-+6.0i", 1) == "+1 " +string.format("%#-+6.0i", -1) == "-1 " +string.format("%#-+6.0i", 2) == "+2 " +string.format("%#-+6.0i", -2) == "-2 " +string.format("%#-+6.0i", 3) == "+3 " +string.format("%#-+6.0i", -3) == "-3 " +string.format("%#-+6.0i", 100) == "+100 " +string.format("%#-+6.1i", 0) == "+0 " +string.format("%#-+6.1i", 1) == "+1 " +string.format("%#-+6.1i", -1) == "-1 " +string.format("%#-+6.1i", 2) == "+2 " +string.format("%#-+6.1i", -2) == "-2 " +string.format("%#-+6.1i", 3) == "+3 " +string.format("%#-+6.1i", -3) == "-3 " +string.format("%#-+6.1i", 100) == "+100 " +string.format("%#-+6.6i", 0) == "+000000" +string.format("%#-+6.6i", 1) == "+000001" +string.format("%#-+6.6i", -1) == "-000001" +string.format("%#-+6.6i", 2) == "+000002" +string.format("%#-+6.6i", -2) == "-000002" +string.format("%#-+6.6i", 3) == "+000003" +string.format("%#-+6.6i", -3) == "-000003" +string.format("%#-+6.6i", 100) == "+000100" +string.format("%#-+6.6i", 10000) == "+010000" +string.format("%#-+20i", 0) == "+0 " +string.format("%#-+20i", 1) == "+1 " +string.format("%#-+20i", -1) == "-1 " +string.format("%#-+20i", 2) == "+2 " +string.format("%#-+20i", -2) == "-2 " +string.format("%#-+20i", 3) == "+3 " +string.format("%#-+20i", -3) == "-3 " +string.format("%#-+20i", 100) == "+100 " +string.format("%#-+20i", 10000) == "+10000 " +string.format("%#-+20i", 100000) == "+100000 " +string.format("%#-+20i", 1000000) == "+1000000 " +string.format("%#-+20i", 10000000) == "+10000000 " +string.format("%#-+20.0i", 0) == "+ " +string.format("%#-+20.0i", 1) == "+1 " +string.format("%#-+20.0i", -1) == "-1 " +string.format("%#-+20.0i", 2) == "+2 " +string.format("%#-+20.0i", -2) == "-2 " +string.format("%#-+20.0i", 3) == "+3 " +string.format("%#-+20.0i", -3) == "-3 " +string.format("%#-+20.0i", 100) == "+100 " +string.format("%#-+20.0i", 10000) == "+10000 " +string.format("%#-+20.0i", 100000) == "+100000 " +string.format("%#-+20.0i", 1000000) == "+1000000 " +string.format("%#-+20.0i", 10000000) == "+10000000 " +string.format("%#-+20.1i", 0) == "+0 " +string.format("%#-+20.1i", 1) == "+1 " +string.format("%#-+20.1i", -1) == "-1 " +string.format("%#-+20.1i", 2) == "+2 " +string.format("%#-+20.1i", -2) == "-2 " +string.format("%#-+20.1i", 3) == "+3 " +string.format("%#-+20.1i", -3) == "-3 " +string.format("%#-+20.1i", 100) == "+100 " +string.format("%#-+20.1i", 10000) == "+10000 " +string.format("%#-+20.1i", 100000) == "+100000 " +string.format("%#-+20.1i", 1000000) == "+1000000 " +string.format("%#-+20.1i", 10000000) == "+10000000 " +string.format("%#-+20.6i", 0) == "+000000 " +string.format("%#-+20.6i", 1) == "+000001 " +string.format("%#-+20.6i", -1) == "-000001 " +string.format("%#-+20.6i", 2) == "+000002 " +string.format("%#-+20.6i", -2) == "-000002 " +string.format("%#-+20.6i", 3) == "+000003 " +string.format("%#-+20.6i", -3) == "-000003 " +string.format("%#-+20.6i", 100) == "+000100 " +string.format("%#-+20.6i", 10000) == "+010000 " +string.format("%#-+20.6i", 100000) == "+100000 " +string.format("%#-+20.6i", 1000000) == "+1000000 " +string.format("%#-+20.6i", 10000000) == "+10000000 " +string.format("%# i", 0) == " 0" +string.format("%# i", 1) == " 1" +string.format("%# i", -1) == "-1" +string.format("%# i", 2) == " 2" +string.format("%# i", -2) == "-2" +string.format("%# i", 3) == " 3" +string.format("%# i", -3) == "-3" +string.format("%# i", 100) == " 100" +string.format("%# i", 10000) == " 10000" +string.format("%# i", 100000) == " 100000" +string.format("%# i", 1000000) == " 1000000" +string.format("%# i", 10000000) == " 10000000" +string.format("%# .0i", 0) == " " +string.format("%# .6i", 0) == " 000000" +string.format("%# .6i", 1) == " 000001" +string.format("%# .6i", -1) == "-000001" +string.format("%# .6i", 2) == " 000002" +string.format("%# .6i", -2) == "-000002" +string.format("%# .6i", 3) == " 000003" +string.format("%# .6i", -3) == "-000003" +string.format("%# .6i", 100) == " 000100" +string.format("%# .6i", 10000) == " 010000" +string.format("%# 1.0i", 0) == " " +string.format("%# 1.6i", 0) == " 000000" +string.format("%# 1.6i", 1) == " 000001" +string.format("%# 1.6i", -1) == "-000001" +string.format("%# 1.6i", 2) == " 000002" +string.format("%# 1.6i", -2) == "-000002" +string.format("%# 1.6i", 3) == " 000003" +string.format("%# 1.6i", -3) == "-000003" +string.format("%# 1.6i", 100) == " 000100" +string.format("%# 1.6i", 10000) == " 010000" +string.format("%# 2.0i", 0) == " " +string.format("%# 2.6i", 0) == " 000000" +string.format("%# 2.6i", 1) == " 000001" +string.format("%# 2.6i", -1) == "-000001" +string.format("%# 2.6i", 2) == " 000002" +string.format("%# 2.6i", -2) == "-000002" +string.format("%# 2.6i", 3) == " 000003" +string.format("%# 2.6i", -3) == "-000003" +string.format("%# 2.6i", 100) == " 000100" +string.format("%# 2.6i", 10000) == " 010000" +string.format("%# 6i", 0) == " 0" +string.format("%# 6i", 1) == " 1" +string.format("%# 6i", -1) == " -1" +string.format("%# 6i", 2) == " 2" +string.format("%# 6i", -2) == " -2" +string.format("%# 6i", 3) == " 3" +string.format("%# 6i", -3) == " -3" +string.format("%# 6i", 100) == " 100" +string.format("%# 6.0i", 0) == " " +string.format("%# 6.0i", 1) == " 1" +string.format("%# 6.0i", -1) == " -1" +string.format("%# 6.0i", 2) == " 2" +string.format("%# 6.0i", -2) == " -2" +string.format("%# 6.0i", 3) == " 3" +string.format("%# 6.0i", -3) == " -3" +string.format("%# 6.0i", 100) == " 100" +string.format("%# 6.1i", 0) == " 0" +string.format("%# 6.1i", 1) == " 1" +string.format("%# 6.1i", -1) == " -1" +string.format("%# 6.1i", 2) == " 2" +string.format("%# 6.1i", -2) == " -2" +string.format("%# 6.1i", 3) == " 3" +string.format("%# 6.1i", -3) == " -3" +string.format("%# 6.1i", 100) == " 100" +string.format("%# 6.6i", 0) == " 000000" +string.format("%# 6.6i", 1) == " 000001" +string.format("%# 6.6i", -1) == "-000001" +string.format("%# 6.6i", 2) == " 000002" +string.format("%# 6.6i", -2) == "-000002" +string.format("%# 6.6i", 3) == " 000003" +string.format("%# 6.6i", -3) == "-000003" +string.format("%# 6.6i", 100) == " 000100" +string.format("%# 6.6i", 10000) == " 010000" +string.format("%# 20i", 0) == " 0" +string.format("%# 20i", 1) == " 1" +string.format("%# 20i", -1) == " -1" +string.format("%# 20i", 2) == " 2" +string.format("%# 20i", -2) == " -2" +string.format("%# 20i", 3) == " 3" +string.format("%# 20i", -3) == " -3" +string.format("%# 20i", 100) == " 100" +string.format("%# 20i", 10000) == " 10000" +string.format("%# 20i", 100000) == " 100000" +string.format("%# 20i", 1000000) == " 1000000" +string.format("%# 20i", 10000000) == " 10000000" +string.format("%# 20.0i", 0) == " " +string.format("%# 20.0i", 1) == " 1" +string.format("%# 20.0i", -1) == " -1" +string.format("%# 20.0i", 2) == " 2" +string.format("%# 20.0i", -2) == " -2" +string.format("%# 20.0i", 3) == " 3" +string.format("%# 20.0i", -3) == " -3" +string.format("%# 20.0i", 100) == " 100" +string.format("%# 20.0i", 10000) == " 10000" +string.format("%# 20.0i", 100000) == " 100000" +string.format("%# 20.0i", 1000000) == " 1000000" +string.format("%# 20.0i", 10000000) == " 10000000" +string.format("%# 20.1i", 0) == " 0" +string.format("%# 20.1i", 1) == " 1" +string.format("%# 20.1i", -1) == " -1" +string.format("%# 20.1i", 2) == " 2" +string.format("%# 20.1i", -2) == " -2" +string.format("%# 20.1i", 3) == " 3" +string.format("%# 20.1i", -3) == " -3" +string.format("%# 20.1i", 100) == " 100" +string.format("%# 20.1i", 10000) == " 10000" +string.format("%# 20.1i", 100000) == " 100000" +string.format("%# 20.1i", 1000000) == " 1000000" +string.format("%# 20.1i", 10000000) == " 10000000" +string.format("%# 20.6i", 0) == " 000000" +string.format("%# 20.6i", 1) == " 000001" +string.format("%# 20.6i", -1) == " -000001" +string.format("%# 20.6i", 2) == " 000002" +string.format("%# 20.6i", -2) == " -000002" +string.format("%# 20.6i", 3) == " 000003" +string.format("%# 20.6i", -3) == " -000003" +string.format("%# 20.6i", 100) == " 000100" +string.format("%# 20.6i", 10000) == " 010000" +string.format("%# 20.6i", 100000) == " 100000" +string.format("%# 20.6i", 1000000) == " 1000000" +string.format("%# 20.6i", 10000000) == " 10000000" +string.format("%# +i", 0) == "+0" +string.format("%# +i", 1) == "+1" +string.format("%# +i", -1) == "-1" +string.format("%# +i", 2) == "+2" +string.format("%# +i", -2) == "-2" +string.format("%# +i", 3) == "+3" +string.format("%# +i", -3) == "-3" +string.format("%# +i", 100) == "+100" +string.format("%# +i", 10000) == "+10000" +string.format("%# +i", 100000) == "+100000" +string.format("%# +i", 1000000) == "+1000000" +string.format("%# +i", 10000000) == "+10000000" +string.format("%# +.0i", 0) == "+" +string.format("%# +.6i", 0) == "+000000" +string.format("%# +.6i", 1) == "+000001" +string.format("%# +.6i", -1) == "-000001" +string.format("%# +.6i", 2) == "+000002" +string.format("%# +.6i", -2) == "-000002" +string.format("%# +.6i", 3) == "+000003" +string.format("%# +.6i", -3) == "-000003" +string.format("%# +.6i", 100) == "+000100" +string.format("%# +.6i", 10000) == "+010000" +string.format("%# +1.0i", 0) == "+" +string.format("%# +1.6i", 0) == "+000000" +string.format("%# +1.6i", 1) == "+000001" +string.format("%# +1.6i", -1) == "-000001" +string.format("%# +1.6i", 2) == "+000002" +string.format("%# +1.6i", -2) == "-000002" +string.format("%# +1.6i", 3) == "+000003" +string.format("%# +1.6i", -3) == "-000003" +string.format("%# +1.6i", 100) == "+000100" +string.format("%# +1.6i", 10000) == "+010000" +string.format("%# +2.0i", 0) == " +" +string.format("%# +2.6i", 0) == "+000000" +string.format("%# +2.6i", 1) == "+000001" +string.format("%# +2.6i", -1) == "-000001" +string.format("%# +2.6i", 2) == "+000002" +string.format("%# +2.6i", -2) == "-000002" +string.format("%# +2.6i", 3) == "+000003" +string.format("%# +2.6i", -3) == "-000003" +string.format("%# +2.6i", 100) == "+000100" +string.format("%# +2.6i", 10000) == "+010000" +string.format("%# +6i", 0) == " +0" +string.format("%# +6i", 1) == " +1" +string.format("%# +6i", -1) == " -1" +string.format("%# +6i", 2) == " +2" +string.format("%# +6i", -2) == " -2" +string.format("%# +6i", 3) == " +3" +string.format("%# +6i", -3) == " -3" +string.format("%# +6i", 100) == " +100" +string.format("%# +6.0i", 0) == " +" +string.format("%# +6.0i", 1) == " +1" +string.format("%# +6.0i", -1) == " -1" +string.format("%# +6.0i", 2) == " +2" +string.format("%# +6.0i", -2) == " -2" +string.format("%# +6.0i", 3) == " +3" +string.format("%# +6.0i", -3) == " -3" +string.format("%# +6.0i", 100) == " +100" +string.format("%# +6.1i", 0) == " +0" +string.format("%# +6.1i", 1) == " +1" +string.format("%# +6.1i", -1) == " -1" +string.format("%# +6.1i", 2) == " +2" +string.format("%# +6.1i", -2) == " -2" +string.format("%# +6.1i", 3) == " +3" +string.format("%# +6.1i", -3) == " -3" +string.format("%# +6.1i", 100) == " +100" +string.format("%# +6.6i", 0) == "+000000" +string.format("%# +6.6i", 1) == "+000001" +string.format("%# +6.6i", -1) == "-000001" +string.format("%# +6.6i", 2) == "+000002" +string.format("%# +6.6i", -2) == "-000002" +string.format("%# +6.6i", 3) == "+000003" +string.format("%# +6.6i", -3) == "-000003" +string.format("%# +6.6i", 100) == "+000100" +string.format("%# +6.6i", 10000) == "+010000" +string.format("%# +20i", 0) == " +0" +string.format("%# +20i", 1) == " +1" +string.format("%# +20i", -1) == " -1" +string.format("%# +20i", 2) == " +2" +string.format("%# +20i", -2) == " -2" +string.format("%# +20i", 3) == " +3" +string.format("%# +20i", -3) == " -3" +string.format("%# +20i", 100) == " +100" +string.format("%# +20i", 10000) == " +10000" +string.format("%# +20i", 100000) == " +100000" +string.format("%# +20i", 1000000) == " +1000000" +string.format("%# +20i", 10000000) == " +10000000" +string.format("%# +20.0i", 0) == " +" +string.format("%# +20.0i", 1) == " +1" +string.format("%# +20.0i", -1) == " -1" +string.format("%# +20.0i", 2) == " +2" +string.format("%# +20.0i", -2) == " -2" +string.format("%# +20.0i", 3) == " +3" +string.format("%# +20.0i", -3) == " -3" +string.format("%# +20.0i", 100) == " +100" +string.format("%# +20.0i", 10000) == " +10000" +string.format("%# +20.0i", 100000) == " +100000" +string.format("%# +20.0i", 1000000) == " +1000000" +string.format("%# +20.0i", 10000000) == " +10000000" +string.format("%# +20.1i", 0) == " +0" +string.format("%# +20.1i", 1) == " +1" +string.format("%# +20.1i", -1) == " -1" +string.format("%# +20.1i", 2) == " +2" +string.format("%# +20.1i", -2) == " -2" +string.format("%# +20.1i", 3) == " +3" +string.format("%# +20.1i", -3) == " -3" +string.format("%# +20.1i", 100) == " +100" +string.format("%# +20.1i", 10000) == " +10000" +string.format("%# +20.1i", 100000) == " +100000" +string.format("%# +20.1i", 1000000) == " +1000000" +string.format("%# +20.1i", 10000000) == " +10000000" +string.format("%# +20.6i", 0) == " +000000" +string.format("%# +20.6i", 1) == " +000001" +string.format("%# +20.6i", -1) == " -000001" +string.format("%# +20.6i", 2) == " +000002" +string.format("%# +20.6i", -2) == " -000002" +string.format("%# +20.6i", 3) == " +000003" +string.format("%# +20.6i", -3) == " -000003" +string.format("%# +20.6i", 100) == " +000100" +string.format("%# +20.6i", 10000) == " +010000" +string.format("%# +20.6i", 100000) == " +100000" +string.format("%# +20.6i", 1000000) == " +1000000" +string.format("%# +20.6i", 10000000) == " +10000000" +string.format("%# -i", 0) == " 0" +string.format("%# -i", 1) == " 1" +string.format("%# -i", -1) == "-1" +string.format("%# -i", 2) == " 2" +string.format("%# -i", -2) == "-2" +string.format("%# -i", 3) == " 3" +string.format("%# -i", -3) == "-3" +string.format("%# -i", 100) == " 100" +string.format("%# -i", 10000) == " 10000" +string.format("%# -i", 100000) == " 100000" +string.format("%# -i", 1000000) == " 1000000" +string.format("%# -i", 10000000) == " 10000000" +string.format("%# -.0i", 0) == " " +string.format("%# -.6i", 0) == " 000000" +string.format("%# -.6i", 1) == " 000001" +string.format("%# -.6i", -1) == "-000001" +string.format("%# -.6i", 2) == " 000002" +string.format("%# -.6i", -2) == "-000002" +string.format("%# -.6i", 3) == " 000003" +string.format("%# -.6i", -3) == "-000003" +string.format("%# -.6i", 100) == " 000100" +string.format("%# -.6i", 10000) == " 010000" +string.format("%# -1.0i", 0) == " " +string.format("%# -1.6i", 0) == " 000000" +string.format("%# -1.6i", 1) == " 000001" +string.format("%# -1.6i", -1) == "-000001" +string.format("%# -1.6i", 2) == " 000002" +string.format("%# -1.6i", -2) == "-000002" +string.format("%# -1.6i", 3) == " 000003" +string.format("%# -1.6i", -3) == "-000003" +string.format("%# -1.6i", 100) == " 000100" +string.format("%# -1.6i", 10000) == " 010000" +string.format("%# -2.0i", 0) == " " +string.format("%# -2.6i", 0) == " 000000" +string.format("%# -2.6i", 1) == " 000001" +string.format("%# -2.6i", -1) == "-000001" +string.format("%# -2.6i", 2) == " 000002" +string.format("%# -2.6i", -2) == "-000002" +string.format("%# -2.6i", 3) == " 000003" +string.format("%# -2.6i", -3) == "-000003" +string.format("%# -2.6i", 100) == " 000100" +string.format("%# -2.6i", 10000) == " 010000" +string.format("%# -6i", 0) == " 0 " +string.format("%# -6i", 1) == " 1 " +string.format("%# -6i", -1) == "-1 " +string.format("%# -6i", 2) == " 2 " +string.format("%# -6i", -2) == "-2 " +string.format("%# -6i", 3) == " 3 " +string.format("%# -6i", -3) == "-3 " +string.format("%# -6i", 100) == " 100 " +string.format("%# -6.0i", 0) == " " +string.format("%# -6.0i", 1) == " 1 " +string.format("%# -6.0i", -1) == "-1 " +string.format("%# -6.0i", 2) == " 2 " +string.format("%# -6.0i", -2) == "-2 " +string.format("%# -6.0i", 3) == " 3 " +string.format("%# -6.0i", -3) == "-3 " +string.format("%# -6.0i", 100) == " 100 " +string.format("%# -6.1i", 0) == " 0 " +string.format("%# -6.1i", 1) == " 1 " +string.format("%# -6.1i", -1) == "-1 " +string.format("%# -6.1i", 2) == " 2 " +string.format("%# -6.1i", -2) == "-2 " +string.format("%# -6.1i", 3) == " 3 " +string.format("%# -6.1i", -3) == "-3 " +string.format("%# -6.1i", 100) == " 100 " +string.format("%# -6.6i", 0) == " 000000" +string.format("%# -6.6i", 1) == " 000001" +string.format("%# -6.6i", -1) == "-000001" +string.format("%# -6.6i", 2) == " 000002" +string.format("%# -6.6i", -2) == "-000002" +string.format("%# -6.6i", 3) == " 000003" +string.format("%# -6.6i", -3) == "-000003" +string.format("%# -6.6i", 100) == " 000100" +string.format("%# -6.6i", 10000) == " 010000" +string.format("%# -20i", 0) == " 0 " +string.format("%# -20i", 1) == " 1 " +string.format("%# -20i", -1) == "-1 " +string.format("%# -20i", 2) == " 2 " +string.format("%# -20i", -2) == "-2 " +string.format("%# -20i", 3) == " 3 " +string.format("%# -20i", -3) == "-3 " +string.format("%# -20i", 100) == " 100 " +string.format("%# -20i", 10000) == " 10000 " +string.format("%# -20i", 100000) == " 100000 " +string.format("%# -20i", 1000000) == " 1000000 " +string.format("%# -20i", 10000000) == " 10000000 " +string.format("%# -20.0i", 0) == " " +string.format("%# -20.0i", 1) == " 1 " +string.format("%# -20.0i", -1) == "-1 " +string.format("%# -20.0i", 2) == " 2 " +string.format("%# -20.0i", -2) == "-2 " +string.format("%# -20.0i", 3) == " 3 " +string.format("%# -20.0i", -3) == "-3 " +string.format("%# -20.0i", 100) == " 100 " +string.format("%# -20.0i", 10000) == " 10000 " +string.format("%# -20.0i", 100000) == " 100000 " +string.format("%# -20.0i", 1000000) == " 1000000 " +string.format("%# -20.0i", 10000000) == " 10000000 " +string.format("%# -20.1i", 0) == " 0 " +string.format("%# -20.1i", 1) == " 1 " +string.format("%# -20.1i", -1) == "-1 " +string.format("%# -20.1i", 2) == " 2 " +string.format("%# -20.1i", -2) == "-2 " +string.format("%# -20.1i", 3) == " 3 " +string.format("%# -20.1i", -3) == "-3 " +string.format("%# -20.1i", 100) == " 100 " +string.format("%# -20.1i", 10000) == " 10000 " +string.format("%# -20.1i", 100000) == " 100000 " +string.format("%# -20.1i", 1000000) == " 1000000 " +string.format("%# -20.1i", 10000000) == " 10000000 " +string.format("%# -20.6i", 0) == " 000000 " +string.format("%# -20.6i", 1) == " 000001 " +string.format("%# -20.6i", -1) == "-000001 " +string.format("%# -20.6i", 2) == " 000002 " +string.format("%# -20.6i", -2) == "-000002 " +string.format("%# -20.6i", 3) == " 000003 " +string.format("%# -20.6i", -3) == "-000003 " +string.format("%# -20.6i", 100) == " 000100 " +string.format("%# -20.6i", 10000) == " 010000 " +string.format("%# -20.6i", 100000) == " 100000 " +string.format("%# -20.6i", 1000000) == " 1000000 " +string.format("%# -20.6i", 10000000) == " 10000000 " +string.format("%# -+i", 0) == "+0" +string.format("%# -+i", 1) == "+1" +string.format("%# -+i", -1) == "-1" +string.format("%# -+i", 2) == "+2" +string.format("%# -+i", -2) == "-2" +string.format("%# -+i", 3) == "+3" +string.format("%# -+i", -3) == "-3" +string.format("%# -+i", 100) == "+100" +string.format("%# -+i", 10000) == "+10000" +string.format("%# -+i", 100000) == "+100000" +string.format("%# -+i", 1000000) == "+1000000" +string.format("%# -+i", 10000000) == "+10000000" +string.format("%# -+.0i", 0) == "+" +string.format("%# -+.6i", 0) == "+000000" +string.format("%# -+.6i", 1) == "+000001" +string.format("%# -+.6i", -1) == "-000001" +string.format("%# -+.6i", 2) == "+000002" +string.format("%# -+.6i", -2) == "-000002" +string.format("%# -+.6i", 3) == "+000003" +string.format("%# -+.6i", -3) == "-000003" +string.format("%# -+.6i", 100) == "+000100" +string.format("%# -+.6i", 10000) == "+010000" +string.format("%# -+1.0i", 0) == "+" +string.format("%# -+1.6i", 0) == "+000000" +string.format("%# -+1.6i", 1) == "+000001" +string.format("%# -+1.6i", -1) == "-000001" +string.format("%# -+1.6i", 2) == "+000002" +string.format("%# -+1.6i", -2) == "-000002" +string.format("%# -+1.6i", 3) == "+000003" +string.format("%# -+1.6i", -3) == "-000003" +string.format("%# -+1.6i", 100) == "+000100" +string.format("%# -+1.6i", 10000) == "+010000" +string.format("%# -+2.0i", 0) == "+ " +string.format("%# -+2.6i", 0) == "+000000" +string.format("%# -+2.6i", 1) == "+000001" +string.format("%# -+2.6i", -1) == "-000001" +string.format("%# -+2.6i", 2) == "+000002" +string.format("%# -+2.6i", -2) == "-000002" +string.format("%# -+2.6i", 3) == "+000003" +string.format("%# -+2.6i", -3) == "-000003" +string.format("%# -+2.6i", 100) == "+000100" +string.format("%# -+2.6i", 10000) == "+010000" +string.format("%# -+6i", 0) == "+0 " +string.format("%# -+6i", 1) == "+1 " +string.format("%# -+6i", -1) == "-1 " +string.format("%# -+6i", 2) == "+2 " +string.format("%# -+6i", -2) == "-2 " +string.format("%# -+6i", 3) == "+3 " +string.format("%# -+6i", -3) == "-3 " +string.format("%# -+6i", 100) == "+100 " +string.format("%# -+6.0i", 0) == "+ " +string.format("%# -+6.0i", 1) == "+1 " +string.format("%# -+6.0i", -1) == "-1 " +string.format("%# -+6.0i", 2) == "+2 " +string.format("%# -+6.0i", -2) == "-2 " +string.format("%# -+6.0i", 3) == "+3 " +string.format("%# -+6.0i", -3) == "-3 " +string.format("%# -+6.0i", 100) == "+100 " +string.format("%# -+6.1i", 0) == "+0 " +string.format("%# -+6.1i", 1) == "+1 " +string.format("%# -+6.1i", -1) == "-1 " +string.format("%# -+6.1i", 2) == "+2 " +string.format("%# -+6.1i", -2) == "-2 " +string.format("%# -+6.1i", 3) == "+3 " +string.format("%# -+6.1i", -3) == "-3 " +string.format("%# -+6.1i", 100) == "+100 " +string.format("%# -+6.6i", 0) == "+000000" +string.format("%# -+6.6i", 1) == "+000001" +string.format("%# -+6.6i", -1) == "-000001" +string.format("%# -+6.6i", 2) == "+000002" +string.format("%# -+6.6i", -2) == "-000002" +string.format("%# -+6.6i", 3) == "+000003" +string.format("%# -+6.6i", -3) == "-000003" +string.format("%# -+6.6i", 100) == "+000100" +string.format("%# -+6.6i", 10000) == "+010000" +string.format("%# -+20i", 0) == "+0 " +string.format("%# -+20i", 1) == "+1 " +string.format("%# -+20i", -1) == "-1 " +string.format("%# -+20i", 2) == "+2 " +string.format("%# -+20i", -2) == "-2 " +string.format("%# -+20i", 3) == "+3 " +string.format("%# -+20i", -3) == "-3 " +string.format("%# -+20i", 100) == "+100 " +string.format("%# -+20i", 10000) == "+10000 " +string.format("%# -+20i", 100000) == "+100000 " +string.format("%# -+20i", 1000000) == "+1000000 " +string.format("%# -+20i", 10000000) == "+10000000 " +string.format("%# -+20.0i", 0) == "+ " +string.format("%# -+20.0i", 1) == "+1 " +string.format("%# -+20.0i", -1) == "-1 " +string.format("%# -+20.0i", 2) == "+2 " +string.format("%# -+20.0i", -2) == "-2 " +string.format("%# -+20.0i", 3) == "+3 " +string.format("%# -+20.0i", -3) == "-3 " +string.format("%# -+20.0i", 100) == "+100 " +string.format("%# -+20.0i", 10000) == "+10000 " +string.format("%# -+20.0i", 100000) == "+100000 " +string.format("%# -+20.0i", 1000000) == "+1000000 " +string.format("%# -+20.0i", 10000000) == "+10000000 " +string.format("%# -+20.1i", 0) == "+0 " +string.format("%# -+20.1i", 1) == "+1 " +string.format("%# -+20.1i", -1) == "-1 " +string.format("%# -+20.1i", 2) == "+2 " +string.format("%# -+20.1i", -2) == "-2 " +string.format("%# -+20.1i", 3) == "+3 " +string.format("%# -+20.1i", -3) == "-3 " +string.format("%# -+20.1i", 100) == "+100 " +string.format("%# -+20.1i", 10000) == "+10000 " +string.format("%# -+20.1i", 100000) == "+100000 " +string.format("%# -+20.1i", 1000000) == "+1000000 " +string.format("%# -+20.1i", 10000000) == "+10000000 " +string.format("%# -+20.6i", 0) == "+000000 " +string.format("%# -+20.6i", 1) == "+000001 " +string.format("%# -+20.6i", -1) == "-000001 " +string.format("%# -+20.6i", 2) == "+000002 " +string.format("%# -+20.6i", -2) == "-000002 " +string.format("%# -+20.6i", 3) == "+000003 " +string.format("%# -+20.6i", -3) == "-000003 " +string.format("%# -+20.6i", 100) == "+000100 " +string.format("%# -+20.6i", 10000) == "+010000 " +string.format("%# -+20.6i", 100000) == "+100000 " +string.format("%# -+20.6i", 1000000) == "+1000000 " +string.format("%# -+20.6i", 10000000) == "+10000000 " +string.format("%0i", 0) == "0" +string.format("%0i", 1) == "1" +string.format("%0i", -1) == "-1" +string.format("%0i", 2) == "2" +string.format("%0i", -2) == "-2" +string.format("%0i", 3) == "3" +string.format("%0i", -3) == "-3" +string.format("%0i", 100) == "100" +string.format("%0i", 10000) == "10000" +string.format("%0i", 100000) == "100000" +string.format("%0i", 1000000) == "1000000" +string.format("%0i", 10000000) == "10000000" +string.format("%0.0i", 0) == "" +string.format("%0.6i", 0) == "000000" +string.format("%0.6i", 1) == "000001" +string.format("%0.6i", -1) == "-000001" +string.format("%0.6i", 2) == "000002" +string.format("%0.6i", -2) == "-000002" +string.format("%0.6i", 3) == "000003" +string.format("%0.6i", -3) == "-000003" +string.format("%0.6i", 100) == "000100" +string.format("%0.6i", 10000) == "010000" +string.format("%01.0i", 0) == " " +string.format("%01.6i", 0) == "000000" +string.format("%01.6i", 1) == "000001" +string.format("%01.6i", -1) == "-000001" +string.format("%01.6i", 2) == "000002" +string.format("%01.6i", -2) == "-000002" +string.format("%01.6i", 3) == "000003" +string.format("%01.6i", -3) == "-000003" +string.format("%01.6i", 100) == "000100" +string.format("%01.6i", 10000) == "010000" +string.format("%02i", 0) == "00" +string.format("%02i", 1) == "01" +string.format("%02i", 2) == "02" +string.format("%02i", 3) == "03" +string.format("%02.0i", 0) == " " +string.format("%02.0i", 1) == " 1" +string.format("%02.0i", 2) == " 2" +string.format("%02.0i", 3) == " 3" +string.format("%02.1i", 0) == " 0" +string.format("%02.1i", 1) == " 1" +string.format("%02.1i", 2) == " 2" +string.format("%02.1i", 3) == " 3" +string.format("%02.6i", 0) == "000000" +string.format("%02.6i", 1) == "000001" +string.format("%02.6i", -1) == "-000001" +string.format("%02.6i", 2) == "000002" +string.format("%02.6i", -2) == "-000002" +string.format("%02.6i", 3) == "000003" +string.format("%02.6i", -3) == "-000003" +string.format("%02.6i", 100) == "000100" +string.format("%02.6i", 10000) == "010000" +string.format("%06i", 0) == "000000" +string.format("%06i", 1) == "000001" +string.format("%06i", -1) == "-00001" +string.format("%06i", 2) == "000002" +string.format("%06i", -2) == "-00002" +string.format("%06i", 3) == "000003" +string.format("%06i", -3) == "-00003" +string.format("%06i", 100) == "000100" +string.format("%06i", 10000) == "010000" +string.format("%06.0i", 0) == " " +string.format("%06.0i", 1) == " 1" +string.format("%06.0i", -1) == " -1" +string.format("%06.0i", 2) == " 2" +string.format("%06.0i", -2) == " -2" +string.format("%06.0i", 3) == " 3" +string.format("%06.0i", -3) == " -3" +string.format("%06.0i", 100) == " 100" +string.format("%06.0i", 10000) == " 10000" +string.format("%06.1i", 0) == " 0" +string.format("%06.1i", 1) == " 1" +string.format("%06.1i", -1) == " -1" +string.format("%06.1i", 2) == " 2" +string.format("%06.1i", -2) == " -2" +string.format("%06.1i", 3) == " 3" +string.format("%06.1i", -3) == " -3" +string.format("%06.1i", 100) == " 100" +string.format("%06.1i", 10000) == " 10000" +string.format("%06.6i", 0) == "000000" +string.format("%06.6i", 1) == "000001" +string.format("%06.6i", -1) == "-000001" +string.format("%06.6i", 2) == "000002" +string.format("%06.6i", -2) == "-000002" +string.format("%06.6i", 3) == "000003" +string.format("%06.6i", -3) == "-000003" +string.format("%06.6i", 100) == "000100" +string.format("%06.6i", 10000) == "010000" +string.format("%020i", 0) == "00000000000000000000" +string.format("%020i", 1) == "00000000000000000001" +string.format("%020i", -1) == "-0000000000000000001" +string.format("%020i", 2) == "00000000000000000002" +string.format("%020i", -2) == "-0000000000000000002" +string.format("%020i", 3) == "00000000000000000003" +string.format("%020i", -3) == "-0000000000000000003" +string.format("%020i", 100) == "00000000000000000100" +string.format("%020i", 10000) == "00000000000000010000" +string.format("%020i", 100000) == "00000000000000100000" +string.format("%020i", 1000000) == "00000000000001000000" +string.format("%020i", 10000000) == "00000000000010000000" +string.format("%020.0i", 0) == " " +string.format("%020.0i", 1) == " 1" +string.format("%020.0i", -1) == " -1" +string.format("%020.0i", 2) == " 2" +string.format("%020.0i", -2) == " -2" +string.format("%020.0i", 3) == " 3" +string.format("%020.0i", -3) == " -3" +string.format("%020.0i", 100) == " 100" +string.format("%020.0i", 10000) == " 10000" +string.format("%020.0i", 100000) == " 100000" +string.format("%020.0i", 1000000) == " 1000000" +string.format("%020.0i", 10000000) == " 10000000" +string.format("%020.1i", 0) == " 0" +string.format("%020.1i", 1) == " 1" +string.format("%020.1i", -1) == " -1" +string.format("%020.1i", 2) == " 2" +string.format("%020.1i", -2) == " -2" +string.format("%020.1i", 3) == " 3" +string.format("%020.1i", -3) == " -3" +string.format("%020.1i", 100) == " 100" +string.format("%020.1i", 10000) == " 10000" +string.format("%020.1i", 100000) == " 100000" +string.format("%020.1i", 1000000) == " 1000000" +string.format("%020.1i", 10000000) == " 10000000" +string.format("%020.6i", 0) == " 000000" +string.format("%020.6i", 1) == " 000001" +string.format("%020.6i", -1) == " -000001" +string.format("%020.6i", 2) == " 000002" +string.format("%020.6i", -2) == " -000002" +string.format("%020.6i", 3) == " 000003" +string.format("%020.6i", -3) == " -000003" +string.format("%020.6i", 100) == " 000100" +string.format("%020.6i", 10000) == " 010000" +string.format("%020.6i", 100000) == " 100000" +string.format("%020.6i", 1000000) == " 1000000" +string.format("%020.6i", 10000000) == " 10000000" +string.format("%0+i", 0) == "+0" +string.format("%0+i", 1) == "+1" +string.format("%0+i", -1) == "-1" +string.format("%0+i", 2) == "+2" +string.format("%0+i", -2) == "-2" +string.format("%0+i", 3) == "+3" +string.format("%0+i", -3) == "-3" +string.format("%0+i", 100) == "+100" +string.format("%0+i", 10000) == "+10000" +string.format("%0+i", 100000) == "+100000" +string.format("%0+i", 1000000) == "+1000000" +string.format("%0+i", 10000000) == "+10000000" +string.format("%0+.0i", 0) == "+" +string.format("%0+.6i", 0) == "+000000" +string.format("%0+.6i", 1) == "+000001" +string.format("%0+.6i", -1) == "-000001" +string.format("%0+.6i", 2) == "+000002" +string.format("%0+.6i", -2) == "-000002" +string.format("%0+.6i", 3) == "+000003" +string.format("%0+.6i", -3) == "-000003" +string.format("%0+.6i", 100) == "+000100" +string.format("%0+.6i", 10000) == "+010000" +string.format("%0+1.0i", 0) == "+" +string.format("%0+1.6i", 0) == "+000000" +string.format("%0+1.6i", 1) == "+000001" +string.format("%0+1.6i", -1) == "-000001" +string.format("%0+1.6i", 2) == "+000002" +string.format("%0+1.6i", -2) == "-000002" +string.format("%0+1.6i", 3) == "+000003" +string.format("%0+1.6i", -3) == "-000003" +string.format("%0+1.6i", 100) == "+000100" +string.format("%0+1.6i", 10000) == "+010000" +string.format("%0+2.0i", 0) == " +" +string.format("%0+2.6i", 0) == "+000000" +string.format("%0+2.6i", 1) == "+000001" +string.format("%0+2.6i", -1) == "-000001" +string.format("%0+2.6i", 2) == "+000002" +string.format("%0+2.6i", -2) == "-000002" +string.format("%0+2.6i", 3) == "+000003" +string.format("%0+2.6i", -3) == "-000003" +string.format("%0+2.6i", 100) == "+000100" +string.format("%0+2.6i", 10000) == "+010000" +string.format("%0+6i", 0) == "+00000" +string.format("%0+6i", 1) == "+00001" +string.format("%0+6i", -1) == "-00001" +string.format("%0+6i", 2) == "+00002" +string.format("%0+6i", -2) == "-00002" +string.format("%0+6i", 3) == "+00003" +string.format("%0+6i", -3) == "-00003" +string.format("%0+6i", 100) == "+00100" +string.format("%0+6.0i", 0) == " +" +string.format("%0+6.0i", 1) == " +1" +string.format("%0+6.0i", -1) == " -1" +string.format("%0+6.0i", 2) == " +2" +string.format("%0+6.0i", -2) == " -2" +string.format("%0+6.0i", 3) == " +3" +string.format("%0+6.0i", -3) == " -3" +string.format("%0+6.0i", 100) == " +100" +string.format("%0+6.1i", 0) == " +0" +string.format("%0+6.1i", 1) == " +1" +string.format("%0+6.1i", -1) == " -1" +string.format("%0+6.1i", 2) == " +2" +string.format("%0+6.1i", -2) == " -2" +string.format("%0+6.1i", 3) == " +3" +string.format("%0+6.1i", -3) == " -3" +string.format("%0+6.1i", 100) == " +100" +string.format("%0+6.6i", 0) == "+000000" +string.format("%0+6.6i", 1) == "+000001" +string.format("%0+6.6i", -1) == "-000001" +string.format("%0+6.6i", 2) == "+000002" +string.format("%0+6.6i", -2) == "-000002" +string.format("%0+6.6i", 3) == "+000003" +string.format("%0+6.6i", -3) == "-000003" +string.format("%0+6.6i", 100) == "+000100" +string.format("%0+6.6i", 10000) == "+010000" +string.format("%0+20i", 0) == "+0000000000000000000" +string.format("%0+20i", 1) == "+0000000000000000001" +string.format("%0+20i", -1) == "-0000000000000000001" +string.format("%0+20i", 2) == "+0000000000000000002" +string.format("%0+20i", -2) == "-0000000000000000002" +string.format("%0+20i", 3) == "+0000000000000000003" +string.format("%0+20i", -3) == "-0000000000000000003" +string.format("%0+20i", 100) == "+0000000000000000100" +string.format("%0+20i", 10000) == "+0000000000000010000" +string.format("%0+20i", 100000) == "+0000000000000100000" +string.format("%0+20i", 1000000) == "+0000000000001000000" +string.format("%0+20i", 10000000) == "+0000000000010000000" +string.format("%0+20.0i", 0) == " +" +string.format("%0+20.0i", 1) == " +1" +string.format("%0+20.0i", -1) == " -1" +string.format("%0+20.0i", 2) == " +2" +string.format("%0+20.0i", -2) == " -2" +string.format("%0+20.0i", 3) == " +3" +string.format("%0+20.0i", -3) == " -3" +string.format("%0+20.0i", 100) == " +100" +string.format("%0+20.0i", 10000) == " +10000" +string.format("%0+20.0i", 100000) == " +100000" +string.format("%0+20.0i", 1000000) == " +1000000" +string.format("%0+20.0i", 10000000) == " +10000000" +string.format("%0+20.1i", 0) == " +0" +string.format("%0+20.1i", 1) == " +1" +string.format("%0+20.1i", -1) == " -1" +string.format("%0+20.1i", 2) == " +2" +string.format("%0+20.1i", -2) == " -2" +string.format("%0+20.1i", 3) == " +3" +string.format("%0+20.1i", -3) == " -3" +string.format("%0+20.1i", 100) == " +100" +string.format("%0+20.1i", 10000) == " +10000" +string.format("%0+20.1i", 100000) == " +100000" +string.format("%0+20.1i", 1000000) == " +1000000" +string.format("%0+20.1i", 10000000) == " +10000000" +string.format("%0+20.6i", 0) == " +000000" +string.format("%0+20.6i", 1) == " +000001" +string.format("%0+20.6i", -1) == " -000001" +string.format("%0+20.6i", 2) == " +000002" +string.format("%0+20.6i", -2) == " -000002" +string.format("%0+20.6i", 3) == " +000003" +string.format("%0+20.6i", -3) == " -000003" +string.format("%0+20.6i", 100) == " +000100" +string.format("%0+20.6i", 10000) == " +010000" +string.format("%0+20.6i", 100000) == " +100000" +string.format("%0+20.6i", 1000000) == " +1000000" +string.format("%0+20.6i", 10000000) == " +10000000" +string.format("%0-i", 0) == "0" +string.format("%0-i", 1) == "1" +string.format("%0-i", -1) == "-1" +string.format("%0-i", 2) == "2" +string.format("%0-i", -2) == "-2" +string.format("%0-i", 3) == "3" +string.format("%0-i", -3) == "-3" +string.format("%0-i", 100) == "100" +string.format("%0-i", 10000) == "10000" +string.format("%0-i", 100000) == "100000" +string.format("%0-i", 1000000) == "1000000" +string.format("%0-i", 10000000) == "10000000" +string.format("%0-.0i", 0) == "" +string.format("%0-.6i", 0) == "000000" +string.format("%0-.6i", 1) == "000001" +string.format("%0-.6i", -1) == "-000001" +string.format("%0-.6i", 2) == "000002" +string.format("%0-.6i", -2) == "-000002" +string.format("%0-.6i", 3) == "000003" +string.format("%0-.6i", -3) == "-000003" +string.format("%0-.6i", 100) == "000100" +string.format("%0-.6i", 10000) == "010000" +string.format("%0-1.0i", 0) == " " +string.format("%0-1.6i", 0) == "000000" +string.format("%0-1.6i", 1) == "000001" +string.format("%0-1.6i", -1) == "-000001" +string.format("%0-1.6i", 2) == "000002" +string.format("%0-1.6i", -2) == "-000002" +string.format("%0-1.6i", 3) == "000003" +string.format("%0-1.6i", -3) == "-000003" +string.format("%0-1.6i", 100) == "000100" +string.format("%0-1.6i", 10000) == "010000" +string.format("%0-2i", 0) == "0 " +string.format("%0-2i", 1) == "1 " +string.format("%0-2i", 2) == "2 " +string.format("%0-2i", 3) == "3 " +string.format("%0-2.0i", 0) == " " +string.format("%0-2.0i", 1) == "1 " +string.format("%0-2.0i", 2) == "2 " +string.format("%0-2.0i", 3) == "3 " +string.format("%0-2.1i", 0) == "0 " +string.format("%0-2.1i", 1) == "1 " +string.format("%0-2.1i", 2) == "2 " +string.format("%0-2.1i", 3) == "3 " +string.format("%0-2.6i", 0) == "000000" +string.format("%0-2.6i", 1) == "000001" +string.format("%0-2.6i", -1) == "-000001" +string.format("%0-2.6i", 2) == "000002" +string.format("%0-2.6i", -2) == "-000002" +string.format("%0-2.6i", 3) == "000003" +string.format("%0-2.6i", -3) == "-000003" +string.format("%0-2.6i", 100) == "000100" +string.format("%0-2.6i", 10000) == "010000" +string.format("%0-6i", 0) == "0 " +string.format("%0-6i", 1) == "1 " +string.format("%0-6i", -1) == "-1 " +string.format("%0-6i", 2) == "2 " +string.format("%0-6i", -2) == "-2 " +string.format("%0-6i", 3) == "3 " +string.format("%0-6i", -3) == "-3 " +string.format("%0-6i", 100) == "100 " +string.format("%0-6i", 10000) == "10000 " +string.format("%0-6.0i", 0) == " " +string.format("%0-6.0i", 1) == "1 " +string.format("%0-6.0i", -1) == "-1 " +string.format("%0-6.0i", 2) == "2 " +string.format("%0-6.0i", -2) == "-2 " +string.format("%0-6.0i", 3) == "3 " +string.format("%0-6.0i", -3) == "-3 " +string.format("%0-6.0i", 100) == "100 " +string.format("%0-6.0i", 10000) == "10000 " +string.format("%0-6.1i", 0) == "0 " +string.format("%0-6.1i", 1) == "1 " +string.format("%0-6.1i", -1) == "-1 " +string.format("%0-6.1i", 2) == "2 " +string.format("%0-6.1i", -2) == "-2 " +string.format("%0-6.1i", 3) == "3 " +string.format("%0-6.1i", -3) == "-3 " +string.format("%0-6.1i", 100) == "100 " +string.format("%0-6.1i", 10000) == "10000 " +string.format("%0-6.6i", 0) == "000000" +string.format("%0-6.6i", 1) == "000001" +string.format("%0-6.6i", -1) == "-000001" +string.format("%0-6.6i", 2) == "000002" +string.format("%0-6.6i", -2) == "-000002" +string.format("%0-6.6i", 3) == "000003" +string.format("%0-6.6i", -3) == "-000003" +string.format("%0-6.6i", 100) == "000100" +string.format("%0-6.6i", 10000) == "010000" +string.format("%0-20i", 0) == "0 " +string.format("%0-20i", 1) == "1 " +string.format("%0-20i", -1) == "-1 " +string.format("%0-20i", 2) == "2 " +string.format("%0-20i", -2) == "-2 " +string.format("%0-20i", 3) == "3 " +string.format("%0-20i", -3) == "-3 " +string.format("%0-20i", 100) == "100 " +string.format("%0-20i", 10000) == "10000 " +string.format("%0-20i", 100000) == "100000 " +string.format("%0-20i", 1000000) == "1000000 " +string.format("%0-20i", 10000000) == "10000000 " +string.format("%0-20.0i", 0) == " " +string.format("%0-20.0i", 1) == "1 " +string.format("%0-20.0i", -1) == "-1 " +string.format("%0-20.0i", 2) == "2 " +string.format("%0-20.0i", -2) == "-2 " +string.format("%0-20.0i", 3) == "3 " +string.format("%0-20.0i", -3) == "-3 " +string.format("%0-20.0i", 100) == "100 " +string.format("%0-20.0i", 10000) == "10000 " +string.format("%0-20.0i", 100000) == "100000 " +string.format("%0-20.0i", 1000000) == "1000000 " +string.format("%0-20.0i", 10000000) == "10000000 " +string.format("%0-20.1i", 0) == "0 " +string.format("%0-20.1i", 1) == "1 " +string.format("%0-20.1i", -1) == "-1 " +string.format("%0-20.1i", 2) == "2 " +string.format("%0-20.1i", -2) == "-2 " +string.format("%0-20.1i", 3) == "3 " +string.format("%0-20.1i", -3) == "-3 " +string.format("%0-20.1i", 100) == "100 " +string.format("%0-20.1i", 10000) == "10000 " +string.format("%0-20.1i", 100000) == "100000 " +string.format("%0-20.1i", 1000000) == "1000000 " +string.format("%0-20.1i", 10000000) == "10000000 " +string.format("%0-20.6i", 0) == "000000 " +string.format("%0-20.6i", 1) == "000001 " +string.format("%0-20.6i", -1) == "-000001 " +string.format("%0-20.6i", 2) == "000002 " +string.format("%0-20.6i", -2) == "-000002 " +string.format("%0-20.6i", 3) == "000003 " +string.format("%0-20.6i", -3) == "-000003 " +string.format("%0-20.6i", 100) == "000100 " +string.format("%0-20.6i", 10000) == "010000 " +string.format("%0-20.6i", 100000) == "100000 " +string.format("%0-20.6i", 1000000) == "1000000 " +string.format("%0-20.6i", 10000000) == "10000000 " +string.format("%0-+i", 0) == "+0" +string.format("%0-+i", 1) == "+1" +string.format("%0-+i", -1) == "-1" +string.format("%0-+i", 2) == "+2" +string.format("%0-+i", -2) == "-2" +string.format("%0-+i", 3) == "+3" +string.format("%0-+i", -3) == "-3" +string.format("%0-+i", 100) == "+100" +string.format("%0-+i", 10000) == "+10000" +string.format("%0-+i", 100000) == "+100000" +string.format("%0-+i", 1000000) == "+1000000" +string.format("%0-+i", 10000000) == "+10000000" +string.format("%0-+.0i", 0) == "+" +string.format("%0-+.6i", 0) == "+000000" +string.format("%0-+.6i", 1) == "+000001" +string.format("%0-+.6i", -1) == "-000001" +string.format("%0-+.6i", 2) == "+000002" +string.format("%0-+.6i", -2) == "-000002" +string.format("%0-+.6i", 3) == "+000003" +string.format("%0-+.6i", -3) == "-000003" +string.format("%0-+.6i", 100) == "+000100" +string.format("%0-+.6i", 10000) == "+010000" +string.format("%0-+1.0i", 0) == "+" +string.format("%0-+1.6i", 0) == "+000000" +string.format("%0-+1.6i", 1) == "+000001" +string.format("%0-+1.6i", -1) == "-000001" +string.format("%0-+1.6i", 2) == "+000002" +string.format("%0-+1.6i", -2) == "-000002" +string.format("%0-+1.6i", 3) == "+000003" +string.format("%0-+1.6i", -3) == "-000003" +string.format("%0-+1.6i", 100) == "+000100" +string.format("%0-+1.6i", 10000) == "+010000" +string.format("%0-+2.0i", 0) == "+ " +string.format("%0-+2.6i", 0) == "+000000" +string.format("%0-+2.6i", 1) == "+000001" +string.format("%0-+2.6i", -1) == "-000001" +string.format("%0-+2.6i", 2) == "+000002" +string.format("%0-+2.6i", -2) == "-000002" +string.format("%0-+2.6i", 3) == "+000003" +string.format("%0-+2.6i", -3) == "-000003" +string.format("%0-+2.6i", 100) == "+000100" +string.format("%0-+2.6i", 10000) == "+010000" +string.format("%0-+6i", 0) == "+0 " +string.format("%0-+6i", 1) == "+1 " +string.format("%0-+6i", -1) == "-1 " +string.format("%0-+6i", 2) == "+2 " +string.format("%0-+6i", -2) == "-2 " +string.format("%0-+6i", 3) == "+3 " +string.format("%0-+6i", -3) == "-3 " +string.format("%0-+6i", 100) == "+100 " +string.format("%0-+6.0i", 0) == "+ " +string.format("%0-+6.0i", 1) == "+1 " +string.format("%0-+6.0i", -1) == "-1 " +string.format("%0-+6.0i", 2) == "+2 " +string.format("%0-+6.0i", -2) == "-2 " +string.format("%0-+6.0i", 3) == "+3 " +string.format("%0-+6.0i", -3) == "-3 " +string.format("%0-+6.0i", 100) == "+100 " +string.format("%0-+6.1i", 0) == "+0 " +string.format("%0-+6.1i", 1) == "+1 " +string.format("%0-+6.1i", -1) == "-1 " +string.format("%0-+6.1i", 2) == "+2 " +string.format("%0-+6.1i", -2) == "-2 " +string.format("%0-+6.1i", 3) == "+3 " +string.format("%0-+6.1i", -3) == "-3 " +string.format("%0-+6.1i", 100) == "+100 " +string.format("%0-+6.6i", 0) == "+000000" +string.format("%0-+6.6i", 1) == "+000001" +string.format("%0-+6.6i", -1) == "-000001" +string.format("%0-+6.6i", 2) == "+000002" +string.format("%0-+6.6i", -2) == "-000002" +string.format("%0-+6.6i", 3) == "+000003" +string.format("%0-+6.6i", -3) == "-000003" +string.format("%0-+6.6i", 100) == "+000100" +string.format("%0-+6.6i", 10000) == "+010000" +string.format("%0-+20i", 0) == "+0 " +string.format("%0-+20i", 1) == "+1 " +string.format("%0-+20i", -1) == "-1 " +string.format("%0-+20i", 2) == "+2 " +string.format("%0-+20i", -2) == "-2 " +string.format("%0-+20i", 3) == "+3 " +string.format("%0-+20i", -3) == "-3 " +string.format("%0-+20i", 100) == "+100 " +string.format("%0-+20i", 10000) == "+10000 " +string.format("%0-+20i", 100000) == "+100000 " +string.format("%0-+20i", 1000000) == "+1000000 " +string.format("%0-+20i", 10000000) == "+10000000 " +string.format("%0-+20.0i", 0) == "+ " +string.format("%0-+20.0i", 1) == "+1 " +string.format("%0-+20.0i", -1) == "-1 " +string.format("%0-+20.0i", 2) == "+2 " +string.format("%0-+20.0i", -2) == "-2 " +string.format("%0-+20.0i", 3) == "+3 " +string.format("%0-+20.0i", -3) == "-3 " +string.format("%0-+20.0i", 100) == "+100 " +string.format("%0-+20.0i", 10000) == "+10000 " +string.format("%0-+20.0i", 100000) == "+100000 " +string.format("%0-+20.0i", 1000000) == "+1000000 " +string.format("%0-+20.0i", 10000000) == "+10000000 " +string.format("%0-+20.1i", 0) == "+0 " +string.format("%0-+20.1i", 1) == "+1 " +string.format("%0-+20.1i", -1) == "-1 " +string.format("%0-+20.1i", 2) == "+2 " +string.format("%0-+20.1i", -2) == "-2 " +string.format("%0-+20.1i", 3) == "+3 " +string.format("%0-+20.1i", -3) == "-3 " +string.format("%0-+20.1i", 100) == "+100 " +string.format("%0-+20.1i", 10000) == "+10000 " +string.format("%0-+20.1i", 100000) == "+100000 " +string.format("%0-+20.1i", 1000000) == "+1000000 " +string.format("%0-+20.1i", 10000000) == "+10000000 " +string.format("%0-+20.6i", 0) == "+000000 " +string.format("%0-+20.6i", 1) == "+000001 " +string.format("%0-+20.6i", -1) == "-000001 " +string.format("%0-+20.6i", 2) == "+000002 " +string.format("%0-+20.6i", -2) == "-000002 " +string.format("%0-+20.6i", 3) == "+000003 " +string.format("%0-+20.6i", -3) == "-000003 " +string.format("%0-+20.6i", 100) == "+000100 " +string.format("%0-+20.6i", 10000) == "+010000 " +string.format("%0-+20.6i", 100000) == "+100000 " +string.format("%0-+20.6i", 1000000) == "+1000000 " +string.format("%0-+20.6i", 10000000) == "+10000000 " +string.format("%0 i", 0) == " 0" +string.format("%0 i", 1) == " 1" +string.format("%0 i", -1) == "-1" +string.format("%0 i", 2) == " 2" +string.format("%0 i", -2) == "-2" +string.format("%0 i", 3) == " 3" +string.format("%0 i", -3) == "-3" +string.format("%0 i", 100) == " 100" +string.format("%0 i", 10000) == " 10000" +string.format("%0 i", 100000) == " 100000" +string.format("%0 i", 1000000) == " 1000000" +string.format("%0 i", 10000000) == " 10000000" +string.format("%0 .0i", 0) == " " +string.format("%0 .6i", 0) == " 000000" +string.format("%0 .6i", 1) == " 000001" +string.format("%0 .6i", -1) == "-000001" +string.format("%0 .6i", 2) == " 000002" +string.format("%0 .6i", -2) == "-000002" +string.format("%0 .6i", 3) == " 000003" +string.format("%0 .6i", -3) == "-000003" +string.format("%0 .6i", 100) == " 000100" +string.format("%0 .6i", 10000) == " 010000" +string.format("%0 1.0i", 0) == " " +string.format("%0 1.6i", 0) == " 000000" +string.format("%0 1.6i", 1) == " 000001" +string.format("%0 1.6i", -1) == "-000001" +string.format("%0 1.6i", 2) == " 000002" +string.format("%0 1.6i", -2) == "-000002" +string.format("%0 1.6i", 3) == " 000003" +string.format("%0 1.6i", -3) == "-000003" +string.format("%0 1.6i", 100) == " 000100" +string.format("%0 1.6i", 10000) == " 010000" +string.format("%0 2.0i", 0) == " " +string.format("%0 2.6i", 0) == " 000000" +string.format("%0 2.6i", 1) == " 000001" +string.format("%0 2.6i", -1) == "-000001" +string.format("%0 2.6i", 2) == " 000002" +string.format("%0 2.6i", -2) == "-000002" +string.format("%0 2.6i", 3) == " 000003" +string.format("%0 2.6i", -3) == "-000003" +string.format("%0 2.6i", 100) == " 000100" +string.format("%0 2.6i", 10000) == " 010000" +string.format("%0 6i", 0) == " 00000" +string.format("%0 6i", 1) == " 00001" +string.format("%0 6i", -1) == "-00001" +string.format("%0 6i", 2) == " 00002" +string.format("%0 6i", -2) == "-00002" +string.format("%0 6i", 3) == " 00003" +string.format("%0 6i", -3) == "-00003" +string.format("%0 6i", 100) == " 00100" +string.format("%0 6.0i", 0) == " " +string.format("%0 6.0i", 1) == " 1" +string.format("%0 6.0i", -1) == " -1" +string.format("%0 6.0i", 2) == " 2" +string.format("%0 6.0i", -2) == " -2" +string.format("%0 6.0i", 3) == " 3" +string.format("%0 6.0i", -3) == " -3" +string.format("%0 6.0i", 100) == " 100" +string.format("%0 6.1i", 0) == " 0" +string.format("%0 6.1i", 1) == " 1" +string.format("%0 6.1i", -1) == " -1" +string.format("%0 6.1i", 2) == " 2" +string.format("%0 6.1i", -2) == " -2" +string.format("%0 6.1i", 3) == " 3" +string.format("%0 6.1i", -3) == " -3" +string.format("%0 6.1i", 100) == " 100" +string.format("%0 6.6i", 0) == " 000000" +string.format("%0 6.6i", 1) == " 000001" +string.format("%0 6.6i", -1) == "-000001" +string.format("%0 6.6i", 2) == " 000002" +string.format("%0 6.6i", -2) == "-000002" +string.format("%0 6.6i", 3) == " 000003" +string.format("%0 6.6i", -3) == "-000003" +string.format("%0 6.6i", 100) == " 000100" +string.format("%0 6.6i", 10000) == " 010000" +string.format("%0 20i", 0) == " 0000000000000000000" +string.format("%0 20i", 1) == " 0000000000000000001" +string.format("%0 20i", -1) == "-0000000000000000001" +string.format("%0 20i", 2) == " 0000000000000000002" +string.format("%0 20i", -2) == "-0000000000000000002" +string.format("%0 20i", 3) == " 0000000000000000003" +string.format("%0 20i", -3) == "-0000000000000000003" +string.format("%0 20i", 100) == " 0000000000000000100" +string.format("%0 20i", 10000) == " 0000000000000010000" +string.format("%0 20i", 100000) == " 0000000000000100000" +string.format("%0 20i", 1000000) == " 0000000000001000000" +string.format("%0 20i", 10000000) == " 0000000000010000000" +string.format("%0 20.0i", 0) == " " +string.format("%0 20.0i", 1) == " 1" +string.format("%0 20.0i", -1) == " -1" +string.format("%0 20.0i", 2) == " 2" +string.format("%0 20.0i", -2) == " -2" +string.format("%0 20.0i", 3) == " 3" +string.format("%0 20.0i", -3) == " -3" +string.format("%0 20.0i", 100) == " 100" +string.format("%0 20.0i", 10000) == " 10000" +string.format("%0 20.0i", 100000) == " 100000" +string.format("%0 20.0i", 1000000) == " 1000000" +string.format("%0 20.0i", 10000000) == " 10000000" +string.format("%0 20.1i", 0) == " 0" +string.format("%0 20.1i", 1) == " 1" +string.format("%0 20.1i", -1) == " -1" +string.format("%0 20.1i", 2) == " 2" +string.format("%0 20.1i", -2) == " -2" +string.format("%0 20.1i", 3) == " 3" +string.format("%0 20.1i", -3) == " -3" +string.format("%0 20.1i", 100) == " 100" +string.format("%0 20.1i", 10000) == " 10000" +string.format("%0 20.1i", 100000) == " 100000" +string.format("%0 20.1i", 1000000) == " 1000000" +string.format("%0 20.1i", 10000000) == " 10000000" +string.format("%0 20.6i", 0) == " 000000" +string.format("%0 20.6i", 1) == " 000001" +string.format("%0 20.6i", -1) == " -000001" +string.format("%0 20.6i", 2) == " 000002" +string.format("%0 20.6i", -2) == " -000002" +string.format("%0 20.6i", 3) == " 000003" +string.format("%0 20.6i", -3) == " -000003" +string.format("%0 20.6i", 100) == " 000100" +string.format("%0 20.6i", 10000) == " 010000" +string.format("%0 20.6i", 100000) == " 100000" +string.format("%0 20.6i", 1000000) == " 1000000" +string.format("%0 20.6i", 10000000) == " 10000000" +string.format("%0 +i", 0) == "+0" +string.format("%0 +i", 1) == "+1" +string.format("%0 +i", -1) == "-1" +string.format("%0 +i", 2) == "+2" +string.format("%0 +i", -2) == "-2" +string.format("%0 +i", 3) == "+3" +string.format("%0 +i", -3) == "-3" +string.format("%0 +i", 100) == "+100" +string.format("%0 +i", 10000) == "+10000" +string.format("%0 +i", 100000) == "+100000" +string.format("%0 +i", 1000000) == "+1000000" +string.format("%0 +i", 10000000) == "+10000000" +string.format("%0 +.0i", 0) == "+" +string.format("%0 +.6i", 0) == "+000000" +string.format("%0 +.6i", 1) == "+000001" +string.format("%0 +.6i", -1) == "-000001" +string.format("%0 +.6i", 2) == "+000002" +string.format("%0 +.6i", -2) == "-000002" +string.format("%0 +.6i", 3) == "+000003" +string.format("%0 +.6i", -3) == "-000003" +string.format("%0 +.6i", 100) == "+000100" +string.format("%0 +.6i", 10000) == "+010000" +string.format("%0 +1.0i", 0) == "+" +string.format("%0 +1.6i", 0) == "+000000" +string.format("%0 +1.6i", 1) == "+000001" +string.format("%0 +1.6i", -1) == "-000001" +string.format("%0 +1.6i", 2) == "+000002" +string.format("%0 +1.6i", -2) == "-000002" +string.format("%0 +1.6i", 3) == "+000003" +string.format("%0 +1.6i", -3) == "-000003" +string.format("%0 +1.6i", 100) == "+000100" +string.format("%0 +1.6i", 10000) == "+010000" +string.format("%0 +2.0i", 0) == " +" +string.format("%0 +2.6i", 0) == "+000000" +string.format("%0 +2.6i", 1) == "+000001" +string.format("%0 +2.6i", -1) == "-000001" +string.format("%0 +2.6i", 2) == "+000002" +string.format("%0 +2.6i", -2) == "-000002" +string.format("%0 +2.6i", 3) == "+000003" +string.format("%0 +2.6i", -3) == "-000003" +string.format("%0 +2.6i", 100) == "+000100" +string.format("%0 +2.6i", 10000) == "+010000" +string.format("%0 +6i", 0) == "+00000" +string.format("%0 +6i", 1) == "+00001" +string.format("%0 +6i", -1) == "-00001" +string.format("%0 +6i", 2) == "+00002" +string.format("%0 +6i", -2) == "-00002" +string.format("%0 +6i", 3) == "+00003" +string.format("%0 +6i", -3) == "-00003" +string.format("%0 +6i", 100) == "+00100" +string.format("%0 +6.0i", 0) == " +" +string.format("%0 +6.0i", 1) == " +1" +string.format("%0 +6.0i", -1) == " -1" +string.format("%0 +6.0i", 2) == " +2" +string.format("%0 +6.0i", -2) == " -2" +string.format("%0 +6.0i", 3) == " +3" +string.format("%0 +6.0i", -3) == " -3" +string.format("%0 +6.0i", 100) == " +100" +string.format("%0 +6.1i", 0) == " +0" +string.format("%0 +6.1i", 1) == " +1" +string.format("%0 +6.1i", -1) == " -1" +string.format("%0 +6.1i", 2) == " +2" +string.format("%0 +6.1i", -2) == " -2" +string.format("%0 +6.1i", 3) == " +3" +string.format("%0 +6.1i", -3) == " -3" +string.format("%0 +6.1i", 100) == " +100" +string.format("%0 +6.6i", 0) == "+000000" +string.format("%0 +6.6i", 1) == "+000001" +string.format("%0 +6.6i", -1) == "-000001" +string.format("%0 +6.6i", 2) == "+000002" +string.format("%0 +6.6i", -2) == "-000002" +string.format("%0 +6.6i", 3) == "+000003" +string.format("%0 +6.6i", -3) == "-000003" +string.format("%0 +6.6i", 100) == "+000100" +string.format("%0 +6.6i", 10000) == "+010000" +string.format("%0 +20i", 0) == "+0000000000000000000" +string.format("%0 +20i", 1) == "+0000000000000000001" +string.format("%0 +20i", -1) == "-0000000000000000001" +string.format("%0 +20i", 2) == "+0000000000000000002" +string.format("%0 +20i", -2) == "-0000000000000000002" +string.format("%0 +20i", 3) == "+0000000000000000003" +string.format("%0 +20i", -3) == "-0000000000000000003" +string.format("%0 +20i", 100) == "+0000000000000000100" +string.format("%0 +20i", 10000) == "+0000000000000010000" +string.format("%0 +20i", 100000) == "+0000000000000100000" +string.format("%0 +20i", 1000000) == "+0000000000001000000" +string.format("%0 +20i", 10000000) == "+0000000000010000000" +string.format("%0 +20.0i", 0) == " +" +string.format("%0 +20.0i", 1) == " +1" +string.format("%0 +20.0i", -1) == " -1" +string.format("%0 +20.0i", 2) == " +2" +string.format("%0 +20.0i", -2) == " -2" +string.format("%0 +20.0i", 3) == " +3" +string.format("%0 +20.0i", -3) == " -3" +string.format("%0 +20.0i", 100) == " +100" +string.format("%0 +20.0i", 10000) == " +10000" +string.format("%0 +20.0i", 100000) == " +100000" +string.format("%0 +20.0i", 1000000) == " +1000000" +string.format("%0 +20.0i", 10000000) == " +10000000" +string.format("%0 +20.1i", 0) == " +0" +string.format("%0 +20.1i", 1) == " +1" +string.format("%0 +20.1i", -1) == " -1" +string.format("%0 +20.1i", 2) == " +2" +string.format("%0 +20.1i", -2) == " -2" +string.format("%0 +20.1i", 3) == " +3" +string.format("%0 +20.1i", -3) == " -3" +string.format("%0 +20.1i", 100) == " +100" +string.format("%0 +20.1i", 10000) == " +10000" +string.format("%0 +20.1i", 100000) == " +100000" +string.format("%0 +20.1i", 1000000) == " +1000000" +string.format("%0 +20.1i", 10000000) == " +10000000" +string.format("%0 +20.6i", 0) == " +000000" +string.format("%0 +20.6i", 1) == " +000001" +string.format("%0 +20.6i", -1) == " -000001" +string.format("%0 +20.6i", 2) == " +000002" +string.format("%0 +20.6i", -2) == " -000002" +string.format("%0 +20.6i", 3) == " +000003" +string.format("%0 +20.6i", -3) == " -000003" +string.format("%0 +20.6i", 100) == " +000100" +string.format("%0 +20.6i", 10000) == " +010000" +string.format("%0 +20.6i", 100000) == " +100000" +string.format("%0 +20.6i", 1000000) == " +1000000" +string.format("%0 +20.6i", 10000000) == " +10000000" +string.format("%0 -i", 0) == " 0" +string.format("%0 -i", 1) == " 1" +string.format("%0 -i", -1) == "-1" +string.format("%0 -i", 2) == " 2" +string.format("%0 -i", -2) == "-2" +string.format("%0 -i", 3) == " 3" +string.format("%0 -i", -3) == "-3" +string.format("%0 -i", 100) == " 100" +string.format("%0 -i", 10000) == " 10000" +string.format("%0 -i", 100000) == " 100000" +string.format("%0 -i", 1000000) == " 1000000" +string.format("%0 -i", 10000000) == " 10000000" +string.format("%0 -.0i", 0) == " " +string.format("%0 -.6i", 0) == " 000000" +string.format("%0 -.6i", 1) == " 000001" +string.format("%0 -.6i", -1) == "-000001" +string.format("%0 -.6i", 2) == " 000002" +string.format("%0 -.6i", -2) == "-000002" +string.format("%0 -.6i", 3) == " 000003" +string.format("%0 -.6i", -3) == "-000003" +string.format("%0 -.6i", 100) == " 000100" +string.format("%0 -.6i", 10000) == " 010000" +string.format("%0 -1.0i", 0) == " " +string.format("%0 -1.6i", 0) == " 000000" +string.format("%0 -1.6i", 1) == " 000001" +string.format("%0 -1.6i", -1) == "-000001" +string.format("%0 -1.6i", 2) == " 000002" +string.format("%0 -1.6i", -2) == "-000002" +string.format("%0 -1.6i", 3) == " 000003" +string.format("%0 -1.6i", -3) == "-000003" +string.format("%0 -1.6i", 100) == " 000100" +string.format("%0 -1.6i", 10000) == " 010000" +string.format("%0 -2.0i", 0) == " " +string.format("%0 -2.6i", 0) == " 000000" +string.format("%0 -2.6i", 1) == " 000001" +string.format("%0 -2.6i", -1) == "-000001" +string.format("%0 -2.6i", 2) == " 000002" +string.format("%0 -2.6i", -2) == "-000002" +string.format("%0 -2.6i", 3) == " 000003" +string.format("%0 -2.6i", -3) == "-000003" +string.format("%0 -2.6i", 100) == " 000100" +string.format("%0 -2.6i", 10000) == " 010000" +string.format("%0 -6i", 0) == " 0 " +string.format("%0 -6i", 1) == " 1 " +string.format("%0 -6i", -1) == "-1 " +string.format("%0 -6i", 2) == " 2 " +string.format("%0 -6i", -2) == "-2 " +string.format("%0 -6i", 3) == " 3 " +string.format("%0 -6i", -3) == "-3 " +string.format("%0 -6i", 100) == " 100 " +string.format("%0 -6.0i", 0) == " " +string.format("%0 -6.0i", 1) == " 1 " +string.format("%0 -6.0i", -1) == "-1 " +string.format("%0 -6.0i", 2) == " 2 " +string.format("%0 -6.0i", -2) == "-2 " +string.format("%0 -6.0i", 3) == " 3 " +string.format("%0 -6.0i", -3) == "-3 " +string.format("%0 -6.0i", 100) == " 100 " +string.format("%0 -6.1i", 0) == " 0 " +string.format("%0 -6.1i", 1) == " 1 " +string.format("%0 -6.1i", -1) == "-1 " +string.format("%0 -6.1i", 2) == " 2 " +string.format("%0 -6.1i", -2) == "-2 " +string.format("%0 -6.1i", 3) == " 3 " +string.format("%0 -6.1i", -3) == "-3 " +string.format("%0 -6.1i", 100) == " 100 " +string.format("%0 -6.6i", 0) == " 000000" +string.format("%0 -6.6i", 1) == " 000001" +string.format("%0 -6.6i", -1) == "-000001" +string.format("%0 -6.6i", 2) == " 000002" +string.format("%0 -6.6i", -2) == "-000002" +string.format("%0 -6.6i", 3) == " 000003" +string.format("%0 -6.6i", -3) == "-000003" +string.format("%0 -6.6i", 100) == " 000100" +string.format("%0 -6.6i", 10000) == " 010000" +string.format("%0 -20i", 0) == " 0 " +string.format("%0 -20i", 1) == " 1 " +string.format("%0 -20i", -1) == "-1 " +string.format("%0 -20i", 2) == " 2 " +string.format("%0 -20i", -2) == "-2 " +string.format("%0 -20i", 3) == " 3 " +string.format("%0 -20i", -3) == "-3 " +string.format("%0 -20i", 100) == " 100 " +string.format("%0 -20i", 10000) == " 10000 " +string.format("%0 -20i", 100000) == " 100000 " +string.format("%0 -20i", 1000000) == " 1000000 " +string.format("%0 -20i", 10000000) == " 10000000 " +string.format("%0 -20.0i", 0) == " " +string.format("%0 -20.0i", 1) == " 1 " +string.format("%0 -20.0i", -1) == "-1 " +string.format("%0 -20.0i", 2) == " 2 " +string.format("%0 -20.0i", -2) == "-2 " +string.format("%0 -20.0i", 3) == " 3 " +string.format("%0 -20.0i", -3) == "-3 " +string.format("%0 -20.0i", 100) == " 100 " +string.format("%0 -20.0i", 10000) == " 10000 " +string.format("%0 -20.0i", 100000) == " 100000 " +string.format("%0 -20.0i", 1000000) == " 1000000 " +string.format("%0 -20.0i", 10000000) == " 10000000 " +string.format("%0 -20.1i", 0) == " 0 " +string.format("%0 -20.1i", 1) == " 1 " +string.format("%0 -20.1i", -1) == "-1 " +string.format("%0 -20.1i", 2) == " 2 " +string.format("%0 -20.1i", -2) == "-2 " +string.format("%0 -20.1i", 3) == " 3 " +string.format("%0 -20.1i", -3) == "-3 " +string.format("%0 -20.1i", 100) == " 100 " +string.format("%0 -20.1i", 10000) == " 10000 " +string.format("%0 -20.1i", 100000) == " 100000 " +string.format("%0 -20.1i", 1000000) == " 1000000 " +string.format("%0 -20.1i", 10000000) == " 10000000 " +string.format("%0 -20.6i", 0) == " 000000 " +string.format("%0 -20.6i", 1) == " 000001 " +string.format("%0 -20.6i", -1) == "-000001 " +string.format("%0 -20.6i", 2) == " 000002 " +string.format("%0 -20.6i", -2) == "-000002 " +string.format("%0 -20.6i", 3) == " 000003 " +string.format("%0 -20.6i", -3) == "-000003 " +string.format("%0 -20.6i", 100) == " 000100 " +string.format("%0 -20.6i", 10000) == " 010000 " +string.format("%0 -20.6i", 100000) == " 100000 " +string.format("%0 -20.6i", 1000000) == " 1000000 " +string.format("%0 -20.6i", 10000000) == " 10000000 " +string.format("%0 -+i", 0) == "+0" +string.format("%0 -+i", 1) == "+1" +string.format("%0 -+i", -1) == "-1" +string.format("%0 -+i", 2) == "+2" +string.format("%0 -+i", -2) == "-2" +string.format("%0 -+i", 3) == "+3" +string.format("%0 -+i", -3) == "-3" +string.format("%0 -+i", 100) == "+100" +string.format("%0 -+i", 10000) == "+10000" +string.format("%0 -+i", 100000) == "+100000" +string.format("%0 -+i", 1000000) == "+1000000" +string.format("%0 -+i", 10000000) == "+10000000" +string.format("%0 -+.0i", 0) == "+" +string.format("%0 -+.6i", 0) == "+000000" +string.format("%0 -+.6i", 1) == "+000001" +string.format("%0 -+.6i", -1) == "-000001" +string.format("%0 -+.6i", 2) == "+000002" +string.format("%0 -+.6i", -2) == "-000002" +string.format("%0 -+.6i", 3) == "+000003" +string.format("%0 -+.6i", -3) == "-000003" +string.format("%0 -+.6i", 100) == "+000100" +string.format("%0 -+.6i", 10000) == "+010000" +string.format("%0 -+1.0i", 0) == "+" +string.format("%0 -+1.6i", 0) == "+000000" +string.format("%0 -+1.6i", 1) == "+000001" +string.format("%0 -+1.6i", -1) == "-000001" +string.format("%0 -+1.6i", 2) == "+000002" +string.format("%0 -+1.6i", -2) == "-000002" +string.format("%0 -+1.6i", 3) == "+000003" +string.format("%0 -+1.6i", -3) == "-000003" +string.format("%0 -+1.6i", 100) == "+000100" +string.format("%0 -+1.6i", 10000) == "+010000" +string.format("%0 -+2.0i", 0) == "+ " +string.format("%0 -+2.6i", 0) == "+000000" +string.format("%0 -+2.6i", 1) == "+000001" +string.format("%0 -+2.6i", -1) == "-000001" +string.format("%0 -+2.6i", 2) == "+000002" +string.format("%0 -+2.6i", -2) == "-000002" +string.format("%0 -+2.6i", 3) == "+000003" +string.format("%0 -+2.6i", -3) == "-000003" +string.format("%0 -+2.6i", 100) == "+000100" +string.format("%0 -+2.6i", 10000) == "+010000" +string.format("%0 -+6i", 0) == "+0 " +string.format("%0 -+6i", 1) == "+1 " +string.format("%0 -+6i", -1) == "-1 " +string.format("%0 -+6i", 2) == "+2 " +string.format("%0 -+6i", -2) == "-2 " +string.format("%0 -+6i", 3) == "+3 " +string.format("%0 -+6i", -3) == "-3 " +string.format("%0 -+6i", 100) == "+100 " +string.format("%0 -+6.0i", 0) == "+ " +string.format("%0 -+6.0i", 1) == "+1 " +string.format("%0 -+6.0i", -1) == "-1 " +string.format("%0 -+6.0i", 2) == "+2 " +string.format("%0 -+6.0i", -2) == "-2 " +string.format("%0 -+6.0i", 3) == "+3 " +string.format("%0 -+6.0i", -3) == "-3 " +string.format("%0 -+6.0i", 100) == "+100 " +string.format("%0 -+6.1i", 0) == "+0 " +string.format("%0 -+6.1i", 1) == "+1 " +string.format("%0 -+6.1i", -1) == "-1 " +string.format("%0 -+6.1i", 2) == "+2 " +string.format("%0 -+6.1i", -2) == "-2 " +string.format("%0 -+6.1i", 3) == "+3 " +string.format("%0 -+6.1i", -3) == "-3 " +string.format("%0 -+6.1i", 100) == "+100 " +string.format("%0 -+6.6i", 0) == "+000000" +string.format("%0 -+6.6i", 1) == "+000001" +string.format("%0 -+6.6i", -1) == "-000001" +string.format("%0 -+6.6i", 2) == "+000002" +string.format("%0 -+6.6i", -2) == "-000002" +string.format("%0 -+6.6i", 3) == "+000003" +string.format("%0 -+6.6i", -3) == "-000003" +string.format("%0 -+6.6i", 100) == "+000100" +string.format("%0 -+6.6i", 10000) == "+010000" +string.format("%0 -+20i", 0) == "+0 " +string.format("%0 -+20i", 1) == "+1 " +string.format("%0 -+20i", -1) == "-1 " +string.format("%0 -+20i", 2) == "+2 " +string.format("%0 -+20i", -2) == "-2 " +string.format("%0 -+20i", 3) == "+3 " +string.format("%0 -+20i", -3) == "-3 " +string.format("%0 -+20i", 100) == "+100 " +string.format("%0 -+20i", 10000) == "+10000 " +string.format("%0 -+20i", 100000) == "+100000 " +string.format("%0 -+20i", 1000000) == "+1000000 " +string.format("%0 -+20i", 10000000) == "+10000000 " +string.format("%0 -+20.0i", 0) == "+ " +string.format("%0 -+20.0i", 1) == "+1 " +string.format("%0 -+20.0i", -1) == "-1 " +string.format("%0 -+20.0i", 2) == "+2 " +string.format("%0 -+20.0i", -2) == "-2 " +string.format("%0 -+20.0i", 3) == "+3 " +string.format("%0 -+20.0i", -3) == "-3 " +string.format("%0 -+20.0i", 100) == "+100 " +string.format("%0 -+20.0i", 10000) == "+10000 " +string.format("%0 -+20.0i", 100000) == "+100000 " +string.format("%0 -+20.0i", 1000000) == "+1000000 " +string.format("%0 -+20.0i", 10000000) == "+10000000 " +string.format("%0 -+20.1i", 0) == "+0 " +string.format("%0 -+20.1i", 1) == "+1 " +string.format("%0 -+20.1i", -1) == "-1 " +string.format("%0 -+20.1i", 2) == "+2 " +string.format("%0 -+20.1i", -2) == "-2 " +string.format("%0 -+20.1i", 3) == "+3 " +string.format("%0 -+20.1i", -3) == "-3 " +string.format("%0 -+20.1i", 100) == "+100 " +string.format("%0 -+20.1i", 10000) == "+10000 " +string.format("%0 -+20.1i", 100000) == "+100000 " +string.format("%0 -+20.1i", 1000000) == "+1000000 " +string.format("%0 -+20.1i", 10000000) == "+10000000 " +string.format("%0 -+20.6i", 0) == "+000000 " +string.format("%0 -+20.6i", 1) == "+000001 " +string.format("%0 -+20.6i", -1) == "-000001 " +string.format("%0 -+20.6i", 2) == "+000002 " +string.format("%0 -+20.6i", -2) == "-000002 " +string.format("%0 -+20.6i", 3) == "+000003 " +string.format("%0 -+20.6i", -3) == "-000003 " +string.format("%0 -+20.6i", 100) == "+000100 " +string.format("%0 -+20.6i", 10000) == "+010000 " +string.format("%0 -+20.6i", 100000) == "+100000 " +string.format("%0 -+20.6i", 1000000) == "+1000000 " +string.format("%0 -+20.6i", 10000000) == "+10000000 " +string.format("%0#i", 0) == "0" +string.format("%0#i", 1) == "1" +string.format("%0#i", -1) == "-1" +string.format("%0#i", 2) == "2" +string.format("%0#i", -2) == "-2" +string.format("%0#i", 3) == "3" +string.format("%0#i", -3) == "-3" +string.format("%0#i", 100) == "100" +string.format("%0#i", 10000) == "10000" +string.format("%0#i", 100000) == "100000" +string.format("%0#i", 1000000) == "1000000" +string.format("%0#i", 10000000) == "10000000" +string.format("%0#.0i", 0) == "" +string.format("%0#.6i", 0) == "000000" +string.format("%0#.6i", 1) == "000001" +string.format("%0#.6i", -1) == "-000001" +string.format("%0#.6i", 2) == "000002" +string.format("%0#.6i", -2) == "-000002" +string.format("%0#.6i", 3) == "000003" +string.format("%0#.6i", -3) == "-000003" +string.format("%0#.6i", 100) == "000100" +string.format("%0#.6i", 10000) == "010000" +string.format("%0#1.0i", 0) == " " +string.format("%0#1.6i", 0) == "000000" +string.format("%0#1.6i", 1) == "000001" +string.format("%0#1.6i", -1) == "-000001" +string.format("%0#1.6i", 2) == "000002" +string.format("%0#1.6i", -2) == "-000002" +string.format("%0#1.6i", 3) == "000003" +string.format("%0#1.6i", -3) == "-000003" +string.format("%0#1.6i", 100) == "000100" +string.format("%0#1.6i", 10000) == "010000" +string.format("%0#2i", 0) == "00" +string.format("%0#2i", 1) == "01" +string.format("%0#2i", 2) == "02" +string.format("%0#2i", 3) == "03" +string.format("%0#2.0i", 0) == " " +string.format("%0#2.0i", 1) == " 1" +string.format("%0#2.0i", 2) == " 2" +string.format("%0#2.0i", 3) == " 3" +string.format("%0#2.1i", 0) == " 0" +string.format("%0#2.1i", 1) == " 1" +string.format("%0#2.1i", 2) == " 2" +string.format("%0#2.1i", 3) == " 3" +string.format("%0#2.6i", 0) == "000000" +string.format("%0#2.6i", 1) == "000001" +string.format("%0#2.6i", -1) == "-000001" +string.format("%0#2.6i", 2) == "000002" +string.format("%0#2.6i", -2) == "-000002" +string.format("%0#2.6i", 3) == "000003" +string.format("%0#2.6i", -3) == "-000003" +string.format("%0#2.6i", 100) == "000100" +string.format("%0#2.6i", 10000) == "010000" +string.format("%0#6i", 0) == "000000" +string.format("%0#6i", 1) == "000001" +string.format("%0#6i", -1) == "-00001" +string.format("%0#6i", 2) == "000002" +string.format("%0#6i", -2) == "-00002" +string.format("%0#6i", 3) == "000003" +string.format("%0#6i", -3) == "-00003" +string.format("%0#6i", 100) == "000100" +string.format("%0#6i", 10000) == "010000" +string.format("%0#6.0i", 0) == " " +string.format("%0#6.0i", 1) == " 1" +string.format("%0#6.0i", -1) == " -1" +string.format("%0#6.0i", 2) == " 2" +string.format("%0#6.0i", -2) == " -2" +string.format("%0#6.0i", 3) == " 3" +string.format("%0#6.0i", -3) == " -3" +string.format("%0#6.0i", 100) == " 100" +string.format("%0#6.0i", 10000) == " 10000" +string.format("%0#6.1i", 0) == " 0" +string.format("%0#6.1i", 1) == " 1" +string.format("%0#6.1i", -1) == " -1" +string.format("%0#6.1i", 2) == " 2" +string.format("%0#6.1i", -2) == " -2" +string.format("%0#6.1i", 3) == " 3" +string.format("%0#6.1i", -3) == " -3" +string.format("%0#6.1i", 100) == " 100" +string.format("%0#6.1i", 10000) == " 10000" +string.format("%0#6.6i", 0) == "000000" +string.format("%0#6.6i", 1) == "000001" +string.format("%0#6.6i", -1) == "-000001" +string.format("%0#6.6i", 2) == "000002" +string.format("%0#6.6i", -2) == "-000002" +string.format("%0#6.6i", 3) == "000003" +string.format("%0#6.6i", -3) == "-000003" +string.format("%0#6.6i", 100) == "000100" +string.format("%0#6.6i", 10000) == "010000" +string.format("%0#20i", 0) == "00000000000000000000" +string.format("%0#20i", 1) == "00000000000000000001" +string.format("%0#20i", -1) == "-0000000000000000001" +string.format("%0#20i", 2) == "00000000000000000002" +string.format("%0#20i", -2) == "-0000000000000000002" +string.format("%0#20i", 3) == "00000000000000000003" +string.format("%0#20i", -3) == "-0000000000000000003" +string.format("%0#20i", 100) == "00000000000000000100" +string.format("%0#20i", 10000) == "00000000000000010000" +string.format("%0#20i", 100000) == "00000000000000100000" +string.format("%0#20i", 1000000) == "00000000000001000000" +string.format("%0#20i", 10000000) == "00000000000010000000" +string.format("%0#20.0i", 0) == " " +string.format("%0#20.0i", 1) == " 1" +string.format("%0#20.0i", -1) == " -1" +string.format("%0#20.0i", 2) == " 2" +string.format("%0#20.0i", -2) == " -2" +string.format("%0#20.0i", 3) == " 3" +string.format("%0#20.0i", -3) == " -3" +string.format("%0#20.0i", 100) == " 100" +string.format("%0#20.0i", 10000) == " 10000" +string.format("%0#20.0i", 100000) == " 100000" +string.format("%0#20.0i", 1000000) == " 1000000" +string.format("%0#20.0i", 10000000) == " 10000000" +string.format("%0#20.1i", 0) == " 0" +string.format("%0#20.1i", 1) == " 1" +string.format("%0#20.1i", -1) == " -1" +string.format("%0#20.1i", 2) == " 2" +string.format("%0#20.1i", -2) == " -2" +string.format("%0#20.1i", 3) == " 3" +string.format("%0#20.1i", -3) == " -3" +string.format("%0#20.1i", 100) == " 100" +string.format("%0#20.1i", 10000) == " 10000" +string.format("%0#20.1i", 100000) == " 100000" +string.format("%0#20.1i", 1000000) == " 1000000" +string.format("%0#20.1i", 10000000) == " 10000000" +string.format("%0#20.6i", 0) == " 000000" +string.format("%0#20.6i", 1) == " 000001" +string.format("%0#20.6i", -1) == " -000001" +string.format("%0#20.6i", 2) == " 000002" +string.format("%0#20.6i", -2) == " -000002" +string.format("%0#20.6i", 3) == " 000003" +string.format("%0#20.6i", -3) == " -000003" +string.format("%0#20.6i", 100) == " 000100" +string.format("%0#20.6i", 10000) == " 010000" +string.format("%0#20.6i", 100000) == " 100000" +string.format("%0#20.6i", 1000000) == " 1000000" +string.format("%0#20.6i", 10000000) == " 10000000" +string.format("%0#+i", 0) == "+0" +string.format("%0#+i", 1) == "+1" +string.format("%0#+i", -1) == "-1" +string.format("%0#+i", 2) == "+2" +string.format("%0#+i", -2) == "-2" +string.format("%0#+i", 3) == "+3" +string.format("%0#+i", -3) == "-3" +string.format("%0#+i", 100) == "+100" +string.format("%0#+i", 10000) == "+10000" +string.format("%0#+i", 100000) == "+100000" +string.format("%0#+i", 1000000) == "+1000000" +string.format("%0#+i", 10000000) == "+10000000" +string.format("%0#+.0i", 0) == "+" +string.format("%0#+.6i", 0) == "+000000" +string.format("%0#+.6i", 1) == "+000001" +string.format("%0#+.6i", -1) == "-000001" +string.format("%0#+.6i", 2) == "+000002" +string.format("%0#+.6i", -2) == "-000002" +string.format("%0#+.6i", 3) == "+000003" +string.format("%0#+.6i", -3) == "-000003" +string.format("%0#+.6i", 100) == "+000100" +string.format("%0#+.6i", 10000) == "+010000" +string.format("%0#+1.0i", 0) == "+" +string.format("%0#+1.6i", 0) == "+000000" +string.format("%0#+1.6i", 1) == "+000001" +string.format("%0#+1.6i", -1) == "-000001" +string.format("%0#+1.6i", 2) == "+000002" +string.format("%0#+1.6i", -2) == "-000002" +string.format("%0#+1.6i", 3) == "+000003" +string.format("%0#+1.6i", -3) == "-000003" +string.format("%0#+1.6i", 100) == "+000100" +string.format("%0#+1.6i", 10000) == "+010000" +string.format("%0#+2.0i", 0) == " +" +string.format("%0#+2.6i", 0) == "+000000" +string.format("%0#+2.6i", 1) == "+000001" +string.format("%0#+2.6i", -1) == "-000001" +string.format("%0#+2.6i", 2) == "+000002" +string.format("%0#+2.6i", -2) == "-000002" +string.format("%0#+2.6i", 3) == "+000003" +string.format("%0#+2.6i", -3) == "-000003" +string.format("%0#+2.6i", 100) == "+000100" +string.format("%0#+2.6i", 10000) == "+010000" +string.format("%0#+6i", 0) == "+00000" +string.format("%0#+6i", 1) == "+00001" +string.format("%0#+6i", -1) == "-00001" +string.format("%0#+6i", 2) == "+00002" +string.format("%0#+6i", -2) == "-00002" +string.format("%0#+6i", 3) == "+00003" +string.format("%0#+6i", -3) == "-00003" +string.format("%0#+6i", 100) == "+00100" +string.format("%0#+6.0i", 0) == " +" +string.format("%0#+6.0i", 1) == " +1" +string.format("%0#+6.0i", -1) == " -1" +string.format("%0#+6.0i", 2) == " +2" +string.format("%0#+6.0i", -2) == " -2" +string.format("%0#+6.0i", 3) == " +3" +string.format("%0#+6.0i", -3) == " -3" +string.format("%0#+6.0i", 100) == " +100" +string.format("%0#+6.1i", 0) == " +0" +string.format("%0#+6.1i", 1) == " +1" +string.format("%0#+6.1i", -1) == " -1" +string.format("%0#+6.1i", 2) == " +2" +string.format("%0#+6.1i", -2) == " -2" +string.format("%0#+6.1i", 3) == " +3" +string.format("%0#+6.1i", -3) == " -3" +string.format("%0#+6.1i", 100) == " +100" +string.format("%0#+6.6i", 0) == "+000000" +string.format("%0#+6.6i", 1) == "+000001" +string.format("%0#+6.6i", -1) == "-000001" +string.format("%0#+6.6i", 2) == "+000002" +string.format("%0#+6.6i", -2) == "-000002" +string.format("%0#+6.6i", 3) == "+000003" +string.format("%0#+6.6i", -3) == "-000003" +string.format("%0#+6.6i", 100) == "+000100" +string.format("%0#+6.6i", 10000) == "+010000" +string.format("%0#+20i", 0) == "+0000000000000000000" +string.format("%0#+20i", 1) == "+0000000000000000001" +string.format("%0#+20i", -1) == "-0000000000000000001" +string.format("%0#+20i", 2) == "+0000000000000000002" +string.format("%0#+20i", -2) == "-0000000000000000002" +string.format("%0#+20i", 3) == "+0000000000000000003" +string.format("%0#+20i", -3) == "-0000000000000000003" +string.format("%0#+20i", 100) == "+0000000000000000100" +string.format("%0#+20i", 10000) == "+0000000000000010000" +string.format("%0#+20i", 100000) == "+0000000000000100000" +string.format("%0#+20i", 1000000) == "+0000000000001000000" +string.format("%0#+20i", 10000000) == "+0000000000010000000" +string.format("%0#+20.0i", 0) == " +" +string.format("%0#+20.0i", 1) == " +1" +string.format("%0#+20.0i", -1) == " -1" +string.format("%0#+20.0i", 2) == " +2" +string.format("%0#+20.0i", -2) == " -2" +string.format("%0#+20.0i", 3) == " +3" +string.format("%0#+20.0i", -3) == " -3" +string.format("%0#+20.0i", 100) == " +100" +string.format("%0#+20.0i", 10000) == " +10000" +string.format("%0#+20.0i", 100000) == " +100000" +string.format("%0#+20.0i", 1000000) == " +1000000" +string.format("%0#+20.0i", 10000000) == " +10000000" +string.format("%0#+20.1i", 0) == " +0" +string.format("%0#+20.1i", 1) == " +1" +string.format("%0#+20.1i", -1) == " -1" +string.format("%0#+20.1i", 2) == " +2" +string.format("%0#+20.1i", -2) == " -2" +string.format("%0#+20.1i", 3) == " +3" +string.format("%0#+20.1i", -3) == " -3" +string.format("%0#+20.1i", 100) == " +100" +string.format("%0#+20.1i", 10000) == " +10000" +string.format("%0#+20.1i", 100000) == " +100000" +string.format("%0#+20.1i", 1000000) == " +1000000" +string.format("%0#+20.1i", 10000000) == " +10000000" +string.format("%0#+20.6i", 0) == " +000000" +string.format("%0#+20.6i", 1) == " +000001" +string.format("%0#+20.6i", -1) == " -000001" +string.format("%0#+20.6i", 2) == " +000002" +string.format("%0#+20.6i", -2) == " -000002" +string.format("%0#+20.6i", 3) == " +000003" +string.format("%0#+20.6i", -3) == " -000003" +string.format("%0#+20.6i", 100) == " +000100" +string.format("%0#+20.6i", 10000) == " +010000" +string.format("%0#+20.6i", 100000) == " +100000" +string.format("%0#+20.6i", 1000000) == " +1000000" +string.format("%0#+20.6i", 10000000) == " +10000000" +string.format("%0#-i", 0) == "0" +string.format("%0#-i", 1) == "1" +string.format("%0#-i", -1) == "-1" +string.format("%0#-i", 2) == "2" +string.format("%0#-i", -2) == "-2" +string.format("%0#-i", 3) == "3" +string.format("%0#-i", -3) == "-3" +string.format("%0#-i", 100) == "100" +string.format("%0#-i", 10000) == "10000" +string.format("%0#-i", 100000) == "100000" +string.format("%0#-i", 1000000) == "1000000" +string.format("%0#-i", 10000000) == "10000000" +string.format("%0#-.0i", 0) == "" +string.format("%0#-.6i", 0) == "000000" +string.format("%0#-.6i", 1) == "000001" +string.format("%0#-.6i", -1) == "-000001" +string.format("%0#-.6i", 2) == "000002" +string.format("%0#-.6i", -2) == "-000002" +string.format("%0#-.6i", 3) == "000003" +string.format("%0#-.6i", -3) == "-000003" +string.format("%0#-.6i", 100) == "000100" +string.format("%0#-.6i", 10000) == "010000" +string.format("%0#-1.0i", 0) == " " +string.format("%0#-1.6i", 0) == "000000" +string.format("%0#-1.6i", 1) == "000001" +string.format("%0#-1.6i", -1) == "-000001" +string.format("%0#-1.6i", 2) == "000002" +string.format("%0#-1.6i", -2) == "-000002" +string.format("%0#-1.6i", 3) == "000003" +string.format("%0#-1.6i", -3) == "-000003" +string.format("%0#-1.6i", 100) == "000100" +string.format("%0#-1.6i", 10000) == "010000" +string.format("%0#-2i", 0) == "0 " +string.format("%0#-2i", 1) == "1 " +string.format("%0#-2i", 2) == "2 " +string.format("%0#-2i", 3) == "3 " +string.format("%0#-2.0i", 0) == " " +string.format("%0#-2.0i", 1) == "1 " +string.format("%0#-2.0i", 2) == "2 " +string.format("%0#-2.0i", 3) == "3 " +string.format("%0#-2.1i", 0) == "0 " +string.format("%0#-2.1i", 1) == "1 " +string.format("%0#-2.1i", 2) == "2 " +string.format("%0#-2.1i", 3) == "3 " +string.format("%0#-2.6i", 0) == "000000" +string.format("%0#-2.6i", 1) == "000001" +string.format("%0#-2.6i", -1) == "-000001" +string.format("%0#-2.6i", 2) == "000002" +string.format("%0#-2.6i", -2) == "-000002" +string.format("%0#-2.6i", 3) == "000003" +string.format("%0#-2.6i", -3) == "-000003" +string.format("%0#-2.6i", 100) == "000100" +string.format("%0#-2.6i", 10000) == "010000" +string.format("%0#-6i", 0) == "0 " +string.format("%0#-6i", 1) == "1 " +string.format("%0#-6i", -1) == "-1 " +string.format("%0#-6i", 2) == "2 " +string.format("%0#-6i", -2) == "-2 " +string.format("%0#-6i", 3) == "3 " +string.format("%0#-6i", -3) == "-3 " +string.format("%0#-6i", 100) == "100 " +string.format("%0#-6i", 10000) == "10000 " +string.format("%0#-6.0i", 0) == " " +string.format("%0#-6.0i", 1) == "1 " +string.format("%0#-6.0i", -1) == "-1 " +string.format("%0#-6.0i", 2) == "2 " +string.format("%0#-6.0i", -2) == "-2 " +string.format("%0#-6.0i", 3) == "3 " +string.format("%0#-6.0i", -3) == "-3 " +string.format("%0#-6.0i", 100) == "100 " +string.format("%0#-6.0i", 10000) == "10000 " +string.format("%0#-6.1i", 0) == "0 " +string.format("%0#-6.1i", 1) == "1 " +string.format("%0#-6.1i", -1) == "-1 " +string.format("%0#-6.1i", 2) == "2 " +string.format("%0#-6.1i", -2) == "-2 " +string.format("%0#-6.1i", 3) == "3 " +string.format("%0#-6.1i", -3) == "-3 " +string.format("%0#-6.1i", 100) == "100 " +string.format("%0#-6.1i", 10000) == "10000 " +string.format("%0#-6.6i", 0) == "000000" +string.format("%0#-6.6i", 1) == "000001" +string.format("%0#-6.6i", -1) == "-000001" +string.format("%0#-6.6i", 2) == "000002" +string.format("%0#-6.6i", -2) == "-000002" +string.format("%0#-6.6i", 3) == "000003" +string.format("%0#-6.6i", -3) == "-000003" +string.format("%0#-6.6i", 100) == "000100" +string.format("%0#-6.6i", 10000) == "010000" +string.format("%0#-20i", 0) == "0 " +string.format("%0#-20i", 1) == "1 " +string.format("%0#-20i", -1) == "-1 " +string.format("%0#-20i", 2) == "2 " +string.format("%0#-20i", -2) == "-2 " +string.format("%0#-20i", 3) == "3 " +string.format("%0#-20i", -3) == "-3 " +string.format("%0#-20i", 100) == "100 " +string.format("%0#-20i", 10000) == "10000 " +string.format("%0#-20i", 100000) == "100000 " +string.format("%0#-20i", 1000000) == "1000000 " +string.format("%0#-20i", 10000000) == "10000000 " +string.format("%0#-20.0i", 0) == " " +string.format("%0#-20.0i", 1) == "1 " +string.format("%0#-20.0i", -1) == "-1 " +string.format("%0#-20.0i", 2) == "2 " +string.format("%0#-20.0i", -2) == "-2 " +string.format("%0#-20.0i", 3) == "3 " +string.format("%0#-20.0i", -3) == "-3 " +string.format("%0#-20.0i", 100) == "100 " +string.format("%0#-20.0i", 10000) == "10000 " +string.format("%0#-20.0i", 100000) == "100000 " +string.format("%0#-20.0i", 1000000) == "1000000 " +string.format("%0#-20.0i", 10000000) == "10000000 " +string.format("%0#-20.1i", 0) == "0 " +string.format("%0#-20.1i", 1) == "1 " +string.format("%0#-20.1i", -1) == "-1 " +string.format("%0#-20.1i", 2) == "2 " +string.format("%0#-20.1i", -2) == "-2 " +string.format("%0#-20.1i", 3) == "3 " +string.format("%0#-20.1i", -3) == "-3 " +string.format("%0#-20.1i", 100) == "100 " +string.format("%0#-20.1i", 10000) == "10000 " +string.format("%0#-20.1i", 100000) == "100000 " +string.format("%0#-20.1i", 1000000) == "1000000 " +string.format("%0#-20.1i", 10000000) == "10000000 " +string.format("%0#-20.6i", 0) == "000000 " +string.format("%0#-20.6i", 1) == "000001 " +string.format("%0#-20.6i", -1) == "-000001 " +string.format("%0#-20.6i", 2) == "000002 " +string.format("%0#-20.6i", -2) == "-000002 " +string.format("%0#-20.6i", 3) == "000003 " +string.format("%0#-20.6i", -3) == "-000003 " +string.format("%0#-20.6i", 100) == "000100 " +string.format("%0#-20.6i", 10000) == "010000 " +string.format("%0#-20.6i", 100000) == "100000 " +string.format("%0#-20.6i", 1000000) == "1000000 " +string.format("%0#-20.6i", 10000000) == "10000000 " +string.format("%0#-+i", 0) == "+0" +string.format("%0#-+i", 1) == "+1" +string.format("%0#-+i", -1) == "-1" +string.format("%0#-+i", 2) == "+2" +string.format("%0#-+i", -2) == "-2" +string.format("%0#-+i", 3) == "+3" +string.format("%0#-+i", -3) == "-3" +string.format("%0#-+i", 100) == "+100" +string.format("%0#-+i", 10000) == "+10000" +string.format("%0#-+i", 100000) == "+100000" +string.format("%0#-+i", 1000000) == "+1000000" +string.format("%0#-+i", 10000000) == "+10000000" +string.format("%0#-+.0i", 0) == "+" +string.format("%0#-+.6i", 0) == "+000000" +string.format("%0#-+.6i", 1) == "+000001" +string.format("%0#-+.6i", -1) == "-000001" +string.format("%0#-+.6i", 2) == "+000002" +string.format("%0#-+.6i", -2) == "-000002" +string.format("%0#-+.6i", 3) == "+000003" +string.format("%0#-+.6i", -3) == "-000003" +string.format("%0#-+.6i", 100) == "+000100" +string.format("%0#-+.6i", 10000) == "+010000" +string.format("%0#-+1.0i", 0) == "+" +string.format("%0#-+1.6i", 0) == "+000000" +string.format("%0#-+1.6i", 1) == "+000001" +string.format("%0#-+1.6i", -1) == "-000001" +string.format("%0#-+1.6i", 2) == "+000002" +string.format("%0#-+1.6i", -2) == "-000002" +string.format("%0#-+1.6i", 3) == "+000003" +string.format("%0#-+1.6i", -3) == "-000003" +string.format("%0#-+1.6i", 100) == "+000100" +string.format("%0#-+1.6i", 10000) == "+010000" +string.format("%0#-+2.0i", 0) == "+ " +string.format("%0#-+2.6i", 0) == "+000000" +string.format("%0#-+2.6i", 1) == "+000001" +string.format("%0#-+2.6i", -1) == "-000001" +string.format("%0#-+2.6i", 2) == "+000002" +string.format("%0#-+2.6i", -2) == "-000002" +string.format("%0#-+2.6i", 3) == "+000003" +string.format("%0#-+2.6i", -3) == "-000003" +string.format("%0#-+2.6i", 100) == "+000100" +string.format("%0#-+2.6i", 10000) == "+010000" +string.format("%0#-+6i", 0) == "+0 " +string.format("%0#-+6i", 1) == "+1 " +string.format("%0#-+6i", -1) == "-1 " +string.format("%0#-+6i", 2) == "+2 " +string.format("%0#-+6i", -2) == "-2 " +string.format("%0#-+6i", 3) == "+3 " +string.format("%0#-+6i", -3) == "-3 " +string.format("%0#-+6i", 100) == "+100 " +string.format("%0#-+6.0i", 0) == "+ " +string.format("%0#-+6.0i", 1) == "+1 " +string.format("%0#-+6.0i", -1) == "-1 " +string.format("%0#-+6.0i", 2) == "+2 " +string.format("%0#-+6.0i", -2) == "-2 " +string.format("%0#-+6.0i", 3) == "+3 " +string.format("%0#-+6.0i", -3) == "-3 " +string.format("%0#-+6.0i", 100) == "+100 " +string.format("%0#-+6.1i", 0) == "+0 " +string.format("%0#-+6.1i", 1) == "+1 " +string.format("%0#-+6.1i", -1) == "-1 " +string.format("%0#-+6.1i", 2) == "+2 " +string.format("%0#-+6.1i", -2) == "-2 " +string.format("%0#-+6.1i", 3) == "+3 " +string.format("%0#-+6.1i", -3) == "-3 " +string.format("%0#-+6.1i", 100) == "+100 " +string.format("%0#-+6.6i", 0) == "+000000" +string.format("%0#-+6.6i", 1) == "+000001" +string.format("%0#-+6.6i", -1) == "-000001" +string.format("%0#-+6.6i", 2) == "+000002" +string.format("%0#-+6.6i", -2) == "-000002" +string.format("%0#-+6.6i", 3) == "+000003" +string.format("%0#-+6.6i", -3) == "-000003" +string.format("%0#-+6.6i", 100) == "+000100" +string.format("%0#-+6.6i", 10000) == "+010000" +string.format("%0#-+20i", 0) == "+0 " +string.format("%0#-+20i", 1) == "+1 " +string.format("%0#-+20i", -1) == "-1 " +string.format("%0#-+20i", 2) == "+2 " +string.format("%0#-+20i", -2) == "-2 " +string.format("%0#-+20i", 3) == "+3 " +string.format("%0#-+20i", -3) == "-3 " +string.format("%0#-+20i", 100) == "+100 " +string.format("%0#-+20i", 10000) == "+10000 " +string.format("%0#-+20i", 100000) == "+100000 " +string.format("%0#-+20i", 1000000) == "+1000000 " +string.format("%0#-+20i", 10000000) == "+10000000 " +string.format("%0#-+20.0i", 0) == "+ " +string.format("%0#-+20.0i", 1) == "+1 " +string.format("%0#-+20.0i", -1) == "-1 " +string.format("%0#-+20.0i", 2) == "+2 " +string.format("%0#-+20.0i", -2) == "-2 " +string.format("%0#-+20.0i", 3) == "+3 " +string.format("%0#-+20.0i", -3) == "-3 " +string.format("%0#-+20.0i", 100) == "+100 " +string.format("%0#-+20.0i", 10000) == "+10000 " +string.format("%0#-+20.0i", 100000) == "+100000 " +string.format("%0#-+20.0i", 1000000) == "+1000000 " +string.format("%0#-+20.0i", 10000000) == "+10000000 " +string.format("%0#-+20.1i", 0) == "+0 " +string.format("%0#-+20.1i", 1) == "+1 " +string.format("%0#-+20.1i", -1) == "-1 " +string.format("%0#-+20.1i", 2) == "+2 " +string.format("%0#-+20.1i", -2) == "-2 " +string.format("%0#-+20.1i", 3) == "+3 " +string.format("%0#-+20.1i", -3) == "-3 " +string.format("%0#-+20.1i", 100) == "+100 " +string.format("%0#-+20.1i", 10000) == "+10000 " +string.format("%0#-+20.1i", 100000) == "+100000 " +string.format("%0#-+20.1i", 1000000) == "+1000000 " +string.format("%0#-+20.1i", 10000000) == "+10000000 " +string.format("%0#-+20.6i", 0) == "+000000 " +string.format("%0#-+20.6i", 1) == "+000001 " +string.format("%0#-+20.6i", -1) == "-000001 " +string.format("%0#-+20.6i", 2) == "+000002 " +string.format("%0#-+20.6i", -2) == "-000002 " +string.format("%0#-+20.6i", 3) == "+000003 " +string.format("%0#-+20.6i", -3) == "-000003 " +string.format("%0#-+20.6i", 100) == "+000100 " +string.format("%0#-+20.6i", 10000) == "+010000 " +string.format("%0#-+20.6i", 100000) == "+100000 " +string.format("%0#-+20.6i", 1000000) == "+1000000 " +string.format("%0#-+20.6i", 10000000) == "+10000000 " +string.format("%0# i", 0) == " 0" +string.format("%0# i", 1) == " 1" +string.format("%0# i", -1) == "-1" +string.format("%0# i", 2) == " 2" +string.format("%0# i", -2) == "-2" +string.format("%0# i", 3) == " 3" +string.format("%0# i", -3) == "-3" +string.format("%0# i", 100) == " 100" +string.format("%0# i", 10000) == " 10000" +string.format("%0# i", 100000) == " 100000" +string.format("%0# i", 1000000) == " 1000000" +string.format("%0# i", 10000000) == " 10000000" +string.format("%0# .0i", 0) == " " +string.format("%0# .6i", 0) == " 000000" +string.format("%0# .6i", 1) == " 000001" +string.format("%0# .6i", -1) == "-000001" +string.format("%0# .6i", 2) == " 000002" +string.format("%0# .6i", -2) == "-000002" +string.format("%0# .6i", 3) == " 000003" +string.format("%0# .6i", -3) == "-000003" +string.format("%0# .6i", 100) == " 000100" +string.format("%0# .6i", 10000) == " 010000" +string.format("%0# 1.0i", 0) == " " +string.format("%0# 1.6i", 0) == " 000000" +string.format("%0# 1.6i", 1) == " 000001" +string.format("%0# 1.6i", -1) == "-000001" +string.format("%0# 1.6i", 2) == " 000002" +string.format("%0# 1.6i", -2) == "-000002" +string.format("%0# 1.6i", 3) == " 000003" +string.format("%0# 1.6i", -3) == "-000003" +string.format("%0# 1.6i", 100) == " 000100" +string.format("%0# 1.6i", 10000) == " 010000" +string.format("%0# 2.0i", 0) == " " +string.format("%0# 2.6i", 0) == " 000000" +string.format("%0# 2.6i", 1) == " 000001" +string.format("%0# 2.6i", -1) == "-000001" +string.format("%0# 2.6i", 2) == " 000002" +string.format("%0# 2.6i", -2) == "-000002" +string.format("%0# 2.6i", 3) == " 000003" +string.format("%0# 2.6i", -3) == "-000003" +string.format("%0# 2.6i", 100) == " 000100" +string.format("%0# 2.6i", 10000) == " 010000" +string.format("%0# 6i", 0) == " 00000" +string.format("%0# 6i", 1) == " 00001" +string.format("%0# 6i", -1) == "-00001" +string.format("%0# 6i", 2) == " 00002" +string.format("%0# 6i", -2) == "-00002" +string.format("%0# 6i", 3) == " 00003" +string.format("%0# 6i", -3) == "-00003" +string.format("%0# 6i", 100) == " 00100" +string.format("%0# 6.0i", 0) == " " +string.format("%0# 6.0i", 1) == " 1" +string.format("%0# 6.0i", -1) == " -1" +string.format("%0# 6.0i", 2) == " 2" +string.format("%0# 6.0i", -2) == " -2" +string.format("%0# 6.0i", 3) == " 3" +string.format("%0# 6.0i", -3) == " -3" +string.format("%0# 6.0i", 100) == " 100" +string.format("%0# 6.1i", 0) == " 0" +string.format("%0# 6.1i", 1) == " 1" +string.format("%0# 6.1i", -1) == " -1" +string.format("%0# 6.1i", 2) == " 2" +string.format("%0# 6.1i", -2) == " -2" +string.format("%0# 6.1i", 3) == " 3" +string.format("%0# 6.1i", -3) == " -3" +string.format("%0# 6.1i", 100) == " 100" +string.format("%0# 6.6i", 0) == " 000000" +string.format("%0# 6.6i", 1) == " 000001" +string.format("%0# 6.6i", -1) == "-000001" +string.format("%0# 6.6i", 2) == " 000002" +string.format("%0# 6.6i", -2) == "-000002" +string.format("%0# 6.6i", 3) == " 000003" +string.format("%0# 6.6i", -3) == "-000003" +string.format("%0# 6.6i", 100) == " 000100" +string.format("%0# 6.6i", 10000) == " 010000" +string.format("%0# 20i", 0) == " 0000000000000000000" +string.format("%0# 20i", 1) == " 0000000000000000001" +string.format("%0# 20i", -1) == "-0000000000000000001" +string.format("%0# 20i", 2) == " 0000000000000000002" +string.format("%0# 20i", -2) == "-0000000000000000002" +string.format("%0# 20i", 3) == " 0000000000000000003" +string.format("%0# 20i", -3) == "-0000000000000000003" +string.format("%0# 20i", 100) == " 0000000000000000100" +string.format("%0# 20i", 10000) == " 0000000000000010000" +string.format("%0# 20i", 100000) == " 0000000000000100000" +string.format("%0# 20i", 1000000) == " 0000000000001000000" +string.format("%0# 20i", 10000000) == " 0000000000010000000" +string.format("%0# 20.0i", 0) == " " +string.format("%0# 20.0i", 1) == " 1" +string.format("%0# 20.0i", -1) == " -1" +string.format("%0# 20.0i", 2) == " 2" +string.format("%0# 20.0i", -2) == " -2" +string.format("%0# 20.0i", 3) == " 3" +string.format("%0# 20.0i", -3) == " -3" +string.format("%0# 20.0i", 100) == " 100" +string.format("%0# 20.0i", 10000) == " 10000" +string.format("%0# 20.0i", 100000) == " 100000" +string.format("%0# 20.0i", 1000000) == " 1000000" +string.format("%0# 20.0i", 10000000) == " 10000000" +string.format("%0# 20.1i", 0) == " 0" +string.format("%0# 20.1i", 1) == " 1" +string.format("%0# 20.1i", -1) == " -1" +string.format("%0# 20.1i", 2) == " 2" +string.format("%0# 20.1i", -2) == " -2" +string.format("%0# 20.1i", 3) == " 3" +string.format("%0# 20.1i", -3) == " -3" +string.format("%0# 20.1i", 100) == " 100" +string.format("%0# 20.1i", 10000) == " 10000" +string.format("%0# 20.1i", 100000) == " 100000" +string.format("%0# 20.1i", 1000000) == " 1000000" +string.format("%0# 20.1i", 10000000) == " 10000000" +string.format("%0# 20.6i", 0) == " 000000" +string.format("%0# 20.6i", 1) == " 000001" +string.format("%0# 20.6i", -1) == " -000001" +string.format("%0# 20.6i", 2) == " 000002" +string.format("%0# 20.6i", -2) == " -000002" +string.format("%0# 20.6i", 3) == " 000003" +string.format("%0# 20.6i", -3) == " -000003" +string.format("%0# 20.6i", 100) == " 000100" +string.format("%0# 20.6i", 10000) == " 010000" +string.format("%0# 20.6i", 100000) == " 100000" +string.format("%0# 20.6i", 1000000) == " 1000000" +string.format("%0# 20.6i", 10000000) == " 10000000" +string.format("%0# +i", 0) == "+0" +string.format("%0# +i", 1) == "+1" +string.format("%0# +i", -1) == "-1" +string.format("%0# +i", 2) == "+2" +string.format("%0# +i", -2) == "-2" +string.format("%0# +i", 3) == "+3" +string.format("%0# +i", -3) == "-3" +string.format("%0# +i", 100) == "+100" +string.format("%0# +i", 10000) == "+10000" +string.format("%0# +i", 100000) == "+100000" +string.format("%0# +i", 1000000) == "+1000000" +string.format("%0# +i", 10000000) == "+10000000" +string.format("%0# +.0i", 0) == "+" +string.format("%0# +.6i", 0) == "+000000" +string.format("%0# +.6i", 1) == "+000001" +string.format("%0# +.6i", -1) == "-000001" +string.format("%0# +.6i", 2) == "+000002" +string.format("%0# +.6i", -2) == "-000002" +string.format("%0# +.6i", 3) == "+000003" +string.format("%0# +.6i", -3) == "-000003" +string.format("%0# +.6i", 100) == "+000100" +string.format("%0# +.6i", 10000) == "+010000" +string.format("%0# +1.0i", 0) == "+" +string.format("%0# +1.6i", 0) == "+000000" +string.format("%0# +1.6i", 1) == "+000001" +string.format("%0# +1.6i", -1) == "-000001" +string.format("%0# +1.6i", 2) == "+000002" +string.format("%0# +1.6i", -2) == "-000002" +string.format("%0# +1.6i", 3) == "+000003" +string.format("%0# +1.6i", -3) == "-000003" +string.format("%0# +1.6i", 100) == "+000100" +string.format("%0# +1.6i", 10000) == "+010000" +string.format("%0# +2.0i", 0) == " +" +string.format("%0# +2.6i", 0) == "+000000" +string.format("%0# +2.6i", 1) == "+000001" +string.format("%0# +2.6i", -1) == "-000001" +string.format("%0# +2.6i", 2) == "+000002" +string.format("%0# +2.6i", -2) == "-000002" +string.format("%0# +2.6i", 3) == "+000003" +string.format("%0# +2.6i", -3) == "-000003" +string.format("%0# +2.6i", 100) == "+000100" +string.format("%0# +2.6i", 10000) == "+010000" +string.format("%0# +6i", 0) == "+00000" +string.format("%0# +6i", 1) == "+00001" +string.format("%0# +6i", -1) == "-00001" +string.format("%0# +6i", 2) == "+00002" +string.format("%0# +6i", -2) == "-00002" +string.format("%0# +6i", 3) == "+00003" +string.format("%0# +6i", -3) == "-00003" +string.format("%0# +6i", 100) == "+00100" +string.format("%0# +6.0i", 0) == " +" +string.format("%0# +6.0i", 1) == " +1" +string.format("%0# +6.0i", -1) == " -1" +string.format("%0# +6.0i", 2) == " +2" +string.format("%0# +6.0i", -2) == " -2" +string.format("%0# +6.0i", 3) == " +3" +string.format("%0# +6.0i", -3) == " -3" +string.format("%0# +6.0i", 100) == " +100" +string.format("%0# +6.1i", 0) == " +0" +string.format("%0# +6.1i", 1) == " +1" +string.format("%0# +6.1i", -1) == " -1" +string.format("%0# +6.1i", 2) == " +2" +string.format("%0# +6.1i", -2) == " -2" +string.format("%0# +6.1i", 3) == " +3" +string.format("%0# +6.1i", -3) == " -3" +string.format("%0# +6.1i", 100) == " +100" +string.format("%0# +6.6i", 0) == "+000000" +string.format("%0# +6.6i", 1) == "+000001" +string.format("%0# +6.6i", -1) == "-000001" +string.format("%0# +6.6i", 2) == "+000002" +string.format("%0# +6.6i", -2) == "-000002" +string.format("%0# +6.6i", 3) == "+000003" +string.format("%0# +6.6i", -3) == "-000003" +string.format("%0# +6.6i", 100) == "+000100" +string.format("%0# +6.6i", 10000) == "+010000" +string.format("%0# +20i", 0) == "+0000000000000000000" +string.format("%0# +20i", 1) == "+0000000000000000001" +string.format("%0# +20i", -1) == "-0000000000000000001" +string.format("%0# +20i", 2) == "+0000000000000000002" +string.format("%0# +20i", -2) == "-0000000000000000002" +string.format("%0# +20i", 3) == "+0000000000000000003" +string.format("%0# +20i", -3) == "-0000000000000000003" +string.format("%0# +20i", 100) == "+0000000000000000100" +string.format("%0# +20i", 10000) == "+0000000000000010000" +string.format("%0# +20i", 100000) == "+0000000000000100000" +string.format("%0# +20i", 1000000) == "+0000000000001000000" +string.format("%0# +20i", 10000000) == "+0000000000010000000" +string.format("%0# +20.0i", 0) == " +" +string.format("%0# +20.0i", 1) == " +1" +string.format("%0# +20.0i", -1) == " -1" +string.format("%0# +20.0i", 2) == " +2" +string.format("%0# +20.0i", -2) == " -2" +string.format("%0# +20.0i", 3) == " +3" +string.format("%0# +20.0i", -3) == " -3" +string.format("%0# +20.0i", 100) == " +100" +string.format("%0# +20.0i", 10000) == " +10000" +string.format("%0# +20.0i", 100000) == " +100000" +string.format("%0# +20.0i", 1000000) == " +1000000" +string.format("%0# +20.0i", 10000000) == " +10000000" +string.format("%0# +20.1i", 0) == " +0" +string.format("%0# +20.1i", 1) == " +1" +string.format("%0# +20.1i", -1) == " -1" +string.format("%0# +20.1i", 2) == " +2" +string.format("%0# +20.1i", -2) == " -2" +string.format("%0# +20.1i", 3) == " +3" +string.format("%0# +20.1i", -3) == " -3" +string.format("%0# +20.1i", 100) == " +100" +string.format("%0# +20.1i", 10000) == " +10000" +string.format("%0# +20.1i", 100000) == " +100000" +string.format("%0# +20.1i", 1000000) == " +1000000" +string.format("%0# +20.1i", 10000000) == " +10000000" +string.format("%0# +20.6i", 0) == " +000000" +string.format("%0# +20.6i", 1) == " +000001" +string.format("%0# +20.6i", -1) == " -000001" +string.format("%0# +20.6i", 2) == " +000002" +string.format("%0# +20.6i", -2) == " -000002" +string.format("%0# +20.6i", 3) == " +000003" +string.format("%0# +20.6i", -3) == " -000003" +string.format("%0# +20.6i", 100) == " +000100" +string.format("%0# +20.6i", 10000) == " +010000" +string.format("%0# +20.6i", 100000) == " +100000" +string.format("%0# +20.6i", 1000000) == " +1000000" +string.format("%0# +20.6i", 10000000) == " +10000000" +string.format("%0# -i", 0) == " 0" +string.format("%0# -i", 1) == " 1" +string.format("%0# -i", -1) == "-1" +string.format("%0# -i", 2) == " 2" +string.format("%0# -i", -2) == "-2" +string.format("%0# -i", 3) == " 3" +string.format("%0# -i", -3) == "-3" +string.format("%0# -i", 100) == " 100" +string.format("%0# -i", 10000) == " 10000" +string.format("%0# -i", 100000) == " 100000" +string.format("%0# -i", 1000000) == " 1000000" +string.format("%0# -i", 10000000) == " 10000000" +string.format("%0# -.0i", 0) == " " +string.format("%0# -.6i", 0) == " 000000" +string.format("%0# -.6i", 1) == " 000001" +string.format("%0# -.6i", -1) == "-000001" +string.format("%0# -.6i", 2) == " 000002" +string.format("%0# -.6i", -2) == "-000002" +string.format("%0# -.6i", 3) == " 000003" +string.format("%0# -.6i", -3) == "-000003" +string.format("%0# -.6i", 100) == " 000100" +string.format("%0# -.6i", 10000) == " 010000" +string.format("%0# -1.0i", 0) == " " +string.format("%0# -1.6i", 0) == " 000000" +string.format("%0# -1.6i", 1) == " 000001" +string.format("%0# -1.6i", -1) == "-000001" +string.format("%0# -1.6i", 2) == " 000002" +string.format("%0# -1.6i", -2) == "-000002" +string.format("%0# -1.6i", 3) == " 000003" +string.format("%0# -1.6i", -3) == "-000003" +string.format("%0# -1.6i", 100) == " 000100" +string.format("%0# -1.6i", 10000) == " 010000" +string.format("%0# -2.0i", 0) == " " +string.format("%0# -2.6i", 0) == " 000000" +string.format("%0# -2.6i", 1) == " 000001" +string.format("%0# -2.6i", -1) == "-000001" +string.format("%0# -2.6i", 2) == " 000002" +string.format("%0# -2.6i", -2) == "-000002" +string.format("%0# -2.6i", 3) == " 000003" +string.format("%0# -2.6i", -3) == "-000003" +string.format("%0# -2.6i", 100) == " 000100" +string.format("%0# -2.6i", 10000) == " 010000" +string.format("%0# -6i", 0) == " 0 " +string.format("%0# -6i", 1) == " 1 " +string.format("%0# -6i", -1) == "-1 " +string.format("%0# -6i", 2) == " 2 " +string.format("%0# -6i", -2) == "-2 " +string.format("%0# -6i", 3) == " 3 " +string.format("%0# -6i", -3) == "-3 " +string.format("%0# -6i", 100) == " 100 " +string.format("%0# -6.0i", 0) == " " +string.format("%0# -6.0i", 1) == " 1 " +string.format("%0# -6.0i", -1) == "-1 " +string.format("%0# -6.0i", 2) == " 2 " +string.format("%0# -6.0i", -2) == "-2 " +string.format("%0# -6.0i", 3) == " 3 " +string.format("%0# -6.0i", -3) == "-3 " +string.format("%0# -6.0i", 100) == " 100 " +string.format("%0# -6.1i", 0) == " 0 " +string.format("%0# -6.1i", 1) == " 1 " +string.format("%0# -6.1i", -1) == "-1 " +string.format("%0# -6.1i", 2) == " 2 " +string.format("%0# -6.1i", -2) == "-2 " +string.format("%0# -6.1i", 3) == " 3 " +string.format("%0# -6.1i", -3) == "-3 " +string.format("%0# -6.1i", 100) == " 100 " +string.format("%0# -6.6i", 0) == " 000000" +string.format("%0# -6.6i", 1) == " 000001" +string.format("%0# -6.6i", -1) == "-000001" +string.format("%0# -6.6i", 2) == " 000002" +string.format("%0# -6.6i", -2) == "-000002" +string.format("%0# -6.6i", 3) == " 000003" +string.format("%0# -6.6i", -3) == "-000003" +string.format("%0# -6.6i", 100) == " 000100" +string.format("%0# -6.6i", 10000) == " 010000" +string.format("%0# -20i", 0) == " 0 " +string.format("%0# -20i", 1) == " 1 " +string.format("%0# -20i", -1) == "-1 " +string.format("%0# -20i", 2) == " 2 " +string.format("%0# -20i", -2) == "-2 " +string.format("%0# -20i", 3) == " 3 " +string.format("%0# -20i", -3) == "-3 " +string.format("%0# -20i", 100) == " 100 " +string.format("%0# -20i", 10000) == " 10000 " +string.format("%0# -20i", 100000) == " 100000 " +string.format("%0# -20i", 1000000) == " 1000000 " +string.format("%0# -20i", 10000000) == " 10000000 " +string.format("%0# -20.0i", 0) == " " +string.format("%0# -20.0i", 1) == " 1 " +string.format("%0# -20.0i", -1) == "-1 " +string.format("%0# -20.0i", 2) == " 2 " +string.format("%0# -20.0i", -2) == "-2 " +string.format("%0# -20.0i", 3) == " 3 " +string.format("%0# -20.0i", -3) == "-3 " +string.format("%0# -20.0i", 100) == " 100 " +string.format("%0# -20.0i", 10000) == " 10000 " +string.format("%0# -20.0i", 100000) == " 100000 " +string.format("%0# -20.0i", 1000000) == " 1000000 " +string.format("%0# -20.0i", 10000000) == " 10000000 " +string.format("%0# -20.1i", 0) == " 0 " +string.format("%0# -20.1i", 1) == " 1 " +string.format("%0# -20.1i", -1) == "-1 " +string.format("%0# -20.1i", 2) == " 2 " +string.format("%0# -20.1i", -2) == "-2 " +string.format("%0# -20.1i", 3) == " 3 " +string.format("%0# -20.1i", -3) == "-3 " +string.format("%0# -20.1i", 100) == " 100 " +string.format("%0# -20.1i", 10000) == " 10000 " +string.format("%0# -20.1i", 100000) == " 100000 " +string.format("%0# -20.1i", 1000000) == " 1000000 " +string.format("%0# -20.1i", 10000000) == " 10000000 " +string.format("%0# -20.6i", 0) == " 000000 " +string.format("%0# -20.6i", 1) == " 000001 " +string.format("%0# -20.6i", -1) == "-000001 " +string.format("%0# -20.6i", 2) == " 000002 " +string.format("%0# -20.6i", -2) == "-000002 " +string.format("%0# -20.6i", 3) == " 000003 " +string.format("%0# -20.6i", -3) == "-000003 " +string.format("%0# -20.6i", 100) == " 000100 " +string.format("%0# -20.6i", 10000) == " 010000 " +string.format("%0# -20.6i", 100000) == " 100000 " +string.format("%0# -20.6i", 1000000) == " 1000000 " +string.format("%0# -20.6i", 10000000) == " 10000000 " +string.format("%0# -+i", 0) == "+0" +string.format("%0# -+i", 1) == "+1" +string.format("%0# -+i", -1) == "-1" +string.format("%0# -+i", 2) == "+2" +string.format("%0# -+i", -2) == "-2" +string.format("%0# -+i", 3) == "+3" +string.format("%0# -+i", -3) == "-3" +string.format("%0# -+i", 100) == "+100" +string.format("%0# -+i", 10000) == "+10000" +string.format("%0# -+i", 100000) == "+100000" +string.format("%0# -+i", 1000000) == "+1000000" +string.format("%0# -+i", 10000000) == "+10000000" +string.format("%0# -+.0i", 0) == "+" +string.format("%0# -+.6i", 0) == "+000000" +string.format("%0# -+.6i", 1) == "+000001" +string.format("%0# -+.6i", -1) == "-000001" +string.format("%0# -+.6i", 2) == "+000002" +string.format("%0# -+.6i", -2) == "-000002" +string.format("%0# -+.6i", 3) == "+000003" +string.format("%0# -+.6i", -3) == "-000003" +string.format("%0# -+.6i", 100) == "+000100" +string.format("%0# -+.6i", 10000) == "+010000" +string.format("%0# -+1.0i", 0) == "+" +string.format("%0# -+1.6i", 0) == "+000000" +string.format("%0# -+1.6i", 1) == "+000001" +string.format("%0# -+1.6i", -1) == "-000001" +string.format("%0# -+1.6i", 2) == "+000002" +string.format("%0# -+1.6i", -2) == "-000002" +string.format("%0# -+1.6i", 3) == "+000003" +string.format("%0# -+1.6i", -3) == "-000003" +string.format("%0# -+1.6i", 100) == "+000100" +string.format("%0# -+1.6i", 10000) == "+010000" +string.format("%0# -+2.0i", 0) == "+ " +string.format("%0# -+2.6i", 0) == "+000000" +string.format("%0# -+2.6i", 1) == "+000001" +string.format("%0# -+2.6i", -1) == "-000001" +string.format("%0# -+2.6i", 2) == "+000002" +string.format("%0# -+2.6i", -2) == "-000002" +string.format("%0# -+2.6i", 3) == "+000003" +string.format("%0# -+2.6i", -3) == "-000003" +string.format("%0# -+2.6i", 100) == "+000100" +string.format("%0# -+2.6i", 10000) == "+010000" +string.format("%0# -+6i", 0) == "+0 " +string.format("%0# -+6i", 1) == "+1 " +string.format("%0# -+6i", -1) == "-1 " +string.format("%0# -+6i", 2) == "+2 " +string.format("%0# -+6i", -2) == "-2 " +string.format("%0# -+6i", 3) == "+3 " +string.format("%0# -+6i", -3) == "-3 " +string.format("%0# -+6i", 100) == "+100 " +string.format("%0# -+6.0i", 0) == "+ " +string.format("%0# -+6.0i", 1) == "+1 " +string.format("%0# -+6.0i", -1) == "-1 " +string.format("%0# -+6.0i", 2) == "+2 " +string.format("%0# -+6.0i", -2) == "-2 " +string.format("%0# -+6.0i", 3) == "+3 " +string.format("%0# -+6.0i", -3) == "-3 " +string.format("%0# -+6.0i", 100) == "+100 " +string.format("%0# -+6.1i", 0) == "+0 " +string.format("%0# -+6.1i", 1) == "+1 " +string.format("%0# -+6.1i", -1) == "-1 " +string.format("%0# -+6.1i", 2) == "+2 " +string.format("%0# -+6.1i", -2) == "-2 " +string.format("%0# -+6.1i", 3) == "+3 " +string.format("%0# -+6.1i", -3) == "-3 " +string.format("%0# -+6.1i", 100) == "+100 " +string.format("%0# -+6.6i", 0) == "+000000" +string.format("%0# -+6.6i", 1) == "+000001" +string.format("%0# -+6.6i", -1) == "-000001" +string.format("%0# -+6.6i", 2) == "+000002" +string.format("%0# -+6.6i", -2) == "-000002" +string.format("%0# -+6.6i", 3) == "+000003" +string.format("%0# -+6.6i", -3) == "-000003" +string.format("%0# -+6.6i", 100) == "+000100" +string.format("%0# -+6.6i", 10000) == "+010000" +string.format("%0# -+20i", 0) == "+0 " +string.format("%0# -+20i", 1) == "+1 " +string.format("%0# -+20i", -1) == "-1 " +string.format("%0# -+20i", 2) == "+2 " +string.format("%0# -+20i", -2) == "-2 " +string.format("%0# -+20i", 3) == "+3 " +string.format("%0# -+20i", -3) == "-3 " +string.format("%0# -+20i", 100) == "+100 " +string.format("%0# -+20i", 10000) == "+10000 " +string.format("%0# -+20i", 100000) == "+100000 " +string.format("%0# -+20i", 1000000) == "+1000000 " +string.format("%0# -+20i", 10000000) == "+10000000 " +string.format("%0# -+20.0i", 0) == "+ " +string.format("%0# -+20.0i", 1) == "+1 " +string.format("%0# -+20.0i", -1) == "-1 " +string.format("%0# -+20.0i", 2) == "+2 " +string.format("%0# -+20.0i", -2) == "-2 " +string.format("%0# -+20.0i", 3) == "+3 " +string.format("%0# -+20.0i", -3) == "-3 " +string.format("%0# -+20.0i", 100) == "+100 " +string.format("%0# -+20.0i", 10000) == "+10000 " +string.format("%0# -+20.0i", 100000) == "+100000 " +string.format("%0# -+20.0i", 1000000) == "+1000000 " +string.format("%0# -+20.0i", 10000000) == "+10000000 " +string.format("%0# -+20.1i", 0) == "+0 " +string.format("%0# -+20.1i", 1) == "+1 " +string.format("%0# -+20.1i", -1) == "-1 " +string.format("%0# -+20.1i", 2) == "+2 " +string.format("%0# -+20.1i", -2) == "-2 " +string.format("%0# -+20.1i", 3) == "+3 " +string.format("%0# -+20.1i", -3) == "-3 " +string.format("%0# -+20.1i", 100) == "+100 " +string.format("%0# -+20.1i", 10000) == "+10000 " +string.format("%0# -+20.1i", 100000) == "+100000 " +string.format("%0# -+20.1i", 1000000) == "+1000000 " +string.format("%0# -+20.1i", 10000000) == "+10000000 " +string.format("%0# -+20.6i", 0) == "+000000 " +string.format("%0# -+20.6i", 1) == "+000001 " +string.format("%0# -+20.6i", -1) == "-000001 " +string.format("%0# -+20.6i", 2) == "+000002 " +string.format("%0# -+20.6i", -2) == "-000002 " +string.format("%0# -+20.6i", 3) == "+000003 " +string.format("%0# -+20.6i", -3) == "-000003 " +string.format("%0# -+20.6i", 100) == "+000100 " +string.format("%0# -+20.6i", 10000) == "+010000 " +string.format("%0# -+20.6i", 100000) == "+100000 " +string.format("%0# -+20.6i", 1000000) == "+1000000 " +string.format("%0# -+20.6i", 10000000) == "+10000000 " += d = +string.format("%d", 0) == "0" +string.format("%d", 1) == "1" +string.format("%d", -1) == "-1" +string.format("%d", 2) == "2" +string.format("%d", -2) == "-2" +string.format("%d", 3) == "3" +string.format("%d", -3) == "-3" +string.format("%d", 100) == "100" +string.format("%d", 10000) == "10000" +string.format("%d", 100000) == "100000" +string.format("%d", 1000000) == "1000000" +string.format("%d", 10000000) == "10000000" +string.format("%.0d", 0) == "" +string.format("%.6d", 0) == "000000" +string.format("%.6d", 1) == "000001" +string.format("%.6d", -1) == "-000001" +string.format("%.6d", 2) == "000002" +string.format("%.6d", -2) == "-000002" +string.format("%.6d", 3) == "000003" +string.format("%.6d", -3) == "-000003" +string.format("%.6d", 100) == "000100" +string.format("%.6d", 10000) == "010000" +string.format("%1.0d", 0) == " " +string.format("%1.6d", 0) == "000000" +string.format("%1.6d", 1) == "000001" +string.format("%1.6d", -1) == "-000001" +string.format("%1.6d", 2) == "000002" +string.format("%1.6d", -2) == "-000002" +string.format("%1.6d", 3) == "000003" +string.format("%1.6d", -3) == "-000003" +string.format("%1.6d", 100) == "000100" +string.format("%1.6d", 10000) == "010000" +string.format("%2d", 0) == " 0" +string.format("%2d", 1) == " 1" +string.format("%2d", 2) == " 2" +string.format("%2d", 3) == " 3" +string.format("%2.0d", 0) == " " +string.format("%2.0d", 1) == " 1" +string.format("%2.0d", 2) == " 2" +string.format("%2.0d", 3) == " 3" +string.format("%2.1d", 0) == " 0" +string.format("%2.1d", 1) == " 1" +string.format("%2.1d", 2) == " 2" +string.format("%2.1d", 3) == " 3" +string.format("%2.6d", 0) == "000000" +string.format("%2.6d", 1) == "000001" +string.format("%2.6d", -1) == "-000001" +string.format("%2.6d", 2) == "000002" +string.format("%2.6d", -2) == "-000002" +string.format("%2.6d", 3) == "000003" +string.format("%2.6d", -3) == "-000003" +string.format("%2.6d", 100) == "000100" +string.format("%2.6d", 10000) == "010000" +string.format("%6d", 0) == " 0" +string.format("%6d", 1) == " 1" +string.format("%6d", -1) == " -1" +string.format("%6d", 2) == " 2" +string.format("%6d", -2) == " -2" +string.format("%6d", 3) == " 3" +string.format("%6d", -3) == " -3" +string.format("%6d", 100) == " 100" +string.format("%6d", 10000) == " 10000" +string.format("%6.0d", 0) == " " +string.format("%6.0d", 1) == " 1" +string.format("%6.0d", -1) == " -1" +string.format("%6.0d", 2) == " 2" +string.format("%6.0d", -2) == " -2" +string.format("%6.0d", 3) == " 3" +string.format("%6.0d", -3) == " -3" +string.format("%6.0d", 100) == " 100" +string.format("%6.0d", 10000) == " 10000" +string.format("%6.1d", 0) == " 0" +string.format("%6.1d", 1) == " 1" +string.format("%6.1d", -1) == " -1" +string.format("%6.1d", 2) == " 2" +string.format("%6.1d", -2) == " -2" +string.format("%6.1d", 3) == " 3" +string.format("%6.1d", -3) == " -3" +string.format("%6.1d", 100) == " 100" +string.format("%6.1d", 10000) == " 10000" +string.format("%6.6d", 0) == "000000" +string.format("%6.6d", 1) == "000001" +string.format("%6.6d", -1) == "-000001" +string.format("%6.6d", 2) == "000002" +string.format("%6.6d", -2) == "-000002" +string.format("%6.6d", 3) == "000003" +string.format("%6.6d", -3) == "-000003" +string.format("%6.6d", 100) == "000100" +string.format("%6.6d", 10000) == "010000" +string.format("%20d", 0) == " 0" +string.format("%20d", 1) == " 1" +string.format("%20d", -1) == " -1" +string.format("%20d", 2) == " 2" +string.format("%20d", -2) == " -2" +string.format("%20d", 3) == " 3" +string.format("%20d", -3) == " -3" +string.format("%20d", 100) == " 100" +string.format("%20d", 10000) == " 10000" +string.format("%20d", 100000) == " 100000" +string.format("%20d", 1000000) == " 1000000" +string.format("%20d", 10000000) == " 10000000" +string.format("%20.0d", 0) == " " +string.format("%20.0d", 1) == " 1" +string.format("%20.0d", -1) == " -1" +string.format("%20.0d", 2) == " 2" +string.format("%20.0d", -2) == " -2" +string.format("%20.0d", 3) == " 3" +string.format("%20.0d", -3) == " -3" +string.format("%20.0d", 100) == " 100" +string.format("%20.0d", 10000) == " 10000" +string.format("%20.0d", 100000) == " 100000" +string.format("%20.0d", 1000000) == " 1000000" +string.format("%20.0d", 10000000) == " 10000000" +string.format("%20.1d", 0) == " 0" +string.format("%20.1d", 1) == " 1" +string.format("%20.1d", -1) == " -1" +string.format("%20.1d", 2) == " 2" +string.format("%20.1d", -2) == " -2" +string.format("%20.1d", 3) == " 3" +string.format("%20.1d", -3) == " -3" +string.format("%20.1d", 100) == " 100" +string.format("%20.1d", 10000) == " 10000" +string.format("%20.1d", 100000) == " 100000" +string.format("%20.1d", 1000000) == " 1000000" +string.format("%20.1d", 10000000) == " 10000000" +string.format("%20.6d", 0) == " 000000" +string.format("%20.6d", 1) == " 000001" +string.format("%20.6d", -1) == " -000001" +string.format("%20.6d", 2) == " 000002" +string.format("%20.6d", -2) == " -000002" +string.format("%20.6d", 3) == " 000003" +string.format("%20.6d", -3) == " -000003" +string.format("%20.6d", 100) == " 000100" +string.format("%20.6d", 10000) == " 010000" +string.format("%20.6d", 100000) == " 100000" +string.format("%20.6d", 1000000) == " 1000000" +string.format("%20.6d", 10000000) == " 10000000" +string.format("%+d", 0) == "+0" +string.format("%+d", 1) == "+1" +string.format("%+d", -1) == "-1" +string.format("%+d", 2) == "+2" +string.format("%+d", -2) == "-2" +string.format("%+d", 3) == "+3" +string.format("%+d", -3) == "-3" +string.format("%+d", 100) == "+100" +string.format("%+d", 10000) == "+10000" +string.format("%+d", 100000) == "+100000" +string.format("%+d", 1000000) == "+1000000" +string.format("%+d", 10000000) == "+10000000" +string.format("%+.0d", 0) == "+" +string.format("%+.6d", 0) == "+000000" +string.format("%+.6d", 1) == "+000001" +string.format("%+.6d", -1) == "-000001" +string.format("%+.6d", 2) == "+000002" +string.format("%+.6d", -2) == "-000002" +string.format("%+.6d", 3) == "+000003" +string.format("%+.6d", -3) == "-000003" +string.format("%+.6d", 100) == "+000100" +string.format("%+.6d", 10000) == "+010000" +string.format("%+1.0d", 0) == "+" +string.format("%+1.6d", 0) == "+000000" +string.format("%+1.6d", 1) == "+000001" +string.format("%+1.6d", -1) == "-000001" +string.format("%+1.6d", 2) == "+000002" +string.format("%+1.6d", -2) == "-000002" +string.format("%+1.6d", 3) == "+000003" +string.format("%+1.6d", -3) == "-000003" +string.format("%+1.6d", 100) == "+000100" +string.format("%+1.6d", 10000) == "+010000" +string.format("%+2.0d", 0) == " +" +string.format("%+2.6d", 0) == "+000000" +string.format("%+2.6d", 1) == "+000001" +string.format("%+2.6d", -1) == "-000001" +string.format("%+2.6d", 2) == "+000002" +string.format("%+2.6d", -2) == "-000002" +string.format("%+2.6d", 3) == "+000003" +string.format("%+2.6d", -3) == "-000003" +string.format("%+2.6d", 100) == "+000100" +string.format("%+2.6d", 10000) == "+010000" +string.format("%+6d", 0) == " +0" +string.format("%+6d", 1) == " +1" +string.format("%+6d", -1) == " -1" +string.format("%+6d", 2) == " +2" +string.format("%+6d", -2) == " -2" +string.format("%+6d", 3) == " +3" +string.format("%+6d", -3) == " -3" +string.format("%+6d", 100) == " +100" +string.format("%+6.0d", 0) == " +" +string.format("%+6.0d", 1) == " +1" +string.format("%+6.0d", -1) == " -1" +string.format("%+6.0d", 2) == " +2" +string.format("%+6.0d", -2) == " -2" +string.format("%+6.0d", 3) == " +3" +string.format("%+6.0d", -3) == " -3" +string.format("%+6.0d", 100) == " +100" +string.format("%+6.1d", 0) == " +0" +string.format("%+6.1d", 1) == " +1" +string.format("%+6.1d", -1) == " -1" +string.format("%+6.1d", 2) == " +2" +string.format("%+6.1d", -2) == " -2" +string.format("%+6.1d", 3) == " +3" +string.format("%+6.1d", -3) == " -3" +string.format("%+6.1d", 100) == " +100" +string.format("%+6.6d", 0) == "+000000" +string.format("%+6.6d", 1) == "+000001" +string.format("%+6.6d", -1) == "-000001" +string.format("%+6.6d", 2) == "+000002" +string.format("%+6.6d", -2) == "-000002" +string.format("%+6.6d", 3) == "+000003" +string.format("%+6.6d", -3) == "-000003" +string.format("%+6.6d", 100) == "+000100" +string.format("%+6.6d", 10000) == "+010000" +string.format("%+20d", 0) == " +0" +string.format("%+20d", 1) == " +1" +string.format("%+20d", -1) == " -1" +string.format("%+20d", 2) == " +2" +string.format("%+20d", -2) == " -2" +string.format("%+20d", 3) == " +3" +string.format("%+20d", -3) == " -3" +string.format("%+20d", 100) == " +100" +string.format("%+20d", 10000) == " +10000" +string.format("%+20d", 100000) == " +100000" +string.format("%+20d", 1000000) == " +1000000" +string.format("%+20d", 10000000) == " +10000000" +string.format("%+20.0d", 0) == " +" +string.format("%+20.0d", 1) == " +1" +string.format("%+20.0d", -1) == " -1" +string.format("%+20.0d", 2) == " +2" +string.format("%+20.0d", -2) == " -2" +string.format("%+20.0d", 3) == " +3" +string.format("%+20.0d", -3) == " -3" +string.format("%+20.0d", 100) == " +100" +string.format("%+20.0d", 10000) == " +10000" +string.format("%+20.0d", 100000) == " +100000" +string.format("%+20.0d", 1000000) == " +1000000" +string.format("%+20.0d", 10000000) == " +10000000" +string.format("%+20.1d", 0) == " +0" +string.format("%+20.1d", 1) == " +1" +string.format("%+20.1d", -1) == " -1" +string.format("%+20.1d", 2) == " +2" +string.format("%+20.1d", -2) == " -2" +string.format("%+20.1d", 3) == " +3" +string.format("%+20.1d", -3) == " -3" +string.format("%+20.1d", 100) == " +100" +string.format("%+20.1d", 10000) == " +10000" +string.format("%+20.1d", 100000) == " +100000" +string.format("%+20.1d", 1000000) == " +1000000" +string.format("%+20.1d", 10000000) == " +10000000" +string.format("%+20.6d", 0) == " +000000" +string.format("%+20.6d", 1) == " +000001" +string.format("%+20.6d", -1) == " -000001" +string.format("%+20.6d", 2) == " +000002" +string.format("%+20.6d", -2) == " -000002" +string.format("%+20.6d", 3) == " +000003" +string.format("%+20.6d", -3) == " -000003" +string.format("%+20.6d", 100) == " +000100" +string.format("%+20.6d", 10000) == " +010000" +string.format("%+20.6d", 100000) == " +100000" +string.format("%+20.6d", 1000000) == " +1000000" +string.format("%+20.6d", 10000000) == " +10000000" +string.format("%-d", 0) == "0" +string.format("%-d", 1) == "1" +string.format("%-d", -1) == "-1" +string.format("%-d", 2) == "2" +string.format("%-d", -2) == "-2" +string.format("%-d", 3) == "3" +string.format("%-d", -3) == "-3" +string.format("%-d", 100) == "100" +string.format("%-d", 10000) == "10000" +string.format("%-d", 100000) == "100000" +string.format("%-d", 1000000) == "1000000" +string.format("%-d", 10000000) == "10000000" +string.format("%-.0d", 0) == "" +string.format("%-.6d", 0) == "000000" +string.format("%-.6d", 1) == "000001" +string.format("%-.6d", -1) == "-000001" +string.format("%-.6d", 2) == "000002" +string.format("%-.6d", -2) == "-000002" +string.format("%-.6d", 3) == "000003" +string.format("%-.6d", -3) == "-000003" +string.format("%-.6d", 100) == "000100" +string.format("%-.6d", 10000) == "010000" +string.format("%-1.0d", 0) == " " +string.format("%-1.6d", 0) == "000000" +string.format("%-1.6d", 1) == "000001" +string.format("%-1.6d", -1) == "-000001" +string.format("%-1.6d", 2) == "000002" +string.format("%-1.6d", -2) == "-000002" +string.format("%-1.6d", 3) == "000003" +string.format("%-1.6d", -3) == "-000003" +string.format("%-1.6d", 100) == "000100" +string.format("%-1.6d", 10000) == "010000" +string.format("%-2d", 0) == "0 " +string.format("%-2d", 1) == "1 " +string.format("%-2d", 2) == "2 " +string.format("%-2d", 3) == "3 " +string.format("%-2.0d", 0) == " " +string.format("%-2.0d", 1) == "1 " +string.format("%-2.0d", 2) == "2 " +string.format("%-2.0d", 3) == "3 " +string.format("%-2.1d", 0) == "0 " +string.format("%-2.1d", 1) == "1 " +string.format("%-2.1d", 2) == "2 " +string.format("%-2.1d", 3) == "3 " +string.format("%-2.6d", 0) == "000000" +string.format("%-2.6d", 1) == "000001" +string.format("%-2.6d", -1) == "-000001" +string.format("%-2.6d", 2) == "000002" +string.format("%-2.6d", -2) == "-000002" +string.format("%-2.6d", 3) == "000003" +string.format("%-2.6d", -3) == "-000003" +string.format("%-2.6d", 100) == "000100" +string.format("%-2.6d", 10000) == "010000" +string.format("%-6d", 0) == "0 " +string.format("%-6d", 1) == "1 " +string.format("%-6d", -1) == "-1 " +string.format("%-6d", 2) == "2 " +string.format("%-6d", -2) == "-2 " +string.format("%-6d", 3) == "3 " +string.format("%-6d", -3) == "-3 " +string.format("%-6d", 100) == "100 " +string.format("%-6d", 10000) == "10000 " +string.format("%-6.0d", 0) == " " +string.format("%-6.0d", 1) == "1 " +string.format("%-6.0d", -1) == "-1 " +string.format("%-6.0d", 2) == "2 " +string.format("%-6.0d", -2) == "-2 " +string.format("%-6.0d", 3) == "3 " +string.format("%-6.0d", -3) == "-3 " +string.format("%-6.0d", 100) == "100 " +string.format("%-6.0d", 10000) == "10000 " +string.format("%-6.1d", 0) == "0 " +string.format("%-6.1d", 1) == "1 " +string.format("%-6.1d", -1) == "-1 " +string.format("%-6.1d", 2) == "2 " +string.format("%-6.1d", -2) == "-2 " +string.format("%-6.1d", 3) == "3 " +string.format("%-6.1d", -3) == "-3 " +string.format("%-6.1d", 100) == "100 " +string.format("%-6.1d", 10000) == "10000 " +string.format("%-6.6d", 0) == "000000" +string.format("%-6.6d", 1) == "000001" +string.format("%-6.6d", -1) == "-000001" +string.format("%-6.6d", 2) == "000002" +string.format("%-6.6d", -2) == "-000002" +string.format("%-6.6d", 3) == "000003" +string.format("%-6.6d", -3) == "-000003" +string.format("%-6.6d", 100) == "000100" +string.format("%-6.6d", 10000) == "010000" +string.format("%-20d", 0) == "0 " +string.format("%-20d", 1) == "1 " +string.format("%-20d", -1) == "-1 " +string.format("%-20d", 2) == "2 " +string.format("%-20d", -2) == "-2 " +string.format("%-20d", 3) == "3 " +string.format("%-20d", -3) == "-3 " +string.format("%-20d", 100) == "100 " +string.format("%-20d", 10000) == "10000 " +string.format("%-20d", 100000) == "100000 " +string.format("%-20d", 1000000) == "1000000 " +string.format("%-20d", 10000000) == "10000000 " +string.format("%-20.0d", 0) == " " +string.format("%-20.0d", 1) == "1 " +string.format("%-20.0d", -1) == "-1 " +string.format("%-20.0d", 2) == "2 " +string.format("%-20.0d", -2) == "-2 " +string.format("%-20.0d", 3) == "3 " +string.format("%-20.0d", -3) == "-3 " +string.format("%-20.0d", 100) == "100 " +string.format("%-20.0d", 10000) == "10000 " +string.format("%-20.0d", 100000) == "100000 " +string.format("%-20.0d", 1000000) == "1000000 " +string.format("%-20.0d", 10000000) == "10000000 " +string.format("%-20.1d", 0) == "0 " +string.format("%-20.1d", 1) == "1 " +string.format("%-20.1d", -1) == "-1 " +string.format("%-20.1d", 2) == "2 " +string.format("%-20.1d", -2) == "-2 " +string.format("%-20.1d", 3) == "3 " +string.format("%-20.1d", -3) == "-3 " +string.format("%-20.1d", 100) == "100 " +string.format("%-20.1d", 10000) == "10000 " +string.format("%-20.1d", 100000) == "100000 " +string.format("%-20.1d", 1000000) == "1000000 " +string.format("%-20.1d", 10000000) == "10000000 " +string.format("%-20.6d", 0) == "000000 " +string.format("%-20.6d", 1) == "000001 " +string.format("%-20.6d", -1) == "-000001 " +string.format("%-20.6d", 2) == "000002 " +string.format("%-20.6d", -2) == "-000002 " +string.format("%-20.6d", 3) == "000003 " +string.format("%-20.6d", -3) == "-000003 " +string.format("%-20.6d", 100) == "000100 " +string.format("%-20.6d", 10000) == "010000 " +string.format("%-20.6d", 100000) == "100000 " +string.format("%-20.6d", 1000000) == "1000000 " +string.format("%-20.6d", 10000000) == "10000000 " +string.format("%-+d", 0) == "+0" +string.format("%-+d", 1) == "+1" +string.format("%-+d", -1) == "-1" +string.format("%-+d", 2) == "+2" +string.format("%-+d", -2) == "-2" +string.format("%-+d", 3) == "+3" +string.format("%-+d", -3) == "-3" +string.format("%-+d", 100) == "+100" +string.format("%-+d", 10000) == "+10000" +string.format("%-+d", 100000) == "+100000" +string.format("%-+d", 1000000) == "+1000000" +string.format("%-+d", 10000000) == "+10000000" +string.format("%-+.0d", 0) == "+" +string.format("%-+.6d", 0) == "+000000" +string.format("%-+.6d", 1) == "+000001" +string.format("%-+.6d", -1) == "-000001" +string.format("%-+.6d", 2) == "+000002" +string.format("%-+.6d", -2) == "-000002" +string.format("%-+.6d", 3) == "+000003" +string.format("%-+.6d", -3) == "-000003" +string.format("%-+.6d", 100) == "+000100" +string.format("%-+.6d", 10000) == "+010000" +string.format("%-+1.0d", 0) == "+" +string.format("%-+1.6d", 0) == "+000000" +string.format("%-+1.6d", 1) == "+000001" +string.format("%-+1.6d", -1) == "-000001" +string.format("%-+1.6d", 2) == "+000002" +string.format("%-+1.6d", -2) == "-000002" +string.format("%-+1.6d", 3) == "+000003" +string.format("%-+1.6d", -3) == "-000003" +string.format("%-+1.6d", 100) == "+000100" +string.format("%-+1.6d", 10000) == "+010000" +string.format("%-+2.0d", 0) == "+ " +string.format("%-+2.6d", 0) == "+000000" +string.format("%-+2.6d", 1) == "+000001" +string.format("%-+2.6d", -1) == "-000001" +string.format("%-+2.6d", 2) == "+000002" +string.format("%-+2.6d", -2) == "-000002" +string.format("%-+2.6d", 3) == "+000003" +string.format("%-+2.6d", -3) == "-000003" +string.format("%-+2.6d", 100) == "+000100" +string.format("%-+2.6d", 10000) == "+010000" +string.format("%-+6d", 0) == "+0 " +string.format("%-+6d", 1) == "+1 " +string.format("%-+6d", -1) == "-1 " +string.format("%-+6d", 2) == "+2 " +string.format("%-+6d", -2) == "-2 " +string.format("%-+6d", 3) == "+3 " +string.format("%-+6d", -3) == "-3 " +string.format("%-+6d", 100) == "+100 " +string.format("%-+6.0d", 0) == "+ " +string.format("%-+6.0d", 1) == "+1 " +string.format("%-+6.0d", -1) == "-1 " +string.format("%-+6.0d", 2) == "+2 " +string.format("%-+6.0d", -2) == "-2 " +string.format("%-+6.0d", 3) == "+3 " +string.format("%-+6.0d", -3) == "-3 " +string.format("%-+6.0d", 100) == "+100 " +string.format("%-+6.1d", 0) == "+0 " +string.format("%-+6.1d", 1) == "+1 " +string.format("%-+6.1d", -1) == "-1 " +string.format("%-+6.1d", 2) == "+2 " +string.format("%-+6.1d", -2) == "-2 " +string.format("%-+6.1d", 3) == "+3 " +string.format("%-+6.1d", -3) == "-3 " +string.format("%-+6.1d", 100) == "+100 " +string.format("%-+6.6d", 0) == "+000000" +string.format("%-+6.6d", 1) == "+000001" +string.format("%-+6.6d", -1) == "-000001" +string.format("%-+6.6d", 2) == "+000002" +string.format("%-+6.6d", -2) == "-000002" +string.format("%-+6.6d", 3) == "+000003" +string.format("%-+6.6d", -3) == "-000003" +string.format("%-+6.6d", 100) == "+000100" +string.format("%-+6.6d", 10000) == "+010000" +string.format("%-+20d", 0) == "+0 " +string.format("%-+20d", 1) == "+1 " +string.format("%-+20d", -1) == "-1 " +string.format("%-+20d", 2) == "+2 " +string.format("%-+20d", -2) == "-2 " +string.format("%-+20d", 3) == "+3 " +string.format("%-+20d", -3) == "-3 " +string.format("%-+20d", 100) == "+100 " +string.format("%-+20d", 10000) == "+10000 " +string.format("%-+20d", 100000) == "+100000 " +string.format("%-+20d", 1000000) == "+1000000 " +string.format("%-+20d", 10000000) == "+10000000 " +string.format("%-+20.0d", 0) == "+ " +string.format("%-+20.0d", 1) == "+1 " +string.format("%-+20.0d", -1) == "-1 " +string.format("%-+20.0d", 2) == "+2 " +string.format("%-+20.0d", -2) == "-2 " +string.format("%-+20.0d", 3) == "+3 " +string.format("%-+20.0d", -3) == "-3 " +string.format("%-+20.0d", 100) == "+100 " +string.format("%-+20.0d", 10000) == "+10000 " +string.format("%-+20.0d", 100000) == "+100000 " +string.format("%-+20.0d", 1000000) == "+1000000 " +string.format("%-+20.0d", 10000000) == "+10000000 " +string.format("%-+20.1d", 0) == "+0 " +string.format("%-+20.1d", 1) == "+1 " +string.format("%-+20.1d", -1) == "-1 " +string.format("%-+20.1d", 2) == "+2 " +string.format("%-+20.1d", -2) == "-2 " +string.format("%-+20.1d", 3) == "+3 " +string.format("%-+20.1d", -3) == "-3 " +string.format("%-+20.1d", 100) == "+100 " +string.format("%-+20.1d", 10000) == "+10000 " +string.format("%-+20.1d", 100000) == "+100000 " +string.format("%-+20.1d", 1000000) == "+1000000 " +string.format("%-+20.1d", 10000000) == "+10000000 " +string.format("%-+20.6d", 0) == "+000000 " +string.format("%-+20.6d", 1) == "+000001 " +string.format("%-+20.6d", -1) == "-000001 " +string.format("%-+20.6d", 2) == "+000002 " +string.format("%-+20.6d", -2) == "-000002 " +string.format("%-+20.6d", 3) == "+000003 " +string.format("%-+20.6d", -3) == "-000003 " +string.format("%-+20.6d", 100) == "+000100 " +string.format("%-+20.6d", 10000) == "+010000 " +string.format("%-+20.6d", 100000) == "+100000 " +string.format("%-+20.6d", 1000000) == "+1000000 " +string.format("%-+20.6d", 10000000) == "+10000000 " +string.format("% d", 0) == " 0" +string.format("% d", 1) == " 1" +string.format("% d", -1) == "-1" +string.format("% d", 2) == " 2" +string.format("% d", -2) == "-2" +string.format("% d", 3) == " 3" +string.format("% d", -3) == "-3" +string.format("% d", 100) == " 100" +string.format("% d", 10000) == " 10000" +string.format("% d", 100000) == " 100000" +string.format("% d", 1000000) == " 1000000" +string.format("% d", 10000000) == " 10000000" +string.format("% .0d", 0) == " " +string.format("% .6d", 0) == " 000000" +string.format("% .6d", 1) == " 000001" +string.format("% .6d", -1) == "-000001" +string.format("% .6d", 2) == " 000002" +string.format("% .6d", -2) == "-000002" +string.format("% .6d", 3) == " 000003" +string.format("% .6d", -3) == "-000003" +string.format("% .6d", 100) == " 000100" +string.format("% .6d", 10000) == " 010000" +string.format("% 1.0d", 0) == " " +string.format("% 1.6d", 0) == " 000000" +string.format("% 1.6d", 1) == " 000001" +string.format("% 1.6d", -1) == "-000001" +string.format("% 1.6d", 2) == " 000002" +string.format("% 1.6d", -2) == "-000002" +string.format("% 1.6d", 3) == " 000003" +string.format("% 1.6d", -3) == "-000003" +string.format("% 1.6d", 100) == " 000100" +string.format("% 1.6d", 10000) == " 010000" +string.format("% 2.0d", 0) == " " +string.format("% 2.6d", 0) == " 000000" +string.format("% 2.6d", 1) == " 000001" +string.format("% 2.6d", -1) == "-000001" +string.format("% 2.6d", 2) == " 000002" +string.format("% 2.6d", -2) == "-000002" +string.format("% 2.6d", 3) == " 000003" +string.format("% 2.6d", -3) == "-000003" +string.format("% 2.6d", 100) == " 000100" +string.format("% 2.6d", 10000) == " 010000" +string.format("% 6d", 0) == " 0" +string.format("% 6d", 1) == " 1" +string.format("% 6d", -1) == " -1" +string.format("% 6d", 2) == " 2" +string.format("% 6d", -2) == " -2" +string.format("% 6d", 3) == " 3" +string.format("% 6d", -3) == " -3" +string.format("% 6d", 100) == " 100" +string.format("% 6.0d", 0) == " " +string.format("% 6.0d", 1) == " 1" +string.format("% 6.0d", -1) == " -1" +string.format("% 6.0d", 2) == " 2" +string.format("% 6.0d", -2) == " -2" +string.format("% 6.0d", 3) == " 3" +string.format("% 6.0d", -3) == " -3" +string.format("% 6.0d", 100) == " 100" +string.format("% 6.1d", 0) == " 0" +string.format("% 6.1d", 1) == " 1" +string.format("% 6.1d", -1) == " -1" +string.format("% 6.1d", 2) == " 2" +string.format("% 6.1d", -2) == " -2" +string.format("% 6.1d", 3) == " 3" +string.format("% 6.1d", -3) == " -3" +string.format("% 6.1d", 100) == " 100" +string.format("% 6.6d", 0) == " 000000" +string.format("% 6.6d", 1) == " 000001" +string.format("% 6.6d", -1) == "-000001" +string.format("% 6.6d", 2) == " 000002" +string.format("% 6.6d", -2) == "-000002" +string.format("% 6.6d", 3) == " 000003" +string.format("% 6.6d", -3) == "-000003" +string.format("% 6.6d", 100) == " 000100" +string.format("% 6.6d", 10000) == " 010000" +string.format("% 20d", 0) == " 0" +string.format("% 20d", 1) == " 1" +string.format("% 20d", -1) == " -1" +string.format("% 20d", 2) == " 2" +string.format("% 20d", -2) == " -2" +string.format("% 20d", 3) == " 3" +string.format("% 20d", -3) == " -3" +string.format("% 20d", 100) == " 100" +string.format("% 20d", 10000) == " 10000" +string.format("% 20d", 100000) == " 100000" +string.format("% 20d", 1000000) == " 1000000" +string.format("% 20d", 10000000) == " 10000000" +string.format("% 20.0d", 0) == " " +string.format("% 20.0d", 1) == " 1" +string.format("% 20.0d", -1) == " -1" +string.format("% 20.0d", 2) == " 2" +string.format("% 20.0d", -2) == " -2" +string.format("% 20.0d", 3) == " 3" +string.format("% 20.0d", -3) == " -3" +string.format("% 20.0d", 100) == " 100" +string.format("% 20.0d", 10000) == " 10000" +string.format("% 20.0d", 100000) == " 100000" +string.format("% 20.0d", 1000000) == " 1000000" +string.format("% 20.0d", 10000000) == " 10000000" +string.format("% 20.1d", 0) == " 0" +string.format("% 20.1d", 1) == " 1" +string.format("% 20.1d", -1) == " -1" +string.format("% 20.1d", 2) == " 2" +string.format("% 20.1d", -2) == " -2" +string.format("% 20.1d", 3) == " 3" +string.format("% 20.1d", -3) == " -3" +string.format("% 20.1d", 100) == " 100" +string.format("% 20.1d", 10000) == " 10000" +string.format("% 20.1d", 100000) == " 100000" +string.format("% 20.1d", 1000000) == " 1000000" +string.format("% 20.1d", 10000000) == " 10000000" +string.format("% 20.6d", 0) == " 000000" +string.format("% 20.6d", 1) == " 000001" +string.format("% 20.6d", -1) == " -000001" +string.format("% 20.6d", 2) == " 000002" +string.format("% 20.6d", -2) == " -000002" +string.format("% 20.6d", 3) == " 000003" +string.format("% 20.6d", -3) == " -000003" +string.format("% 20.6d", 100) == " 000100" +string.format("% 20.6d", 10000) == " 010000" +string.format("% 20.6d", 100000) == " 100000" +string.format("% 20.6d", 1000000) == " 1000000" +string.format("% 20.6d", 10000000) == " 10000000" +string.format("% +d", 0) == "+0" +string.format("% +d", 1) == "+1" +string.format("% +d", -1) == "-1" +string.format("% +d", 2) == "+2" +string.format("% +d", -2) == "-2" +string.format("% +d", 3) == "+3" +string.format("% +d", -3) == "-3" +string.format("% +d", 100) == "+100" +string.format("% +d", 10000) == "+10000" +string.format("% +d", 100000) == "+100000" +string.format("% +d", 1000000) == "+1000000" +string.format("% +d", 10000000) == "+10000000" +string.format("% +.0d", 0) == "+" +string.format("% +.6d", 0) == "+000000" +string.format("% +.6d", 1) == "+000001" +string.format("% +.6d", -1) == "-000001" +string.format("% +.6d", 2) == "+000002" +string.format("% +.6d", -2) == "-000002" +string.format("% +.6d", 3) == "+000003" +string.format("% +.6d", -3) == "-000003" +string.format("% +.6d", 100) == "+000100" +string.format("% +.6d", 10000) == "+010000" +string.format("% +1.0d", 0) == "+" +string.format("% +1.6d", 0) == "+000000" +string.format("% +1.6d", 1) == "+000001" +string.format("% +1.6d", -1) == "-000001" +string.format("% +1.6d", 2) == "+000002" +string.format("% +1.6d", -2) == "-000002" +string.format("% +1.6d", 3) == "+000003" +string.format("% +1.6d", -3) == "-000003" +string.format("% +1.6d", 100) == "+000100" +string.format("% +1.6d", 10000) == "+010000" +string.format("% +2.0d", 0) == " +" +string.format("% +2.6d", 0) == "+000000" +string.format("% +2.6d", 1) == "+000001" +string.format("% +2.6d", -1) == "-000001" +string.format("% +2.6d", 2) == "+000002" +string.format("% +2.6d", -2) == "-000002" +string.format("% +2.6d", 3) == "+000003" +string.format("% +2.6d", -3) == "-000003" +string.format("% +2.6d", 100) == "+000100" +string.format("% +2.6d", 10000) == "+010000" +string.format("% +6d", 0) == " +0" +string.format("% +6d", 1) == " +1" +string.format("% +6d", -1) == " -1" +string.format("% +6d", 2) == " +2" +string.format("% +6d", -2) == " -2" +string.format("% +6d", 3) == " +3" +string.format("% +6d", -3) == " -3" +string.format("% +6d", 100) == " +100" +string.format("% +6.0d", 0) == " +" +string.format("% +6.0d", 1) == " +1" +string.format("% +6.0d", -1) == " -1" +string.format("% +6.0d", 2) == " +2" +string.format("% +6.0d", -2) == " -2" +string.format("% +6.0d", 3) == " +3" +string.format("% +6.0d", -3) == " -3" +string.format("% +6.0d", 100) == " +100" +string.format("% +6.1d", 0) == " +0" +string.format("% +6.1d", 1) == " +1" +string.format("% +6.1d", -1) == " -1" +string.format("% +6.1d", 2) == " +2" +string.format("% +6.1d", -2) == " -2" +string.format("% +6.1d", 3) == " +3" +string.format("% +6.1d", -3) == " -3" +string.format("% +6.1d", 100) == " +100" +string.format("% +6.6d", 0) == "+000000" +string.format("% +6.6d", 1) == "+000001" +string.format("% +6.6d", -1) == "-000001" +string.format("% +6.6d", 2) == "+000002" +string.format("% +6.6d", -2) == "-000002" +string.format("% +6.6d", 3) == "+000003" +string.format("% +6.6d", -3) == "-000003" +string.format("% +6.6d", 100) == "+000100" +string.format("% +6.6d", 10000) == "+010000" +string.format("% +20d", 0) == " +0" +string.format("% +20d", 1) == " +1" +string.format("% +20d", -1) == " -1" +string.format("% +20d", 2) == " +2" +string.format("% +20d", -2) == " -2" +string.format("% +20d", 3) == " +3" +string.format("% +20d", -3) == " -3" +string.format("% +20d", 100) == " +100" +string.format("% +20d", 10000) == " +10000" +string.format("% +20d", 100000) == " +100000" +string.format("% +20d", 1000000) == " +1000000" +string.format("% +20d", 10000000) == " +10000000" +string.format("% +20.0d", 0) == " +" +string.format("% +20.0d", 1) == " +1" +string.format("% +20.0d", -1) == " -1" +string.format("% +20.0d", 2) == " +2" +string.format("% +20.0d", -2) == " -2" +string.format("% +20.0d", 3) == " +3" +string.format("% +20.0d", -3) == " -3" +string.format("% +20.0d", 100) == " +100" +string.format("% +20.0d", 10000) == " +10000" +string.format("% +20.0d", 100000) == " +100000" +string.format("% +20.0d", 1000000) == " +1000000" +string.format("% +20.0d", 10000000) == " +10000000" +string.format("% +20.1d", 0) == " +0" +string.format("% +20.1d", 1) == " +1" +string.format("% +20.1d", -1) == " -1" +string.format("% +20.1d", 2) == " +2" +string.format("% +20.1d", -2) == " -2" +string.format("% +20.1d", 3) == " +3" +string.format("% +20.1d", -3) == " -3" +string.format("% +20.1d", 100) == " +100" +string.format("% +20.1d", 10000) == " +10000" +string.format("% +20.1d", 100000) == " +100000" +string.format("% +20.1d", 1000000) == " +1000000" +string.format("% +20.1d", 10000000) == " +10000000" +string.format("% +20.6d", 0) == " +000000" +string.format("% +20.6d", 1) == " +000001" +string.format("% +20.6d", -1) == " -000001" +string.format("% +20.6d", 2) == " +000002" +string.format("% +20.6d", -2) == " -000002" +string.format("% +20.6d", 3) == " +000003" +string.format("% +20.6d", -3) == " -000003" +string.format("% +20.6d", 100) == " +000100" +string.format("% +20.6d", 10000) == " +010000" +string.format("% +20.6d", 100000) == " +100000" +string.format("% +20.6d", 1000000) == " +1000000" +string.format("% +20.6d", 10000000) == " +10000000" +string.format("% -d", 0) == " 0" +string.format("% -d", 1) == " 1" +string.format("% -d", -1) == "-1" +string.format("% -d", 2) == " 2" +string.format("% -d", -2) == "-2" +string.format("% -d", 3) == " 3" +string.format("% -d", -3) == "-3" +string.format("% -d", 100) == " 100" +string.format("% -d", 10000) == " 10000" +string.format("% -d", 100000) == " 100000" +string.format("% -d", 1000000) == " 1000000" +string.format("% -d", 10000000) == " 10000000" +string.format("% -.0d", 0) == " " +string.format("% -.6d", 0) == " 000000" +string.format("% -.6d", 1) == " 000001" +string.format("% -.6d", -1) == "-000001" +string.format("% -.6d", 2) == " 000002" +string.format("% -.6d", -2) == "-000002" +string.format("% -.6d", 3) == " 000003" +string.format("% -.6d", -3) == "-000003" +string.format("% -.6d", 100) == " 000100" +string.format("% -.6d", 10000) == " 010000" +string.format("% -1.0d", 0) == " " +string.format("% -1.6d", 0) == " 000000" +string.format("% -1.6d", 1) == " 000001" +string.format("% -1.6d", -1) == "-000001" +string.format("% -1.6d", 2) == " 000002" +string.format("% -1.6d", -2) == "-000002" +string.format("% -1.6d", 3) == " 000003" +string.format("% -1.6d", -3) == "-000003" +string.format("% -1.6d", 100) == " 000100" +string.format("% -1.6d", 10000) == " 010000" +string.format("% -2.0d", 0) == " " +string.format("% -2.6d", 0) == " 000000" +string.format("% -2.6d", 1) == " 000001" +string.format("% -2.6d", -1) == "-000001" +string.format("% -2.6d", 2) == " 000002" +string.format("% -2.6d", -2) == "-000002" +string.format("% -2.6d", 3) == " 000003" +string.format("% -2.6d", -3) == "-000003" +string.format("% -2.6d", 100) == " 000100" +string.format("% -2.6d", 10000) == " 010000" +string.format("% -6d", 0) == " 0 " +string.format("% -6d", 1) == " 1 " +string.format("% -6d", -1) == "-1 " +string.format("% -6d", 2) == " 2 " +string.format("% -6d", -2) == "-2 " +string.format("% -6d", 3) == " 3 " +string.format("% -6d", -3) == "-3 " +string.format("% -6d", 100) == " 100 " +string.format("% -6.0d", 0) == " " +string.format("% -6.0d", 1) == " 1 " +string.format("% -6.0d", -1) == "-1 " +string.format("% -6.0d", 2) == " 2 " +string.format("% -6.0d", -2) == "-2 " +string.format("% -6.0d", 3) == " 3 " +string.format("% -6.0d", -3) == "-3 " +string.format("% -6.0d", 100) == " 100 " +string.format("% -6.1d", 0) == " 0 " +string.format("% -6.1d", 1) == " 1 " +string.format("% -6.1d", -1) == "-1 " +string.format("% -6.1d", 2) == " 2 " +string.format("% -6.1d", -2) == "-2 " +string.format("% -6.1d", 3) == " 3 " +string.format("% -6.1d", -3) == "-3 " +string.format("% -6.1d", 100) == " 100 " +string.format("% -6.6d", 0) == " 000000" +string.format("% -6.6d", 1) == " 000001" +string.format("% -6.6d", -1) == "-000001" +string.format("% -6.6d", 2) == " 000002" +string.format("% -6.6d", -2) == "-000002" +string.format("% -6.6d", 3) == " 000003" +string.format("% -6.6d", -3) == "-000003" +string.format("% -6.6d", 100) == " 000100" +string.format("% -6.6d", 10000) == " 010000" +string.format("% -20d", 0) == " 0 " +string.format("% -20d", 1) == " 1 " +string.format("% -20d", -1) == "-1 " +string.format("% -20d", 2) == " 2 " +string.format("% -20d", -2) == "-2 " +string.format("% -20d", 3) == " 3 " +string.format("% -20d", -3) == "-3 " +string.format("% -20d", 100) == " 100 " +string.format("% -20d", 10000) == " 10000 " +string.format("% -20d", 100000) == " 100000 " +string.format("% -20d", 1000000) == " 1000000 " +string.format("% -20d", 10000000) == " 10000000 " +string.format("% -20.0d", 0) == " " +string.format("% -20.0d", 1) == " 1 " +string.format("% -20.0d", -1) == "-1 " +string.format("% -20.0d", 2) == " 2 " +string.format("% -20.0d", -2) == "-2 " +string.format("% -20.0d", 3) == " 3 " +string.format("% -20.0d", -3) == "-3 " +string.format("% -20.0d", 100) == " 100 " +string.format("% -20.0d", 10000) == " 10000 " +string.format("% -20.0d", 100000) == " 100000 " +string.format("% -20.0d", 1000000) == " 1000000 " +string.format("% -20.0d", 10000000) == " 10000000 " +string.format("% -20.1d", 0) == " 0 " +string.format("% -20.1d", 1) == " 1 " +string.format("% -20.1d", -1) == "-1 " +string.format("% -20.1d", 2) == " 2 " +string.format("% -20.1d", -2) == "-2 " +string.format("% -20.1d", 3) == " 3 " +string.format("% -20.1d", -3) == "-3 " +string.format("% -20.1d", 100) == " 100 " +string.format("% -20.1d", 10000) == " 10000 " +string.format("% -20.1d", 100000) == " 100000 " +string.format("% -20.1d", 1000000) == " 1000000 " +string.format("% -20.1d", 10000000) == " 10000000 " +string.format("% -20.6d", 0) == " 000000 " +string.format("% -20.6d", 1) == " 000001 " +string.format("% -20.6d", -1) == "-000001 " +string.format("% -20.6d", 2) == " 000002 " +string.format("% -20.6d", -2) == "-000002 " +string.format("% -20.6d", 3) == " 000003 " +string.format("% -20.6d", -3) == "-000003 " +string.format("% -20.6d", 100) == " 000100 " +string.format("% -20.6d", 10000) == " 010000 " +string.format("% -20.6d", 100000) == " 100000 " +string.format("% -20.6d", 1000000) == " 1000000 " +string.format("% -20.6d", 10000000) == " 10000000 " +string.format("% -+d", 0) == "+0" +string.format("% -+d", 1) == "+1" +string.format("% -+d", -1) == "-1" +string.format("% -+d", 2) == "+2" +string.format("% -+d", -2) == "-2" +string.format("% -+d", 3) == "+3" +string.format("% -+d", -3) == "-3" +string.format("% -+d", 100) == "+100" +string.format("% -+d", 10000) == "+10000" +string.format("% -+d", 100000) == "+100000" +string.format("% -+d", 1000000) == "+1000000" +string.format("% -+d", 10000000) == "+10000000" +string.format("% -+.0d", 0) == "+" +string.format("% -+.6d", 0) == "+000000" +string.format("% -+.6d", 1) == "+000001" +string.format("% -+.6d", -1) == "-000001" +string.format("% -+.6d", 2) == "+000002" +string.format("% -+.6d", -2) == "-000002" +string.format("% -+.6d", 3) == "+000003" +string.format("% -+.6d", -3) == "-000003" +string.format("% -+.6d", 100) == "+000100" +string.format("% -+.6d", 10000) == "+010000" +string.format("% -+1.0d", 0) == "+" +string.format("% -+1.6d", 0) == "+000000" +string.format("% -+1.6d", 1) == "+000001" +string.format("% -+1.6d", -1) == "-000001" +string.format("% -+1.6d", 2) == "+000002" +string.format("% -+1.6d", -2) == "-000002" +string.format("% -+1.6d", 3) == "+000003" +string.format("% -+1.6d", -3) == "-000003" +string.format("% -+1.6d", 100) == "+000100" +string.format("% -+1.6d", 10000) == "+010000" +string.format("% -+2.0d", 0) == "+ " +string.format("% -+2.6d", 0) == "+000000" +string.format("% -+2.6d", 1) == "+000001" +string.format("% -+2.6d", -1) == "-000001" +string.format("% -+2.6d", 2) == "+000002" +string.format("% -+2.6d", -2) == "-000002" +string.format("% -+2.6d", 3) == "+000003" +string.format("% -+2.6d", -3) == "-000003" +string.format("% -+2.6d", 100) == "+000100" +string.format("% -+2.6d", 10000) == "+010000" +string.format("% -+6d", 0) == "+0 " +string.format("% -+6d", 1) == "+1 " +string.format("% -+6d", -1) == "-1 " +string.format("% -+6d", 2) == "+2 " +string.format("% -+6d", -2) == "-2 " +string.format("% -+6d", 3) == "+3 " +string.format("% -+6d", -3) == "-3 " +string.format("% -+6d", 100) == "+100 " +string.format("% -+6.0d", 0) == "+ " +string.format("% -+6.0d", 1) == "+1 " +string.format("% -+6.0d", -1) == "-1 " +string.format("% -+6.0d", 2) == "+2 " +string.format("% -+6.0d", -2) == "-2 " +string.format("% -+6.0d", 3) == "+3 " +string.format("% -+6.0d", -3) == "-3 " +string.format("% -+6.0d", 100) == "+100 " +string.format("% -+6.1d", 0) == "+0 " +string.format("% -+6.1d", 1) == "+1 " +string.format("% -+6.1d", -1) == "-1 " +string.format("% -+6.1d", 2) == "+2 " +string.format("% -+6.1d", -2) == "-2 " +string.format("% -+6.1d", 3) == "+3 " +string.format("% -+6.1d", -3) == "-3 " +string.format("% -+6.1d", 100) == "+100 " +string.format("% -+6.6d", 0) == "+000000" +string.format("% -+6.6d", 1) == "+000001" +string.format("% -+6.6d", -1) == "-000001" +string.format("% -+6.6d", 2) == "+000002" +string.format("% -+6.6d", -2) == "-000002" +string.format("% -+6.6d", 3) == "+000003" +string.format("% -+6.6d", -3) == "-000003" +string.format("% -+6.6d", 100) == "+000100" +string.format("% -+6.6d", 10000) == "+010000" +string.format("% -+20d", 0) == "+0 " +string.format("% -+20d", 1) == "+1 " +string.format("% -+20d", -1) == "-1 " +string.format("% -+20d", 2) == "+2 " +string.format("% -+20d", -2) == "-2 " +string.format("% -+20d", 3) == "+3 " +string.format("% -+20d", -3) == "-3 " +string.format("% -+20d", 100) == "+100 " +string.format("% -+20d", 10000) == "+10000 " +string.format("% -+20d", 100000) == "+100000 " +string.format("% -+20d", 1000000) == "+1000000 " +string.format("% -+20d", 10000000) == "+10000000 " +string.format("% -+20.0d", 0) == "+ " +string.format("% -+20.0d", 1) == "+1 " +string.format("% -+20.0d", -1) == "-1 " +string.format("% -+20.0d", 2) == "+2 " +string.format("% -+20.0d", -2) == "-2 " +string.format("% -+20.0d", 3) == "+3 " +string.format("% -+20.0d", -3) == "-3 " +string.format("% -+20.0d", 100) == "+100 " +string.format("% -+20.0d", 10000) == "+10000 " +string.format("% -+20.0d", 100000) == "+100000 " +string.format("% -+20.0d", 1000000) == "+1000000 " +string.format("% -+20.0d", 10000000) == "+10000000 " +string.format("% -+20.1d", 0) == "+0 " +string.format("% -+20.1d", 1) == "+1 " +string.format("% -+20.1d", -1) == "-1 " +string.format("% -+20.1d", 2) == "+2 " +string.format("% -+20.1d", -2) == "-2 " +string.format("% -+20.1d", 3) == "+3 " +string.format("% -+20.1d", -3) == "-3 " +string.format("% -+20.1d", 100) == "+100 " +string.format("% -+20.1d", 10000) == "+10000 " +string.format("% -+20.1d", 100000) == "+100000 " +string.format("% -+20.1d", 1000000) == "+1000000 " +string.format("% -+20.1d", 10000000) == "+10000000 " +string.format("% -+20.6d", 0) == "+000000 " +string.format("% -+20.6d", 1) == "+000001 " +string.format("% -+20.6d", -1) == "-000001 " +string.format("% -+20.6d", 2) == "+000002 " +string.format("% -+20.6d", -2) == "-000002 " +string.format("% -+20.6d", 3) == "+000003 " +string.format("% -+20.6d", -3) == "-000003 " +string.format("% -+20.6d", 100) == "+000100 " +string.format("% -+20.6d", 10000) == "+010000 " +string.format("% -+20.6d", 100000) == "+100000 " +string.format("% -+20.6d", 1000000) == "+1000000 " +string.format("% -+20.6d", 10000000) == "+10000000 " +string.format("%#d", 0) == "0" +string.format("%#d", 1) == "1" +string.format("%#d", -1) == "-1" +string.format("%#d", 2) == "2" +string.format("%#d", -2) == "-2" +string.format("%#d", 3) == "3" +string.format("%#d", -3) == "-3" +string.format("%#d", 100) == "100" +string.format("%#d", 10000) == "10000" +string.format("%#d", 100000) == "100000" +string.format("%#d", 1000000) == "1000000" +string.format("%#d", 10000000) == "10000000" +string.format("%#.0d", 0) == "" +string.format("%#.6d", 0) == "000000" +string.format("%#.6d", 1) == "000001" +string.format("%#.6d", -1) == "-000001" +string.format("%#.6d", 2) == "000002" +string.format("%#.6d", -2) == "-000002" +string.format("%#.6d", 3) == "000003" +string.format("%#.6d", -3) == "-000003" +string.format("%#.6d", 100) == "000100" +string.format("%#.6d", 10000) == "010000" +string.format("%#1.0d", 0) == " " +string.format("%#1.6d", 0) == "000000" +string.format("%#1.6d", 1) == "000001" +string.format("%#1.6d", -1) == "-000001" +string.format("%#1.6d", 2) == "000002" +string.format("%#1.6d", -2) == "-000002" +string.format("%#1.6d", 3) == "000003" +string.format("%#1.6d", -3) == "-000003" +string.format("%#1.6d", 100) == "000100" +string.format("%#1.6d", 10000) == "010000" +string.format("%#2d", 0) == " 0" +string.format("%#2d", 1) == " 1" +string.format("%#2d", 2) == " 2" +string.format("%#2d", 3) == " 3" +string.format("%#2.0d", 0) == " " +string.format("%#2.0d", 1) == " 1" +string.format("%#2.0d", 2) == " 2" +string.format("%#2.0d", 3) == " 3" +string.format("%#2.1d", 0) == " 0" +string.format("%#2.1d", 1) == " 1" +string.format("%#2.1d", 2) == " 2" +string.format("%#2.1d", 3) == " 3" +string.format("%#2.6d", 0) == "000000" +string.format("%#2.6d", 1) == "000001" +string.format("%#2.6d", -1) == "-000001" +string.format("%#2.6d", 2) == "000002" +string.format("%#2.6d", -2) == "-000002" +string.format("%#2.6d", 3) == "000003" +string.format("%#2.6d", -3) == "-000003" +string.format("%#2.6d", 100) == "000100" +string.format("%#2.6d", 10000) == "010000" +string.format("%#6d", 0) == " 0" +string.format("%#6d", 1) == " 1" +string.format("%#6d", -1) == " -1" +string.format("%#6d", 2) == " 2" +string.format("%#6d", -2) == " -2" +string.format("%#6d", 3) == " 3" +string.format("%#6d", -3) == " -3" +string.format("%#6d", 100) == " 100" +string.format("%#6d", 10000) == " 10000" +string.format("%#6.0d", 0) == " " +string.format("%#6.0d", 1) == " 1" +string.format("%#6.0d", -1) == " -1" +string.format("%#6.0d", 2) == " 2" +string.format("%#6.0d", -2) == " -2" +string.format("%#6.0d", 3) == " 3" +string.format("%#6.0d", -3) == " -3" +string.format("%#6.0d", 100) == " 100" +string.format("%#6.0d", 10000) == " 10000" +string.format("%#6.1d", 0) == " 0" +string.format("%#6.1d", 1) == " 1" +string.format("%#6.1d", -1) == " -1" +string.format("%#6.1d", 2) == " 2" +string.format("%#6.1d", -2) == " -2" +string.format("%#6.1d", 3) == " 3" +string.format("%#6.1d", -3) == " -3" +string.format("%#6.1d", 100) == " 100" +string.format("%#6.1d", 10000) == " 10000" +string.format("%#6.6d", 0) == "000000" +string.format("%#6.6d", 1) == "000001" +string.format("%#6.6d", -1) == "-000001" +string.format("%#6.6d", 2) == "000002" +string.format("%#6.6d", -2) == "-000002" +string.format("%#6.6d", 3) == "000003" +string.format("%#6.6d", -3) == "-000003" +string.format("%#6.6d", 100) == "000100" +string.format("%#6.6d", 10000) == "010000" +string.format("%#20d", 0) == " 0" +string.format("%#20d", 1) == " 1" +string.format("%#20d", -1) == " -1" +string.format("%#20d", 2) == " 2" +string.format("%#20d", -2) == " -2" +string.format("%#20d", 3) == " 3" +string.format("%#20d", -3) == " -3" +string.format("%#20d", 100) == " 100" +string.format("%#20d", 10000) == " 10000" +string.format("%#20d", 100000) == " 100000" +string.format("%#20d", 1000000) == " 1000000" +string.format("%#20d", 10000000) == " 10000000" +string.format("%#20.0d", 0) == " " +string.format("%#20.0d", 1) == " 1" +string.format("%#20.0d", -1) == " -1" +string.format("%#20.0d", 2) == " 2" +string.format("%#20.0d", -2) == " -2" +string.format("%#20.0d", 3) == " 3" +string.format("%#20.0d", -3) == " -3" +string.format("%#20.0d", 100) == " 100" +string.format("%#20.0d", 10000) == " 10000" +string.format("%#20.0d", 100000) == " 100000" +string.format("%#20.0d", 1000000) == " 1000000" +string.format("%#20.0d", 10000000) == " 10000000" +string.format("%#20.1d", 0) == " 0" +string.format("%#20.1d", 1) == " 1" +string.format("%#20.1d", -1) == " -1" +string.format("%#20.1d", 2) == " 2" +string.format("%#20.1d", -2) == " -2" +string.format("%#20.1d", 3) == " 3" +string.format("%#20.1d", -3) == " -3" +string.format("%#20.1d", 100) == " 100" +string.format("%#20.1d", 10000) == " 10000" +string.format("%#20.1d", 100000) == " 100000" +string.format("%#20.1d", 1000000) == " 1000000" +string.format("%#20.1d", 10000000) == " 10000000" +string.format("%#20.6d", 0) == " 000000" +string.format("%#20.6d", 1) == " 000001" +string.format("%#20.6d", -1) == " -000001" +string.format("%#20.6d", 2) == " 000002" +string.format("%#20.6d", -2) == " -000002" +string.format("%#20.6d", 3) == " 000003" +string.format("%#20.6d", -3) == " -000003" +string.format("%#20.6d", 100) == " 000100" +string.format("%#20.6d", 10000) == " 010000" +string.format("%#20.6d", 100000) == " 100000" +string.format("%#20.6d", 1000000) == " 1000000" +string.format("%#20.6d", 10000000) == " 10000000" +string.format("%#+d", 0) == "+0" +string.format("%#+d", 1) == "+1" +string.format("%#+d", -1) == "-1" +string.format("%#+d", 2) == "+2" +string.format("%#+d", -2) == "-2" +string.format("%#+d", 3) == "+3" +string.format("%#+d", -3) == "-3" +string.format("%#+d", 100) == "+100" +string.format("%#+d", 10000) == "+10000" +string.format("%#+d", 100000) == "+100000" +string.format("%#+d", 1000000) == "+1000000" +string.format("%#+d", 10000000) == "+10000000" +string.format("%#+.0d", 0) == "+" +string.format("%#+.6d", 0) == "+000000" +string.format("%#+.6d", 1) == "+000001" +string.format("%#+.6d", -1) == "-000001" +string.format("%#+.6d", 2) == "+000002" +string.format("%#+.6d", -2) == "-000002" +string.format("%#+.6d", 3) == "+000003" +string.format("%#+.6d", -3) == "-000003" +string.format("%#+.6d", 100) == "+000100" +string.format("%#+.6d", 10000) == "+010000" +string.format("%#+1.0d", 0) == "+" +string.format("%#+1.6d", 0) == "+000000" +string.format("%#+1.6d", 1) == "+000001" +string.format("%#+1.6d", -1) == "-000001" +string.format("%#+1.6d", 2) == "+000002" +string.format("%#+1.6d", -2) == "-000002" +string.format("%#+1.6d", 3) == "+000003" +string.format("%#+1.6d", -3) == "-000003" +string.format("%#+1.6d", 100) == "+000100" +string.format("%#+1.6d", 10000) == "+010000" +string.format("%#+2.0d", 0) == " +" +string.format("%#+2.6d", 0) == "+000000" +string.format("%#+2.6d", 1) == "+000001" +string.format("%#+2.6d", -1) == "-000001" +string.format("%#+2.6d", 2) == "+000002" +string.format("%#+2.6d", -2) == "-000002" +string.format("%#+2.6d", 3) == "+000003" +string.format("%#+2.6d", -3) == "-000003" +string.format("%#+2.6d", 100) == "+000100" +string.format("%#+2.6d", 10000) == "+010000" +string.format("%#+6d", 0) == " +0" +string.format("%#+6d", 1) == " +1" +string.format("%#+6d", -1) == " -1" +string.format("%#+6d", 2) == " +2" +string.format("%#+6d", -2) == " -2" +string.format("%#+6d", 3) == " +3" +string.format("%#+6d", -3) == " -3" +string.format("%#+6d", 100) == " +100" +string.format("%#+6.0d", 0) == " +" +string.format("%#+6.0d", 1) == " +1" +string.format("%#+6.0d", -1) == " -1" +string.format("%#+6.0d", 2) == " +2" +string.format("%#+6.0d", -2) == " -2" +string.format("%#+6.0d", 3) == " +3" +string.format("%#+6.0d", -3) == " -3" +string.format("%#+6.0d", 100) == " +100" +string.format("%#+6.1d", 0) == " +0" +string.format("%#+6.1d", 1) == " +1" +string.format("%#+6.1d", -1) == " -1" +string.format("%#+6.1d", 2) == " +2" +string.format("%#+6.1d", -2) == " -2" +string.format("%#+6.1d", 3) == " +3" +string.format("%#+6.1d", -3) == " -3" +string.format("%#+6.1d", 100) == " +100" +string.format("%#+6.6d", 0) == "+000000" +string.format("%#+6.6d", 1) == "+000001" +string.format("%#+6.6d", -1) == "-000001" +string.format("%#+6.6d", 2) == "+000002" +string.format("%#+6.6d", -2) == "-000002" +string.format("%#+6.6d", 3) == "+000003" +string.format("%#+6.6d", -3) == "-000003" +string.format("%#+6.6d", 100) == "+000100" +string.format("%#+6.6d", 10000) == "+010000" +string.format("%#+20d", 0) == " +0" +string.format("%#+20d", 1) == " +1" +string.format("%#+20d", -1) == " -1" +string.format("%#+20d", 2) == " +2" +string.format("%#+20d", -2) == " -2" +string.format("%#+20d", 3) == " +3" +string.format("%#+20d", -3) == " -3" +string.format("%#+20d", 100) == " +100" +string.format("%#+20d", 10000) == " +10000" +string.format("%#+20d", 100000) == " +100000" +string.format("%#+20d", 1000000) == " +1000000" +string.format("%#+20d", 10000000) == " +10000000" +string.format("%#+20.0d", 0) == " +" +string.format("%#+20.0d", 1) == " +1" +string.format("%#+20.0d", -1) == " -1" +string.format("%#+20.0d", 2) == " +2" +string.format("%#+20.0d", -2) == " -2" +string.format("%#+20.0d", 3) == " +3" +string.format("%#+20.0d", -3) == " -3" +string.format("%#+20.0d", 100) == " +100" +string.format("%#+20.0d", 10000) == " +10000" +string.format("%#+20.0d", 100000) == " +100000" +string.format("%#+20.0d", 1000000) == " +1000000" +string.format("%#+20.0d", 10000000) == " +10000000" +string.format("%#+20.1d", 0) == " +0" +string.format("%#+20.1d", 1) == " +1" +string.format("%#+20.1d", -1) == " -1" +string.format("%#+20.1d", 2) == " +2" +string.format("%#+20.1d", -2) == " -2" +string.format("%#+20.1d", 3) == " +3" +string.format("%#+20.1d", -3) == " -3" +string.format("%#+20.1d", 100) == " +100" +string.format("%#+20.1d", 10000) == " +10000" +string.format("%#+20.1d", 100000) == " +100000" +string.format("%#+20.1d", 1000000) == " +1000000" +string.format("%#+20.1d", 10000000) == " +10000000" +string.format("%#+20.6d", 0) == " +000000" +string.format("%#+20.6d", 1) == " +000001" +string.format("%#+20.6d", -1) == " -000001" +string.format("%#+20.6d", 2) == " +000002" +string.format("%#+20.6d", -2) == " -000002" +string.format("%#+20.6d", 3) == " +000003" +string.format("%#+20.6d", -3) == " -000003" +string.format("%#+20.6d", 100) == " +000100" +string.format("%#+20.6d", 10000) == " +010000" +string.format("%#+20.6d", 100000) == " +100000" +string.format("%#+20.6d", 1000000) == " +1000000" +string.format("%#+20.6d", 10000000) == " +10000000" +string.format("%#-d", 0) == "0" +string.format("%#-d", 1) == "1" +string.format("%#-d", -1) == "-1" +string.format("%#-d", 2) == "2" +string.format("%#-d", -2) == "-2" +string.format("%#-d", 3) == "3" +string.format("%#-d", -3) == "-3" +string.format("%#-d", 100) == "100" +string.format("%#-d", 10000) == "10000" +string.format("%#-d", 100000) == "100000" +string.format("%#-d", 1000000) == "1000000" +string.format("%#-d", 10000000) == "10000000" +string.format("%#-.0d", 0) == "" +string.format("%#-.6d", 0) == "000000" +string.format("%#-.6d", 1) == "000001" +string.format("%#-.6d", -1) == "-000001" +string.format("%#-.6d", 2) == "000002" +string.format("%#-.6d", -2) == "-000002" +string.format("%#-.6d", 3) == "000003" +string.format("%#-.6d", -3) == "-000003" +string.format("%#-.6d", 100) == "000100" +string.format("%#-.6d", 10000) == "010000" +string.format("%#-1.0d", 0) == " " +string.format("%#-1.6d", 0) == "000000" +string.format("%#-1.6d", 1) == "000001" +string.format("%#-1.6d", -1) == "-000001" +string.format("%#-1.6d", 2) == "000002" +string.format("%#-1.6d", -2) == "-000002" +string.format("%#-1.6d", 3) == "000003" +string.format("%#-1.6d", -3) == "-000003" +string.format("%#-1.6d", 100) == "000100" +string.format("%#-1.6d", 10000) == "010000" +string.format("%#-2d", 0) == "0 " +string.format("%#-2d", 1) == "1 " +string.format("%#-2d", 2) == "2 " +string.format("%#-2d", 3) == "3 " +string.format("%#-2.0d", 0) == " " +string.format("%#-2.0d", 1) == "1 " +string.format("%#-2.0d", 2) == "2 " +string.format("%#-2.0d", 3) == "3 " +string.format("%#-2.1d", 0) == "0 " +string.format("%#-2.1d", 1) == "1 " +string.format("%#-2.1d", 2) == "2 " +string.format("%#-2.1d", 3) == "3 " +string.format("%#-2.6d", 0) == "000000" +string.format("%#-2.6d", 1) == "000001" +string.format("%#-2.6d", -1) == "-000001" +string.format("%#-2.6d", 2) == "000002" +string.format("%#-2.6d", -2) == "-000002" +string.format("%#-2.6d", 3) == "000003" +string.format("%#-2.6d", -3) == "-000003" +string.format("%#-2.6d", 100) == "000100" +string.format("%#-2.6d", 10000) == "010000" +string.format("%#-6d", 0) == "0 " +string.format("%#-6d", 1) == "1 " +string.format("%#-6d", -1) == "-1 " +string.format("%#-6d", 2) == "2 " +string.format("%#-6d", -2) == "-2 " +string.format("%#-6d", 3) == "3 " +string.format("%#-6d", -3) == "-3 " +string.format("%#-6d", 100) == "100 " +string.format("%#-6d", 10000) == "10000 " +string.format("%#-6.0d", 0) == " " +string.format("%#-6.0d", 1) == "1 " +string.format("%#-6.0d", -1) == "-1 " +string.format("%#-6.0d", 2) == "2 " +string.format("%#-6.0d", -2) == "-2 " +string.format("%#-6.0d", 3) == "3 " +string.format("%#-6.0d", -3) == "-3 " +string.format("%#-6.0d", 100) == "100 " +string.format("%#-6.0d", 10000) == "10000 " +string.format("%#-6.1d", 0) == "0 " +string.format("%#-6.1d", 1) == "1 " +string.format("%#-6.1d", -1) == "-1 " +string.format("%#-6.1d", 2) == "2 " +string.format("%#-6.1d", -2) == "-2 " +string.format("%#-6.1d", 3) == "3 " +string.format("%#-6.1d", -3) == "-3 " +string.format("%#-6.1d", 100) == "100 " +string.format("%#-6.1d", 10000) == "10000 " +string.format("%#-6.6d", 0) == "000000" +string.format("%#-6.6d", 1) == "000001" +string.format("%#-6.6d", -1) == "-000001" +string.format("%#-6.6d", 2) == "000002" +string.format("%#-6.6d", -2) == "-000002" +string.format("%#-6.6d", 3) == "000003" +string.format("%#-6.6d", -3) == "-000003" +string.format("%#-6.6d", 100) == "000100" +string.format("%#-6.6d", 10000) == "010000" +string.format("%#-20d", 0) == "0 " +string.format("%#-20d", 1) == "1 " +string.format("%#-20d", -1) == "-1 " +string.format("%#-20d", 2) == "2 " +string.format("%#-20d", -2) == "-2 " +string.format("%#-20d", 3) == "3 " +string.format("%#-20d", -3) == "-3 " +string.format("%#-20d", 100) == "100 " +string.format("%#-20d", 10000) == "10000 " +string.format("%#-20d", 100000) == "100000 " +string.format("%#-20d", 1000000) == "1000000 " +string.format("%#-20d", 10000000) == "10000000 " +string.format("%#-20.0d", 0) == " " +string.format("%#-20.0d", 1) == "1 " +string.format("%#-20.0d", -1) == "-1 " +string.format("%#-20.0d", 2) == "2 " +string.format("%#-20.0d", -2) == "-2 " +string.format("%#-20.0d", 3) == "3 " +string.format("%#-20.0d", -3) == "-3 " +string.format("%#-20.0d", 100) == "100 " +string.format("%#-20.0d", 10000) == "10000 " +string.format("%#-20.0d", 100000) == "100000 " +string.format("%#-20.0d", 1000000) == "1000000 " +string.format("%#-20.0d", 10000000) == "10000000 " +string.format("%#-20.1d", 0) == "0 " +string.format("%#-20.1d", 1) == "1 " +string.format("%#-20.1d", -1) == "-1 " +string.format("%#-20.1d", 2) == "2 " +string.format("%#-20.1d", -2) == "-2 " +string.format("%#-20.1d", 3) == "3 " +string.format("%#-20.1d", -3) == "-3 " +string.format("%#-20.1d", 100) == "100 " +string.format("%#-20.1d", 10000) == "10000 " +string.format("%#-20.1d", 100000) == "100000 " +string.format("%#-20.1d", 1000000) == "1000000 " +string.format("%#-20.1d", 10000000) == "10000000 " +string.format("%#-20.6d", 0) == "000000 " +string.format("%#-20.6d", 1) == "000001 " +string.format("%#-20.6d", -1) == "-000001 " +string.format("%#-20.6d", 2) == "000002 " +string.format("%#-20.6d", -2) == "-000002 " +string.format("%#-20.6d", 3) == "000003 " +string.format("%#-20.6d", -3) == "-000003 " +string.format("%#-20.6d", 100) == "000100 " +string.format("%#-20.6d", 10000) == "010000 " +string.format("%#-20.6d", 100000) == "100000 " +string.format("%#-20.6d", 1000000) == "1000000 " +string.format("%#-20.6d", 10000000) == "10000000 " +string.format("%#-+d", 0) == "+0" +string.format("%#-+d", 1) == "+1" +string.format("%#-+d", -1) == "-1" +string.format("%#-+d", 2) == "+2" +string.format("%#-+d", -2) == "-2" +string.format("%#-+d", 3) == "+3" +string.format("%#-+d", -3) == "-3" +string.format("%#-+d", 100) == "+100" +string.format("%#-+d", 10000) == "+10000" +string.format("%#-+d", 100000) == "+100000" +string.format("%#-+d", 1000000) == "+1000000" +string.format("%#-+d", 10000000) == "+10000000" +string.format("%#-+.0d", 0) == "+" +string.format("%#-+.6d", 0) == "+000000" +string.format("%#-+.6d", 1) == "+000001" +string.format("%#-+.6d", -1) == "-000001" +string.format("%#-+.6d", 2) == "+000002" +string.format("%#-+.6d", -2) == "-000002" +string.format("%#-+.6d", 3) == "+000003" +string.format("%#-+.6d", -3) == "-000003" +string.format("%#-+.6d", 100) == "+000100" +string.format("%#-+.6d", 10000) == "+010000" +string.format("%#-+1.0d", 0) == "+" +string.format("%#-+1.6d", 0) == "+000000" +string.format("%#-+1.6d", 1) == "+000001" +string.format("%#-+1.6d", -1) == "-000001" +string.format("%#-+1.6d", 2) == "+000002" +string.format("%#-+1.6d", -2) == "-000002" +string.format("%#-+1.6d", 3) == "+000003" +string.format("%#-+1.6d", -3) == "-000003" +string.format("%#-+1.6d", 100) == "+000100" +string.format("%#-+1.6d", 10000) == "+010000" +string.format("%#-+2.0d", 0) == "+ " +string.format("%#-+2.6d", 0) == "+000000" +string.format("%#-+2.6d", 1) == "+000001" +string.format("%#-+2.6d", -1) == "-000001" +string.format("%#-+2.6d", 2) == "+000002" +string.format("%#-+2.6d", -2) == "-000002" +string.format("%#-+2.6d", 3) == "+000003" +string.format("%#-+2.6d", -3) == "-000003" +string.format("%#-+2.6d", 100) == "+000100" +string.format("%#-+2.6d", 10000) == "+010000" +string.format("%#-+6d", 0) == "+0 " +string.format("%#-+6d", 1) == "+1 " +string.format("%#-+6d", -1) == "-1 " +string.format("%#-+6d", 2) == "+2 " +string.format("%#-+6d", -2) == "-2 " +string.format("%#-+6d", 3) == "+3 " +string.format("%#-+6d", -3) == "-3 " +string.format("%#-+6d", 100) == "+100 " +string.format("%#-+6.0d", 0) == "+ " +string.format("%#-+6.0d", 1) == "+1 " +string.format("%#-+6.0d", -1) == "-1 " +string.format("%#-+6.0d", 2) == "+2 " +string.format("%#-+6.0d", -2) == "-2 " +string.format("%#-+6.0d", 3) == "+3 " +string.format("%#-+6.0d", -3) == "-3 " +string.format("%#-+6.0d", 100) == "+100 " +string.format("%#-+6.1d", 0) == "+0 " +string.format("%#-+6.1d", 1) == "+1 " +string.format("%#-+6.1d", -1) == "-1 " +string.format("%#-+6.1d", 2) == "+2 " +string.format("%#-+6.1d", -2) == "-2 " +string.format("%#-+6.1d", 3) == "+3 " +string.format("%#-+6.1d", -3) == "-3 " +string.format("%#-+6.1d", 100) == "+100 " +string.format("%#-+6.6d", 0) == "+000000" +string.format("%#-+6.6d", 1) == "+000001" +string.format("%#-+6.6d", -1) == "-000001" +string.format("%#-+6.6d", 2) == "+000002" +string.format("%#-+6.6d", -2) == "-000002" +string.format("%#-+6.6d", 3) == "+000003" +string.format("%#-+6.6d", -3) == "-000003" +string.format("%#-+6.6d", 100) == "+000100" +string.format("%#-+6.6d", 10000) == "+010000" +string.format("%#-+20d", 0) == "+0 " +string.format("%#-+20d", 1) == "+1 " +string.format("%#-+20d", -1) == "-1 " +string.format("%#-+20d", 2) == "+2 " +string.format("%#-+20d", -2) == "-2 " +string.format("%#-+20d", 3) == "+3 " +string.format("%#-+20d", -3) == "-3 " +string.format("%#-+20d", 100) == "+100 " +string.format("%#-+20d", 10000) == "+10000 " +string.format("%#-+20d", 100000) == "+100000 " +string.format("%#-+20d", 1000000) == "+1000000 " +string.format("%#-+20d", 10000000) == "+10000000 " +string.format("%#-+20.0d", 0) == "+ " +string.format("%#-+20.0d", 1) == "+1 " +string.format("%#-+20.0d", -1) == "-1 " +string.format("%#-+20.0d", 2) == "+2 " +string.format("%#-+20.0d", -2) == "-2 " +string.format("%#-+20.0d", 3) == "+3 " +string.format("%#-+20.0d", -3) == "-3 " +string.format("%#-+20.0d", 100) == "+100 " +string.format("%#-+20.0d", 10000) == "+10000 " +string.format("%#-+20.0d", 100000) == "+100000 " +string.format("%#-+20.0d", 1000000) == "+1000000 " +string.format("%#-+20.0d", 10000000) == "+10000000 " +string.format("%#-+20.1d", 0) == "+0 " +string.format("%#-+20.1d", 1) == "+1 " +string.format("%#-+20.1d", -1) == "-1 " +string.format("%#-+20.1d", 2) == "+2 " +string.format("%#-+20.1d", -2) == "-2 " +string.format("%#-+20.1d", 3) == "+3 " +string.format("%#-+20.1d", -3) == "-3 " +string.format("%#-+20.1d", 100) == "+100 " +string.format("%#-+20.1d", 10000) == "+10000 " +string.format("%#-+20.1d", 100000) == "+100000 " +string.format("%#-+20.1d", 1000000) == "+1000000 " +string.format("%#-+20.1d", 10000000) == "+10000000 " +string.format("%#-+20.6d", 0) == "+000000 " +string.format("%#-+20.6d", 1) == "+000001 " +string.format("%#-+20.6d", -1) == "-000001 " +string.format("%#-+20.6d", 2) == "+000002 " +string.format("%#-+20.6d", -2) == "-000002 " +string.format("%#-+20.6d", 3) == "+000003 " +string.format("%#-+20.6d", -3) == "-000003 " +string.format("%#-+20.6d", 100) == "+000100 " +string.format("%#-+20.6d", 10000) == "+010000 " +string.format("%#-+20.6d", 100000) == "+100000 " +string.format("%#-+20.6d", 1000000) == "+1000000 " +string.format("%#-+20.6d", 10000000) == "+10000000 " +string.format("%# d", 0) == " 0" +string.format("%# d", 1) == " 1" +string.format("%# d", -1) == "-1" +string.format("%# d", 2) == " 2" +string.format("%# d", -2) == "-2" +string.format("%# d", 3) == " 3" +string.format("%# d", -3) == "-3" +string.format("%# d", 100) == " 100" +string.format("%# d", 10000) == " 10000" +string.format("%# d", 100000) == " 100000" +string.format("%# d", 1000000) == " 1000000" +string.format("%# d", 10000000) == " 10000000" +string.format("%# .0d", 0) == " " +string.format("%# .6d", 0) == " 000000" +string.format("%# .6d", 1) == " 000001" +string.format("%# .6d", -1) == "-000001" +string.format("%# .6d", 2) == " 000002" +string.format("%# .6d", -2) == "-000002" +string.format("%# .6d", 3) == " 000003" +string.format("%# .6d", -3) == "-000003" +string.format("%# .6d", 100) == " 000100" +string.format("%# .6d", 10000) == " 010000" +string.format("%# 1.0d", 0) == " " +string.format("%# 1.6d", 0) == " 000000" +string.format("%# 1.6d", 1) == " 000001" +string.format("%# 1.6d", -1) == "-000001" +string.format("%# 1.6d", 2) == " 000002" +string.format("%# 1.6d", -2) == "-000002" +string.format("%# 1.6d", 3) == " 000003" +string.format("%# 1.6d", -3) == "-000003" +string.format("%# 1.6d", 100) == " 000100" +string.format("%# 1.6d", 10000) == " 010000" +string.format("%# 2.0d", 0) == " " +string.format("%# 2.6d", 0) == " 000000" +string.format("%# 2.6d", 1) == " 000001" +string.format("%# 2.6d", -1) == "-000001" +string.format("%# 2.6d", 2) == " 000002" +string.format("%# 2.6d", -2) == "-000002" +string.format("%# 2.6d", 3) == " 000003" +string.format("%# 2.6d", -3) == "-000003" +string.format("%# 2.6d", 100) == " 000100" +string.format("%# 2.6d", 10000) == " 010000" +string.format("%# 6d", 0) == " 0" +string.format("%# 6d", 1) == " 1" +string.format("%# 6d", -1) == " -1" +string.format("%# 6d", 2) == " 2" +string.format("%# 6d", -2) == " -2" +string.format("%# 6d", 3) == " 3" +string.format("%# 6d", -3) == " -3" +string.format("%# 6d", 100) == " 100" +string.format("%# 6.0d", 0) == " " +string.format("%# 6.0d", 1) == " 1" +string.format("%# 6.0d", -1) == " -1" +string.format("%# 6.0d", 2) == " 2" +string.format("%# 6.0d", -2) == " -2" +string.format("%# 6.0d", 3) == " 3" +string.format("%# 6.0d", -3) == " -3" +string.format("%# 6.0d", 100) == " 100" +string.format("%# 6.1d", 0) == " 0" +string.format("%# 6.1d", 1) == " 1" +string.format("%# 6.1d", -1) == " -1" +string.format("%# 6.1d", 2) == " 2" +string.format("%# 6.1d", -2) == " -2" +string.format("%# 6.1d", 3) == " 3" +string.format("%# 6.1d", -3) == " -3" +string.format("%# 6.1d", 100) == " 100" +string.format("%# 6.6d", 0) == " 000000" +string.format("%# 6.6d", 1) == " 000001" +string.format("%# 6.6d", -1) == "-000001" +string.format("%# 6.6d", 2) == " 000002" +string.format("%# 6.6d", -2) == "-000002" +string.format("%# 6.6d", 3) == " 000003" +string.format("%# 6.6d", -3) == "-000003" +string.format("%# 6.6d", 100) == " 000100" +string.format("%# 6.6d", 10000) == " 010000" +string.format("%# 20d", 0) == " 0" +string.format("%# 20d", 1) == " 1" +string.format("%# 20d", -1) == " -1" +string.format("%# 20d", 2) == " 2" +string.format("%# 20d", -2) == " -2" +string.format("%# 20d", 3) == " 3" +string.format("%# 20d", -3) == " -3" +string.format("%# 20d", 100) == " 100" +string.format("%# 20d", 10000) == " 10000" +string.format("%# 20d", 100000) == " 100000" +string.format("%# 20d", 1000000) == " 1000000" +string.format("%# 20d", 10000000) == " 10000000" +string.format("%# 20.0d", 0) == " " +string.format("%# 20.0d", 1) == " 1" +string.format("%# 20.0d", -1) == " -1" +string.format("%# 20.0d", 2) == " 2" +string.format("%# 20.0d", -2) == " -2" +string.format("%# 20.0d", 3) == " 3" +string.format("%# 20.0d", -3) == " -3" +string.format("%# 20.0d", 100) == " 100" +string.format("%# 20.0d", 10000) == " 10000" +string.format("%# 20.0d", 100000) == " 100000" +string.format("%# 20.0d", 1000000) == " 1000000" +string.format("%# 20.0d", 10000000) == " 10000000" +string.format("%# 20.1d", 0) == " 0" +string.format("%# 20.1d", 1) == " 1" +string.format("%# 20.1d", -1) == " -1" +string.format("%# 20.1d", 2) == " 2" +string.format("%# 20.1d", -2) == " -2" +string.format("%# 20.1d", 3) == " 3" +string.format("%# 20.1d", -3) == " -3" +string.format("%# 20.1d", 100) == " 100" +string.format("%# 20.1d", 10000) == " 10000" +string.format("%# 20.1d", 100000) == " 100000" +string.format("%# 20.1d", 1000000) == " 1000000" +string.format("%# 20.1d", 10000000) == " 10000000" +string.format("%# 20.6d", 0) == " 000000" +string.format("%# 20.6d", 1) == " 000001" +string.format("%# 20.6d", -1) == " -000001" +string.format("%# 20.6d", 2) == " 000002" +string.format("%# 20.6d", -2) == " -000002" +string.format("%# 20.6d", 3) == " 000003" +string.format("%# 20.6d", -3) == " -000003" +string.format("%# 20.6d", 100) == " 000100" +string.format("%# 20.6d", 10000) == " 010000" +string.format("%# 20.6d", 100000) == " 100000" +string.format("%# 20.6d", 1000000) == " 1000000" +string.format("%# 20.6d", 10000000) == " 10000000" +string.format("%# +d", 0) == "+0" +string.format("%# +d", 1) == "+1" +string.format("%# +d", -1) == "-1" +string.format("%# +d", 2) == "+2" +string.format("%# +d", -2) == "-2" +string.format("%# +d", 3) == "+3" +string.format("%# +d", -3) == "-3" +string.format("%# +d", 100) == "+100" +string.format("%# +d", 10000) == "+10000" +string.format("%# +d", 100000) == "+100000" +string.format("%# +d", 1000000) == "+1000000" +string.format("%# +d", 10000000) == "+10000000" +string.format("%# +.0d", 0) == "+" +string.format("%# +.6d", 0) == "+000000" +string.format("%# +.6d", 1) == "+000001" +string.format("%# +.6d", -1) == "-000001" +string.format("%# +.6d", 2) == "+000002" +string.format("%# +.6d", -2) == "-000002" +string.format("%# +.6d", 3) == "+000003" +string.format("%# +.6d", -3) == "-000003" +string.format("%# +.6d", 100) == "+000100" +string.format("%# +.6d", 10000) == "+010000" +string.format("%# +1.0d", 0) == "+" +string.format("%# +1.6d", 0) == "+000000" +string.format("%# +1.6d", 1) == "+000001" +string.format("%# +1.6d", -1) == "-000001" +string.format("%# +1.6d", 2) == "+000002" +string.format("%# +1.6d", -2) == "-000002" +string.format("%# +1.6d", 3) == "+000003" +string.format("%# +1.6d", -3) == "-000003" +string.format("%# +1.6d", 100) == "+000100" +string.format("%# +1.6d", 10000) == "+010000" +string.format("%# +2.0d", 0) == " +" +string.format("%# +2.6d", 0) == "+000000" +string.format("%# +2.6d", 1) == "+000001" +string.format("%# +2.6d", -1) == "-000001" +string.format("%# +2.6d", 2) == "+000002" +string.format("%# +2.6d", -2) == "-000002" +string.format("%# +2.6d", 3) == "+000003" +string.format("%# +2.6d", -3) == "-000003" +string.format("%# +2.6d", 100) == "+000100" +string.format("%# +2.6d", 10000) == "+010000" +string.format("%# +6d", 0) == " +0" +string.format("%# +6d", 1) == " +1" +string.format("%# +6d", -1) == " -1" +string.format("%# +6d", 2) == " +2" +string.format("%# +6d", -2) == " -2" +string.format("%# +6d", 3) == " +3" +string.format("%# +6d", -3) == " -3" +string.format("%# +6d", 100) == " +100" +string.format("%# +6.0d", 0) == " +" +string.format("%# +6.0d", 1) == " +1" +string.format("%# +6.0d", -1) == " -1" +string.format("%# +6.0d", 2) == " +2" +string.format("%# +6.0d", -2) == " -2" +string.format("%# +6.0d", 3) == " +3" +string.format("%# +6.0d", -3) == " -3" +string.format("%# +6.0d", 100) == " +100" +string.format("%# +6.1d", 0) == " +0" +string.format("%# +6.1d", 1) == " +1" +string.format("%# +6.1d", -1) == " -1" +string.format("%# +6.1d", 2) == " +2" +string.format("%# +6.1d", -2) == " -2" +string.format("%# +6.1d", 3) == " +3" +string.format("%# +6.1d", -3) == " -3" +string.format("%# +6.1d", 100) == " +100" +string.format("%# +6.6d", 0) == "+000000" +string.format("%# +6.6d", 1) == "+000001" +string.format("%# +6.6d", -1) == "-000001" +string.format("%# +6.6d", 2) == "+000002" +string.format("%# +6.6d", -2) == "-000002" +string.format("%# +6.6d", 3) == "+000003" +string.format("%# +6.6d", -3) == "-000003" +string.format("%# +6.6d", 100) == "+000100" +string.format("%# +6.6d", 10000) == "+010000" +string.format("%# +20d", 0) == " +0" +string.format("%# +20d", 1) == " +1" +string.format("%# +20d", -1) == " -1" +string.format("%# +20d", 2) == " +2" +string.format("%# +20d", -2) == " -2" +string.format("%# +20d", 3) == " +3" +string.format("%# +20d", -3) == " -3" +string.format("%# +20d", 100) == " +100" +string.format("%# +20d", 10000) == " +10000" +string.format("%# +20d", 100000) == " +100000" +string.format("%# +20d", 1000000) == " +1000000" +string.format("%# +20d", 10000000) == " +10000000" +string.format("%# +20.0d", 0) == " +" +string.format("%# +20.0d", 1) == " +1" +string.format("%# +20.0d", -1) == " -1" +string.format("%# +20.0d", 2) == " +2" +string.format("%# +20.0d", -2) == " -2" +string.format("%# +20.0d", 3) == " +3" +string.format("%# +20.0d", -3) == " -3" +string.format("%# +20.0d", 100) == " +100" +string.format("%# +20.0d", 10000) == " +10000" +string.format("%# +20.0d", 100000) == " +100000" +string.format("%# +20.0d", 1000000) == " +1000000" +string.format("%# +20.0d", 10000000) == " +10000000" +string.format("%# +20.1d", 0) == " +0" +string.format("%# +20.1d", 1) == " +1" +string.format("%# +20.1d", -1) == " -1" +string.format("%# +20.1d", 2) == " +2" +string.format("%# +20.1d", -2) == " -2" +string.format("%# +20.1d", 3) == " +3" +string.format("%# +20.1d", -3) == " -3" +string.format("%# +20.1d", 100) == " +100" +string.format("%# +20.1d", 10000) == " +10000" +string.format("%# +20.1d", 100000) == " +100000" +string.format("%# +20.1d", 1000000) == " +1000000" +string.format("%# +20.1d", 10000000) == " +10000000" +string.format("%# +20.6d", 0) == " +000000" +string.format("%# +20.6d", 1) == " +000001" +string.format("%# +20.6d", -1) == " -000001" +string.format("%# +20.6d", 2) == " +000002" +string.format("%# +20.6d", -2) == " -000002" +string.format("%# +20.6d", 3) == " +000003" +string.format("%# +20.6d", -3) == " -000003" +string.format("%# +20.6d", 100) == " +000100" +string.format("%# +20.6d", 10000) == " +010000" +string.format("%# +20.6d", 100000) == " +100000" +string.format("%# +20.6d", 1000000) == " +1000000" +string.format("%# +20.6d", 10000000) == " +10000000" +string.format("%# -d", 0) == " 0" +string.format("%# -d", 1) == " 1" +string.format("%# -d", -1) == "-1" +string.format("%# -d", 2) == " 2" +string.format("%# -d", -2) == "-2" +string.format("%# -d", 3) == " 3" +string.format("%# -d", -3) == "-3" +string.format("%# -d", 100) == " 100" +string.format("%# -d", 10000) == " 10000" +string.format("%# -d", 100000) == " 100000" +string.format("%# -d", 1000000) == " 1000000" +string.format("%# -d", 10000000) == " 10000000" +string.format("%# -.0d", 0) == " " +string.format("%# -.6d", 0) == " 000000" +string.format("%# -.6d", 1) == " 000001" +string.format("%# -.6d", -1) == "-000001" +string.format("%# -.6d", 2) == " 000002" +string.format("%# -.6d", -2) == "-000002" +string.format("%# -.6d", 3) == " 000003" +string.format("%# -.6d", -3) == "-000003" +string.format("%# -.6d", 100) == " 000100" +string.format("%# -.6d", 10000) == " 010000" +string.format("%# -1.0d", 0) == " " +string.format("%# -1.6d", 0) == " 000000" +string.format("%# -1.6d", 1) == " 000001" +string.format("%# -1.6d", -1) == "-000001" +string.format("%# -1.6d", 2) == " 000002" +string.format("%# -1.6d", -2) == "-000002" +string.format("%# -1.6d", 3) == " 000003" +string.format("%# -1.6d", -3) == "-000003" +string.format("%# -1.6d", 100) == " 000100" +string.format("%# -1.6d", 10000) == " 010000" +string.format("%# -2.0d", 0) == " " +string.format("%# -2.6d", 0) == " 000000" +string.format("%# -2.6d", 1) == " 000001" +string.format("%# -2.6d", -1) == "-000001" +string.format("%# -2.6d", 2) == " 000002" +string.format("%# -2.6d", -2) == "-000002" +string.format("%# -2.6d", 3) == " 000003" +string.format("%# -2.6d", -3) == "-000003" +string.format("%# -2.6d", 100) == " 000100" +string.format("%# -2.6d", 10000) == " 010000" +string.format("%# -6d", 0) == " 0 " +string.format("%# -6d", 1) == " 1 " +string.format("%# -6d", -1) == "-1 " +string.format("%# -6d", 2) == " 2 " +string.format("%# -6d", -2) == "-2 " +string.format("%# -6d", 3) == " 3 " +string.format("%# -6d", -3) == "-3 " +string.format("%# -6d", 100) == " 100 " +string.format("%# -6.0d", 0) == " " +string.format("%# -6.0d", 1) == " 1 " +string.format("%# -6.0d", -1) == "-1 " +string.format("%# -6.0d", 2) == " 2 " +string.format("%# -6.0d", -2) == "-2 " +string.format("%# -6.0d", 3) == " 3 " +string.format("%# -6.0d", -3) == "-3 " +string.format("%# -6.0d", 100) == " 100 " +string.format("%# -6.1d", 0) == " 0 " +string.format("%# -6.1d", 1) == " 1 " +string.format("%# -6.1d", -1) == "-1 " +string.format("%# -6.1d", 2) == " 2 " +string.format("%# -6.1d", -2) == "-2 " +string.format("%# -6.1d", 3) == " 3 " +string.format("%# -6.1d", -3) == "-3 " +string.format("%# -6.1d", 100) == " 100 " +string.format("%# -6.6d", 0) == " 000000" +string.format("%# -6.6d", 1) == " 000001" +string.format("%# -6.6d", -1) == "-000001" +string.format("%# -6.6d", 2) == " 000002" +string.format("%# -6.6d", -2) == "-000002" +string.format("%# -6.6d", 3) == " 000003" +string.format("%# -6.6d", -3) == "-000003" +string.format("%# -6.6d", 100) == " 000100" +string.format("%# -6.6d", 10000) == " 010000" +string.format("%# -20d", 0) == " 0 " +string.format("%# -20d", 1) == " 1 " +string.format("%# -20d", -1) == "-1 " +string.format("%# -20d", 2) == " 2 " +string.format("%# -20d", -2) == "-2 " +string.format("%# -20d", 3) == " 3 " +string.format("%# -20d", -3) == "-3 " +string.format("%# -20d", 100) == " 100 " +string.format("%# -20d", 10000) == " 10000 " +string.format("%# -20d", 100000) == " 100000 " +string.format("%# -20d", 1000000) == " 1000000 " +string.format("%# -20d", 10000000) == " 10000000 " +string.format("%# -20.0d", 0) == " " +string.format("%# -20.0d", 1) == " 1 " +string.format("%# -20.0d", -1) == "-1 " +string.format("%# -20.0d", 2) == " 2 " +string.format("%# -20.0d", -2) == "-2 " +string.format("%# -20.0d", 3) == " 3 " +string.format("%# -20.0d", -3) == "-3 " +string.format("%# -20.0d", 100) == " 100 " +string.format("%# -20.0d", 10000) == " 10000 " +string.format("%# -20.0d", 100000) == " 100000 " +string.format("%# -20.0d", 1000000) == " 1000000 " +string.format("%# -20.0d", 10000000) == " 10000000 " +string.format("%# -20.1d", 0) == " 0 " +string.format("%# -20.1d", 1) == " 1 " +string.format("%# -20.1d", -1) == "-1 " +string.format("%# -20.1d", 2) == " 2 " +string.format("%# -20.1d", -2) == "-2 " +string.format("%# -20.1d", 3) == " 3 " +string.format("%# -20.1d", -3) == "-3 " +string.format("%# -20.1d", 100) == " 100 " +string.format("%# -20.1d", 10000) == " 10000 " +string.format("%# -20.1d", 100000) == " 100000 " +string.format("%# -20.1d", 1000000) == " 1000000 " +string.format("%# -20.1d", 10000000) == " 10000000 " +string.format("%# -20.6d", 0) == " 000000 " +string.format("%# -20.6d", 1) == " 000001 " +string.format("%# -20.6d", -1) == "-000001 " +string.format("%# -20.6d", 2) == " 000002 " +string.format("%# -20.6d", -2) == "-000002 " +string.format("%# -20.6d", 3) == " 000003 " +string.format("%# -20.6d", -3) == "-000003 " +string.format("%# -20.6d", 100) == " 000100 " +string.format("%# -20.6d", 10000) == " 010000 " +string.format("%# -20.6d", 100000) == " 100000 " +string.format("%# -20.6d", 1000000) == " 1000000 " +string.format("%# -20.6d", 10000000) == " 10000000 " +string.format("%# -+d", 0) == "+0" +string.format("%# -+d", 1) == "+1" +string.format("%# -+d", -1) == "-1" +string.format("%# -+d", 2) == "+2" +string.format("%# -+d", -2) == "-2" +string.format("%# -+d", 3) == "+3" +string.format("%# -+d", -3) == "-3" +string.format("%# -+d", 100) == "+100" +string.format("%# -+d", 10000) == "+10000" +string.format("%# -+d", 100000) == "+100000" +string.format("%# -+d", 1000000) == "+1000000" +string.format("%# -+d", 10000000) == "+10000000" +string.format("%# -+.0d", 0) == "+" +string.format("%# -+.6d", 0) == "+000000" +string.format("%# -+.6d", 1) == "+000001" +string.format("%# -+.6d", -1) == "-000001" +string.format("%# -+.6d", 2) == "+000002" +string.format("%# -+.6d", -2) == "-000002" +string.format("%# -+.6d", 3) == "+000003" +string.format("%# -+.6d", -3) == "-000003" +string.format("%# -+.6d", 100) == "+000100" +string.format("%# -+.6d", 10000) == "+010000" +string.format("%# -+1.0d", 0) == "+" +string.format("%# -+1.6d", 0) == "+000000" +string.format("%# -+1.6d", 1) == "+000001" +string.format("%# -+1.6d", -1) == "-000001" +string.format("%# -+1.6d", 2) == "+000002" +string.format("%# -+1.6d", -2) == "-000002" +string.format("%# -+1.6d", 3) == "+000003" +string.format("%# -+1.6d", -3) == "-000003" +string.format("%# -+1.6d", 100) == "+000100" +string.format("%# -+1.6d", 10000) == "+010000" +string.format("%# -+2.0d", 0) == "+ " +string.format("%# -+2.6d", 0) == "+000000" +string.format("%# -+2.6d", 1) == "+000001" +string.format("%# -+2.6d", -1) == "-000001" +string.format("%# -+2.6d", 2) == "+000002" +string.format("%# -+2.6d", -2) == "-000002" +string.format("%# -+2.6d", 3) == "+000003" +string.format("%# -+2.6d", -3) == "-000003" +string.format("%# -+2.6d", 100) == "+000100" +string.format("%# -+2.6d", 10000) == "+010000" +string.format("%# -+6d", 0) == "+0 " +string.format("%# -+6d", 1) == "+1 " +string.format("%# -+6d", -1) == "-1 " +string.format("%# -+6d", 2) == "+2 " +string.format("%# -+6d", -2) == "-2 " +string.format("%# -+6d", 3) == "+3 " +string.format("%# -+6d", -3) == "-3 " +string.format("%# -+6d", 100) == "+100 " +string.format("%# -+6.0d", 0) == "+ " +string.format("%# -+6.0d", 1) == "+1 " +string.format("%# -+6.0d", -1) == "-1 " +string.format("%# -+6.0d", 2) == "+2 " +string.format("%# -+6.0d", -2) == "-2 " +string.format("%# -+6.0d", 3) == "+3 " +string.format("%# -+6.0d", -3) == "-3 " +string.format("%# -+6.0d", 100) == "+100 " +string.format("%# -+6.1d", 0) == "+0 " +string.format("%# -+6.1d", 1) == "+1 " +string.format("%# -+6.1d", -1) == "-1 " +string.format("%# -+6.1d", 2) == "+2 " +string.format("%# -+6.1d", -2) == "-2 " +string.format("%# -+6.1d", 3) == "+3 " +string.format("%# -+6.1d", -3) == "-3 " +string.format("%# -+6.1d", 100) == "+100 " +string.format("%# -+6.6d", 0) == "+000000" +string.format("%# -+6.6d", 1) == "+000001" +string.format("%# -+6.6d", -1) == "-000001" +string.format("%# -+6.6d", 2) == "+000002" +string.format("%# -+6.6d", -2) == "-000002" +string.format("%# -+6.6d", 3) == "+000003" +string.format("%# -+6.6d", -3) == "-000003" +string.format("%# -+6.6d", 100) == "+000100" +string.format("%# -+6.6d", 10000) == "+010000" +string.format("%# -+20d", 0) == "+0 " +string.format("%# -+20d", 1) == "+1 " +string.format("%# -+20d", -1) == "-1 " +string.format("%# -+20d", 2) == "+2 " +string.format("%# -+20d", -2) == "-2 " +string.format("%# -+20d", 3) == "+3 " +string.format("%# -+20d", -3) == "-3 " +string.format("%# -+20d", 100) == "+100 " +string.format("%# -+20d", 10000) == "+10000 " +string.format("%# -+20d", 100000) == "+100000 " +string.format("%# -+20d", 1000000) == "+1000000 " +string.format("%# -+20d", 10000000) == "+10000000 " +string.format("%# -+20.0d", 0) == "+ " +string.format("%# -+20.0d", 1) == "+1 " +string.format("%# -+20.0d", -1) == "-1 " +string.format("%# -+20.0d", 2) == "+2 " +string.format("%# -+20.0d", -2) == "-2 " +string.format("%# -+20.0d", 3) == "+3 " +string.format("%# -+20.0d", -3) == "-3 " +string.format("%# -+20.0d", 100) == "+100 " +string.format("%# -+20.0d", 10000) == "+10000 " +string.format("%# -+20.0d", 100000) == "+100000 " +string.format("%# -+20.0d", 1000000) == "+1000000 " +string.format("%# -+20.0d", 10000000) == "+10000000 " +string.format("%# -+20.1d", 0) == "+0 " +string.format("%# -+20.1d", 1) == "+1 " +string.format("%# -+20.1d", -1) == "-1 " +string.format("%# -+20.1d", 2) == "+2 " +string.format("%# -+20.1d", -2) == "-2 " +string.format("%# -+20.1d", 3) == "+3 " +string.format("%# -+20.1d", -3) == "-3 " +string.format("%# -+20.1d", 100) == "+100 " +string.format("%# -+20.1d", 10000) == "+10000 " +string.format("%# -+20.1d", 100000) == "+100000 " +string.format("%# -+20.1d", 1000000) == "+1000000 " +string.format("%# -+20.1d", 10000000) == "+10000000 " +string.format("%# -+20.6d", 0) == "+000000 " +string.format("%# -+20.6d", 1) == "+000001 " +string.format("%# -+20.6d", -1) == "-000001 " +string.format("%# -+20.6d", 2) == "+000002 " +string.format("%# -+20.6d", -2) == "-000002 " +string.format("%# -+20.6d", 3) == "+000003 " +string.format("%# -+20.6d", -3) == "-000003 " +string.format("%# -+20.6d", 100) == "+000100 " +string.format("%# -+20.6d", 10000) == "+010000 " +string.format("%# -+20.6d", 100000) == "+100000 " +string.format("%# -+20.6d", 1000000) == "+1000000 " +string.format("%# -+20.6d", 10000000) == "+10000000 " +string.format("%0d", 0) == "0" +string.format("%0d", 1) == "1" +string.format("%0d", -1) == "-1" +string.format("%0d", 2) == "2" +string.format("%0d", -2) == "-2" +string.format("%0d", 3) == "3" +string.format("%0d", -3) == "-3" +string.format("%0d", 100) == "100" +string.format("%0d", 10000) == "10000" +string.format("%0d", 100000) == "100000" +string.format("%0d", 1000000) == "1000000" +string.format("%0d", 10000000) == "10000000" +string.format("%0.0d", 0) == "" +string.format("%0.6d", 0) == "000000" +string.format("%0.6d", 1) == "000001" +string.format("%0.6d", -1) == "-000001" +string.format("%0.6d", 2) == "000002" +string.format("%0.6d", -2) == "-000002" +string.format("%0.6d", 3) == "000003" +string.format("%0.6d", -3) == "-000003" +string.format("%0.6d", 100) == "000100" +string.format("%0.6d", 10000) == "010000" +string.format("%01.0d", 0) == " " +string.format("%01.6d", 0) == "000000" +string.format("%01.6d", 1) == "000001" +string.format("%01.6d", -1) == "-000001" +string.format("%01.6d", 2) == "000002" +string.format("%01.6d", -2) == "-000002" +string.format("%01.6d", 3) == "000003" +string.format("%01.6d", -3) == "-000003" +string.format("%01.6d", 100) == "000100" +string.format("%01.6d", 10000) == "010000" +string.format("%02d", 0) == "00" +string.format("%02d", 1) == "01" +string.format("%02d", 2) == "02" +string.format("%02d", 3) == "03" +string.format("%02.0d", 0) == " " +string.format("%02.0d", 1) == " 1" +string.format("%02.0d", 2) == " 2" +string.format("%02.0d", 3) == " 3" +string.format("%02.1d", 0) == " 0" +string.format("%02.1d", 1) == " 1" +string.format("%02.1d", 2) == " 2" +string.format("%02.1d", 3) == " 3" +string.format("%02.6d", 0) == "000000" +string.format("%02.6d", 1) == "000001" +string.format("%02.6d", -1) == "-000001" +string.format("%02.6d", 2) == "000002" +string.format("%02.6d", -2) == "-000002" +string.format("%02.6d", 3) == "000003" +string.format("%02.6d", -3) == "-000003" +string.format("%02.6d", 100) == "000100" +string.format("%02.6d", 10000) == "010000" +string.format("%06d", 0) == "000000" +string.format("%06d", 1) == "000001" +string.format("%06d", -1) == "-00001" +string.format("%06d", 2) == "000002" +string.format("%06d", -2) == "-00002" +string.format("%06d", 3) == "000003" +string.format("%06d", -3) == "-00003" +string.format("%06d", 100) == "000100" +string.format("%06d", 10000) == "010000" +string.format("%06.0d", 0) == " " +string.format("%06.0d", 1) == " 1" +string.format("%06.0d", -1) == " -1" +string.format("%06.0d", 2) == " 2" +string.format("%06.0d", -2) == " -2" +string.format("%06.0d", 3) == " 3" +string.format("%06.0d", -3) == " -3" +string.format("%06.0d", 100) == " 100" +string.format("%06.0d", 10000) == " 10000" +string.format("%06.1d", 0) == " 0" +string.format("%06.1d", 1) == " 1" +string.format("%06.1d", -1) == " -1" +string.format("%06.1d", 2) == " 2" +string.format("%06.1d", -2) == " -2" +string.format("%06.1d", 3) == " 3" +string.format("%06.1d", -3) == " -3" +string.format("%06.1d", 100) == " 100" +string.format("%06.1d", 10000) == " 10000" +string.format("%06.6d", 0) == "000000" +string.format("%06.6d", 1) == "000001" +string.format("%06.6d", -1) == "-000001" +string.format("%06.6d", 2) == "000002" +string.format("%06.6d", -2) == "-000002" +string.format("%06.6d", 3) == "000003" +string.format("%06.6d", -3) == "-000003" +string.format("%06.6d", 100) == "000100" +string.format("%06.6d", 10000) == "010000" +string.format("%020d", 0) == "00000000000000000000" +string.format("%020d", 1) == "00000000000000000001" +string.format("%020d", -1) == "-0000000000000000001" +string.format("%020d", 2) == "00000000000000000002" +string.format("%020d", -2) == "-0000000000000000002" +string.format("%020d", 3) == "00000000000000000003" +string.format("%020d", -3) == "-0000000000000000003" +string.format("%020d", 100) == "00000000000000000100" +string.format("%020d", 10000) == "00000000000000010000" +string.format("%020d", 100000) == "00000000000000100000" +string.format("%020d", 1000000) == "00000000000001000000" +string.format("%020d", 10000000) == "00000000000010000000" +string.format("%020.0d", 0) == " " +string.format("%020.0d", 1) == " 1" +string.format("%020.0d", -1) == " -1" +string.format("%020.0d", 2) == " 2" +string.format("%020.0d", -2) == " -2" +string.format("%020.0d", 3) == " 3" +string.format("%020.0d", -3) == " -3" +string.format("%020.0d", 100) == " 100" +string.format("%020.0d", 10000) == " 10000" +string.format("%020.0d", 100000) == " 100000" +string.format("%020.0d", 1000000) == " 1000000" +string.format("%020.0d", 10000000) == " 10000000" +string.format("%020.1d", 0) == " 0" +string.format("%020.1d", 1) == " 1" +string.format("%020.1d", -1) == " -1" +string.format("%020.1d", 2) == " 2" +string.format("%020.1d", -2) == " -2" +string.format("%020.1d", 3) == " 3" +string.format("%020.1d", -3) == " -3" +string.format("%020.1d", 100) == " 100" +string.format("%020.1d", 10000) == " 10000" +string.format("%020.1d", 100000) == " 100000" +string.format("%020.1d", 1000000) == " 1000000" +string.format("%020.1d", 10000000) == " 10000000" +string.format("%020.6d", 0) == " 000000" +string.format("%020.6d", 1) == " 000001" +string.format("%020.6d", -1) == " -000001" +string.format("%020.6d", 2) == " 000002" +string.format("%020.6d", -2) == " -000002" +string.format("%020.6d", 3) == " 000003" +string.format("%020.6d", -3) == " -000003" +string.format("%020.6d", 100) == " 000100" +string.format("%020.6d", 10000) == " 010000" +string.format("%020.6d", 100000) == " 100000" +string.format("%020.6d", 1000000) == " 1000000" +string.format("%020.6d", 10000000) == " 10000000" +string.format("%0+d", 0) == "+0" +string.format("%0+d", 1) == "+1" +string.format("%0+d", -1) == "-1" +string.format("%0+d", 2) == "+2" +string.format("%0+d", -2) == "-2" +string.format("%0+d", 3) == "+3" +string.format("%0+d", -3) == "-3" +string.format("%0+d", 100) == "+100" +string.format("%0+d", 10000) == "+10000" +string.format("%0+d", 100000) == "+100000" +string.format("%0+d", 1000000) == "+1000000" +string.format("%0+d", 10000000) == "+10000000" +string.format("%0+.0d", 0) == "+" +string.format("%0+.6d", 0) == "+000000" +string.format("%0+.6d", 1) == "+000001" +string.format("%0+.6d", -1) == "-000001" +string.format("%0+.6d", 2) == "+000002" +string.format("%0+.6d", -2) == "-000002" +string.format("%0+.6d", 3) == "+000003" +string.format("%0+.6d", -3) == "-000003" +string.format("%0+.6d", 100) == "+000100" +string.format("%0+.6d", 10000) == "+010000" +string.format("%0+1.0d", 0) == "+" +string.format("%0+1.6d", 0) == "+000000" +string.format("%0+1.6d", 1) == "+000001" +string.format("%0+1.6d", -1) == "-000001" +string.format("%0+1.6d", 2) == "+000002" +string.format("%0+1.6d", -2) == "-000002" +string.format("%0+1.6d", 3) == "+000003" +string.format("%0+1.6d", -3) == "-000003" +string.format("%0+1.6d", 100) == "+000100" +string.format("%0+1.6d", 10000) == "+010000" +string.format("%0+2.0d", 0) == " +" +string.format("%0+2.6d", 0) == "+000000" +string.format("%0+2.6d", 1) == "+000001" +string.format("%0+2.6d", -1) == "-000001" +string.format("%0+2.6d", 2) == "+000002" +string.format("%0+2.6d", -2) == "-000002" +string.format("%0+2.6d", 3) == "+000003" +string.format("%0+2.6d", -3) == "-000003" +string.format("%0+2.6d", 100) == "+000100" +string.format("%0+2.6d", 10000) == "+010000" +string.format("%0+6d", 0) == "+00000" +string.format("%0+6d", 1) == "+00001" +string.format("%0+6d", -1) == "-00001" +string.format("%0+6d", 2) == "+00002" +string.format("%0+6d", -2) == "-00002" +string.format("%0+6d", 3) == "+00003" +string.format("%0+6d", -3) == "-00003" +string.format("%0+6d", 100) == "+00100" +string.format("%0+6.0d", 0) == " +" +string.format("%0+6.0d", 1) == " +1" +string.format("%0+6.0d", -1) == " -1" +string.format("%0+6.0d", 2) == " +2" +string.format("%0+6.0d", -2) == " -2" +string.format("%0+6.0d", 3) == " +3" +string.format("%0+6.0d", -3) == " -3" +string.format("%0+6.0d", 100) == " +100" +string.format("%0+6.1d", 0) == " +0" +string.format("%0+6.1d", 1) == " +1" +string.format("%0+6.1d", -1) == " -1" +string.format("%0+6.1d", 2) == " +2" +string.format("%0+6.1d", -2) == " -2" +string.format("%0+6.1d", 3) == " +3" +string.format("%0+6.1d", -3) == " -3" +string.format("%0+6.1d", 100) == " +100" +string.format("%0+6.6d", 0) == "+000000" +string.format("%0+6.6d", 1) == "+000001" +string.format("%0+6.6d", -1) == "-000001" +string.format("%0+6.6d", 2) == "+000002" +string.format("%0+6.6d", -2) == "-000002" +string.format("%0+6.6d", 3) == "+000003" +string.format("%0+6.6d", -3) == "-000003" +string.format("%0+6.6d", 100) == "+000100" +string.format("%0+6.6d", 10000) == "+010000" +string.format("%0+20d", 0) == "+0000000000000000000" +string.format("%0+20d", 1) == "+0000000000000000001" +string.format("%0+20d", -1) == "-0000000000000000001" +string.format("%0+20d", 2) == "+0000000000000000002" +string.format("%0+20d", -2) == "-0000000000000000002" +string.format("%0+20d", 3) == "+0000000000000000003" +string.format("%0+20d", -3) == "-0000000000000000003" +string.format("%0+20d", 100) == "+0000000000000000100" +string.format("%0+20d", 10000) == "+0000000000000010000" +string.format("%0+20d", 100000) == "+0000000000000100000" +string.format("%0+20d", 1000000) == "+0000000000001000000" +string.format("%0+20d", 10000000) == "+0000000000010000000" +string.format("%0+20.0d", 0) == " +" +string.format("%0+20.0d", 1) == " +1" +string.format("%0+20.0d", -1) == " -1" +string.format("%0+20.0d", 2) == " +2" +string.format("%0+20.0d", -2) == " -2" +string.format("%0+20.0d", 3) == " +3" +string.format("%0+20.0d", -3) == " -3" +string.format("%0+20.0d", 100) == " +100" +string.format("%0+20.0d", 10000) == " +10000" +string.format("%0+20.0d", 100000) == " +100000" +string.format("%0+20.0d", 1000000) == " +1000000" +string.format("%0+20.0d", 10000000) == " +10000000" +string.format("%0+20.1d", 0) == " +0" +string.format("%0+20.1d", 1) == " +1" +string.format("%0+20.1d", -1) == " -1" +string.format("%0+20.1d", 2) == " +2" +string.format("%0+20.1d", -2) == " -2" +string.format("%0+20.1d", 3) == " +3" +string.format("%0+20.1d", -3) == " -3" +string.format("%0+20.1d", 100) == " +100" +string.format("%0+20.1d", 10000) == " +10000" +string.format("%0+20.1d", 100000) == " +100000" +string.format("%0+20.1d", 1000000) == " +1000000" +string.format("%0+20.1d", 10000000) == " +10000000" +string.format("%0+20.6d", 0) == " +000000" +string.format("%0+20.6d", 1) == " +000001" +string.format("%0+20.6d", -1) == " -000001" +string.format("%0+20.6d", 2) == " +000002" +string.format("%0+20.6d", -2) == " -000002" +string.format("%0+20.6d", 3) == " +000003" +string.format("%0+20.6d", -3) == " -000003" +string.format("%0+20.6d", 100) == " +000100" +string.format("%0+20.6d", 10000) == " +010000" +string.format("%0+20.6d", 100000) == " +100000" +string.format("%0+20.6d", 1000000) == " +1000000" +string.format("%0+20.6d", 10000000) == " +10000000" +string.format("%0-d", 0) == "0" +string.format("%0-d", 1) == "1" +string.format("%0-d", -1) == "-1" +string.format("%0-d", 2) == "2" +string.format("%0-d", -2) == "-2" +string.format("%0-d", 3) == "3" +string.format("%0-d", -3) == "-3" +string.format("%0-d", 100) == "100" +string.format("%0-d", 10000) == "10000" +string.format("%0-d", 100000) == "100000" +string.format("%0-d", 1000000) == "1000000" +string.format("%0-d", 10000000) == "10000000" +string.format("%0-.0d", 0) == "" +string.format("%0-.6d", 0) == "000000" +string.format("%0-.6d", 1) == "000001" +string.format("%0-.6d", -1) == "-000001" +string.format("%0-.6d", 2) == "000002" +string.format("%0-.6d", -2) == "-000002" +string.format("%0-.6d", 3) == "000003" +string.format("%0-.6d", -3) == "-000003" +string.format("%0-.6d", 100) == "000100" +string.format("%0-.6d", 10000) == "010000" +string.format("%0-1.0d", 0) == " " +string.format("%0-1.6d", 0) == "000000" +string.format("%0-1.6d", 1) == "000001" +string.format("%0-1.6d", -1) == "-000001" +string.format("%0-1.6d", 2) == "000002" +string.format("%0-1.6d", -2) == "-000002" +string.format("%0-1.6d", 3) == "000003" +string.format("%0-1.6d", -3) == "-000003" +string.format("%0-1.6d", 100) == "000100" +string.format("%0-1.6d", 10000) == "010000" +string.format("%0-2d", 0) == "0 " +string.format("%0-2d", 1) == "1 " +string.format("%0-2d", 2) == "2 " +string.format("%0-2d", 3) == "3 " +string.format("%0-2.0d", 0) == " " +string.format("%0-2.0d", 1) == "1 " +string.format("%0-2.0d", 2) == "2 " +string.format("%0-2.0d", 3) == "3 " +string.format("%0-2.1d", 0) == "0 " +string.format("%0-2.1d", 1) == "1 " +string.format("%0-2.1d", 2) == "2 " +string.format("%0-2.1d", 3) == "3 " +string.format("%0-2.6d", 0) == "000000" +string.format("%0-2.6d", 1) == "000001" +string.format("%0-2.6d", -1) == "-000001" +string.format("%0-2.6d", 2) == "000002" +string.format("%0-2.6d", -2) == "-000002" +string.format("%0-2.6d", 3) == "000003" +string.format("%0-2.6d", -3) == "-000003" +string.format("%0-2.6d", 100) == "000100" +string.format("%0-2.6d", 10000) == "010000" +string.format("%0-6d", 0) == "0 " +string.format("%0-6d", 1) == "1 " +string.format("%0-6d", -1) == "-1 " +string.format("%0-6d", 2) == "2 " +string.format("%0-6d", -2) == "-2 " +string.format("%0-6d", 3) == "3 " +string.format("%0-6d", -3) == "-3 " +string.format("%0-6d", 100) == "100 " +string.format("%0-6d", 10000) == "10000 " +string.format("%0-6.0d", 0) == " " +string.format("%0-6.0d", 1) == "1 " +string.format("%0-6.0d", -1) == "-1 " +string.format("%0-6.0d", 2) == "2 " +string.format("%0-6.0d", -2) == "-2 " +string.format("%0-6.0d", 3) == "3 " +string.format("%0-6.0d", -3) == "-3 " +string.format("%0-6.0d", 100) == "100 " +string.format("%0-6.0d", 10000) == "10000 " +string.format("%0-6.1d", 0) == "0 " +string.format("%0-6.1d", 1) == "1 " +string.format("%0-6.1d", -1) == "-1 " +string.format("%0-6.1d", 2) == "2 " +string.format("%0-6.1d", -2) == "-2 " +string.format("%0-6.1d", 3) == "3 " +string.format("%0-6.1d", -3) == "-3 " +string.format("%0-6.1d", 100) == "100 " +string.format("%0-6.1d", 10000) == "10000 " +string.format("%0-6.6d", 0) == "000000" +string.format("%0-6.6d", 1) == "000001" +string.format("%0-6.6d", -1) == "-000001" +string.format("%0-6.6d", 2) == "000002" +string.format("%0-6.6d", -2) == "-000002" +string.format("%0-6.6d", 3) == "000003" +string.format("%0-6.6d", -3) == "-000003" +string.format("%0-6.6d", 100) == "000100" +string.format("%0-6.6d", 10000) == "010000" +string.format("%0-20d", 0) == "0 " +string.format("%0-20d", 1) == "1 " +string.format("%0-20d", -1) == "-1 " +string.format("%0-20d", 2) == "2 " +string.format("%0-20d", -2) == "-2 " +string.format("%0-20d", 3) == "3 " +string.format("%0-20d", -3) == "-3 " +string.format("%0-20d", 100) == "100 " +string.format("%0-20d", 10000) == "10000 " +string.format("%0-20d", 100000) == "100000 " +string.format("%0-20d", 1000000) == "1000000 " +string.format("%0-20d", 10000000) == "10000000 " +string.format("%0-20.0d", 0) == " " +string.format("%0-20.0d", 1) == "1 " +string.format("%0-20.0d", -1) == "-1 " +string.format("%0-20.0d", 2) == "2 " +string.format("%0-20.0d", -2) == "-2 " +string.format("%0-20.0d", 3) == "3 " +string.format("%0-20.0d", -3) == "-3 " +string.format("%0-20.0d", 100) == "100 " +string.format("%0-20.0d", 10000) == "10000 " +string.format("%0-20.0d", 100000) == "100000 " +string.format("%0-20.0d", 1000000) == "1000000 " +string.format("%0-20.0d", 10000000) == "10000000 " +string.format("%0-20.1d", 0) == "0 " +string.format("%0-20.1d", 1) == "1 " +string.format("%0-20.1d", -1) == "-1 " +string.format("%0-20.1d", 2) == "2 " +string.format("%0-20.1d", -2) == "-2 " +string.format("%0-20.1d", 3) == "3 " +string.format("%0-20.1d", -3) == "-3 " +string.format("%0-20.1d", 100) == "100 " +string.format("%0-20.1d", 10000) == "10000 " +string.format("%0-20.1d", 100000) == "100000 " +string.format("%0-20.1d", 1000000) == "1000000 " +string.format("%0-20.1d", 10000000) == "10000000 " +string.format("%0-20.6d", 0) == "000000 " +string.format("%0-20.6d", 1) == "000001 " +string.format("%0-20.6d", -1) == "-000001 " +string.format("%0-20.6d", 2) == "000002 " +string.format("%0-20.6d", -2) == "-000002 " +string.format("%0-20.6d", 3) == "000003 " +string.format("%0-20.6d", -3) == "-000003 " +string.format("%0-20.6d", 100) == "000100 " +string.format("%0-20.6d", 10000) == "010000 " +string.format("%0-20.6d", 100000) == "100000 " +string.format("%0-20.6d", 1000000) == "1000000 " +string.format("%0-20.6d", 10000000) == "10000000 " +string.format("%0-+d", 0) == "+0" +string.format("%0-+d", 1) == "+1" +string.format("%0-+d", -1) == "-1" +string.format("%0-+d", 2) == "+2" +string.format("%0-+d", -2) == "-2" +string.format("%0-+d", 3) == "+3" +string.format("%0-+d", -3) == "-3" +string.format("%0-+d", 100) == "+100" +string.format("%0-+d", 10000) == "+10000" +string.format("%0-+d", 100000) == "+100000" +string.format("%0-+d", 1000000) == "+1000000" +string.format("%0-+d", 10000000) == "+10000000" +string.format("%0-+.0d", 0) == "+" +string.format("%0-+.6d", 0) == "+000000" +string.format("%0-+.6d", 1) == "+000001" +string.format("%0-+.6d", -1) == "-000001" +string.format("%0-+.6d", 2) == "+000002" +string.format("%0-+.6d", -2) == "-000002" +string.format("%0-+.6d", 3) == "+000003" +string.format("%0-+.6d", -3) == "-000003" +string.format("%0-+.6d", 100) == "+000100" +string.format("%0-+.6d", 10000) == "+010000" +string.format("%0-+1.0d", 0) == "+" +string.format("%0-+1.6d", 0) == "+000000" +string.format("%0-+1.6d", 1) == "+000001" +string.format("%0-+1.6d", -1) == "-000001" +string.format("%0-+1.6d", 2) == "+000002" +string.format("%0-+1.6d", -2) == "-000002" +string.format("%0-+1.6d", 3) == "+000003" +string.format("%0-+1.6d", -3) == "-000003" +string.format("%0-+1.6d", 100) == "+000100" +string.format("%0-+1.6d", 10000) == "+010000" +string.format("%0-+2.0d", 0) == "+ " +string.format("%0-+2.6d", 0) == "+000000" +string.format("%0-+2.6d", 1) == "+000001" +string.format("%0-+2.6d", -1) == "-000001" +string.format("%0-+2.6d", 2) == "+000002" +string.format("%0-+2.6d", -2) == "-000002" +string.format("%0-+2.6d", 3) == "+000003" +string.format("%0-+2.6d", -3) == "-000003" +string.format("%0-+2.6d", 100) == "+000100" +string.format("%0-+2.6d", 10000) == "+010000" +string.format("%0-+6d", 0) == "+0 " +string.format("%0-+6d", 1) == "+1 " +string.format("%0-+6d", -1) == "-1 " +string.format("%0-+6d", 2) == "+2 " +string.format("%0-+6d", -2) == "-2 " +string.format("%0-+6d", 3) == "+3 " +string.format("%0-+6d", -3) == "-3 " +string.format("%0-+6d", 100) == "+100 " +string.format("%0-+6.0d", 0) == "+ " +string.format("%0-+6.0d", 1) == "+1 " +string.format("%0-+6.0d", -1) == "-1 " +string.format("%0-+6.0d", 2) == "+2 " +string.format("%0-+6.0d", -2) == "-2 " +string.format("%0-+6.0d", 3) == "+3 " +string.format("%0-+6.0d", -3) == "-3 " +string.format("%0-+6.0d", 100) == "+100 " +string.format("%0-+6.1d", 0) == "+0 " +string.format("%0-+6.1d", 1) == "+1 " +string.format("%0-+6.1d", -1) == "-1 " +string.format("%0-+6.1d", 2) == "+2 " +string.format("%0-+6.1d", -2) == "-2 " +string.format("%0-+6.1d", 3) == "+3 " +string.format("%0-+6.1d", -3) == "-3 " +string.format("%0-+6.1d", 100) == "+100 " +string.format("%0-+6.6d", 0) == "+000000" +string.format("%0-+6.6d", 1) == "+000001" +string.format("%0-+6.6d", -1) == "-000001" +string.format("%0-+6.6d", 2) == "+000002" +string.format("%0-+6.6d", -2) == "-000002" +string.format("%0-+6.6d", 3) == "+000003" +string.format("%0-+6.6d", -3) == "-000003" +string.format("%0-+6.6d", 100) == "+000100" +string.format("%0-+6.6d", 10000) == "+010000" +string.format("%0-+20d", 0) == "+0 " +string.format("%0-+20d", 1) == "+1 " +string.format("%0-+20d", -1) == "-1 " +string.format("%0-+20d", 2) == "+2 " +string.format("%0-+20d", -2) == "-2 " +string.format("%0-+20d", 3) == "+3 " +string.format("%0-+20d", -3) == "-3 " +string.format("%0-+20d", 100) == "+100 " +string.format("%0-+20d", 10000) == "+10000 " +string.format("%0-+20d", 100000) == "+100000 " +string.format("%0-+20d", 1000000) == "+1000000 " +string.format("%0-+20d", 10000000) == "+10000000 " +string.format("%0-+20.0d", 0) == "+ " +string.format("%0-+20.0d", 1) == "+1 " +string.format("%0-+20.0d", -1) == "-1 " +string.format("%0-+20.0d", 2) == "+2 " +string.format("%0-+20.0d", -2) == "-2 " +string.format("%0-+20.0d", 3) == "+3 " +string.format("%0-+20.0d", -3) == "-3 " +string.format("%0-+20.0d", 100) == "+100 " +string.format("%0-+20.0d", 10000) == "+10000 " +string.format("%0-+20.0d", 100000) == "+100000 " +string.format("%0-+20.0d", 1000000) == "+1000000 " +string.format("%0-+20.0d", 10000000) == "+10000000 " +string.format("%0-+20.1d", 0) == "+0 " +string.format("%0-+20.1d", 1) == "+1 " +string.format("%0-+20.1d", -1) == "-1 " +string.format("%0-+20.1d", 2) == "+2 " +string.format("%0-+20.1d", -2) == "-2 " +string.format("%0-+20.1d", 3) == "+3 " +string.format("%0-+20.1d", -3) == "-3 " +string.format("%0-+20.1d", 100) == "+100 " +string.format("%0-+20.1d", 10000) == "+10000 " +string.format("%0-+20.1d", 100000) == "+100000 " +string.format("%0-+20.1d", 1000000) == "+1000000 " +string.format("%0-+20.1d", 10000000) == "+10000000 " +string.format("%0-+20.6d", 0) == "+000000 " +string.format("%0-+20.6d", 1) == "+000001 " +string.format("%0-+20.6d", -1) == "-000001 " +string.format("%0-+20.6d", 2) == "+000002 " +string.format("%0-+20.6d", -2) == "-000002 " +string.format("%0-+20.6d", 3) == "+000003 " +string.format("%0-+20.6d", -3) == "-000003 " +string.format("%0-+20.6d", 100) == "+000100 " +string.format("%0-+20.6d", 10000) == "+010000 " +string.format("%0-+20.6d", 100000) == "+100000 " +string.format("%0-+20.6d", 1000000) == "+1000000 " +string.format("%0-+20.6d", 10000000) == "+10000000 " +string.format("%0 d", 0) == " 0" +string.format("%0 d", 1) == " 1" +string.format("%0 d", -1) == "-1" +string.format("%0 d", 2) == " 2" +string.format("%0 d", -2) == "-2" +string.format("%0 d", 3) == " 3" +string.format("%0 d", -3) == "-3" +string.format("%0 d", 100) == " 100" +string.format("%0 d", 10000) == " 10000" +string.format("%0 d", 100000) == " 100000" +string.format("%0 d", 1000000) == " 1000000" +string.format("%0 d", 10000000) == " 10000000" +string.format("%0 .0d", 0) == " " +string.format("%0 .6d", 0) == " 000000" +string.format("%0 .6d", 1) == " 000001" +string.format("%0 .6d", -1) == "-000001" +string.format("%0 .6d", 2) == " 000002" +string.format("%0 .6d", -2) == "-000002" +string.format("%0 .6d", 3) == " 000003" +string.format("%0 .6d", -3) == "-000003" +string.format("%0 .6d", 100) == " 000100" +string.format("%0 .6d", 10000) == " 010000" +string.format("%0 1.0d", 0) == " " +string.format("%0 1.6d", 0) == " 000000" +string.format("%0 1.6d", 1) == " 000001" +string.format("%0 1.6d", -1) == "-000001" +string.format("%0 1.6d", 2) == " 000002" +string.format("%0 1.6d", -2) == "-000002" +string.format("%0 1.6d", 3) == " 000003" +string.format("%0 1.6d", -3) == "-000003" +string.format("%0 1.6d", 100) == " 000100" +string.format("%0 1.6d", 10000) == " 010000" +string.format("%0 2.0d", 0) == " " +string.format("%0 2.6d", 0) == " 000000" +string.format("%0 2.6d", 1) == " 000001" +string.format("%0 2.6d", -1) == "-000001" +string.format("%0 2.6d", 2) == " 000002" +string.format("%0 2.6d", -2) == "-000002" +string.format("%0 2.6d", 3) == " 000003" +string.format("%0 2.6d", -3) == "-000003" +string.format("%0 2.6d", 100) == " 000100" +string.format("%0 2.6d", 10000) == " 010000" +string.format("%0 6d", 0) == " 00000" +string.format("%0 6d", 1) == " 00001" +string.format("%0 6d", -1) == "-00001" +string.format("%0 6d", 2) == " 00002" +string.format("%0 6d", -2) == "-00002" +string.format("%0 6d", 3) == " 00003" +string.format("%0 6d", -3) == "-00003" +string.format("%0 6d", 100) == " 00100" +string.format("%0 6.0d", 0) == " " +string.format("%0 6.0d", 1) == " 1" +string.format("%0 6.0d", -1) == " -1" +string.format("%0 6.0d", 2) == " 2" +string.format("%0 6.0d", -2) == " -2" +string.format("%0 6.0d", 3) == " 3" +string.format("%0 6.0d", -3) == " -3" +string.format("%0 6.0d", 100) == " 100" +string.format("%0 6.1d", 0) == " 0" +string.format("%0 6.1d", 1) == " 1" +string.format("%0 6.1d", -1) == " -1" +string.format("%0 6.1d", 2) == " 2" +string.format("%0 6.1d", -2) == " -2" +string.format("%0 6.1d", 3) == " 3" +string.format("%0 6.1d", -3) == " -3" +string.format("%0 6.1d", 100) == " 100" +string.format("%0 6.6d", 0) == " 000000" +string.format("%0 6.6d", 1) == " 000001" +string.format("%0 6.6d", -1) == "-000001" +string.format("%0 6.6d", 2) == " 000002" +string.format("%0 6.6d", -2) == "-000002" +string.format("%0 6.6d", 3) == " 000003" +string.format("%0 6.6d", -3) == "-000003" +string.format("%0 6.6d", 100) == " 000100" +string.format("%0 6.6d", 10000) == " 010000" +string.format("%0 20d", 0) == " 0000000000000000000" +string.format("%0 20d", 1) == " 0000000000000000001" +string.format("%0 20d", -1) == "-0000000000000000001" +string.format("%0 20d", 2) == " 0000000000000000002" +string.format("%0 20d", -2) == "-0000000000000000002" +string.format("%0 20d", 3) == " 0000000000000000003" +string.format("%0 20d", -3) == "-0000000000000000003" +string.format("%0 20d", 100) == " 0000000000000000100" +string.format("%0 20d", 10000) == " 0000000000000010000" +string.format("%0 20d", 100000) == " 0000000000000100000" +string.format("%0 20d", 1000000) == " 0000000000001000000" +string.format("%0 20d", 10000000) == " 0000000000010000000" +string.format("%0 20.0d", 0) == " " +string.format("%0 20.0d", 1) == " 1" +string.format("%0 20.0d", -1) == " -1" +string.format("%0 20.0d", 2) == " 2" +string.format("%0 20.0d", -2) == " -2" +string.format("%0 20.0d", 3) == " 3" +string.format("%0 20.0d", -3) == " -3" +string.format("%0 20.0d", 100) == " 100" +string.format("%0 20.0d", 10000) == " 10000" +string.format("%0 20.0d", 100000) == " 100000" +string.format("%0 20.0d", 1000000) == " 1000000" +string.format("%0 20.0d", 10000000) == " 10000000" +string.format("%0 20.1d", 0) == " 0" +string.format("%0 20.1d", 1) == " 1" +string.format("%0 20.1d", -1) == " -1" +string.format("%0 20.1d", 2) == " 2" +string.format("%0 20.1d", -2) == " -2" +string.format("%0 20.1d", 3) == " 3" +string.format("%0 20.1d", -3) == " -3" +string.format("%0 20.1d", 100) == " 100" +string.format("%0 20.1d", 10000) == " 10000" +string.format("%0 20.1d", 100000) == " 100000" +string.format("%0 20.1d", 1000000) == " 1000000" +string.format("%0 20.1d", 10000000) == " 10000000" +string.format("%0 20.6d", 0) == " 000000" +string.format("%0 20.6d", 1) == " 000001" +string.format("%0 20.6d", -1) == " -000001" +string.format("%0 20.6d", 2) == " 000002" +string.format("%0 20.6d", -2) == " -000002" +string.format("%0 20.6d", 3) == " 000003" +string.format("%0 20.6d", -3) == " -000003" +string.format("%0 20.6d", 100) == " 000100" +string.format("%0 20.6d", 10000) == " 010000" +string.format("%0 20.6d", 100000) == " 100000" +string.format("%0 20.6d", 1000000) == " 1000000" +string.format("%0 20.6d", 10000000) == " 10000000" +string.format("%0 +d", 0) == "+0" +string.format("%0 +d", 1) == "+1" +string.format("%0 +d", -1) == "-1" +string.format("%0 +d", 2) == "+2" +string.format("%0 +d", -2) == "-2" +string.format("%0 +d", 3) == "+3" +string.format("%0 +d", -3) == "-3" +string.format("%0 +d", 100) == "+100" +string.format("%0 +d", 10000) == "+10000" +string.format("%0 +d", 100000) == "+100000" +string.format("%0 +d", 1000000) == "+1000000" +string.format("%0 +d", 10000000) == "+10000000" +string.format("%0 +.0d", 0) == "+" +string.format("%0 +.6d", 0) == "+000000" +string.format("%0 +.6d", 1) == "+000001" +string.format("%0 +.6d", -1) == "-000001" +string.format("%0 +.6d", 2) == "+000002" +string.format("%0 +.6d", -2) == "-000002" +string.format("%0 +.6d", 3) == "+000003" +string.format("%0 +.6d", -3) == "-000003" +string.format("%0 +.6d", 100) == "+000100" +string.format("%0 +.6d", 10000) == "+010000" +string.format("%0 +1.0d", 0) == "+" +string.format("%0 +1.6d", 0) == "+000000" +string.format("%0 +1.6d", 1) == "+000001" +string.format("%0 +1.6d", -1) == "-000001" +string.format("%0 +1.6d", 2) == "+000002" +string.format("%0 +1.6d", -2) == "-000002" +string.format("%0 +1.6d", 3) == "+000003" +string.format("%0 +1.6d", -3) == "-000003" +string.format("%0 +1.6d", 100) == "+000100" +string.format("%0 +1.6d", 10000) == "+010000" +string.format("%0 +2.0d", 0) == " +" +string.format("%0 +2.6d", 0) == "+000000" +string.format("%0 +2.6d", 1) == "+000001" +string.format("%0 +2.6d", -1) == "-000001" +string.format("%0 +2.6d", 2) == "+000002" +string.format("%0 +2.6d", -2) == "-000002" +string.format("%0 +2.6d", 3) == "+000003" +string.format("%0 +2.6d", -3) == "-000003" +string.format("%0 +2.6d", 100) == "+000100" +string.format("%0 +2.6d", 10000) == "+010000" +string.format("%0 +6d", 0) == "+00000" +string.format("%0 +6d", 1) == "+00001" +string.format("%0 +6d", -1) == "-00001" +string.format("%0 +6d", 2) == "+00002" +string.format("%0 +6d", -2) == "-00002" +string.format("%0 +6d", 3) == "+00003" +string.format("%0 +6d", -3) == "-00003" +string.format("%0 +6d", 100) == "+00100" +string.format("%0 +6.0d", 0) == " +" +string.format("%0 +6.0d", 1) == " +1" +string.format("%0 +6.0d", -1) == " -1" +string.format("%0 +6.0d", 2) == " +2" +string.format("%0 +6.0d", -2) == " -2" +string.format("%0 +6.0d", 3) == " +3" +string.format("%0 +6.0d", -3) == " -3" +string.format("%0 +6.0d", 100) == " +100" +string.format("%0 +6.1d", 0) == " +0" +string.format("%0 +6.1d", 1) == " +1" +string.format("%0 +6.1d", -1) == " -1" +string.format("%0 +6.1d", 2) == " +2" +string.format("%0 +6.1d", -2) == " -2" +string.format("%0 +6.1d", 3) == " +3" +string.format("%0 +6.1d", -3) == " -3" +string.format("%0 +6.1d", 100) == " +100" +string.format("%0 +6.6d", 0) == "+000000" +string.format("%0 +6.6d", 1) == "+000001" +string.format("%0 +6.6d", -1) == "-000001" +string.format("%0 +6.6d", 2) == "+000002" +string.format("%0 +6.6d", -2) == "-000002" +string.format("%0 +6.6d", 3) == "+000003" +string.format("%0 +6.6d", -3) == "-000003" +string.format("%0 +6.6d", 100) == "+000100" +string.format("%0 +6.6d", 10000) == "+010000" +string.format("%0 +20d", 0) == "+0000000000000000000" +string.format("%0 +20d", 1) == "+0000000000000000001" +string.format("%0 +20d", -1) == "-0000000000000000001" +string.format("%0 +20d", 2) == "+0000000000000000002" +string.format("%0 +20d", -2) == "-0000000000000000002" +string.format("%0 +20d", 3) == "+0000000000000000003" +string.format("%0 +20d", -3) == "-0000000000000000003" +string.format("%0 +20d", 100) == "+0000000000000000100" +string.format("%0 +20d", 10000) == "+0000000000000010000" +string.format("%0 +20d", 100000) == "+0000000000000100000" +string.format("%0 +20d", 1000000) == "+0000000000001000000" +string.format("%0 +20d", 10000000) == "+0000000000010000000" +string.format("%0 +20.0d", 0) == " +" +string.format("%0 +20.0d", 1) == " +1" +string.format("%0 +20.0d", -1) == " -1" +string.format("%0 +20.0d", 2) == " +2" +string.format("%0 +20.0d", -2) == " -2" +string.format("%0 +20.0d", 3) == " +3" +string.format("%0 +20.0d", -3) == " -3" +string.format("%0 +20.0d", 100) == " +100" +string.format("%0 +20.0d", 10000) == " +10000" +string.format("%0 +20.0d", 100000) == " +100000" +string.format("%0 +20.0d", 1000000) == " +1000000" +string.format("%0 +20.0d", 10000000) == " +10000000" +string.format("%0 +20.1d", 0) == " +0" +string.format("%0 +20.1d", 1) == " +1" +string.format("%0 +20.1d", -1) == " -1" +string.format("%0 +20.1d", 2) == " +2" +string.format("%0 +20.1d", -2) == " -2" +string.format("%0 +20.1d", 3) == " +3" +string.format("%0 +20.1d", -3) == " -3" +string.format("%0 +20.1d", 100) == " +100" +string.format("%0 +20.1d", 10000) == " +10000" +string.format("%0 +20.1d", 100000) == " +100000" +string.format("%0 +20.1d", 1000000) == " +1000000" +string.format("%0 +20.1d", 10000000) == " +10000000" +string.format("%0 +20.6d", 0) == " +000000" +string.format("%0 +20.6d", 1) == " +000001" +string.format("%0 +20.6d", -1) == " -000001" +string.format("%0 +20.6d", 2) == " +000002" +string.format("%0 +20.6d", -2) == " -000002" +string.format("%0 +20.6d", 3) == " +000003" +string.format("%0 +20.6d", -3) == " -000003" +string.format("%0 +20.6d", 100) == " +000100" +string.format("%0 +20.6d", 10000) == " +010000" +string.format("%0 +20.6d", 100000) == " +100000" +string.format("%0 +20.6d", 1000000) == " +1000000" +string.format("%0 +20.6d", 10000000) == " +10000000" +string.format("%0 -d", 0) == " 0" +string.format("%0 -d", 1) == " 1" +string.format("%0 -d", -1) == "-1" +string.format("%0 -d", 2) == " 2" +string.format("%0 -d", -2) == "-2" +string.format("%0 -d", 3) == " 3" +string.format("%0 -d", -3) == "-3" +string.format("%0 -d", 100) == " 100" +string.format("%0 -d", 10000) == " 10000" +string.format("%0 -d", 100000) == " 100000" +string.format("%0 -d", 1000000) == " 1000000" +string.format("%0 -d", 10000000) == " 10000000" +string.format("%0 -.0d", 0) == " " +string.format("%0 -.6d", 0) == " 000000" +string.format("%0 -.6d", 1) == " 000001" +string.format("%0 -.6d", -1) == "-000001" +string.format("%0 -.6d", 2) == " 000002" +string.format("%0 -.6d", -2) == "-000002" +string.format("%0 -.6d", 3) == " 000003" +string.format("%0 -.6d", -3) == "-000003" +string.format("%0 -.6d", 100) == " 000100" +string.format("%0 -.6d", 10000) == " 010000" +string.format("%0 -1.0d", 0) == " " +string.format("%0 -1.6d", 0) == " 000000" +string.format("%0 -1.6d", 1) == " 000001" +string.format("%0 -1.6d", -1) == "-000001" +string.format("%0 -1.6d", 2) == " 000002" +string.format("%0 -1.6d", -2) == "-000002" +string.format("%0 -1.6d", 3) == " 000003" +string.format("%0 -1.6d", -3) == "-000003" +string.format("%0 -1.6d", 100) == " 000100" +string.format("%0 -1.6d", 10000) == " 010000" +string.format("%0 -2.0d", 0) == " " +string.format("%0 -2.6d", 0) == " 000000" +string.format("%0 -2.6d", 1) == " 000001" +string.format("%0 -2.6d", -1) == "-000001" +string.format("%0 -2.6d", 2) == " 000002" +string.format("%0 -2.6d", -2) == "-000002" +string.format("%0 -2.6d", 3) == " 000003" +string.format("%0 -2.6d", -3) == "-000003" +string.format("%0 -2.6d", 100) == " 000100" +string.format("%0 -2.6d", 10000) == " 010000" +string.format("%0 -6d", 0) == " 0 " +string.format("%0 -6d", 1) == " 1 " +string.format("%0 -6d", -1) == "-1 " +string.format("%0 -6d", 2) == " 2 " +string.format("%0 -6d", -2) == "-2 " +string.format("%0 -6d", 3) == " 3 " +string.format("%0 -6d", -3) == "-3 " +string.format("%0 -6d", 100) == " 100 " +string.format("%0 -6.0d", 0) == " " +string.format("%0 -6.0d", 1) == " 1 " +string.format("%0 -6.0d", -1) == "-1 " +string.format("%0 -6.0d", 2) == " 2 " +string.format("%0 -6.0d", -2) == "-2 " +string.format("%0 -6.0d", 3) == " 3 " +string.format("%0 -6.0d", -3) == "-3 " +string.format("%0 -6.0d", 100) == " 100 " +string.format("%0 -6.1d", 0) == " 0 " +string.format("%0 -6.1d", 1) == " 1 " +string.format("%0 -6.1d", -1) == "-1 " +string.format("%0 -6.1d", 2) == " 2 " +string.format("%0 -6.1d", -2) == "-2 " +string.format("%0 -6.1d", 3) == " 3 " +string.format("%0 -6.1d", -3) == "-3 " +string.format("%0 -6.1d", 100) == " 100 " +string.format("%0 -6.6d", 0) == " 000000" +string.format("%0 -6.6d", 1) == " 000001" +string.format("%0 -6.6d", -1) == "-000001" +string.format("%0 -6.6d", 2) == " 000002" +string.format("%0 -6.6d", -2) == "-000002" +string.format("%0 -6.6d", 3) == " 000003" +string.format("%0 -6.6d", -3) == "-000003" +string.format("%0 -6.6d", 100) == " 000100" +string.format("%0 -6.6d", 10000) == " 010000" +string.format("%0 -20d", 0) == " 0 " +string.format("%0 -20d", 1) == " 1 " +string.format("%0 -20d", -1) == "-1 " +string.format("%0 -20d", 2) == " 2 " +string.format("%0 -20d", -2) == "-2 " +string.format("%0 -20d", 3) == " 3 " +string.format("%0 -20d", -3) == "-3 " +string.format("%0 -20d", 100) == " 100 " +string.format("%0 -20d", 10000) == " 10000 " +string.format("%0 -20d", 100000) == " 100000 " +string.format("%0 -20d", 1000000) == " 1000000 " +string.format("%0 -20d", 10000000) == " 10000000 " +string.format("%0 -20.0d", 0) == " " +string.format("%0 -20.0d", 1) == " 1 " +string.format("%0 -20.0d", -1) == "-1 " +string.format("%0 -20.0d", 2) == " 2 " +string.format("%0 -20.0d", -2) == "-2 " +string.format("%0 -20.0d", 3) == " 3 " +string.format("%0 -20.0d", -3) == "-3 " +string.format("%0 -20.0d", 100) == " 100 " +string.format("%0 -20.0d", 10000) == " 10000 " +string.format("%0 -20.0d", 100000) == " 100000 " +string.format("%0 -20.0d", 1000000) == " 1000000 " +string.format("%0 -20.0d", 10000000) == " 10000000 " +string.format("%0 -20.1d", 0) == " 0 " +string.format("%0 -20.1d", 1) == " 1 " +string.format("%0 -20.1d", -1) == "-1 " +string.format("%0 -20.1d", 2) == " 2 " +string.format("%0 -20.1d", -2) == "-2 " +string.format("%0 -20.1d", 3) == " 3 " +string.format("%0 -20.1d", -3) == "-3 " +string.format("%0 -20.1d", 100) == " 100 " +string.format("%0 -20.1d", 10000) == " 10000 " +string.format("%0 -20.1d", 100000) == " 100000 " +string.format("%0 -20.1d", 1000000) == " 1000000 " +string.format("%0 -20.1d", 10000000) == " 10000000 " +string.format("%0 -20.6d", 0) == " 000000 " +string.format("%0 -20.6d", 1) == " 000001 " +string.format("%0 -20.6d", -1) == "-000001 " +string.format("%0 -20.6d", 2) == " 000002 " +string.format("%0 -20.6d", -2) == "-000002 " +string.format("%0 -20.6d", 3) == " 000003 " +string.format("%0 -20.6d", -3) == "-000003 " +string.format("%0 -20.6d", 100) == " 000100 " +string.format("%0 -20.6d", 10000) == " 010000 " +string.format("%0 -20.6d", 100000) == " 100000 " +string.format("%0 -20.6d", 1000000) == " 1000000 " +string.format("%0 -20.6d", 10000000) == " 10000000 " +string.format("%0 -+d", 0) == "+0" +string.format("%0 -+d", 1) == "+1" +string.format("%0 -+d", -1) == "-1" +string.format("%0 -+d", 2) == "+2" +string.format("%0 -+d", -2) == "-2" +string.format("%0 -+d", 3) == "+3" +string.format("%0 -+d", -3) == "-3" +string.format("%0 -+d", 100) == "+100" +string.format("%0 -+d", 10000) == "+10000" +string.format("%0 -+d", 100000) == "+100000" +string.format("%0 -+d", 1000000) == "+1000000" +string.format("%0 -+d", 10000000) == "+10000000" +string.format("%0 -+.0d", 0) == "+" +string.format("%0 -+.6d", 0) == "+000000" +string.format("%0 -+.6d", 1) == "+000001" +string.format("%0 -+.6d", -1) == "-000001" +string.format("%0 -+.6d", 2) == "+000002" +string.format("%0 -+.6d", -2) == "-000002" +string.format("%0 -+.6d", 3) == "+000003" +string.format("%0 -+.6d", -3) == "-000003" +string.format("%0 -+.6d", 100) == "+000100" +string.format("%0 -+.6d", 10000) == "+010000" +string.format("%0 -+1.0d", 0) == "+" +string.format("%0 -+1.6d", 0) == "+000000" +string.format("%0 -+1.6d", 1) == "+000001" +string.format("%0 -+1.6d", -1) == "-000001" +string.format("%0 -+1.6d", 2) == "+000002" +string.format("%0 -+1.6d", -2) == "-000002" +string.format("%0 -+1.6d", 3) == "+000003" +string.format("%0 -+1.6d", -3) == "-000003" +string.format("%0 -+1.6d", 100) == "+000100" +string.format("%0 -+1.6d", 10000) == "+010000" +string.format("%0 -+2.0d", 0) == "+ " +string.format("%0 -+2.6d", 0) == "+000000" +string.format("%0 -+2.6d", 1) == "+000001" +string.format("%0 -+2.6d", -1) == "-000001" +string.format("%0 -+2.6d", 2) == "+000002" +string.format("%0 -+2.6d", -2) == "-000002" +string.format("%0 -+2.6d", 3) == "+000003" +string.format("%0 -+2.6d", -3) == "-000003" +string.format("%0 -+2.6d", 100) == "+000100" +string.format("%0 -+2.6d", 10000) == "+010000" +string.format("%0 -+6d", 0) == "+0 " +string.format("%0 -+6d", 1) == "+1 " +string.format("%0 -+6d", -1) == "-1 " +string.format("%0 -+6d", 2) == "+2 " +string.format("%0 -+6d", -2) == "-2 " +string.format("%0 -+6d", 3) == "+3 " +string.format("%0 -+6d", -3) == "-3 " +string.format("%0 -+6d", 100) == "+100 " +string.format("%0 -+6.0d", 0) == "+ " +string.format("%0 -+6.0d", 1) == "+1 " +string.format("%0 -+6.0d", -1) == "-1 " +string.format("%0 -+6.0d", 2) == "+2 " +string.format("%0 -+6.0d", -2) == "-2 " +string.format("%0 -+6.0d", 3) == "+3 " +string.format("%0 -+6.0d", -3) == "-3 " +string.format("%0 -+6.0d", 100) == "+100 " +string.format("%0 -+6.1d", 0) == "+0 " +string.format("%0 -+6.1d", 1) == "+1 " +string.format("%0 -+6.1d", -1) == "-1 " +string.format("%0 -+6.1d", 2) == "+2 " +string.format("%0 -+6.1d", -2) == "-2 " +string.format("%0 -+6.1d", 3) == "+3 " +string.format("%0 -+6.1d", -3) == "-3 " +string.format("%0 -+6.1d", 100) == "+100 " +string.format("%0 -+6.6d", 0) == "+000000" +string.format("%0 -+6.6d", 1) == "+000001" +string.format("%0 -+6.6d", -1) == "-000001" +string.format("%0 -+6.6d", 2) == "+000002" +string.format("%0 -+6.6d", -2) == "-000002" +string.format("%0 -+6.6d", 3) == "+000003" +string.format("%0 -+6.6d", -3) == "-000003" +string.format("%0 -+6.6d", 100) == "+000100" +string.format("%0 -+6.6d", 10000) == "+010000" +string.format("%0 -+20d", 0) == "+0 " +string.format("%0 -+20d", 1) == "+1 " +string.format("%0 -+20d", -1) == "-1 " +string.format("%0 -+20d", 2) == "+2 " +string.format("%0 -+20d", -2) == "-2 " +string.format("%0 -+20d", 3) == "+3 " +string.format("%0 -+20d", -3) == "-3 " +string.format("%0 -+20d", 100) == "+100 " +string.format("%0 -+20d", 10000) == "+10000 " +string.format("%0 -+20d", 100000) == "+100000 " +string.format("%0 -+20d", 1000000) == "+1000000 " +string.format("%0 -+20d", 10000000) == "+10000000 " +string.format("%0 -+20.0d", 0) == "+ " +string.format("%0 -+20.0d", 1) == "+1 " +string.format("%0 -+20.0d", -1) == "-1 " +string.format("%0 -+20.0d", 2) == "+2 " +string.format("%0 -+20.0d", -2) == "-2 " +string.format("%0 -+20.0d", 3) == "+3 " +string.format("%0 -+20.0d", -3) == "-3 " +string.format("%0 -+20.0d", 100) == "+100 " +string.format("%0 -+20.0d", 10000) == "+10000 " +string.format("%0 -+20.0d", 100000) == "+100000 " +string.format("%0 -+20.0d", 1000000) == "+1000000 " +string.format("%0 -+20.0d", 10000000) == "+10000000 " +string.format("%0 -+20.1d", 0) == "+0 " +string.format("%0 -+20.1d", 1) == "+1 " +string.format("%0 -+20.1d", -1) == "-1 " +string.format("%0 -+20.1d", 2) == "+2 " +string.format("%0 -+20.1d", -2) == "-2 " +string.format("%0 -+20.1d", 3) == "+3 " +string.format("%0 -+20.1d", -3) == "-3 " +string.format("%0 -+20.1d", 100) == "+100 " +string.format("%0 -+20.1d", 10000) == "+10000 " +string.format("%0 -+20.1d", 100000) == "+100000 " +string.format("%0 -+20.1d", 1000000) == "+1000000 " +string.format("%0 -+20.1d", 10000000) == "+10000000 " +string.format("%0 -+20.6d", 0) == "+000000 " +string.format("%0 -+20.6d", 1) == "+000001 " +string.format("%0 -+20.6d", -1) == "-000001 " +string.format("%0 -+20.6d", 2) == "+000002 " +string.format("%0 -+20.6d", -2) == "-000002 " +string.format("%0 -+20.6d", 3) == "+000003 " +string.format("%0 -+20.6d", -3) == "-000003 " +string.format("%0 -+20.6d", 100) == "+000100 " +string.format("%0 -+20.6d", 10000) == "+010000 " +string.format("%0 -+20.6d", 100000) == "+100000 " +string.format("%0 -+20.6d", 1000000) == "+1000000 " +string.format("%0 -+20.6d", 10000000) == "+10000000 " +string.format("%0#d", 0) == "0" +string.format("%0#d", 1) == "1" +string.format("%0#d", -1) == "-1" +string.format("%0#d", 2) == "2" +string.format("%0#d", -2) == "-2" +string.format("%0#d", 3) == "3" +string.format("%0#d", -3) == "-3" +string.format("%0#d", 100) == "100" +string.format("%0#d", 10000) == "10000" +string.format("%0#d", 100000) == "100000" +string.format("%0#d", 1000000) == "1000000" +string.format("%0#d", 10000000) == "10000000" +string.format("%0#.0d", 0) == "" +string.format("%0#.6d", 0) == "000000" +string.format("%0#.6d", 1) == "000001" +string.format("%0#.6d", -1) == "-000001" +string.format("%0#.6d", 2) == "000002" +string.format("%0#.6d", -2) == "-000002" +string.format("%0#.6d", 3) == "000003" +string.format("%0#.6d", -3) == "-000003" +string.format("%0#.6d", 100) == "000100" +string.format("%0#.6d", 10000) == "010000" +string.format("%0#1.0d", 0) == " " +string.format("%0#1.6d", 0) == "000000" +string.format("%0#1.6d", 1) == "000001" +string.format("%0#1.6d", -1) == "-000001" +string.format("%0#1.6d", 2) == "000002" +string.format("%0#1.6d", -2) == "-000002" +string.format("%0#1.6d", 3) == "000003" +string.format("%0#1.6d", -3) == "-000003" +string.format("%0#1.6d", 100) == "000100" +string.format("%0#1.6d", 10000) == "010000" +string.format("%0#2d", 0) == "00" +string.format("%0#2d", 1) == "01" +string.format("%0#2d", 2) == "02" +string.format("%0#2d", 3) == "03" +string.format("%0#2.0d", 0) == " " +string.format("%0#2.0d", 1) == " 1" +string.format("%0#2.0d", 2) == " 2" +string.format("%0#2.0d", 3) == " 3" +string.format("%0#2.1d", 0) == " 0" +string.format("%0#2.1d", 1) == " 1" +string.format("%0#2.1d", 2) == " 2" +string.format("%0#2.1d", 3) == " 3" +string.format("%0#2.6d", 0) == "000000" +string.format("%0#2.6d", 1) == "000001" +string.format("%0#2.6d", -1) == "-000001" +string.format("%0#2.6d", 2) == "000002" +string.format("%0#2.6d", -2) == "-000002" +string.format("%0#2.6d", 3) == "000003" +string.format("%0#2.6d", -3) == "-000003" +string.format("%0#2.6d", 100) == "000100" +string.format("%0#2.6d", 10000) == "010000" +string.format("%0#6d", 0) == "000000" +string.format("%0#6d", 1) == "000001" +string.format("%0#6d", -1) == "-00001" +string.format("%0#6d", 2) == "000002" +string.format("%0#6d", -2) == "-00002" +string.format("%0#6d", 3) == "000003" +string.format("%0#6d", -3) == "-00003" +string.format("%0#6d", 100) == "000100" +string.format("%0#6d", 10000) == "010000" +string.format("%0#6.0d", 0) == " " +string.format("%0#6.0d", 1) == " 1" +string.format("%0#6.0d", -1) == " -1" +string.format("%0#6.0d", 2) == " 2" +string.format("%0#6.0d", -2) == " -2" +string.format("%0#6.0d", 3) == " 3" +string.format("%0#6.0d", -3) == " -3" +string.format("%0#6.0d", 100) == " 100" +string.format("%0#6.0d", 10000) == " 10000" +string.format("%0#6.1d", 0) == " 0" +string.format("%0#6.1d", 1) == " 1" +string.format("%0#6.1d", -1) == " -1" +string.format("%0#6.1d", 2) == " 2" +string.format("%0#6.1d", -2) == " -2" +string.format("%0#6.1d", 3) == " 3" +string.format("%0#6.1d", -3) == " -3" +string.format("%0#6.1d", 100) == " 100" +string.format("%0#6.1d", 10000) == " 10000" +string.format("%0#6.6d", 0) == "000000" +string.format("%0#6.6d", 1) == "000001" +string.format("%0#6.6d", -1) == "-000001" +string.format("%0#6.6d", 2) == "000002" +string.format("%0#6.6d", -2) == "-000002" +string.format("%0#6.6d", 3) == "000003" +string.format("%0#6.6d", -3) == "-000003" +string.format("%0#6.6d", 100) == "000100" +string.format("%0#6.6d", 10000) == "010000" +string.format("%0#20d", 0) == "00000000000000000000" +string.format("%0#20d", 1) == "00000000000000000001" +string.format("%0#20d", -1) == "-0000000000000000001" +string.format("%0#20d", 2) == "00000000000000000002" +string.format("%0#20d", -2) == "-0000000000000000002" +string.format("%0#20d", 3) == "00000000000000000003" +string.format("%0#20d", -3) == "-0000000000000000003" +string.format("%0#20d", 100) == "00000000000000000100" +string.format("%0#20d", 10000) == "00000000000000010000" +string.format("%0#20d", 100000) == "00000000000000100000" +string.format("%0#20d", 1000000) == "00000000000001000000" +string.format("%0#20d", 10000000) == "00000000000010000000" +string.format("%0#20.0d", 0) == " " +string.format("%0#20.0d", 1) == " 1" +string.format("%0#20.0d", -1) == " -1" +string.format("%0#20.0d", 2) == " 2" +string.format("%0#20.0d", -2) == " -2" +string.format("%0#20.0d", 3) == " 3" +string.format("%0#20.0d", -3) == " -3" +string.format("%0#20.0d", 100) == " 100" +string.format("%0#20.0d", 10000) == " 10000" +string.format("%0#20.0d", 100000) == " 100000" +string.format("%0#20.0d", 1000000) == " 1000000" +string.format("%0#20.0d", 10000000) == " 10000000" +string.format("%0#20.1d", 0) == " 0" +string.format("%0#20.1d", 1) == " 1" +string.format("%0#20.1d", -1) == " -1" +string.format("%0#20.1d", 2) == " 2" +string.format("%0#20.1d", -2) == " -2" +string.format("%0#20.1d", 3) == " 3" +string.format("%0#20.1d", -3) == " -3" +string.format("%0#20.1d", 100) == " 100" +string.format("%0#20.1d", 10000) == " 10000" +string.format("%0#20.1d", 100000) == " 100000" +string.format("%0#20.1d", 1000000) == " 1000000" +string.format("%0#20.1d", 10000000) == " 10000000" +string.format("%0#20.6d", 0) == " 000000" +string.format("%0#20.6d", 1) == " 000001" +string.format("%0#20.6d", -1) == " -000001" +string.format("%0#20.6d", 2) == " 000002" +string.format("%0#20.6d", -2) == " -000002" +string.format("%0#20.6d", 3) == " 000003" +string.format("%0#20.6d", -3) == " -000003" +string.format("%0#20.6d", 100) == " 000100" +string.format("%0#20.6d", 10000) == " 010000" +string.format("%0#20.6d", 100000) == " 100000" +string.format("%0#20.6d", 1000000) == " 1000000" +string.format("%0#20.6d", 10000000) == " 10000000" +string.format("%0#+d", 0) == "+0" +string.format("%0#+d", 1) == "+1" +string.format("%0#+d", -1) == "-1" +string.format("%0#+d", 2) == "+2" +string.format("%0#+d", -2) == "-2" +string.format("%0#+d", 3) == "+3" +string.format("%0#+d", -3) == "-3" +string.format("%0#+d", 100) == "+100" +string.format("%0#+d", 10000) == "+10000" +string.format("%0#+d", 100000) == "+100000" +string.format("%0#+d", 1000000) == "+1000000" +string.format("%0#+d", 10000000) == "+10000000" +string.format("%0#+.0d", 0) == "+" +string.format("%0#+.6d", 0) == "+000000" +string.format("%0#+.6d", 1) == "+000001" +string.format("%0#+.6d", -1) == "-000001" +string.format("%0#+.6d", 2) == "+000002" +string.format("%0#+.6d", -2) == "-000002" +string.format("%0#+.6d", 3) == "+000003" +string.format("%0#+.6d", -3) == "-000003" +string.format("%0#+.6d", 100) == "+000100" +string.format("%0#+.6d", 10000) == "+010000" +string.format("%0#+1.0d", 0) == "+" +string.format("%0#+1.6d", 0) == "+000000" +string.format("%0#+1.6d", 1) == "+000001" +string.format("%0#+1.6d", -1) == "-000001" +string.format("%0#+1.6d", 2) == "+000002" +string.format("%0#+1.6d", -2) == "-000002" +string.format("%0#+1.6d", 3) == "+000003" +string.format("%0#+1.6d", -3) == "-000003" +string.format("%0#+1.6d", 100) == "+000100" +string.format("%0#+1.6d", 10000) == "+010000" +string.format("%0#+2.0d", 0) == " +" +string.format("%0#+2.6d", 0) == "+000000" +string.format("%0#+2.6d", 1) == "+000001" +string.format("%0#+2.6d", -1) == "-000001" +string.format("%0#+2.6d", 2) == "+000002" +string.format("%0#+2.6d", -2) == "-000002" +string.format("%0#+2.6d", 3) == "+000003" +string.format("%0#+2.6d", -3) == "-000003" +string.format("%0#+2.6d", 100) == "+000100" +string.format("%0#+2.6d", 10000) == "+010000" +string.format("%0#+6d", 0) == "+00000" +string.format("%0#+6d", 1) == "+00001" +string.format("%0#+6d", -1) == "-00001" +string.format("%0#+6d", 2) == "+00002" +string.format("%0#+6d", -2) == "-00002" +string.format("%0#+6d", 3) == "+00003" +string.format("%0#+6d", -3) == "-00003" +string.format("%0#+6d", 100) == "+00100" +string.format("%0#+6.0d", 0) == " +" +string.format("%0#+6.0d", 1) == " +1" +string.format("%0#+6.0d", -1) == " -1" +string.format("%0#+6.0d", 2) == " +2" +string.format("%0#+6.0d", -2) == " -2" +string.format("%0#+6.0d", 3) == " +3" +string.format("%0#+6.0d", -3) == " -3" +string.format("%0#+6.0d", 100) == " +100" +string.format("%0#+6.1d", 0) == " +0" +string.format("%0#+6.1d", 1) == " +1" +string.format("%0#+6.1d", -1) == " -1" +string.format("%0#+6.1d", 2) == " +2" +string.format("%0#+6.1d", -2) == " -2" +string.format("%0#+6.1d", 3) == " +3" +string.format("%0#+6.1d", -3) == " -3" +string.format("%0#+6.1d", 100) == " +100" +string.format("%0#+6.6d", 0) == "+000000" +string.format("%0#+6.6d", 1) == "+000001" +string.format("%0#+6.6d", -1) == "-000001" +string.format("%0#+6.6d", 2) == "+000002" +string.format("%0#+6.6d", -2) == "-000002" +string.format("%0#+6.6d", 3) == "+000003" +string.format("%0#+6.6d", -3) == "-000003" +string.format("%0#+6.6d", 100) == "+000100" +string.format("%0#+6.6d", 10000) == "+010000" +string.format("%0#+20d", 0) == "+0000000000000000000" +string.format("%0#+20d", 1) == "+0000000000000000001" +string.format("%0#+20d", -1) == "-0000000000000000001" +string.format("%0#+20d", 2) == "+0000000000000000002" +string.format("%0#+20d", -2) == "-0000000000000000002" +string.format("%0#+20d", 3) == "+0000000000000000003" +string.format("%0#+20d", -3) == "-0000000000000000003" +string.format("%0#+20d", 100) == "+0000000000000000100" +string.format("%0#+20d", 10000) == "+0000000000000010000" +string.format("%0#+20d", 100000) == "+0000000000000100000" +string.format("%0#+20d", 1000000) == "+0000000000001000000" +string.format("%0#+20d", 10000000) == "+0000000000010000000" +string.format("%0#+20.0d", 0) == " +" +string.format("%0#+20.0d", 1) == " +1" +string.format("%0#+20.0d", -1) == " -1" +string.format("%0#+20.0d", 2) == " +2" +string.format("%0#+20.0d", -2) == " -2" +string.format("%0#+20.0d", 3) == " +3" +string.format("%0#+20.0d", -3) == " -3" +string.format("%0#+20.0d", 100) == " +100" +string.format("%0#+20.0d", 10000) == " +10000" +string.format("%0#+20.0d", 100000) == " +100000" +string.format("%0#+20.0d", 1000000) == " +1000000" +string.format("%0#+20.0d", 10000000) == " +10000000" +string.format("%0#+20.1d", 0) == " +0" +string.format("%0#+20.1d", 1) == " +1" +string.format("%0#+20.1d", -1) == " -1" +string.format("%0#+20.1d", 2) == " +2" +string.format("%0#+20.1d", -2) == " -2" +string.format("%0#+20.1d", 3) == " +3" +string.format("%0#+20.1d", -3) == " -3" +string.format("%0#+20.1d", 100) == " +100" +string.format("%0#+20.1d", 10000) == " +10000" +string.format("%0#+20.1d", 100000) == " +100000" +string.format("%0#+20.1d", 1000000) == " +1000000" +string.format("%0#+20.1d", 10000000) == " +10000000" +string.format("%0#+20.6d", 0) == " +000000" +string.format("%0#+20.6d", 1) == " +000001" +string.format("%0#+20.6d", -1) == " -000001" +string.format("%0#+20.6d", 2) == " +000002" +string.format("%0#+20.6d", -2) == " -000002" +string.format("%0#+20.6d", 3) == " +000003" +string.format("%0#+20.6d", -3) == " -000003" +string.format("%0#+20.6d", 100) == " +000100" +string.format("%0#+20.6d", 10000) == " +010000" +string.format("%0#+20.6d", 100000) == " +100000" +string.format("%0#+20.6d", 1000000) == " +1000000" +string.format("%0#+20.6d", 10000000) == " +10000000" +string.format("%0#-d", 0) == "0" +string.format("%0#-d", 1) == "1" +string.format("%0#-d", -1) == "-1" +string.format("%0#-d", 2) == "2" +string.format("%0#-d", -2) == "-2" +string.format("%0#-d", 3) == "3" +string.format("%0#-d", -3) == "-3" +string.format("%0#-d", 100) == "100" +string.format("%0#-d", 10000) == "10000" +string.format("%0#-d", 100000) == "100000" +string.format("%0#-d", 1000000) == "1000000" +string.format("%0#-d", 10000000) == "10000000" +string.format("%0#-.0d", 0) == "" +string.format("%0#-.6d", 0) == "000000" +string.format("%0#-.6d", 1) == "000001" +string.format("%0#-.6d", -1) == "-000001" +string.format("%0#-.6d", 2) == "000002" +string.format("%0#-.6d", -2) == "-000002" +string.format("%0#-.6d", 3) == "000003" +string.format("%0#-.6d", -3) == "-000003" +string.format("%0#-.6d", 100) == "000100" +string.format("%0#-.6d", 10000) == "010000" +string.format("%0#-1.0d", 0) == " " +string.format("%0#-1.6d", 0) == "000000" +string.format("%0#-1.6d", 1) == "000001" +string.format("%0#-1.6d", -1) == "-000001" +string.format("%0#-1.6d", 2) == "000002" +string.format("%0#-1.6d", -2) == "-000002" +string.format("%0#-1.6d", 3) == "000003" +string.format("%0#-1.6d", -3) == "-000003" +string.format("%0#-1.6d", 100) == "000100" +string.format("%0#-1.6d", 10000) == "010000" +string.format("%0#-2d", 0) == "0 " +string.format("%0#-2d", 1) == "1 " +string.format("%0#-2d", 2) == "2 " +string.format("%0#-2d", 3) == "3 " +string.format("%0#-2.0d", 0) == " " +string.format("%0#-2.0d", 1) == "1 " +string.format("%0#-2.0d", 2) == "2 " +string.format("%0#-2.0d", 3) == "3 " +string.format("%0#-2.1d", 0) == "0 " +string.format("%0#-2.1d", 1) == "1 " +string.format("%0#-2.1d", 2) == "2 " +string.format("%0#-2.1d", 3) == "3 " +string.format("%0#-2.6d", 0) == "000000" +string.format("%0#-2.6d", 1) == "000001" +string.format("%0#-2.6d", -1) == "-000001" +string.format("%0#-2.6d", 2) == "000002" +string.format("%0#-2.6d", -2) == "-000002" +string.format("%0#-2.6d", 3) == "000003" +string.format("%0#-2.6d", -3) == "-000003" +string.format("%0#-2.6d", 100) == "000100" +string.format("%0#-2.6d", 10000) == "010000" +string.format("%0#-6d", 0) == "0 " +string.format("%0#-6d", 1) == "1 " +string.format("%0#-6d", -1) == "-1 " +string.format("%0#-6d", 2) == "2 " +string.format("%0#-6d", -2) == "-2 " +string.format("%0#-6d", 3) == "3 " +string.format("%0#-6d", -3) == "-3 " +string.format("%0#-6d", 100) == "100 " +string.format("%0#-6d", 10000) == "10000 " +string.format("%0#-6.0d", 0) == " " +string.format("%0#-6.0d", 1) == "1 " +string.format("%0#-6.0d", -1) == "-1 " +string.format("%0#-6.0d", 2) == "2 " +string.format("%0#-6.0d", -2) == "-2 " +string.format("%0#-6.0d", 3) == "3 " +string.format("%0#-6.0d", -3) == "-3 " +string.format("%0#-6.0d", 100) == "100 " +string.format("%0#-6.0d", 10000) == "10000 " +string.format("%0#-6.1d", 0) == "0 " +string.format("%0#-6.1d", 1) == "1 " +string.format("%0#-6.1d", -1) == "-1 " +string.format("%0#-6.1d", 2) == "2 " +string.format("%0#-6.1d", -2) == "-2 " +string.format("%0#-6.1d", 3) == "3 " +string.format("%0#-6.1d", -3) == "-3 " +string.format("%0#-6.1d", 100) == "100 " +string.format("%0#-6.1d", 10000) == "10000 " +string.format("%0#-6.6d", 0) == "000000" +string.format("%0#-6.6d", 1) == "000001" +string.format("%0#-6.6d", -1) == "-000001" +string.format("%0#-6.6d", 2) == "000002" +string.format("%0#-6.6d", -2) == "-000002" +string.format("%0#-6.6d", 3) == "000003" +string.format("%0#-6.6d", -3) == "-000003" +string.format("%0#-6.6d", 100) == "000100" +string.format("%0#-6.6d", 10000) == "010000" +string.format("%0#-20d", 0) == "0 " +string.format("%0#-20d", 1) == "1 " +string.format("%0#-20d", -1) == "-1 " +string.format("%0#-20d", 2) == "2 " +string.format("%0#-20d", -2) == "-2 " +string.format("%0#-20d", 3) == "3 " +string.format("%0#-20d", -3) == "-3 " +string.format("%0#-20d", 100) == "100 " +string.format("%0#-20d", 10000) == "10000 " +string.format("%0#-20d", 100000) == "100000 " +string.format("%0#-20d", 1000000) == "1000000 " +string.format("%0#-20d", 10000000) == "10000000 " +string.format("%0#-20.0d", 0) == " " +string.format("%0#-20.0d", 1) == "1 " +string.format("%0#-20.0d", -1) == "-1 " +string.format("%0#-20.0d", 2) == "2 " +string.format("%0#-20.0d", -2) == "-2 " +string.format("%0#-20.0d", 3) == "3 " +string.format("%0#-20.0d", -3) == "-3 " +string.format("%0#-20.0d", 100) == "100 " +string.format("%0#-20.0d", 10000) == "10000 " +string.format("%0#-20.0d", 100000) == "100000 " +string.format("%0#-20.0d", 1000000) == "1000000 " +string.format("%0#-20.0d", 10000000) == "10000000 " +string.format("%0#-20.1d", 0) == "0 " +string.format("%0#-20.1d", 1) == "1 " +string.format("%0#-20.1d", -1) == "-1 " +string.format("%0#-20.1d", 2) == "2 " +string.format("%0#-20.1d", -2) == "-2 " +string.format("%0#-20.1d", 3) == "3 " +string.format("%0#-20.1d", -3) == "-3 " +string.format("%0#-20.1d", 100) == "100 " +string.format("%0#-20.1d", 10000) == "10000 " +string.format("%0#-20.1d", 100000) == "100000 " +string.format("%0#-20.1d", 1000000) == "1000000 " +string.format("%0#-20.1d", 10000000) == "10000000 " +string.format("%0#-20.6d", 0) == "000000 " +string.format("%0#-20.6d", 1) == "000001 " +string.format("%0#-20.6d", -1) == "-000001 " +string.format("%0#-20.6d", 2) == "000002 " +string.format("%0#-20.6d", -2) == "-000002 " +string.format("%0#-20.6d", 3) == "000003 " +string.format("%0#-20.6d", -3) == "-000003 " +string.format("%0#-20.6d", 100) == "000100 " +string.format("%0#-20.6d", 10000) == "010000 " +string.format("%0#-20.6d", 100000) == "100000 " +string.format("%0#-20.6d", 1000000) == "1000000 " +string.format("%0#-20.6d", 10000000) == "10000000 " +string.format("%0#-+d", 0) == "+0" +string.format("%0#-+d", 1) == "+1" +string.format("%0#-+d", -1) == "-1" +string.format("%0#-+d", 2) == "+2" +string.format("%0#-+d", -2) == "-2" +string.format("%0#-+d", 3) == "+3" +string.format("%0#-+d", -3) == "-3" +string.format("%0#-+d", 100) == "+100" +string.format("%0#-+d", 10000) == "+10000" +string.format("%0#-+d", 100000) == "+100000" +string.format("%0#-+d", 1000000) == "+1000000" +string.format("%0#-+d", 10000000) == "+10000000" +string.format("%0#-+.0d", 0) == "+" +string.format("%0#-+.6d", 0) == "+000000" +string.format("%0#-+.6d", 1) == "+000001" +string.format("%0#-+.6d", -1) == "-000001" +string.format("%0#-+.6d", 2) == "+000002" +string.format("%0#-+.6d", -2) == "-000002" +string.format("%0#-+.6d", 3) == "+000003" +string.format("%0#-+.6d", -3) == "-000003" +string.format("%0#-+.6d", 100) == "+000100" +string.format("%0#-+.6d", 10000) == "+010000" +string.format("%0#-+1.0d", 0) == "+" +string.format("%0#-+1.6d", 0) == "+000000" +string.format("%0#-+1.6d", 1) == "+000001" +string.format("%0#-+1.6d", -1) == "-000001" +string.format("%0#-+1.6d", 2) == "+000002" +string.format("%0#-+1.6d", -2) == "-000002" +string.format("%0#-+1.6d", 3) == "+000003" +string.format("%0#-+1.6d", -3) == "-000003" +string.format("%0#-+1.6d", 100) == "+000100" +string.format("%0#-+1.6d", 10000) == "+010000" +string.format("%0#-+2.0d", 0) == "+ " +string.format("%0#-+2.6d", 0) == "+000000" +string.format("%0#-+2.6d", 1) == "+000001" +string.format("%0#-+2.6d", -1) == "-000001" +string.format("%0#-+2.6d", 2) == "+000002" +string.format("%0#-+2.6d", -2) == "-000002" +string.format("%0#-+2.6d", 3) == "+000003" +string.format("%0#-+2.6d", -3) == "-000003" +string.format("%0#-+2.6d", 100) == "+000100" +string.format("%0#-+2.6d", 10000) == "+010000" +string.format("%0#-+6d", 0) == "+0 " +string.format("%0#-+6d", 1) == "+1 " +string.format("%0#-+6d", -1) == "-1 " +string.format("%0#-+6d", 2) == "+2 " +string.format("%0#-+6d", -2) == "-2 " +string.format("%0#-+6d", 3) == "+3 " +string.format("%0#-+6d", -3) == "-3 " +string.format("%0#-+6d", 100) == "+100 " +string.format("%0#-+6.0d", 0) == "+ " +string.format("%0#-+6.0d", 1) == "+1 " +string.format("%0#-+6.0d", -1) == "-1 " +string.format("%0#-+6.0d", 2) == "+2 " +string.format("%0#-+6.0d", -2) == "-2 " +string.format("%0#-+6.0d", 3) == "+3 " +string.format("%0#-+6.0d", -3) == "-3 " +string.format("%0#-+6.0d", 100) == "+100 " +string.format("%0#-+6.1d", 0) == "+0 " +string.format("%0#-+6.1d", 1) == "+1 " +string.format("%0#-+6.1d", -1) == "-1 " +string.format("%0#-+6.1d", 2) == "+2 " +string.format("%0#-+6.1d", -2) == "-2 " +string.format("%0#-+6.1d", 3) == "+3 " +string.format("%0#-+6.1d", -3) == "-3 " +string.format("%0#-+6.1d", 100) == "+100 " +string.format("%0#-+6.6d", 0) == "+000000" +string.format("%0#-+6.6d", 1) == "+000001" +string.format("%0#-+6.6d", -1) == "-000001" +string.format("%0#-+6.6d", 2) == "+000002" +string.format("%0#-+6.6d", -2) == "-000002" +string.format("%0#-+6.6d", 3) == "+000003" +string.format("%0#-+6.6d", -3) == "-000003" +string.format("%0#-+6.6d", 100) == "+000100" +string.format("%0#-+6.6d", 10000) == "+010000" +string.format("%0#-+20d", 0) == "+0 " +string.format("%0#-+20d", 1) == "+1 " +string.format("%0#-+20d", -1) == "-1 " +string.format("%0#-+20d", 2) == "+2 " +string.format("%0#-+20d", -2) == "-2 " +string.format("%0#-+20d", 3) == "+3 " +string.format("%0#-+20d", -3) == "-3 " +string.format("%0#-+20d", 100) == "+100 " +string.format("%0#-+20d", 10000) == "+10000 " +string.format("%0#-+20d", 100000) == "+100000 " +string.format("%0#-+20d", 1000000) == "+1000000 " +string.format("%0#-+20d", 10000000) == "+10000000 " +string.format("%0#-+20.0d", 0) == "+ " +string.format("%0#-+20.0d", 1) == "+1 " +string.format("%0#-+20.0d", -1) == "-1 " +string.format("%0#-+20.0d", 2) == "+2 " +string.format("%0#-+20.0d", -2) == "-2 " +string.format("%0#-+20.0d", 3) == "+3 " +string.format("%0#-+20.0d", -3) == "-3 " +string.format("%0#-+20.0d", 100) == "+100 " +string.format("%0#-+20.0d", 10000) == "+10000 " +string.format("%0#-+20.0d", 100000) == "+100000 " +string.format("%0#-+20.0d", 1000000) == "+1000000 " +string.format("%0#-+20.0d", 10000000) == "+10000000 " +string.format("%0#-+20.1d", 0) == "+0 " +string.format("%0#-+20.1d", 1) == "+1 " +string.format("%0#-+20.1d", -1) == "-1 " +string.format("%0#-+20.1d", 2) == "+2 " +string.format("%0#-+20.1d", -2) == "-2 " +string.format("%0#-+20.1d", 3) == "+3 " +string.format("%0#-+20.1d", -3) == "-3 " +string.format("%0#-+20.1d", 100) == "+100 " +string.format("%0#-+20.1d", 10000) == "+10000 " +string.format("%0#-+20.1d", 100000) == "+100000 " +string.format("%0#-+20.1d", 1000000) == "+1000000 " +string.format("%0#-+20.1d", 10000000) == "+10000000 " +string.format("%0#-+20.6d", 0) == "+000000 " +string.format("%0#-+20.6d", 1) == "+000001 " +string.format("%0#-+20.6d", -1) == "-000001 " +string.format("%0#-+20.6d", 2) == "+000002 " +string.format("%0#-+20.6d", -2) == "-000002 " +string.format("%0#-+20.6d", 3) == "+000003 " +string.format("%0#-+20.6d", -3) == "-000003 " +string.format("%0#-+20.6d", 100) == "+000100 " +string.format("%0#-+20.6d", 10000) == "+010000 " +string.format("%0#-+20.6d", 100000) == "+100000 " +string.format("%0#-+20.6d", 1000000) == "+1000000 " +string.format("%0#-+20.6d", 10000000) == "+10000000 " +string.format("%0# d", 0) == " 0" +string.format("%0# d", 1) == " 1" +string.format("%0# d", -1) == "-1" +string.format("%0# d", 2) == " 2" +string.format("%0# d", -2) == "-2" +string.format("%0# d", 3) == " 3" +string.format("%0# d", -3) == "-3" +string.format("%0# d", 100) == " 100" +string.format("%0# d", 10000) == " 10000" +string.format("%0# d", 100000) == " 100000" +string.format("%0# d", 1000000) == " 1000000" +string.format("%0# d", 10000000) == " 10000000" +string.format("%0# .0d", 0) == " " +string.format("%0# .6d", 0) == " 000000" +string.format("%0# .6d", 1) == " 000001" +string.format("%0# .6d", -1) == "-000001" +string.format("%0# .6d", 2) == " 000002" +string.format("%0# .6d", -2) == "-000002" +string.format("%0# .6d", 3) == " 000003" +string.format("%0# .6d", -3) == "-000003" +string.format("%0# .6d", 100) == " 000100" +string.format("%0# .6d", 10000) == " 010000" +string.format("%0# 1.0d", 0) == " " +string.format("%0# 1.6d", 0) == " 000000" +string.format("%0# 1.6d", 1) == " 000001" +string.format("%0# 1.6d", -1) == "-000001" +string.format("%0# 1.6d", 2) == " 000002" +string.format("%0# 1.6d", -2) == "-000002" +string.format("%0# 1.6d", 3) == " 000003" +string.format("%0# 1.6d", -3) == "-000003" +string.format("%0# 1.6d", 100) == " 000100" +string.format("%0# 1.6d", 10000) == " 010000" +string.format("%0# 2.0d", 0) == " " +string.format("%0# 2.6d", 0) == " 000000" +string.format("%0# 2.6d", 1) == " 000001" +string.format("%0# 2.6d", -1) == "-000001" +string.format("%0# 2.6d", 2) == " 000002" +string.format("%0# 2.6d", -2) == "-000002" +string.format("%0# 2.6d", 3) == " 000003" +string.format("%0# 2.6d", -3) == "-000003" +string.format("%0# 2.6d", 100) == " 000100" +string.format("%0# 2.6d", 10000) == " 010000" +string.format("%0# 6d", 0) == " 00000" +string.format("%0# 6d", 1) == " 00001" +string.format("%0# 6d", -1) == "-00001" +string.format("%0# 6d", 2) == " 00002" +string.format("%0# 6d", -2) == "-00002" +string.format("%0# 6d", 3) == " 00003" +string.format("%0# 6d", -3) == "-00003" +string.format("%0# 6d", 100) == " 00100" +string.format("%0# 6.0d", 0) == " " +string.format("%0# 6.0d", 1) == " 1" +string.format("%0# 6.0d", -1) == " -1" +string.format("%0# 6.0d", 2) == " 2" +string.format("%0# 6.0d", -2) == " -2" +string.format("%0# 6.0d", 3) == " 3" +string.format("%0# 6.0d", -3) == " -3" +string.format("%0# 6.0d", 100) == " 100" +string.format("%0# 6.1d", 0) == " 0" +string.format("%0# 6.1d", 1) == " 1" +string.format("%0# 6.1d", -1) == " -1" +string.format("%0# 6.1d", 2) == " 2" +string.format("%0# 6.1d", -2) == " -2" +string.format("%0# 6.1d", 3) == " 3" +string.format("%0# 6.1d", -3) == " -3" +string.format("%0# 6.1d", 100) == " 100" +string.format("%0# 6.6d", 0) == " 000000" +string.format("%0# 6.6d", 1) == " 000001" +string.format("%0# 6.6d", -1) == "-000001" +string.format("%0# 6.6d", 2) == " 000002" +string.format("%0# 6.6d", -2) == "-000002" +string.format("%0# 6.6d", 3) == " 000003" +string.format("%0# 6.6d", -3) == "-000003" +string.format("%0# 6.6d", 100) == " 000100" +string.format("%0# 6.6d", 10000) == " 010000" +string.format("%0# 20d", 0) == " 0000000000000000000" +string.format("%0# 20d", 1) == " 0000000000000000001" +string.format("%0# 20d", -1) == "-0000000000000000001" +string.format("%0# 20d", 2) == " 0000000000000000002" +string.format("%0# 20d", -2) == "-0000000000000000002" +string.format("%0# 20d", 3) == " 0000000000000000003" +string.format("%0# 20d", -3) == "-0000000000000000003" +string.format("%0# 20d", 100) == " 0000000000000000100" +string.format("%0# 20d", 10000) == " 0000000000000010000" +string.format("%0# 20d", 100000) == " 0000000000000100000" +string.format("%0# 20d", 1000000) == " 0000000000001000000" +string.format("%0# 20d", 10000000) == " 0000000000010000000" +string.format("%0# 20.0d", 0) == " " +string.format("%0# 20.0d", 1) == " 1" +string.format("%0# 20.0d", -1) == " -1" +string.format("%0# 20.0d", 2) == " 2" +string.format("%0# 20.0d", -2) == " -2" +string.format("%0# 20.0d", 3) == " 3" +string.format("%0# 20.0d", -3) == " -3" +string.format("%0# 20.0d", 100) == " 100" +string.format("%0# 20.0d", 10000) == " 10000" +string.format("%0# 20.0d", 100000) == " 100000" +string.format("%0# 20.0d", 1000000) == " 1000000" +string.format("%0# 20.0d", 10000000) == " 10000000" +string.format("%0# 20.1d", 0) == " 0" +string.format("%0# 20.1d", 1) == " 1" +string.format("%0# 20.1d", -1) == " -1" +string.format("%0# 20.1d", 2) == " 2" +string.format("%0# 20.1d", -2) == " -2" +string.format("%0# 20.1d", 3) == " 3" +string.format("%0# 20.1d", -3) == " -3" +string.format("%0# 20.1d", 100) == " 100" +string.format("%0# 20.1d", 10000) == " 10000" +string.format("%0# 20.1d", 100000) == " 100000" +string.format("%0# 20.1d", 1000000) == " 1000000" +string.format("%0# 20.1d", 10000000) == " 10000000" +string.format("%0# 20.6d", 0) == " 000000" +string.format("%0# 20.6d", 1) == " 000001" +string.format("%0# 20.6d", -1) == " -000001" +string.format("%0# 20.6d", 2) == " 000002" +string.format("%0# 20.6d", -2) == " -000002" +string.format("%0# 20.6d", 3) == " 000003" +string.format("%0# 20.6d", -3) == " -000003" +string.format("%0# 20.6d", 100) == " 000100" +string.format("%0# 20.6d", 10000) == " 010000" +string.format("%0# 20.6d", 100000) == " 100000" +string.format("%0# 20.6d", 1000000) == " 1000000" +string.format("%0# 20.6d", 10000000) == " 10000000" +string.format("%0# +d", 0) == "+0" +string.format("%0# +d", 1) == "+1" +string.format("%0# +d", -1) == "-1" +string.format("%0# +d", 2) == "+2" +string.format("%0# +d", -2) == "-2" +string.format("%0# +d", 3) == "+3" +string.format("%0# +d", -3) == "-3" +string.format("%0# +d", 100) == "+100" +string.format("%0# +d", 10000) == "+10000" +string.format("%0# +d", 100000) == "+100000" +string.format("%0# +d", 1000000) == "+1000000" +string.format("%0# +d", 10000000) == "+10000000" +string.format("%0# +.0d", 0) == "+" +string.format("%0# +.6d", 0) == "+000000" +string.format("%0# +.6d", 1) == "+000001" +string.format("%0# +.6d", -1) == "-000001" +string.format("%0# +.6d", 2) == "+000002" +string.format("%0# +.6d", -2) == "-000002" +string.format("%0# +.6d", 3) == "+000003" +string.format("%0# +.6d", -3) == "-000003" +string.format("%0# +.6d", 100) == "+000100" +string.format("%0# +.6d", 10000) == "+010000" +string.format("%0# +1.0d", 0) == "+" +string.format("%0# +1.6d", 0) == "+000000" +string.format("%0# +1.6d", 1) == "+000001" +string.format("%0# +1.6d", -1) == "-000001" +string.format("%0# +1.6d", 2) == "+000002" +string.format("%0# +1.6d", -2) == "-000002" +string.format("%0# +1.6d", 3) == "+000003" +string.format("%0# +1.6d", -3) == "-000003" +string.format("%0# +1.6d", 100) == "+000100" +string.format("%0# +1.6d", 10000) == "+010000" +string.format("%0# +2.0d", 0) == " +" +string.format("%0# +2.6d", 0) == "+000000" +string.format("%0# +2.6d", 1) == "+000001" +string.format("%0# +2.6d", -1) == "-000001" +string.format("%0# +2.6d", 2) == "+000002" +string.format("%0# +2.6d", -2) == "-000002" +string.format("%0# +2.6d", 3) == "+000003" +string.format("%0# +2.6d", -3) == "-000003" +string.format("%0# +2.6d", 100) == "+000100" +string.format("%0# +2.6d", 10000) == "+010000" +string.format("%0# +6d", 0) == "+00000" +string.format("%0# +6d", 1) == "+00001" +string.format("%0# +6d", -1) == "-00001" +string.format("%0# +6d", 2) == "+00002" +string.format("%0# +6d", -2) == "-00002" +string.format("%0# +6d", 3) == "+00003" +string.format("%0# +6d", -3) == "-00003" +string.format("%0# +6d", 100) == "+00100" +string.format("%0# +6.0d", 0) == " +" +string.format("%0# +6.0d", 1) == " +1" +string.format("%0# +6.0d", -1) == " -1" +string.format("%0# +6.0d", 2) == " +2" +string.format("%0# +6.0d", -2) == " -2" +string.format("%0# +6.0d", 3) == " +3" +string.format("%0# +6.0d", -3) == " -3" +string.format("%0# +6.0d", 100) == " +100" +string.format("%0# +6.1d", 0) == " +0" +string.format("%0# +6.1d", 1) == " +1" +string.format("%0# +6.1d", -1) == " -1" +string.format("%0# +6.1d", 2) == " +2" +string.format("%0# +6.1d", -2) == " -2" +string.format("%0# +6.1d", 3) == " +3" +string.format("%0# +6.1d", -3) == " -3" +string.format("%0# +6.1d", 100) == " +100" +string.format("%0# +6.6d", 0) == "+000000" +string.format("%0# +6.6d", 1) == "+000001" +string.format("%0# +6.6d", -1) == "-000001" +string.format("%0# +6.6d", 2) == "+000002" +string.format("%0# +6.6d", -2) == "-000002" +string.format("%0# +6.6d", 3) == "+000003" +string.format("%0# +6.6d", -3) == "-000003" +string.format("%0# +6.6d", 100) == "+000100" +string.format("%0# +6.6d", 10000) == "+010000" +string.format("%0# +20d", 0) == "+0000000000000000000" +string.format("%0# +20d", 1) == "+0000000000000000001" +string.format("%0# +20d", -1) == "-0000000000000000001" +string.format("%0# +20d", 2) == "+0000000000000000002" +string.format("%0# +20d", -2) == "-0000000000000000002" +string.format("%0# +20d", 3) == "+0000000000000000003" +string.format("%0# +20d", -3) == "-0000000000000000003" +string.format("%0# +20d", 100) == "+0000000000000000100" +string.format("%0# +20d", 10000) == "+0000000000000010000" +string.format("%0# +20d", 100000) == "+0000000000000100000" +string.format("%0# +20d", 1000000) == "+0000000000001000000" +string.format("%0# +20d", 10000000) == "+0000000000010000000" +string.format("%0# +20.0d", 0) == " +" +string.format("%0# +20.0d", 1) == " +1" +string.format("%0# +20.0d", -1) == " -1" +string.format("%0# +20.0d", 2) == " +2" +string.format("%0# +20.0d", -2) == " -2" +string.format("%0# +20.0d", 3) == " +3" +string.format("%0# +20.0d", -3) == " -3" +string.format("%0# +20.0d", 100) == " +100" +string.format("%0# +20.0d", 10000) == " +10000" +string.format("%0# +20.0d", 100000) == " +100000" +string.format("%0# +20.0d", 1000000) == " +1000000" +string.format("%0# +20.0d", 10000000) == " +10000000" +string.format("%0# +20.1d", 0) == " +0" +string.format("%0# +20.1d", 1) == " +1" +string.format("%0# +20.1d", -1) == " -1" +string.format("%0# +20.1d", 2) == " +2" +string.format("%0# +20.1d", -2) == " -2" +string.format("%0# +20.1d", 3) == " +3" +string.format("%0# +20.1d", -3) == " -3" +string.format("%0# +20.1d", 100) == " +100" +string.format("%0# +20.1d", 10000) == " +10000" +string.format("%0# +20.1d", 100000) == " +100000" +string.format("%0# +20.1d", 1000000) == " +1000000" +string.format("%0# +20.1d", 10000000) == " +10000000" +string.format("%0# +20.6d", 0) == " +000000" +string.format("%0# +20.6d", 1) == " +000001" +string.format("%0# +20.6d", -1) == " -000001" +string.format("%0# +20.6d", 2) == " +000002" +string.format("%0# +20.6d", -2) == " -000002" +string.format("%0# +20.6d", 3) == " +000003" +string.format("%0# +20.6d", -3) == " -000003" +string.format("%0# +20.6d", 100) == " +000100" +string.format("%0# +20.6d", 10000) == " +010000" +string.format("%0# +20.6d", 100000) == " +100000" +string.format("%0# +20.6d", 1000000) == " +1000000" +string.format("%0# +20.6d", 10000000) == " +10000000" +string.format("%0# -d", 0) == " 0" +string.format("%0# -d", 1) == " 1" +string.format("%0# -d", -1) == "-1" +string.format("%0# -d", 2) == " 2" +string.format("%0# -d", -2) == "-2" +string.format("%0# -d", 3) == " 3" +string.format("%0# -d", -3) == "-3" +string.format("%0# -d", 100) == " 100" +string.format("%0# -d", 10000) == " 10000" +string.format("%0# -d", 100000) == " 100000" +string.format("%0# -d", 1000000) == " 1000000" +string.format("%0# -d", 10000000) == " 10000000" +string.format("%0# -.0d", 0) == " " +string.format("%0# -.6d", 0) == " 000000" +string.format("%0# -.6d", 1) == " 000001" +string.format("%0# -.6d", -1) == "-000001" +string.format("%0# -.6d", 2) == " 000002" +string.format("%0# -.6d", -2) == "-000002" +string.format("%0# -.6d", 3) == " 000003" +string.format("%0# -.6d", -3) == "-000003" +string.format("%0# -.6d", 100) == " 000100" +string.format("%0# -.6d", 10000) == " 010000" +string.format("%0# -1.0d", 0) == " " +string.format("%0# -1.6d", 0) == " 000000" +string.format("%0# -1.6d", 1) == " 000001" +string.format("%0# -1.6d", -1) == "-000001" +string.format("%0# -1.6d", 2) == " 000002" +string.format("%0# -1.6d", -2) == "-000002" +string.format("%0# -1.6d", 3) == " 000003" +string.format("%0# -1.6d", -3) == "-000003" +string.format("%0# -1.6d", 100) == " 000100" +string.format("%0# -1.6d", 10000) == " 010000" +string.format("%0# -2.0d", 0) == " " +string.format("%0# -2.6d", 0) == " 000000" +string.format("%0# -2.6d", 1) == " 000001" +string.format("%0# -2.6d", -1) == "-000001" +string.format("%0# -2.6d", 2) == " 000002" +string.format("%0# -2.6d", -2) == "-000002" +string.format("%0# -2.6d", 3) == " 000003" +string.format("%0# -2.6d", -3) == "-000003" +string.format("%0# -2.6d", 100) == " 000100" +string.format("%0# -2.6d", 10000) == " 010000" +string.format("%0# -6d", 0) == " 0 " +string.format("%0# -6d", 1) == " 1 " +string.format("%0# -6d", -1) == "-1 " +string.format("%0# -6d", 2) == " 2 " +string.format("%0# -6d", -2) == "-2 " +string.format("%0# -6d", 3) == " 3 " +string.format("%0# -6d", -3) == "-3 " +string.format("%0# -6d", 100) == " 100 " +string.format("%0# -6.0d", 0) == " " +string.format("%0# -6.0d", 1) == " 1 " +string.format("%0# -6.0d", -1) == "-1 " +string.format("%0# -6.0d", 2) == " 2 " +string.format("%0# -6.0d", -2) == "-2 " +string.format("%0# -6.0d", 3) == " 3 " +string.format("%0# -6.0d", -3) == "-3 " +string.format("%0# -6.0d", 100) == " 100 " +string.format("%0# -6.1d", 0) == " 0 " +string.format("%0# -6.1d", 1) == " 1 " +string.format("%0# -6.1d", -1) == "-1 " +string.format("%0# -6.1d", 2) == " 2 " +string.format("%0# -6.1d", -2) == "-2 " +string.format("%0# -6.1d", 3) == " 3 " +string.format("%0# -6.1d", -3) == "-3 " +string.format("%0# -6.1d", 100) == " 100 " +string.format("%0# -6.6d", 0) == " 000000" +string.format("%0# -6.6d", 1) == " 000001" +string.format("%0# -6.6d", -1) == "-000001" +string.format("%0# -6.6d", 2) == " 000002" +string.format("%0# -6.6d", -2) == "-000002" +string.format("%0# -6.6d", 3) == " 000003" +string.format("%0# -6.6d", -3) == "-000003" +string.format("%0# -6.6d", 100) == " 000100" +string.format("%0# -6.6d", 10000) == " 010000" +string.format("%0# -20d", 0) == " 0 " +string.format("%0# -20d", 1) == " 1 " +string.format("%0# -20d", -1) == "-1 " +string.format("%0# -20d", 2) == " 2 " +string.format("%0# -20d", -2) == "-2 " +string.format("%0# -20d", 3) == " 3 " +string.format("%0# -20d", -3) == "-3 " +string.format("%0# -20d", 100) == " 100 " +string.format("%0# -20d", 10000) == " 10000 " +string.format("%0# -20d", 100000) == " 100000 " +string.format("%0# -20d", 1000000) == " 1000000 " +string.format("%0# -20d", 10000000) == " 10000000 " +string.format("%0# -20.0d", 0) == " " +string.format("%0# -20.0d", 1) == " 1 " +string.format("%0# -20.0d", -1) == "-1 " +string.format("%0# -20.0d", 2) == " 2 " +string.format("%0# -20.0d", -2) == "-2 " +string.format("%0# -20.0d", 3) == " 3 " +string.format("%0# -20.0d", -3) == "-3 " +string.format("%0# -20.0d", 100) == " 100 " +string.format("%0# -20.0d", 10000) == " 10000 " +string.format("%0# -20.0d", 100000) == " 100000 " +string.format("%0# -20.0d", 1000000) == " 1000000 " +string.format("%0# -20.0d", 10000000) == " 10000000 " +string.format("%0# -20.1d", 0) == " 0 " +string.format("%0# -20.1d", 1) == " 1 " +string.format("%0# -20.1d", -1) == "-1 " +string.format("%0# -20.1d", 2) == " 2 " +string.format("%0# -20.1d", -2) == "-2 " +string.format("%0# -20.1d", 3) == " 3 " +string.format("%0# -20.1d", -3) == "-3 " +string.format("%0# -20.1d", 100) == " 100 " +string.format("%0# -20.1d", 10000) == " 10000 " +string.format("%0# -20.1d", 100000) == " 100000 " +string.format("%0# -20.1d", 1000000) == " 1000000 " +string.format("%0# -20.1d", 10000000) == " 10000000 " +string.format("%0# -20.6d", 0) == " 000000 " +string.format("%0# -20.6d", 1) == " 000001 " +string.format("%0# -20.6d", -1) == "-000001 " +string.format("%0# -20.6d", 2) == " 000002 " +string.format("%0# -20.6d", -2) == "-000002 " +string.format("%0# -20.6d", 3) == " 000003 " +string.format("%0# -20.6d", -3) == "-000003 " +string.format("%0# -20.6d", 100) == " 000100 " +string.format("%0# -20.6d", 10000) == " 010000 " +string.format("%0# -20.6d", 100000) == " 100000 " +string.format("%0# -20.6d", 1000000) == " 1000000 " +string.format("%0# -20.6d", 10000000) == " 10000000 " +string.format("%0# -+d", 0) == "+0" +string.format("%0# -+d", 1) == "+1" +string.format("%0# -+d", -1) == "-1" +string.format("%0# -+d", 2) == "+2" +string.format("%0# -+d", -2) == "-2" +string.format("%0# -+d", 3) == "+3" +string.format("%0# -+d", -3) == "-3" +string.format("%0# -+d", 100) == "+100" +string.format("%0# -+d", 10000) == "+10000" +string.format("%0# -+d", 100000) == "+100000" +string.format("%0# -+d", 1000000) == "+1000000" +string.format("%0# -+d", 10000000) == "+10000000" +string.format("%0# -+.0d", 0) == "+" +string.format("%0# -+.6d", 0) == "+000000" +string.format("%0# -+.6d", 1) == "+000001" +string.format("%0# -+.6d", -1) == "-000001" +string.format("%0# -+.6d", 2) == "+000002" +string.format("%0# -+.6d", -2) == "-000002" +string.format("%0# -+.6d", 3) == "+000003" +string.format("%0# -+.6d", -3) == "-000003" +string.format("%0# -+.6d", 100) == "+000100" +string.format("%0# -+.6d", 10000) == "+010000" +string.format("%0# -+1.0d", 0) == "+" +string.format("%0# -+1.6d", 0) == "+000000" +string.format("%0# -+1.6d", 1) == "+000001" +string.format("%0# -+1.6d", -1) == "-000001" +string.format("%0# -+1.6d", 2) == "+000002" +string.format("%0# -+1.6d", -2) == "-000002" +string.format("%0# -+1.6d", 3) == "+000003" +string.format("%0# -+1.6d", -3) == "-000003" +string.format("%0# -+1.6d", 100) == "+000100" +string.format("%0# -+1.6d", 10000) == "+010000" +string.format("%0# -+2.0d", 0) == "+ " +string.format("%0# -+2.6d", 0) == "+000000" +string.format("%0# -+2.6d", 1) == "+000001" +string.format("%0# -+2.6d", -1) == "-000001" +string.format("%0# -+2.6d", 2) == "+000002" +string.format("%0# -+2.6d", -2) == "-000002" +string.format("%0# -+2.6d", 3) == "+000003" +string.format("%0# -+2.6d", -3) == "-000003" +string.format("%0# -+2.6d", 100) == "+000100" +string.format("%0# -+2.6d", 10000) == "+010000" +string.format("%0# -+6d", 0) == "+0 " +string.format("%0# -+6d", 1) == "+1 " +string.format("%0# -+6d", -1) == "-1 " +string.format("%0# -+6d", 2) == "+2 " +string.format("%0# -+6d", -2) == "-2 " +string.format("%0# -+6d", 3) == "+3 " +string.format("%0# -+6d", -3) == "-3 " +string.format("%0# -+6d", 100) == "+100 " +string.format("%0# -+6.0d", 0) == "+ " +string.format("%0# -+6.0d", 1) == "+1 " +string.format("%0# -+6.0d", -1) == "-1 " +string.format("%0# -+6.0d", 2) == "+2 " +string.format("%0# -+6.0d", -2) == "-2 " +string.format("%0# -+6.0d", 3) == "+3 " +string.format("%0# -+6.0d", -3) == "-3 " +string.format("%0# -+6.0d", 100) == "+100 " +string.format("%0# -+6.1d", 0) == "+0 " +string.format("%0# -+6.1d", 1) == "+1 " +string.format("%0# -+6.1d", -1) == "-1 " +string.format("%0# -+6.1d", 2) == "+2 " +string.format("%0# -+6.1d", -2) == "-2 " +string.format("%0# -+6.1d", 3) == "+3 " +string.format("%0# -+6.1d", -3) == "-3 " +string.format("%0# -+6.1d", 100) == "+100 " +string.format("%0# -+6.6d", 0) == "+000000" +string.format("%0# -+6.6d", 1) == "+000001" +string.format("%0# -+6.6d", -1) == "-000001" +string.format("%0# -+6.6d", 2) == "+000002" +string.format("%0# -+6.6d", -2) == "-000002" +string.format("%0# -+6.6d", 3) == "+000003" +string.format("%0# -+6.6d", -3) == "-000003" +string.format("%0# -+6.6d", 100) == "+000100" +string.format("%0# -+6.6d", 10000) == "+010000" +string.format("%0# -+20d", 0) == "+0 " +string.format("%0# -+20d", 1) == "+1 " +string.format("%0# -+20d", -1) == "-1 " +string.format("%0# -+20d", 2) == "+2 " +string.format("%0# -+20d", -2) == "-2 " +string.format("%0# -+20d", 3) == "+3 " +string.format("%0# -+20d", -3) == "-3 " +string.format("%0# -+20d", 100) == "+100 " +string.format("%0# -+20d", 10000) == "+10000 " +string.format("%0# -+20d", 100000) == "+100000 " +string.format("%0# -+20d", 1000000) == "+1000000 " +string.format("%0# -+20d", 10000000) == "+10000000 " +string.format("%0# -+20.0d", 0) == "+ " +string.format("%0# -+20.0d", 1) == "+1 " +string.format("%0# -+20.0d", -1) == "-1 " +string.format("%0# -+20.0d", 2) == "+2 " +string.format("%0# -+20.0d", -2) == "-2 " +string.format("%0# -+20.0d", 3) == "+3 " +string.format("%0# -+20.0d", -3) == "-3 " +string.format("%0# -+20.0d", 100) == "+100 " +string.format("%0# -+20.0d", 10000) == "+10000 " +string.format("%0# -+20.0d", 100000) == "+100000 " +string.format("%0# -+20.0d", 1000000) == "+1000000 " +string.format("%0# -+20.0d", 10000000) == "+10000000 " +string.format("%0# -+20.1d", 0) == "+0 " +string.format("%0# -+20.1d", 1) == "+1 " +string.format("%0# -+20.1d", -1) == "-1 " +string.format("%0# -+20.1d", 2) == "+2 " +string.format("%0# -+20.1d", -2) == "-2 " +string.format("%0# -+20.1d", 3) == "+3 " +string.format("%0# -+20.1d", -3) == "-3 " +string.format("%0# -+20.1d", 100) == "+100 " +string.format("%0# -+20.1d", 10000) == "+10000 " +string.format("%0# -+20.1d", 100000) == "+100000 " +string.format("%0# -+20.1d", 1000000) == "+1000000 " +string.format("%0# -+20.1d", 10000000) == "+10000000 " +string.format("%0# -+20.6d", 0) == "+000000 " +string.format("%0# -+20.6d", 1) == "+000001 " +string.format("%0# -+20.6d", -1) == "-000001 " +string.format("%0# -+20.6d", 2) == "+000002 " +string.format("%0# -+20.6d", -2) == "-000002 " +string.format("%0# -+20.6d", 3) == "+000003 " +string.format("%0# -+20.6d", -3) == "-000003 " +string.format("%0# -+20.6d", 100) == "+000100 " +string.format("%0# -+20.6d", 10000) == "+010000 " +string.format("%0# -+20.6d", 100000) == "+100000 " +string.format("%0# -+20.6d", 1000000) == "+1000000 " +string.format("%0# -+20.6d", 10000000) == "+10000000 " += o = +string.format("%o", 0) == "0" +string.format("%o", 1) == "1" +string.format("%o", -1) == "1777777777777777777777" +string.format("%o", 2) == "2" +string.format("%o", -2) == "1777777777777777777776" +string.format("%o", 3) == "3" +string.format("%o", -3) == "1777777777777777777775" +string.format("%o", 100) == "144" +string.format("%o", 10000) == "23420" +string.format("%o", 100000) == "303240" +string.format("%o", 1000000) == "3641100" +string.format("%o", 10000000) == "46113200" +string.format("%.0o", 0) == "" +string.format("%.6o", 0) == "000000" +string.format("%.6o", 1) == "000001" +string.format("%.6o", 2) == "000002" +string.format("%.6o", 3) == "000003" +string.format("%.6o", 100) == "000144" +string.format("%.6o", 10000) == "023420" +string.format("%1.0o", 0) == " " +string.format("%1.6o", 0) == "000000" +string.format("%1.6o", 1) == "000001" +string.format("%1.6o", 2) == "000002" +string.format("%1.6o", 3) == "000003" +string.format("%1.6o", 100) == "000144" +string.format("%1.6o", 10000) == "023420" +string.format("%2o", 0) == " 0" +string.format("%2o", 1) == " 1" +string.format("%2o", 2) == " 2" +string.format("%2o", 3) == " 3" +string.format("%2.0o", 0) == " " +string.format("%2.0o", 1) == " 1" +string.format("%2.0o", 2) == " 2" +string.format("%2.0o", 3) == " 3" +string.format("%2.1o", 0) == " 0" +string.format("%2.1o", 1) == " 1" +string.format("%2.1o", 2) == " 2" +string.format("%2.1o", 3) == " 3" +string.format("%2.6o", 0) == "000000" +string.format("%2.6o", 1) == "000001" +string.format("%2.6o", 2) == "000002" +string.format("%2.6o", 3) == "000003" +string.format("%2.6o", 100) == "000144" +string.format("%2.6o", 10000) == "023420" +string.format("%6o", 0) == " 0" +string.format("%6o", 1) == " 1" +string.format("%6o", 2) == " 2" +string.format("%6o", 3) == " 3" +string.format("%6o", 100) == " 144" +string.format("%6o", 10000) == " 23420" +string.format("%6.0o", 0) == " " +string.format("%6.0o", 1) == " 1" +string.format("%6.0o", 2) == " 2" +string.format("%6.0o", 3) == " 3" +string.format("%6.0o", 100) == " 144" +string.format("%6.0o", 10000) == " 23420" +string.format("%6.1o", 0) == " 0" +string.format("%6.1o", 1) == " 1" +string.format("%6.1o", 2) == " 2" +string.format("%6.1o", 3) == " 3" +string.format("%6.1o", 100) == " 144" +string.format("%6.1o", 10000) == " 23420" +string.format("%6.6o", 0) == "000000" +string.format("%6.6o", 1) == "000001" +string.format("%6.6o", 2) == "000002" +string.format("%6.6o", 3) == "000003" +string.format("%6.6o", 100) == "000144" +string.format("%6.6o", 10000) == "023420" +string.format("%20o", 0) == " 0" +string.format("%20o", 1) == " 1" +string.format("%20o", 2) == " 2" +string.format("%20o", 3) == " 3" +string.format("%20o", 100) == " 144" +string.format("%20o", 10000) == " 23420" +string.format("%20o", 100000) == " 303240" +string.format("%20o", 1000000) == " 3641100" +string.format("%20o", 10000000) == " 46113200" +string.format("%20.0o", 0) == " " +string.format("%20.0o", 1) == " 1" +string.format("%20.0o", 2) == " 2" +string.format("%20.0o", 3) == " 3" +string.format("%20.0o", 100) == " 144" +string.format("%20.0o", 10000) == " 23420" +string.format("%20.0o", 100000) == " 303240" +string.format("%20.0o", 1000000) == " 3641100" +string.format("%20.0o", 10000000) == " 46113200" +string.format("%20.1o", 0) == " 0" +string.format("%20.1o", 1) == " 1" +string.format("%20.1o", 2) == " 2" +string.format("%20.1o", 3) == " 3" +string.format("%20.1o", 100) == " 144" +string.format("%20.1o", 10000) == " 23420" +string.format("%20.1o", 100000) == " 303240" +string.format("%20.1o", 1000000) == " 3641100" +string.format("%20.1o", 10000000) == " 46113200" +string.format("%20.6o", 0) == " 000000" +string.format("%20.6o", 1) == " 000001" +string.format("%20.6o", 2) == " 000002" +string.format("%20.6o", 3) == " 000003" +string.format("%20.6o", 100) == " 000144" +string.format("%20.6o", 10000) == " 023420" +string.format("%20.6o", 100000) == " 303240" +string.format("%20.6o", 1000000) == " 3641100" +string.format("%20.6o", 10000000) == " 46113200" +string.format("%+o", 0) == "0" +string.format("%+o", 1) == "1" +string.format("%+o", -1) == "1777777777777777777777" +string.format("%+o", 2) == "2" +string.format("%+o", -2) == "1777777777777777777776" +string.format("%+o", 3) == "3" +string.format("%+o", -3) == "1777777777777777777775" +string.format("%+o", 100) == "144" +string.format("%+o", 10000) == "23420" +string.format("%+o", 100000) == "303240" +string.format("%+o", 1000000) == "3641100" +string.format("%+o", 10000000) == "46113200" +string.format("%+.0o", 0) == "" +string.format("%+.6o", 0) == "000000" +string.format("%+.6o", 1) == "000001" +string.format("%+.6o", 2) == "000002" +string.format("%+.6o", 3) == "000003" +string.format("%+.6o", 100) == "000144" +string.format("%+.6o", 10000) == "023420" +string.format("%+1.0o", 0) == " " +string.format("%+1.6o", 0) == "000000" +string.format("%+1.6o", 1) == "000001" +string.format("%+1.6o", 2) == "000002" +string.format("%+1.6o", 3) == "000003" +string.format("%+1.6o", 100) == "000144" +string.format("%+1.6o", 10000) == "023420" +string.format("%+2o", 0) == " 0" +string.format("%+2o", 1) == " 1" +string.format("%+2o", 2) == " 2" +string.format("%+2o", 3) == " 3" +string.format("%+2.0o", 0) == " " +string.format("%+2.0o", 1) == " 1" +string.format("%+2.0o", 2) == " 2" +string.format("%+2.0o", 3) == " 3" +string.format("%+2.1o", 0) == " 0" +string.format("%+2.1o", 1) == " 1" +string.format("%+2.1o", 2) == " 2" +string.format("%+2.1o", 3) == " 3" +string.format("%+2.6o", 0) == "000000" +string.format("%+2.6o", 1) == "000001" +string.format("%+2.6o", 2) == "000002" +string.format("%+2.6o", 3) == "000003" +string.format("%+2.6o", 100) == "000144" +string.format("%+2.6o", 10000) == "023420" +string.format("%+6o", 0) == " 0" +string.format("%+6o", 1) == " 1" +string.format("%+6o", 2) == " 2" +string.format("%+6o", 3) == " 3" +string.format("%+6o", 100) == " 144" +string.format("%+6o", 10000) == " 23420" +string.format("%+6.0o", 0) == " " +string.format("%+6.0o", 1) == " 1" +string.format("%+6.0o", 2) == " 2" +string.format("%+6.0o", 3) == " 3" +string.format("%+6.0o", 100) == " 144" +string.format("%+6.0o", 10000) == " 23420" +string.format("%+6.1o", 0) == " 0" +string.format("%+6.1o", 1) == " 1" +string.format("%+6.1o", 2) == " 2" +string.format("%+6.1o", 3) == " 3" +string.format("%+6.1o", 100) == " 144" +string.format("%+6.1o", 10000) == " 23420" +string.format("%+6.6o", 0) == "000000" +string.format("%+6.6o", 1) == "000001" +string.format("%+6.6o", 2) == "000002" +string.format("%+6.6o", 3) == "000003" +string.format("%+6.6o", 100) == "000144" +string.format("%+6.6o", 10000) == "023420" +string.format("%+20o", 0) == " 0" +string.format("%+20o", 1) == " 1" +string.format("%+20o", 2) == " 2" +string.format("%+20o", 3) == " 3" +string.format("%+20o", 100) == " 144" +string.format("%+20o", 10000) == " 23420" +string.format("%+20o", 100000) == " 303240" +string.format("%+20o", 1000000) == " 3641100" +string.format("%+20o", 10000000) == " 46113200" +string.format("%+20.0o", 0) == " " +string.format("%+20.0o", 1) == " 1" +string.format("%+20.0o", 2) == " 2" +string.format("%+20.0o", 3) == " 3" +string.format("%+20.0o", 100) == " 144" +string.format("%+20.0o", 10000) == " 23420" +string.format("%+20.0o", 100000) == " 303240" +string.format("%+20.0o", 1000000) == " 3641100" +string.format("%+20.0o", 10000000) == " 46113200" +string.format("%+20.1o", 0) == " 0" +string.format("%+20.1o", 1) == " 1" +string.format("%+20.1o", 2) == " 2" +string.format("%+20.1o", 3) == " 3" +string.format("%+20.1o", 100) == " 144" +string.format("%+20.1o", 10000) == " 23420" +string.format("%+20.1o", 100000) == " 303240" +string.format("%+20.1o", 1000000) == " 3641100" +string.format("%+20.1o", 10000000) == " 46113200" +string.format("%+20.6o", 0) == " 000000" +string.format("%+20.6o", 1) == " 000001" +string.format("%+20.6o", 2) == " 000002" +string.format("%+20.6o", 3) == " 000003" +string.format("%+20.6o", 100) == " 000144" +string.format("%+20.6o", 10000) == " 023420" +string.format("%+20.6o", 100000) == " 303240" +string.format("%+20.6o", 1000000) == " 3641100" +string.format("%+20.6o", 10000000) == " 46113200" +string.format("%-o", 0) == "0" +string.format("%-o", 1) == "1" +string.format("%-o", -1) == "1777777777777777777777" +string.format("%-o", 2) == "2" +string.format("%-o", -2) == "1777777777777777777776" +string.format("%-o", 3) == "3" +string.format("%-o", -3) == "1777777777777777777775" +string.format("%-o", 100) == "144" +string.format("%-o", 10000) == "23420" +string.format("%-o", 100000) == "303240" +string.format("%-o", 1000000) == "3641100" +string.format("%-o", 10000000) == "46113200" +string.format("%-.0o", 0) == "" +string.format("%-.6o", 0) == "000000" +string.format("%-.6o", 1) == "000001" +string.format("%-.6o", 2) == "000002" +string.format("%-.6o", 3) == "000003" +string.format("%-.6o", 100) == "000144" +string.format("%-.6o", 10000) == "023420" +string.format("%-1.0o", 0) == " " +string.format("%-1.6o", 0) == "000000" +string.format("%-1.6o", 1) == "000001" +string.format("%-1.6o", 2) == "000002" +string.format("%-1.6o", 3) == "000003" +string.format("%-1.6o", 100) == "000144" +string.format("%-1.6o", 10000) == "023420" +string.format("%-2o", 0) == "0 " +string.format("%-2o", 1) == "1 " +string.format("%-2o", 2) == "2 " +string.format("%-2o", 3) == "3 " +string.format("%-2.0o", 0) == " " +string.format("%-2.0o", 1) == "1 " +string.format("%-2.0o", 2) == "2 " +string.format("%-2.0o", 3) == "3 " +string.format("%-2.1o", 0) == "0 " +string.format("%-2.1o", 1) == "1 " +string.format("%-2.1o", 2) == "2 " +string.format("%-2.1o", 3) == "3 " +string.format("%-2.6o", 0) == "000000" +string.format("%-2.6o", 1) == "000001" +string.format("%-2.6o", 2) == "000002" +string.format("%-2.6o", 3) == "000003" +string.format("%-2.6o", 100) == "000144" +string.format("%-2.6o", 10000) == "023420" +string.format("%-6o", 0) == "0 " +string.format("%-6o", 1) == "1 " +string.format("%-6o", 2) == "2 " +string.format("%-6o", 3) == "3 " +string.format("%-6o", 100) == "144 " +string.format("%-6o", 10000) == "23420 " +string.format("%-6.0o", 0) == " " +string.format("%-6.0o", 1) == "1 " +string.format("%-6.0o", 2) == "2 " +string.format("%-6.0o", 3) == "3 " +string.format("%-6.0o", 100) == "144 " +string.format("%-6.0o", 10000) == "23420 " +string.format("%-6.1o", 0) == "0 " +string.format("%-6.1o", 1) == "1 " +string.format("%-6.1o", 2) == "2 " +string.format("%-6.1o", 3) == "3 " +string.format("%-6.1o", 100) == "144 " +string.format("%-6.1o", 10000) == "23420 " +string.format("%-6.6o", 0) == "000000" +string.format("%-6.6o", 1) == "000001" +string.format("%-6.6o", 2) == "000002" +string.format("%-6.6o", 3) == "000003" +string.format("%-6.6o", 100) == "000144" +string.format("%-6.6o", 10000) == "023420" +string.format("%-20o", 0) == "0 " +string.format("%-20o", 1) == "1 " +string.format("%-20o", 2) == "2 " +string.format("%-20o", 3) == "3 " +string.format("%-20o", 100) == "144 " +string.format("%-20o", 10000) == "23420 " +string.format("%-20o", 100000) == "303240 " +string.format("%-20o", 1000000) == "3641100 " +string.format("%-20o", 10000000) == "46113200 " +string.format("%-20.0o", 0) == " " +string.format("%-20.0o", 1) == "1 " +string.format("%-20.0o", 2) == "2 " +string.format("%-20.0o", 3) == "3 " +string.format("%-20.0o", 100) == "144 " +string.format("%-20.0o", 10000) == "23420 " +string.format("%-20.0o", 100000) == "303240 " +string.format("%-20.0o", 1000000) == "3641100 " +string.format("%-20.0o", 10000000) == "46113200 " +string.format("%-20.1o", 0) == "0 " +string.format("%-20.1o", 1) == "1 " +string.format("%-20.1o", 2) == "2 " +string.format("%-20.1o", 3) == "3 " +string.format("%-20.1o", 100) == "144 " +string.format("%-20.1o", 10000) == "23420 " +string.format("%-20.1o", 100000) == "303240 " +string.format("%-20.1o", 1000000) == "3641100 " +string.format("%-20.1o", 10000000) == "46113200 " +string.format("%-20.6o", 0) == "000000 " +string.format("%-20.6o", 1) == "000001 " +string.format("%-20.6o", 2) == "000002 " +string.format("%-20.6o", 3) == "000003 " +string.format("%-20.6o", 100) == "000144 " +string.format("%-20.6o", 10000) == "023420 " +string.format("%-20.6o", 100000) == "303240 " +string.format("%-20.6o", 1000000) == "3641100 " +string.format("%-20.6o", 10000000) == "46113200 " +string.format("%-+o", 0) == "0" +string.format("%-+o", 1) == "1" +string.format("%-+o", -1) == "1777777777777777777777" +string.format("%-+o", 2) == "2" +string.format("%-+o", -2) == "1777777777777777777776" +string.format("%-+o", 3) == "3" +string.format("%-+o", -3) == "1777777777777777777775" +string.format("%-+o", 100) == "144" +string.format("%-+o", 10000) == "23420" +string.format("%-+o", 100000) == "303240" +string.format("%-+o", 1000000) == "3641100" +string.format("%-+o", 10000000) == "46113200" +string.format("%-+.0o", 0) == "" +string.format("%-+.6o", 0) == "000000" +string.format("%-+.6o", 1) == "000001" +string.format("%-+.6o", 2) == "000002" +string.format("%-+.6o", 3) == "000003" +string.format("%-+.6o", 100) == "000144" +string.format("%-+.6o", 10000) == "023420" +string.format("%-+1.0o", 0) == " " +string.format("%-+1.6o", 0) == "000000" +string.format("%-+1.6o", 1) == "000001" +string.format("%-+1.6o", 2) == "000002" +string.format("%-+1.6o", 3) == "000003" +string.format("%-+1.6o", 100) == "000144" +string.format("%-+1.6o", 10000) == "023420" +string.format("%-+2o", 0) == "0 " +string.format("%-+2o", 1) == "1 " +string.format("%-+2o", 2) == "2 " +string.format("%-+2o", 3) == "3 " +string.format("%-+2.0o", 0) == " " +string.format("%-+2.0o", 1) == "1 " +string.format("%-+2.0o", 2) == "2 " +string.format("%-+2.0o", 3) == "3 " +string.format("%-+2.1o", 0) == "0 " +string.format("%-+2.1o", 1) == "1 " +string.format("%-+2.1o", 2) == "2 " +string.format("%-+2.1o", 3) == "3 " +string.format("%-+2.6o", 0) == "000000" +string.format("%-+2.6o", 1) == "000001" +string.format("%-+2.6o", 2) == "000002" +string.format("%-+2.6o", 3) == "000003" +string.format("%-+2.6o", 100) == "000144" +string.format("%-+2.6o", 10000) == "023420" +string.format("%-+6o", 0) == "0 " +string.format("%-+6o", 1) == "1 " +string.format("%-+6o", 2) == "2 " +string.format("%-+6o", 3) == "3 " +string.format("%-+6o", 100) == "144 " +string.format("%-+6o", 10000) == "23420 " +string.format("%-+6.0o", 0) == " " +string.format("%-+6.0o", 1) == "1 " +string.format("%-+6.0o", 2) == "2 " +string.format("%-+6.0o", 3) == "3 " +string.format("%-+6.0o", 100) == "144 " +string.format("%-+6.0o", 10000) == "23420 " +string.format("%-+6.1o", 0) == "0 " +string.format("%-+6.1o", 1) == "1 " +string.format("%-+6.1o", 2) == "2 " +string.format("%-+6.1o", 3) == "3 " +string.format("%-+6.1o", 100) == "144 " +string.format("%-+6.1o", 10000) == "23420 " +string.format("%-+6.6o", 0) == "000000" +string.format("%-+6.6o", 1) == "000001" +string.format("%-+6.6o", 2) == "000002" +string.format("%-+6.6o", 3) == "000003" +string.format("%-+6.6o", 100) == "000144" +string.format("%-+6.6o", 10000) == "023420" +string.format("%-+20o", 0) == "0 " +string.format("%-+20o", 1) == "1 " +string.format("%-+20o", 2) == "2 " +string.format("%-+20o", 3) == "3 " +string.format("%-+20o", 100) == "144 " +string.format("%-+20o", 10000) == "23420 " +string.format("%-+20o", 100000) == "303240 " +string.format("%-+20o", 1000000) == "3641100 " +string.format("%-+20o", 10000000) == "46113200 " +string.format("%-+20.0o", 0) == " " +string.format("%-+20.0o", 1) == "1 " +string.format("%-+20.0o", 2) == "2 " +string.format("%-+20.0o", 3) == "3 " +string.format("%-+20.0o", 100) == "144 " +string.format("%-+20.0o", 10000) == "23420 " +string.format("%-+20.0o", 100000) == "303240 " +string.format("%-+20.0o", 1000000) == "3641100 " +string.format("%-+20.0o", 10000000) == "46113200 " +string.format("%-+20.1o", 0) == "0 " +string.format("%-+20.1o", 1) == "1 " +string.format("%-+20.1o", 2) == "2 " +string.format("%-+20.1o", 3) == "3 " +string.format("%-+20.1o", 100) == "144 " +string.format("%-+20.1o", 10000) == "23420 " +string.format("%-+20.1o", 100000) == "303240 " +string.format("%-+20.1o", 1000000) == "3641100 " +string.format("%-+20.1o", 10000000) == "46113200 " +string.format("%-+20.6o", 0) == "000000 " +string.format("%-+20.6o", 1) == "000001 " +string.format("%-+20.6o", 2) == "000002 " +string.format("%-+20.6o", 3) == "000003 " +string.format("%-+20.6o", 100) == "000144 " +string.format("%-+20.6o", 10000) == "023420 " +string.format("%-+20.6o", 100000) == "303240 " +string.format("%-+20.6o", 1000000) == "3641100 " +string.format("%-+20.6o", 10000000) == "46113200 " +string.format("% o", 0) == "0" +string.format("% o", 1) == "1" +string.format("% o", -1) == "1777777777777777777777" +string.format("% o", 2) == "2" +string.format("% o", -2) == "1777777777777777777776" +string.format("% o", 3) == "3" +string.format("% o", -3) == "1777777777777777777775" +string.format("% o", 100) == "144" +string.format("% o", 10000) == "23420" +string.format("% o", 100000) == "303240" +string.format("% o", 1000000) == "3641100" +string.format("% o", 10000000) == "46113200" +string.format("% .0o", 0) == "" +string.format("% .6o", 0) == "000000" +string.format("% .6o", 1) == "000001" +string.format("% .6o", 2) == "000002" +string.format("% .6o", 3) == "000003" +string.format("% .6o", 100) == "000144" +string.format("% .6o", 10000) == "023420" +string.format("% 1.0o", 0) == " " +string.format("% 1.6o", 0) == "000000" +string.format("% 1.6o", 1) == "000001" +string.format("% 1.6o", 2) == "000002" +string.format("% 1.6o", 3) == "000003" +string.format("% 1.6o", 100) == "000144" +string.format("% 1.6o", 10000) == "023420" +string.format("% 2o", 0) == " 0" +string.format("% 2o", 1) == " 1" +string.format("% 2o", 2) == " 2" +string.format("% 2o", 3) == " 3" +string.format("% 2.0o", 0) == " " +string.format("% 2.0o", 1) == " 1" +string.format("% 2.0o", 2) == " 2" +string.format("% 2.0o", 3) == " 3" +string.format("% 2.1o", 0) == " 0" +string.format("% 2.1o", 1) == " 1" +string.format("% 2.1o", 2) == " 2" +string.format("% 2.1o", 3) == " 3" +string.format("% 2.6o", 0) == "000000" +string.format("% 2.6o", 1) == "000001" +string.format("% 2.6o", 2) == "000002" +string.format("% 2.6o", 3) == "000003" +string.format("% 2.6o", 100) == "000144" +string.format("% 2.6o", 10000) == "023420" +string.format("% 6o", 0) == " 0" +string.format("% 6o", 1) == " 1" +string.format("% 6o", 2) == " 2" +string.format("% 6o", 3) == " 3" +string.format("% 6o", 100) == " 144" +string.format("% 6o", 10000) == " 23420" +string.format("% 6.0o", 0) == " " +string.format("% 6.0o", 1) == " 1" +string.format("% 6.0o", 2) == " 2" +string.format("% 6.0o", 3) == " 3" +string.format("% 6.0o", 100) == " 144" +string.format("% 6.0o", 10000) == " 23420" +string.format("% 6.1o", 0) == " 0" +string.format("% 6.1o", 1) == " 1" +string.format("% 6.1o", 2) == " 2" +string.format("% 6.1o", 3) == " 3" +string.format("% 6.1o", 100) == " 144" +string.format("% 6.1o", 10000) == " 23420" +string.format("% 6.6o", 0) == "000000" +string.format("% 6.6o", 1) == "000001" +string.format("% 6.6o", 2) == "000002" +string.format("% 6.6o", 3) == "000003" +string.format("% 6.6o", 100) == "000144" +string.format("% 6.6o", 10000) == "023420" +string.format("% 20o", 0) == " 0" +string.format("% 20o", 1) == " 1" +string.format("% 20o", 2) == " 2" +string.format("% 20o", 3) == " 3" +string.format("% 20o", 100) == " 144" +string.format("% 20o", 10000) == " 23420" +string.format("% 20o", 100000) == " 303240" +string.format("% 20o", 1000000) == " 3641100" +string.format("% 20o", 10000000) == " 46113200" +string.format("% 20.0o", 0) == " " +string.format("% 20.0o", 1) == " 1" +string.format("% 20.0o", 2) == " 2" +string.format("% 20.0o", 3) == " 3" +string.format("% 20.0o", 100) == " 144" +string.format("% 20.0o", 10000) == " 23420" +string.format("% 20.0o", 100000) == " 303240" +string.format("% 20.0o", 1000000) == " 3641100" +string.format("% 20.0o", 10000000) == " 46113200" +string.format("% 20.1o", 0) == " 0" +string.format("% 20.1o", 1) == " 1" +string.format("% 20.1o", 2) == " 2" +string.format("% 20.1o", 3) == " 3" +string.format("% 20.1o", 100) == " 144" +string.format("% 20.1o", 10000) == " 23420" +string.format("% 20.1o", 100000) == " 303240" +string.format("% 20.1o", 1000000) == " 3641100" +string.format("% 20.1o", 10000000) == " 46113200" +string.format("% 20.6o", 0) == " 000000" +string.format("% 20.6o", 1) == " 000001" +string.format("% 20.6o", 2) == " 000002" +string.format("% 20.6o", 3) == " 000003" +string.format("% 20.6o", 100) == " 000144" +string.format("% 20.6o", 10000) == " 023420" +string.format("% 20.6o", 100000) == " 303240" +string.format("% 20.6o", 1000000) == " 3641100" +string.format("% 20.6o", 10000000) == " 46113200" +string.format("% +o", 0) == "0" +string.format("% +o", 1) == "1" +string.format("% +o", -1) == "1777777777777777777777" +string.format("% +o", 2) == "2" +string.format("% +o", -2) == "1777777777777777777776" +string.format("% +o", 3) == "3" +string.format("% +o", -3) == "1777777777777777777775" +string.format("% +o", 100) == "144" +string.format("% +o", 10000) == "23420" +string.format("% +o", 100000) == "303240" +string.format("% +o", 1000000) == "3641100" +string.format("% +o", 10000000) == "46113200" +string.format("% +.0o", 0) == "" +string.format("% +.6o", 0) == "000000" +string.format("% +.6o", 1) == "000001" +string.format("% +.6o", 2) == "000002" +string.format("% +.6o", 3) == "000003" +string.format("% +.6o", 100) == "000144" +string.format("% +.6o", 10000) == "023420" +string.format("% +1.0o", 0) == " " +string.format("% +1.6o", 0) == "000000" +string.format("% +1.6o", 1) == "000001" +string.format("% +1.6o", 2) == "000002" +string.format("% +1.6o", 3) == "000003" +string.format("% +1.6o", 100) == "000144" +string.format("% +1.6o", 10000) == "023420" +string.format("% +2o", 0) == " 0" +string.format("% +2o", 1) == " 1" +string.format("% +2o", 2) == " 2" +string.format("% +2o", 3) == " 3" +string.format("% +2.0o", 0) == " " +string.format("% +2.0o", 1) == " 1" +string.format("% +2.0o", 2) == " 2" +string.format("% +2.0o", 3) == " 3" +string.format("% +2.1o", 0) == " 0" +string.format("% +2.1o", 1) == " 1" +string.format("% +2.1o", 2) == " 2" +string.format("% +2.1o", 3) == " 3" +string.format("% +2.6o", 0) == "000000" +string.format("% +2.6o", 1) == "000001" +string.format("% +2.6o", 2) == "000002" +string.format("% +2.6o", 3) == "000003" +string.format("% +2.6o", 100) == "000144" +string.format("% +2.6o", 10000) == "023420" +string.format("% +6o", 0) == " 0" +string.format("% +6o", 1) == " 1" +string.format("% +6o", 2) == " 2" +string.format("% +6o", 3) == " 3" +string.format("% +6o", 100) == " 144" +string.format("% +6o", 10000) == " 23420" +string.format("% +6.0o", 0) == " " +string.format("% +6.0o", 1) == " 1" +string.format("% +6.0o", 2) == " 2" +string.format("% +6.0o", 3) == " 3" +string.format("% +6.0o", 100) == " 144" +string.format("% +6.0o", 10000) == " 23420" +string.format("% +6.1o", 0) == " 0" +string.format("% +6.1o", 1) == " 1" +string.format("% +6.1o", 2) == " 2" +string.format("% +6.1o", 3) == " 3" +string.format("% +6.1o", 100) == " 144" +string.format("% +6.1o", 10000) == " 23420" +string.format("% +6.6o", 0) == "000000" +string.format("% +6.6o", 1) == "000001" +string.format("% +6.6o", 2) == "000002" +string.format("% +6.6o", 3) == "000003" +string.format("% +6.6o", 100) == "000144" +string.format("% +6.6o", 10000) == "023420" +string.format("% +20o", 0) == " 0" +string.format("% +20o", 1) == " 1" +string.format("% +20o", 2) == " 2" +string.format("% +20o", 3) == " 3" +string.format("% +20o", 100) == " 144" +string.format("% +20o", 10000) == " 23420" +string.format("% +20o", 100000) == " 303240" +string.format("% +20o", 1000000) == " 3641100" +string.format("% +20o", 10000000) == " 46113200" +string.format("% +20.0o", 0) == " " +string.format("% +20.0o", 1) == " 1" +string.format("% +20.0o", 2) == " 2" +string.format("% +20.0o", 3) == " 3" +string.format("% +20.0o", 100) == " 144" +string.format("% +20.0o", 10000) == " 23420" +string.format("% +20.0o", 100000) == " 303240" +string.format("% +20.0o", 1000000) == " 3641100" +string.format("% +20.0o", 10000000) == " 46113200" +string.format("% +20.1o", 0) == " 0" +string.format("% +20.1o", 1) == " 1" +string.format("% +20.1o", 2) == " 2" +string.format("% +20.1o", 3) == " 3" +string.format("% +20.1o", 100) == " 144" +string.format("% +20.1o", 10000) == " 23420" +string.format("% +20.1o", 100000) == " 303240" +string.format("% +20.1o", 1000000) == " 3641100" +string.format("% +20.1o", 10000000) == " 46113200" +string.format("% +20.6o", 0) == " 000000" +string.format("% +20.6o", 1) == " 000001" +string.format("% +20.6o", 2) == " 000002" +string.format("% +20.6o", 3) == " 000003" +string.format("% +20.6o", 100) == " 000144" +string.format("% +20.6o", 10000) == " 023420" +string.format("% +20.6o", 100000) == " 303240" +string.format("% +20.6o", 1000000) == " 3641100" +string.format("% +20.6o", 10000000) == " 46113200" +string.format("% -o", 0) == "0" +string.format("% -o", 1) == "1" +string.format("% -o", -1) == "1777777777777777777777" +string.format("% -o", 2) == "2" +string.format("% -o", -2) == "1777777777777777777776" +string.format("% -o", 3) == "3" +string.format("% -o", -3) == "1777777777777777777775" +string.format("% -o", 100) == "144" +string.format("% -o", 10000) == "23420" +string.format("% -o", 100000) == "303240" +string.format("% -o", 1000000) == "3641100" +string.format("% -o", 10000000) == "46113200" +string.format("% -.0o", 0) == "" +string.format("% -.6o", 0) == "000000" +string.format("% -.6o", 1) == "000001" +string.format("% -.6o", 2) == "000002" +string.format("% -.6o", 3) == "000003" +string.format("% -.6o", 100) == "000144" +string.format("% -.6o", 10000) == "023420" +string.format("% -1.0o", 0) == " " +string.format("% -1.6o", 0) == "000000" +string.format("% -1.6o", 1) == "000001" +string.format("% -1.6o", 2) == "000002" +string.format("% -1.6o", 3) == "000003" +string.format("% -1.6o", 100) == "000144" +string.format("% -1.6o", 10000) == "023420" +string.format("% -2o", 0) == "0 " +string.format("% -2o", 1) == "1 " +string.format("% -2o", 2) == "2 " +string.format("% -2o", 3) == "3 " +string.format("% -2.0o", 0) == " " +string.format("% -2.0o", 1) == "1 " +string.format("% -2.0o", 2) == "2 " +string.format("% -2.0o", 3) == "3 " +string.format("% -2.1o", 0) == "0 " +string.format("% -2.1o", 1) == "1 " +string.format("% -2.1o", 2) == "2 " +string.format("% -2.1o", 3) == "3 " +string.format("% -2.6o", 0) == "000000" +string.format("% -2.6o", 1) == "000001" +string.format("% -2.6o", 2) == "000002" +string.format("% -2.6o", 3) == "000003" +string.format("% -2.6o", 100) == "000144" +string.format("% -2.6o", 10000) == "023420" +string.format("% -6o", 0) == "0 " +string.format("% -6o", 1) == "1 " +string.format("% -6o", 2) == "2 " +string.format("% -6o", 3) == "3 " +string.format("% -6o", 100) == "144 " +string.format("% -6o", 10000) == "23420 " +string.format("% -6.0o", 0) == " " +string.format("% -6.0o", 1) == "1 " +string.format("% -6.0o", 2) == "2 " +string.format("% -6.0o", 3) == "3 " +string.format("% -6.0o", 100) == "144 " +string.format("% -6.0o", 10000) == "23420 " +string.format("% -6.1o", 0) == "0 " +string.format("% -6.1o", 1) == "1 " +string.format("% -6.1o", 2) == "2 " +string.format("% -6.1o", 3) == "3 " +string.format("% -6.1o", 100) == "144 " +string.format("% -6.1o", 10000) == "23420 " +string.format("% -6.6o", 0) == "000000" +string.format("% -6.6o", 1) == "000001" +string.format("% -6.6o", 2) == "000002" +string.format("% -6.6o", 3) == "000003" +string.format("% -6.6o", 100) == "000144" +string.format("% -6.6o", 10000) == "023420" +string.format("% -20o", 0) == "0 " +string.format("% -20o", 1) == "1 " +string.format("% -20o", 2) == "2 " +string.format("% -20o", 3) == "3 " +string.format("% -20o", 100) == "144 " +string.format("% -20o", 10000) == "23420 " +string.format("% -20o", 100000) == "303240 " +string.format("% -20o", 1000000) == "3641100 " +string.format("% -20o", 10000000) == "46113200 " +string.format("% -20.0o", 0) == " " +string.format("% -20.0o", 1) == "1 " +string.format("% -20.0o", 2) == "2 " +string.format("% -20.0o", 3) == "3 " +string.format("% -20.0o", 100) == "144 " +string.format("% -20.0o", 10000) == "23420 " +string.format("% -20.0o", 100000) == "303240 " +string.format("% -20.0o", 1000000) == "3641100 " +string.format("% -20.0o", 10000000) == "46113200 " +string.format("% -20.1o", 0) == "0 " +string.format("% -20.1o", 1) == "1 " +string.format("% -20.1o", 2) == "2 " +string.format("% -20.1o", 3) == "3 " +string.format("% -20.1o", 100) == "144 " +string.format("% -20.1o", 10000) == "23420 " +string.format("% -20.1o", 100000) == "303240 " +string.format("% -20.1o", 1000000) == "3641100 " +string.format("% -20.1o", 10000000) == "46113200 " +string.format("% -20.6o", 0) == "000000 " +string.format("% -20.6o", 1) == "000001 " +string.format("% -20.6o", 2) == "000002 " +string.format("% -20.6o", 3) == "000003 " +string.format("% -20.6o", 100) == "000144 " +string.format("% -20.6o", 10000) == "023420 " +string.format("% -20.6o", 100000) == "303240 " +string.format("% -20.6o", 1000000) == "3641100 " +string.format("% -20.6o", 10000000) == "46113200 " +string.format("% -+o", 0) == "0" +string.format("% -+o", 1) == "1" +string.format("% -+o", -1) == "1777777777777777777777" +string.format("% -+o", 2) == "2" +string.format("% -+o", -2) == "1777777777777777777776" +string.format("% -+o", 3) == "3" +string.format("% -+o", -3) == "1777777777777777777775" +string.format("% -+o", 100) == "144" +string.format("% -+o", 10000) == "23420" +string.format("% -+o", 100000) == "303240" +string.format("% -+o", 1000000) == "3641100" +string.format("% -+o", 10000000) == "46113200" +string.format("% -+.0o", 0) == "" +string.format("% -+.6o", 0) == "000000" +string.format("% -+.6o", 1) == "000001" +string.format("% -+.6o", 2) == "000002" +string.format("% -+.6o", 3) == "000003" +string.format("% -+.6o", 100) == "000144" +string.format("% -+.6o", 10000) == "023420" +string.format("% -+1.0o", 0) == " " +string.format("% -+1.6o", 0) == "000000" +string.format("% -+1.6o", 1) == "000001" +string.format("% -+1.6o", 2) == "000002" +string.format("% -+1.6o", 3) == "000003" +string.format("% -+1.6o", 100) == "000144" +string.format("% -+1.6o", 10000) == "023420" +string.format("% -+2o", 0) == "0 " +string.format("% -+2o", 1) == "1 " +string.format("% -+2o", 2) == "2 " +string.format("% -+2o", 3) == "3 " +string.format("% -+2.0o", 0) == " " +string.format("% -+2.0o", 1) == "1 " +string.format("% -+2.0o", 2) == "2 " +string.format("% -+2.0o", 3) == "3 " +string.format("% -+2.1o", 0) == "0 " +string.format("% -+2.1o", 1) == "1 " +string.format("% -+2.1o", 2) == "2 " +string.format("% -+2.1o", 3) == "3 " +string.format("% -+2.6o", 0) == "000000" +string.format("% -+2.6o", 1) == "000001" +string.format("% -+2.6o", 2) == "000002" +string.format("% -+2.6o", 3) == "000003" +string.format("% -+2.6o", 100) == "000144" +string.format("% -+2.6o", 10000) == "023420" +string.format("% -+6o", 0) == "0 " +string.format("% -+6o", 1) == "1 " +string.format("% -+6o", 2) == "2 " +string.format("% -+6o", 3) == "3 " +string.format("% -+6o", 100) == "144 " +string.format("% -+6o", 10000) == "23420 " +string.format("% -+6.0o", 0) == " " +string.format("% -+6.0o", 1) == "1 " +string.format("% -+6.0o", 2) == "2 " +string.format("% -+6.0o", 3) == "3 " +string.format("% -+6.0o", 100) == "144 " +string.format("% -+6.0o", 10000) == "23420 " +string.format("% -+6.1o", 0) == "0 " +string.format("% -+6.1o", 1) == "1 " +string.format("% -+6.1o", 2) == "2 " +string.format("% -+6.1o", 3) == "3 " +string.format("% -+6.1o", 100) == "144 " +string.format("% -+6.1o", 10000) == "23420 " +string.format("% -+6.6o", 0) == "000000" +string.format("% -+6.6o", 1) == "000001" +string.format("% -+6.6o", 2) == "000002" +string.format("% -+6.6o", 3) == "000003" +string.format("% -+6.6o", 100) == "000144" +string.format("% -+6.6o", 10000) == "023420" +string.format("% -+20o", 0) == "0 " +string.format("% -+20o", 1) == "1 " +string.format("% -+20o", 2) == "2 " +string.format("% -+20o", 3) == "3 " +string.format("% -+20o", 100) == "144 " +string.format("% -+20o", 10000) == "23420 " +string.format("% -+20o", 100000) == "303240 " +string.format("% -+20o", 1000000) == "3641100 " +string.format("% -+20o", 10000000) == "46113200 " +string.format("% -+20.0o", 0) == " " +string.format("% -+20.0o", 1) == "1 " +string.format("% -+20.0o", 2) == "2 " +string.format("% -+20.0o", 3) == "3 " +string.format("% -+20.0o", 100) == "144 " +string.format("% -+20.0o", 10000) == "23420 " +string.format("% -+20.0o", 100000) == "303240 " +string.format("% -+20.0o", 1000000) == "3641100 " +string.format("% -+20.0o", 10000000) == "46113200 " +string.format("% -+20.1o", 0) == "0 " +string.format("% -+20.1o", 1) == "1 " +string.format("% -+20.1o", 2) == "2 " +string.format("% -+20.1o", 3) == "3 " +string.format("% -+20.1o", 100) == "144 " +string.format("% -+20.1o", 10000) == "23420 " +string.format("% -+20.1o", 100000) == "303240 " +string.format("% -+20.1o", 1000000) == "3641100 " +string.format("% -+20.1o", 10000000) == "46113200 " +string.format("% -+20.6o", 0) == "000000 " +string.format("% -+20.6o", 1) == "000001 " +string.format("% -+20.6o", 2) == "000002 " +string.format("% -+20.6o", 3) == "000003 " +string.format("% -+20.6o", 100) == "000144 " +string.format("% -+20.6o", 10000) == "023420 " +string.format("% -+20.6o", 100000) == "303240 " +string.format("% -+20.6o", 1000000) == "3641100 " +string.format("% -+20.6o", 10000000) == "46113200 " +string.format("%#o", 0) == "0" +string.format("%#o", 1) == "01" +string.format("%#o", -1) == "01777777777777777777777" +string.format("%#o", 2) == "02" +string.format("%#o", -2) == "01777777777777777777776" +string.format("%#o", 3) == "03" +string.format("%#o", -3) == "01777777777777777777775" +string.format("%#o", 100) == "0144" +string.format("%#o", 10000) == "023420" +string.format("%#o", 100000) == "0303240" +string.format("%#o", 1000000) == "03641100" +string.format("%#o", 10000000) == "046113200" +string.format("%#.6o", 0) == "000000" +string.format("%#.6o", 1) == "000001" +string.format("%#.6o", 2) == "000002" +string.format("%#.6o", 3) == "000003" +string.format("%#.6o", 100) == "000144" +string.format("%#1.6o", 0) == "000000" +string.format("%#1.6o", 1) == "000001" +string.format("%#1.6o", 2) == "000002" +string.format("%#1.6o", 3) == "000003" +string.format("%#1.6o", 100) == "000144" +string.format("%#2o", 0) == " 0" +string.format("%#2.0o", 0) == " 0" +string.format("%#2.1o", 0) == " 0" +string.format("%#2.6o", 0) == "000000" +string.format("%#2.6o", 1) == "000001" +string.format("%#2.6o", 2) == "000002" +string.format("%#2.6o", 3) == "000003" +string.format("%#2.6o", 100) == "000144" +string.format("%#6o", 0) == " 0" +string.format("%#6o", 1) == " 01" +string.format("%#6o", 2) == " 02" +string.format("%#6o", 3) == " 03" +string.format("%#6o", 100) == " 0144" +string.format("%#6.0o", 0) == " 0" +string.format("%#6.0o", 1) == " 01" +string.format("%#6.0o", 2) == " 02" +string.format("%#6.0o", 3) == " 03" +string.format("%#6.0o", 100) == " 0144" +string.format("%#6.1o", 0) == " 0" +string.format("%#6.1o", 1) == " 01" +string.format("%#6.1o", 2) == " 02" +string.format("%#6.1o", 3) == " 03" +string.format("%#6.1o", 100) == " 0144" +string.format("%#6.6o", 0) == "000000" +string.format("%#6.6o", 1) == "000001" +string.format("%#6.6o", 2) == "000002" +string.format("%#6.6o", 3) == "000003" +string.format("%#6.6o", 100) == "000144" +string.format("%#20o", 0) == " 0" +string.format("%#20o", 1) == " 01" +string.format("%#20o", 2) == " 02" +string.format("%#20o", 3) == " 03" +string.format("%#20o", 100) == " 0144" +string.format("%#20o", 10000) == " 023420" +string.format("%#20o", 100000) == " 0303240" +string.format("%#20o", 1000000) == " 03641100" +string.format("%#20o", 10000000) == " 046113200" +string.format("%#20.0o", 0) == " 0" +string.format("%#20.0o", 1) == " 01" +string.format("%#20.0o", 2) == " 02" +string.format("%#20.0o", 3) == " 03" +string.format("%#20.0o", 100) == " 0144" +string.format("%#20.0o", 10000) == " 023420" +string.format("%#20.0o", 100000) == " 0303240" +string.format("%#20.0o", 1000000) == " 03641100" +string.format("%#20.0o", 10000000) == " 046113200" +string.format("%#20.1o", 0) == " 0" +string.format("%#20.1o", 1) == " 01" +string.format("%#20.1o", 2) == " 02" +string.format("%#20.1o", 3) == " 03" +string.format("%#20.1o", 100) == " 0144" +string.format("%#20.1o", 10000) == " 023420" +string.format("%#20.1o", 100000) == " 0303240" +string.format("%#20.1o", 1000000) == " 03641100" +string.format("%#20.1o", 10000000) == " 046113200" +string.format("%#20.6o", 0) == " 000000" +string.format("%#20.6o", 1) == " 000001" +string.format("%#20.6o", 2) == " 000002" +string.format("%#20.6o", 3) == " 000003" +string.format("%#20.6o", 100) == " 000144" +string.format("%#20.6o", 10000) == " 023420" +string.format("%#20.6o", 100000) == " 0303240" +string.format("%#20.6o", 1000000) == " 03641100" +string.format("%#20.6o", 10000000) == " 046113200" +string.format("%#+o", 0) == "0" +string.format("%#+o", 1) == "01" +string.format("%#+o", -1) == "01777777777777777777777" +string.format("%#+o", 2) == "02" +string.format("%#+o", -2) == "01777777777777777777776" +string.format("%#+o", 3) == "03" +string.format("%#+o", -3) == "01777777777777777777775" +string.format("%#+o", 100) == "0144" +string.format("%#+o", 10000) == "023420" +string.format("%#+o", 100000) == "0303240" +string.format("%#+o", 1000000) == "03641100" +string.format("%#+o", 10000000) == "046113200" +string.format("%#+.6o", 0) == "000000" +string.format("%#+.6o", 1) == "000001" +string.format("%#+.6o", 2) == "000002" +string.format("%#+.6o", 3) == "000003" +string.format("%#+.6o", 100) == "000144" +string.format("%#+1.6o", 0) == "000000" +string.format("%#+1.6o", 1) == "000001" +string.format("%#+1.6o", 2) == "000002" +string.format("%#+1.6o", 3) == "000003" +string.format("%#+1.6o", 100) == "000144" +string.format("%#+2o", 0) == " 0" +string.format("%#+2.0o", 0) == " 0" +string.format("%#+2.1o", 0) == " 0" +string.format("%#+2.6o", 0) == "000000" +string.format("%#+2.6o", 1) == "000001" +string.format("%#+2.6o", 2) == "000002" +string.format("%#+2.6o", 3) == "000003" +string.format("%#+2.6o", 100) == "000144" +string.format("%#+6o", 0) == " 0" +string.format("%#+6o", 1) == " 01" +string.format("%#+6o", 2) == " 02" +string.format("%#+6o", 3) == " 03" +string.format("%#+6o", 100) == " 0144" +string.format("%#+6.0o", 0) == " 0" +string.format("%#+6.0o", 1) == " 01" +string.format("%#+6.0o", 2) == " 02" +string.format("%#+6.0o", 3) == " 03" +string.format("%#+6.0o", 100) == " 0144" +string.format("%#+6.1o", 0) == " 0" +string.format("%#+6.1o", 1) == " 01" +string.format("%#+6.1o", 2) == " 02" +string.format("%#+6.1o", 3) == " 03" +string.format("%#+6.1o", 100) == " 0144" +string.format("%#+6.6o", 0) == "000000" +string.format("%#+6.6o", 1) == "000001" +string.format("%#+6.6o", 2) == "000002" +string.format("%#+6.6o", 3) == "000003" +string.format("%#+6.6o", 100) == "000144" +string.format("%#+20o", 0) == " 0" +string.format("%#+20o", 1) == " 01" +string.format("%#+20o", 2) == " 02" +string.format("%#+20o", 3) == " 03" +string.format("%#+20o", 100) == " 0144" +string.format("%#+20o", 10000) == " 023420" +string.format("%#+20o", 100000) == " 0303240" +string.format("%#+20o", 1000000) == " 03641100" +string.format("%#+20o", 10000000) == " 046113200" +string.format("%#+20.0o", 0) == " 0" +string.format("%#+20.0o", 1) == " 01" +string.format("%#+20.0o", 2) == " 02" +string.format("%#+20.0o", 3) == " 03" +string.format("%#+20.0o", 100) == " 0144" +string.format("%#+20.0o", 10000) == " 023420" +string.format("%#+20.0o", 100000) == " 0303240" +string.format("%#+20.0o", 1000000) == " 03641100" +string.format("%#+20.0o", 10000000) == " 046113200" +string.format("%#+20.1o", 0) == " 0" +string.format("%#+20.1o", 1) == " 01" +string.format("%#+20.1o", 2) == " 02" +string.format("%#+20.1o", 3) == " 03" +string.format("%#+20.1o", 100) == " 0144" +string.format("%#+20.1o", 10000) == " 023420" +string.format("%#+20.1o", 100000) == " 0303240" +string.format("%#+20.1o", 1000000) == " 03641100" +string.format("%#+20.1o", 10000000) == " 046113200" +string.format("%#+20.6o", 0) == " 000000" +string.format("%#+20.6o", 1) == " 000001" +string.format("%#+20.6o", 2) == " 000002" +string.format("%#+20.6o", 3) == " 000003" +string.format("%#+20.6o", 100) == " 000144" +string.format("%#+20.6o", 10000) == " 023420" +string.format("%#+20.6o", 100000) == " 0303240" +string.format("%#+20.6o", 1000000) == " 03641100" +string.format("%#+20.6o", 10000000) == " 046113200" +string.format("%#-o", 0) == "0" +string.format("%#-o", 1) == "01" +string.format("%#-o", -1) == "01777777777777777777777" +string.format("%#-o", 2) == "02" +string.format("%#-o", -2) == "01777777777777777777776" +string.format("%#-o", 3) == "03" +string.format("%#-o", -3) == "01777777777777777777775" +string.format("%#-o", 100) == "0144" +string.format("%#-o", 10000) == "023420" +string.format("%#-o", 100000) == "0303240" +string.format("%#-o", 1000000) == "03641100" +string.format("%#-o", 10000000) == "046113200" +string.format("%#-.6o", 0) == "000000" +string.format("%#-.6o", 1) == "000001" +string.format("%#-.6o", 2) == "000002" +string.format("%#-.6o", 3) == "000003" +string.format("%#-.6o", 100) == "000144" +string.format("%#-1.6o", 0) == "000000" +string.format("%#-1.6o", 1) == "000001" +string.format("%#-1.6o", 2) == "000002" +string.format("%#-1.6o", 3) == "000003" +string.format("%#-1.6o", 100) == "000144" +string.format("%#-2o", 0) == "0 " +string.format("%#-2.0o", 0) == "0 " +string.format("%#-2.1o", 0) == "0 " +string.format("%#-2.6o", 0) == "000000" +string.format("%#-2.6o", 1) == "000001" +string.format("%#-2.6o", 2) == "000002" +string.format("%#-2.6o", 3) == "000003" +string.format("%#-2.6o", 100) == "000144" +string.format("%#-6o", 0) == "0 " +string.format("%#-6o", 1) == "01 " +string.format("%#-6o", 2) == "02 " +string.format("%#-6o", 3) == "03 " +string.format("%#-6o", 100) == "0144 " +string.format("%#-6.0o", 0) == "0 " +string.format("%#-6.0o", 1) == "01 " +string.format("%#-6.0o", 2) == "02 " +string.format("%#-6.0o", 3) == "03 " +string.format("%#-6.0o", 100) == "0144 " +string.format("%#-6.1o", 0) == "0 " +string.format("%#-6.1o", 1) == "01 " +string.format("%#-6.1o", 2) == "02 " +string.format("%#-6.1o", 3) == "03 " +string.format("%#-6.1o", 100) == "0144 " +string.format("%#-6.6o", 0) == "000000" +string.format("%#-6.6o", 1) == "000001" +string.format("%#-6.6o", 2) == "000002" +string.format("%#-6.6o", 3) == "000003" +string.format("%#-6.6o", 100) == "000144" +string.format("%#-20o", 0) == "0 " +string.format("%#-20o", 1) == "01 " +string.format("%#-20o", 2) == "02 " +string.format("%#-20o", 3) == "03 " +string.format("%#-20o", 100) == "0144 " +string.format("%#-20o", 10000) == "023420 " +string.format("%#-20o", 100000) == "0303240 " +string.format("%#-20o", 1000000) == "03641100 " +string.format("%#-20o", 10000000) == "046113200 " +string.format("%#-20.0o", 0) == "0 " +string.format("%#-20.0o", 1) == "01 " +string.format("%#-20.0o", 2) == "02 " +string.format("%#-20.0o", 3) == "03 " +string.format("%#-20.0o", 100) == "0144 " +string.format("%#-20.0o", 10000) == "023420 " +string.format("%#-20.0o", 100000) == "0303240 " +string.format("%#-20.0o", 1000000) == "03641100 " +string.format("%#-20.0o", 10000000) == "046113200 " +string.format("%#-20.1o", 0) == "0 " +string.format("%#-20.1o", 1) == "01 " +string.format("%#-20.1o", 2) == "02 " +string.format("%#-20.1o", 3) == "03 " +string.format("%#-20.1o", 100) == "0144 " +string.format("%#-20.1o", 10000) == "023420 " +string.format("%#-20.1o", 100000) == "0303240 " +string.format("%#-20.1o", 1000000) == "03641100 " +string.format("%#-20.1o", 10000000) == "046113200 " +string.format("%#-20.6o", 0) == "000000 " +string.format("%#-20.6o", 1) == "000001 " +string.format("%#-20.6o", 2) == "000002 " +string.format("%#-20.6o", 3) == "000003 " +string.format("%#-20.6o", 100) == "000144 " +string.format("%#-20.6o", 10000) == "023420 " +string.format("%#-20.6o", 100000) == "0303240 " +string.format("%#-20.6o", 1000000) == "03641100 " +string.format("%#-20.6o", 10000000) == "046113200 " +string.format("%#-+o", 0) == "0" +string.format("%#-+o", 1) == "01" +string.format("%#-+o", -1) == "01777777777777777777777" +string.format("%#-+o", 2) == "02" +string.format("%#-+o", -2) == "01777777777777777777776" +string.format("%#-+o", 3) == "03" +string.format("%#-+o", -3) == "01777777777777777777775" +string.format("%#-+o", 100) == "0144" +string.format("%#-+o", 10000) == "023420" +string.format("%#-+o", 100000) == "0303240" +string.format("%#-+o", 1000000) == "03641100" +string.format("%#-+o", 10000000) == "046113200" +string.format("%#-+.6o", 0) == "000000" +string.format("%#-+.6o", 1) == "000001" +string.format("%#-+.6o", 2) == "000002" +string.format("%#-+.6o", 3) == "000003" +string.format("%#-+.6o", 100) == "000144" +string.format("%#-+1.6o", 0) == "000000" +string.format("%#-+1.6o", 1) == "000001" +string.format("%#-+1.6o", 2) == "000002" +string.format("%#-+1.6o", 3) == "000003" +string.format("%#-+1.6o", 100) == "000144" +string.format("%#-+2o", 0) == "0 " +string.format("%#-+2.0o", 0) == "0 " +string.format("%#-+2.1o", 0) == "0 " +string.format("%#-+2.6o", 0) == "000000" +string.format("%#-+2.6o", 1) == "000001" +string.format("%#-+2.6o", 2) == "000002" +string.format("%#-+2.6o", 3) == "000003" +string.format("%#-+2.6o", 100) == "000144" +string.format("%#-+6o", 0) == "0 " +string.format("%#-+6o", 1) == "01 " +string.format("%#-+6o", 2) == "02 " +string.format("%#-+6o", 3) == "03 " +string.format("%#-+6o", 100) == "0144 " +string.format("%#-+6.0o", 0) == "0 " +string.format("%#-+6.0o", 1) == "01 " +string.format("%#-+6.0o", 2) == "02 " +string.format("%#-+6.0o", 3) == "03 " +string.format("%#-+6.0o", 100) == "0144 " +string.format("%#-+6.1o", 0) == "0 " +string.format("%#-+6.1o", 1) == "01 " +string.format("%#-+6.1o", 2) == "02 " +string.format("%#-+6.1o", 3) == "03 " +string.format("%#-+6.1o", 100) == "0144 " +string.format("%#-+6.6o", 0) == "000000" +string.format("%#-+6.6o", 1) == "000001" +string.format("%#-+6.6o", 2) == "000002" +string.format("%#-+6.6o", 3) == "000003" +string.format("%#-+6.6o", 100) == "000144" +string.format("%#-+20o", 0) == "0 " +string.format("%#-+20o", 1) == "01 " +string.format("%#-+20o", 2) == "02 " +string.format("%#-+20o", 3) == "03 " +string.format("%#-+20o", 100) == "0144 " +string.format("%#-+20o", 10000) == "023420 " +string.format("%#-+20o", 100000) == "0303240 " +string.format("%#-+20o", 1000000) == "03641100 " +string.format("%#-+20o", 10000000) == "046113200 " +string.format("%#-+20.0o", 0) == "0 " +string.format("%#-+20.0o", 1) == "01 " +string.format("%#-+20.0o", 2) == "02 " +string.format("%#-+20.0o", 3) == "03 " +string.format("%#-+20.0o", 100) == "0144 " +string.format("%#-+20.0o", 10000) == "023420 " +string.format("%#-+20.0o", 100000) == "0303240 " +string.format("%#-+20.0o", 1000000) == "03641100 " +string.format("%#-+20.0o", 10000000) == "046113200 " +string.format("%#-+20.1o", 0) == "0 " +string.format("%#-+20.1o", 1) == "01 " +string.format("%#-+20.1o", 2) == "02 " +string.format("%#-+20.1o", 3) == "03 " +string.format("%#-+20.1o", 100) == "0144 " +string.format("%#-+20.1o", 10000) == "023420 " +string.format("%#-+20.1o", 100000) == "0303240 " +string.format("%#-+20.1o", 1000000) == "03641100 " +string.format("%#-+20.1o", 10000000) == "046113200 " +string.format("%#-+20.6o", 0) == "000000 " +string.format("%#-+20.6o", 1) == "000001 " +string.format("%#-+20.6o", 2) == "000002 " +string.format("%#-+20.6o", 3) == "000003 " +string.format("%#-+20.6o", 100) == "000144 " +string.format("%#-+20.6o", 10000) == "023420 " +string.format("%#-+20.6o", 100000) == "0303240 " +string.format("%#-+20.6o", 1000000) == "03641100 " +string.format("%#-+20.6o", 10000000) == "046113200 " +string.format("%# o", 0) == "0" +string.format("%# o", 1) == "01" +string.format("%# o", -1) == "01777777777777777777777" +string.format("%# o", 2) == "02" +string.format("%# o", -2) == "01777777777777777777776" +string.format("%# o", 3) == "03" +string.format("%# o", -3) == "01777777777777777777775" +string.format("%# o", 100) == "0144" +string.format("%# o", 10000) == "023420" +string.format("%# o", 100000) == "0303240" +string.format("%# o", 1000000) == "03641100" +string.format("%# o", 10000000) == "046113200" +string.format("%# .6o", 0) == "000000" +string.format("%# .6o", 1) == "000001" +string.format("%# .6o", 2) == "000002" +string.format("%# .6o", 3) == "000003" +string.format("%# .6o", 100) == "000144" +string.format("%# 1.6o", 0) == "000000" +string.format("%# 1.6o", 1) == "000001" +string.format("%# 1.6o", 2) == "000002" +string.format("%# 1.6o", 3) == "000003" +string.format("%# 1.6o", 100) == "000144" +string.format("%# 2o", 0) == " 0" +string.format("%# 2.0o", 0) == " 0" +string.format("%# 2.1o", 0) == " 0" +string.format("%# 2.6o", 0) == "000000" +string.format("%# 2.6o", 1) == "000001" +string.format("%# 2.6o", 2) == "000002" +string.format("%# 2.6o", 3) == "000003" +string.format("%# 2.6o", 100) == "000144" +string.format("%# 6o", 0) == " 0" +string.format("%# 6o", 1) == " 01" +string.format("%# 6o", 2) == " 02" +string.format("%# 6o", 3) == " 03" +string.format("%# 6o", 100) == " 0144" +string.format("%# 6.0o", 0) == " 0" +string.format("%# 6.0o", 1) == " 01" +string.format("%# 6.0o", 2) == " 02" +string.format("%# 6.0o", 3) == " 03" +string.format("%# 6.0o", 100) == " 0144" +string.format("%# 6.1o", 0) == " 0" +string.format("%# 6.1o", 1) == " 01" +string.format("%# 6.1o", 2) == " 02" +string.format("%# 6.1o", 3) == " 03" +string.format("%# 6.1o", 100) == " 0144" +string.format("%# 6.6o", 0) == "000000" +string.format("%# 6.6o", 1) == "000001" +string.format("%# 6.6o", 2) == "000002" +string.format("%# 6.6o", 3) == "000003" +string.format("%# 6.6o", 100) == "000144" +string.format("%# 20o", 0) == " 0" +string.format("%# 20o", 1) == " 01" +string.format("%# 20o", 2) == " 02" +string.format("%# 20o", 3) == " 03" +string.format("%# 20o", 100) == " 0144" +string.format("%# 20o", 10000) == " 023420" +string.format("%# 20o", 100000) == " 0303240" +string.format("%# 20o", 1000000) == " 03641100" +string.format("%# 20o", 10000000) == " 046113200" +string.format("%# 20.0o", 0) == " 0" +string.format("%# 20.0o", 1) == " 01" +string.format("%# 20.0o", 2) == " 02" +string.format("%# 20.0o", 3) == " 03" +string.format("%# 20.0o", 100) == " 0144" +string.format("%# 20.0o", 10000) == " 023420" +string.format("%# 20.0o", 100000) == " 0303240" +string.format("%# 20.0o", 1000000) == " 03641100" +string.format("%# 20.0o", 10000000) == " 046113200" +string.format("%# 20.1o", 0) == " 0" +string.format("%# 20.1o", 1) == " 01" +string.format("%# 20.1o", 2) == " 02" +string.format("%# 20.1o", 3) == " 03" +string.format("%# 20.1o", 100) == " 0144" +string.format("%# 20.1o", 10000) == " 023420" +string.format("%# 20.1o", 100000) == " 0303240" +string.format("%# 20.1o", 1000000) == " 03641100" +string.format("%# 20.1o", 10000000) == " 046113200" +string.format("%# 20.6o", 0) == " 000000" +string.format("%# 20.6o", 1) == " 000001" +string.format("%# 20.6o", 2) == " 000002" +string.format("%# 20.6o", 3) == " 000003" +string.format("%# 20.6o", 100) == " 000144" +string.format("%# 20.6o", 10000) == " 023420" +string.format("%# 20.6o", 100000) == " 0303240" +string.format("%# 20.6o", 1000000) == " 03641100" +string.format("%# 20.6o", 10000000) == " 046113200" +string.format("%# +o", 0) == "0" +string.format("%# +o", 1) == "01" +string.format("%# +o", -1) == "01777777777777777777777" +string.format("%# +o", 2) == "02" +string.format("%# +o", -2) == "01777777777777777777776" +string.format("%# +o", 3) == "03" +string.format("%# +o", -3) == "01777777777777777777775" +string.format("%# +o", 100) == "0144" +string.format("%# +o", 10000) == "023420" +string.format("%# +o", 100000) == "0303240" +string.format("%# +o", 1000000) == "03641100" +string.format("%# +o", 10000000) == "046113200" +string.format("%# +.6o", 0) == "000000" +string.format("%# +.6o", 1) == "000001" +string.format("%# +.6o", 2) == "000002" +string.format("%# +.6o", 3) == "000003" +string.format("%# +.6o", 100) == "000144" +string.format("%# +1.6o", 0) == "000000" +string.format("%# +1.6o", 1) == "000001" +string.format("%# +1.6o", 2) == "000002" +string.format("%# +1.6o", 3) == "000003" +string.format("%# +1.6o", 100) == "000144" +string.format("%# +2o", 0) == " 0" +string.format("%# +2.0o", 0) == " 0" +string.format("%# +2.1o", 0) == " 0" +string.format("%# +2.6o", 0) == "000000" +string.format("%# +2.6o", 1) == "000001" +string.format("%# +2.6o", 2) == "000002" +string.format("%# +2.6o", 3) == "000003" +string.format("%# +2.6o", 100) == "000144" +string.format("%# +6o", 0) == " 0" +string.format("%# +6o", 1) == " 01" +string.format("%# +6o", 2) == " 02" +string.format("%# +6o", 3) == " 03" +string.format("%# +6o", 100) == " 0144" +string.format("%# +6.0o", 0) == " 0" +string.format("%# +6.0o", 1) == " 01" +string.format("%# +6.0o", 2) == " 02" +string.format("%# +6.0o", 3) == " 03" +string.format("%# +6.0o", 100) == " 0144" +string.format("%# +6.1o", 0) == " 0" +string.format("%# +6.1o", 1) == " 01" +string.format("%# +6.1o", 2) == " 02" +string.format("%# +6.1o", 3) == " 03" +string.format("%# +6.1o", 100) == " 0144" +string.format("%# +6.6o", 0) == "000000" +string.format("%# +6.6o", 1) == "000001" +string.format("%# +6.6o", 2) == "000002" +string.format("%# +6.6o", 3) == "000003" +string.format("%# +6.6o", 100) == "000144" +string.format("%# +20o", 0) == " 0" +string.format("%# +20o", 1) == " 01" +string.format("%# +20o", 2) == " 02" +string.format("%# +20o", 3) == " 03" +string.format("%# +20o", 100) == " 0144" +string.format("%# +20o", 10000) == " 023420" +string.format("%# +20o", 100000) == " 0303240" +string.format("%# +20o", 1000000) == " 03641100" +string.format("%# +20o", 10000000) == " 046113200" +string.format("%# +20.0o", 0) == " 0" +string.format("%# +20.0o", 1) == " 01" +string.format("%# +20.0o", 2) == " 02" +string.format("%# +20.0o", 3) == " 03" +string.format("%# +20.0o", 100) == " 0144" +string.format("%# +20.0o", 10000) == " 023420" +string.format("%# +20.0o", 100000) == " 0303240" +string.format("%# +20.0o", 1000000) == " 03641100" +string.format("%# +20.0o", 10000000) == " 046113200" +string.format("%# +20.1o", 0) == " 0" +string.format("%# +20.1o", 1) == " 01" +string.format("%# +20.1o", 2) == " 02" +string.format("%# +20.1o", 3) == " 03" +string.format("%# +20.1o", 100) == " 0144" +string.format("%# +20.1o", 10000) == " 023420" +string.format("%# +20.1o", 100000) == " 0303240" +string.format("%# +20.1o", 1000000) == " 03641100" +string.format("%# +20.1o", 10000000) == " 046113200" +string.format("%# +20.6o", 0) == " 000000" +string.format("%# +20.6o", 1) == " 000001" +string.format("%# +20.6o", 2) == " 000002" +string.format("%# +20.6o", 3) == " 000003" +string.format("%# +20.6o", 100) == " 000144" +string.format("%# +20.6o", 10000) == " 023420" +string.format("%# +20.6o", 100000) == " 0303240" +string.format("%# +20.6o", 1000000) == " 03641100" +string.format("%# +20.6o", 10000000) == " 046113200" +string.format("%# -o", 0) == "0" +string.format("%# -o", 1) == "01" +string.format("%# -o", -1) == "01777777777777777777777" +string.format("%# -o", 2) == "02" +string.format("%# -o", -2) == "01777777777777777777776" +string.format("%# -o", 3) == "03" +string.format("%# -o", -3) == "01777777777777777777775" +string.format("%# -o", 100) == "0144" +string.format("%# -o", 10000) == "023420" +string.format("%# -o", 100000) == "0303240" +string.format("%# -o", 1000000) == "03641100" +string.format("%# -o", 10000000) == "046113200" +string.format("%# -.6o", 0) == "000000" +string.format("%# -.6o", 1) == "000001" +string.format("%# -.6o", 2) == "000002" +string.format("%# -.6o", 3) == "000003" +string.format("%# -.6o", 100) == "000144" +string.format("%# -1.6o", 0) == "000000" +string.format("%# -1.6o", 1) == "000001" +string.format("%# -1.6o", 2) == "000002" +string.format("%# -1.6o", 3) == "000003" +string.format("%# -1.6o", 100) == "000144" +string.format("%# -2o", 0) == "0 " +string.format("%# -2.0o", 0) == "0 " +string.format("%# -2.1o", 0) == "0 " +string.format("%# -2.6o", 0) == "000000" +string.format("%# -2.6o", 1) == "000001" +string.format("%# -2.6o", 2) == "000002" +string.format("%# -2.6o", 3) == "000003" +string.format("%# -2.6o", 100) == "000144" +string.format("%# -6o", 0) == "0 " +string.format("%# -6o", 1) == "01 " +string.format("%# -6o", 2) == "02 " +string.format("%# -6o", 3) == "03 " +string.format("%# -6o", 100) == "0144 " +string.format("%# -6.0o", 0) == "0 " +string.format("%# -6.0o", 1) == "01 " +string.format("%# -6.0o", 2) == "02 " +string.format("%# -6.0o", 3) == "03 " +string.format("%# -6.0o", 100) == "0144 " +string.format("%# -6.1o", 0) == "0 " +string.format("%# -6.1o", 1) == "01 " +string.format("%# -6.1o", 2) == "02 " +string.format("%# -6.1o", 3) == "03 " +string.format("%# -6.1o", 100) == "0144 " +string.format("%# -6.6o", 0) == "000000" +string.format("%# -6.6o", 1) == "000001" +string.format("%# -6.6o", 2) == "000002" +string.format("%# -6.6o", 3) == "000003" +string.format("%# -6.6o", 100) == "000144" +string.format("%# -20o", 0) == "0 " +string.format("%# -20o", 1) == "01 " +string.format("%# -20o", 2) == "02 " +string.format("%# -20o", 3) == "03 " +string.format("%# -20o", 100) == "0144 " +string.format("%# -20o", 10000) == "023420 " +string.format("%# -20o", 100000) == "0303240 " +string.format("%# -20o", 1000000) == "03641100 " +string.format("%# -20o", 10000000) == "046113200 " +string.format("%# -20.0o", 0) == "0 " +string.format("%# -20.0o", 1) == "01 " +string.format("%# -20.0o", 2) == "02 " +string.format("%# -20.0o", 3) == "03 " +string.format("%# -20.0o", 100) == "0144 " +string.format("%# -20.0o", 10000) == "023420 " +string.format("%# -20.0o", 100000) == "0303240 " +string.format("%# -20.0o", 1000000) == "03641100 " +string.format("%# -20.0o", 10000000) == "046113200 " +string.format("%# -20.1o", 0) == "0 " +string.format("%# -20.1o", 1) == "01 " +string.format("%# -20.1o", 2) == "02 " +string.format("%# -20.1o", 3) == "03 " +string.format("%# -20.1o", 100) == "0144 " +string.format("%# -20.1o", 10000) == "023420 " +string.format("%# -20.1o", 100000) == "0303240 " +string.format("%# -20.1o", 1000000) == "03641100 " +string.format("%# -20.1o", 10000000) == "046113200 " +string.format("%# -20.6o", 0) == "000000 " +string.format("%# -20.6o", 1) == "000001 " +string.format("%# -20.6o", 2) == "000002 " +string.format("%# -20.6o", 3) == "000003 " +string.format("%# -20.6o", 100) == "000144 " +string.format("%# -20.6o", 10000) == "023420 " +string.format("%# -20.6o", 100000) == "0303240 " +string.format("%# -20.6o", 1000000) == "03641100 " +string.format("%# -20.6o", 10000000) == "046113200 " +string.format("%# -+o", 0) == "0" +string.format("%# -+o", 1) == "01" +string.format("%# -+o", -1) == "01777777777777777777777" +string.format("%# -+o", 2) == "02" +string.format("%# -+o", -2) == "01777777777777777777776" +string.format("%# -+o", 3) == "03" +string.format("%# -+o", -3) == "01777777777777777777775" +string.format("%# -+o", 100) == "0144" +string.format("%# -+o", 10000) == "023420" +string.format("%# -+o", 100000) == "0303240" +string.format("%# -+o", 1000000) == "03641100" +string.format("%# -+o", 10000000) == "046113200" +string.format("%# -+.6o", 0) == "000000" +string.format("%# -+.6o", 1) == "000001" +string.format("%# -+.6o", 2) == "000002" +string.format("%# -+.6o", 3) == "000003" +string.format("%# -+.6o", 100) == "000144" +string.format("%# -+1.6o", 0) == "000000" +string.format("%# -+1.6o", 1) == "000001" +string.format("%# -+1.6o", 2) == "000002" +string.format("%# -+1.6o", 3) == "000003" +string.format("%# -+1.6o", 100) == "000144" +string.format("%# -+2o", 0) == "0 " +string.format("%# -+2.0o", 0) == "0 " +string.format("%# -+2.1o", 0) == "0 " +string.format("%# -+2.6o", 0) == "000000" +string.format("%# -+2.6o", 1) == "000001" +string.format("%# -+2.6o", 2) == "000002" +string.format("%# -+2.6o", 3) == "000003" +string.format("%# -+2.6o", 100) == "000144" +string.format("%# -+6o", 0) == "0 " +string.format("%# -+6o", 1) == "01 " +string.format("%# -+6o", 2) == "02 " +string.format("%# -+6o", 3) == "03 " +string.format("%# -+6o", 100) == "0144 " +string.format("%# -+6.0o", 0) == "0 " +string.format("%# -+6.0o", 1) == "01 " +string.format("%# -+6.0o", 2) == "02 " +string.format("%# -+6.0o", 3) == "03 " +string.format("%# -+6.0o", 100) == "0144 " +string.format("%# -+6.1o", 0) == "0 " +string.format("%# -+6.1o", 1) == "01 " +string.format("%# -+6.1o", 2) == "02 " +string.format("%# -+6.1o", 3) == "03 " +string.format("%# -+6.1o", 100) == "0144 " +string.format("%# -+6.6o", 0) == "000000" +string.format("%# -+6.6o", 1) == "000001" +string.format("%# -+6.6o", 2) == "000002" +string.format("%# -+6.6o", 3) == "000003" +string.format("%# -+6.6o", 100) == "000144" +string.format("%# -+20o", 0) == "0 " +string.format("%# -+20o", 1) == "01 " +string.format("%# -+20o", 2) == "02 " +string.format("%# -+20o", 3) == "03 " +string.format("%# -+20o", 100) == "0144 " +string.format("%# -+20o", 10000) == "023420 " +string.format("%# -+20o", 100000) == "0303240 " +string.format("%# -+20o", 1000000) == "03641100 " +string.format("%# -+20o", 10000000) == "046113200 " +string.format("%# -+20.0o", 0) == "0 " +string.format("%# -+20.0o", 1) == "01 " +string.format("%# -+20.0o", 2) == "02 " +string.format("%# -+20.0o", 3) == "03 " +string.format("%# -+20.0o", 100) == "0144 " +string.format("%# -+20.0o", 10000) == "023420 " +string.format("%# -+20.0o", 100000) == "0303240 " +string.format("%# -+20.0o", 1000000) == "03641100 " +string.format("%# -+20.0o", 10000000) == "046113200 " +string.format("%# -+20.1o", 0) == "0 " +string.format("%# -+20.1o", 1) == "01 " +string.format("%# -+20.1o", 2) == "02 " +string.format("%# -+20.1o", 3) == "03 " +string.format("%# -+20.1o", 100) == "0144 " +string.format("%# -+20.1o", 10000) == "023420 " +string.format("%# -+20.1o", 100000) == "0303240 " +string.format("%# -+20.1o", 1000000) == "03641100 " +string.format("%# -+20.1o", 10000000) == "046113200 " +string.format("%# -+20.6o", 0) == "000000 " +string.format("%# -+20.6o", 1) == "000001 " +string.format("%# -+20.6o", 2) == "000002 " +string.format("%# -+20.6o", 3) == "000003 " +string.format("%# -+20.6o", 100) == "000144 " +string.format("%# -+20.6o", 10000) == "023420 " +string.format("%# -+20.6o", 100000) == "0303240 " +string.format("%# -+20.6o", 1000000) == "03641100 " +string.format("%# -+20.6o", 10000000) == "046113200 " +string.format("%0o", 0) == "0" +string.format("%0o", 1) == "1" +string.format("%0o", -1) == "1777777777777777777777" +string.format("%0o", 2) == "2" +string.format("%0o", -2) == "1777777777777777777776" +string.format("%0o", 3) == "3" +string.format("%0o", -3) == "1777777777777777777775" +string.format("%0o", 100) == "144" +string.format("%0o", 10000) == "23420" +string.format("%0o", 100000) == "303240" +string.format("%0o", 1000000) == "3641100" +string.format("%0o", 10000000) == "46113200" +string.format("%0.0o", 0) == "" +string.format("%0.6o", 0) == "000000" +string.format("%0.6o", 1) == "000001" +string.format("%0.6o", 2) == "000002" +string.format("%0.6o", 3) == "000003" +string.format("%0.6o", 100) == "000144" +string.format("%0.6o", 10000) == "023420" +string.format("%01.0o", 0) == " " +string.format("%01.6o", 0) == "000000" +string.format("%01.6o", 1) == "000001" +string.format("%01.6o", 2) == "000002" +string.format("%01.6o", 3) == "000003" +string.format("%01.6o", 100) == "000144" +string.format("%01.6o", 10000) == "023420" +string.format("%02o", 0) == "00" +string.format("%02o", 1) == "01" +string.format("%02o", 2) == "02" +string.format("%02o", 3) == "03" +string.format("%02.0o", 0) == " " +string.format("%02.0o", 1) == " 1" +string.format("%02.0o", 2) == " 2" +string.format("%02.0o", 3) == " 3" +string.format("%02.1o", 0) == " 0" +string.format("%02.1o", 1) == " 1" +string.format("%02.1o", 2) == " 2" +string.format("%02.1o", 3) == " 3" +string.format("%02.6o", 0) == "000000" +string.format("%02.6o", 1) == "000001" +string.format("%02.6o", 2) == "000002" +string.format("%02.6o", 3) == "000003" +string.format("%02.6o", 100) == "000144" +string.format("%02.6o", 10000) == "023420" +string.format("%06o", 0) == "000000" +string.format("%06o", 1) == "000001" +string.format("%06o", 2) == "000002" +string.format("%06o", 3) == "000003" +string.format("%06o", 100) == "000144" +string.format("%06o", 10000) == "023420" +string.format("%06.0o", 0) == " " +string.format("%06.0o", 1) == " 1" +string.format("%06.0o", 2) == " 2" +string.format("%06.0o", 3) == " 3" +string.format("%06.0o", 100) == " 144" +string.format("%06.0o", 10000) == " 23420" +string.format("%06.1o", 0) == " 0" +string.format("%06.1o", 1) == " 1" +string.format("%06.1o", 2) == " 2" +string.format("%06.1o", 3) == " 3" +string.format("%06.1o", 100) == " 144" +string.format("%06.1o", 10000) == " 23420" +string.format("%06.6o", 0) == "000000" +string.format("%06.6o", 1) == "000001" +string.format("%06.6o", 2) == "000002" +string.format("%06.6o", 3) == "000003" +string.format("%06.6o", 100) == "000144" +string.format("%06.6o", 10000) == "023420" +string.format("%020o", 0) == "00000000000000000000" +string.format("%020o", 1) == "00000000000000000001" +string.format("%020o", 2) == "00000000000000000002" +string.format("%020o", 3) == "00000000000000000003" +string.format("%020o", 100) == "00000000000000000144" +string.format("%020o", 10000) == "00000000000000023420" +string.format("%020o", 100000) == "00000000000000303240" +string.format("%020o", 1000000) == "00000000000003641100" +string.format("%020o", 10000000) == "00000000000046113200" +string.format("%020.0o", 0) == " " +string.format("%020.0o", 1) == " 1" +string.format("%020.0o", 2) == " 2" +string.format("%020.0o", 3) == " 3" +string.format("%020.0o", 100) == " 144" +string.format("%020.0o", 10000) == " 23420" +string.format("%020.0o", 100000) == " 303240" +string.format("%020.0o", 1000000) == " 3641100" +string.format("%020.0o", 10000000) == " 46113200" +string.format("%020.1o", 0) == " 0" +string.format("%020.1o", 1) == " 1" +string.format("%020.1o", 2) == " 2" +string.format("%020.1o", 3) == " 3" +string.format("%020.1o", 100) == " 144" +string.format("%020.1o", 10000) == " 23420" +string.format("%020.1o", 100000) == " 303240" +string.format("%020.1o", 1000000) == " 3641100" +string.format("%020.1o", 10000000) == " 46113200" +string.format("%020.6o", 0) == " 000000" +string.format("%020.6o", 1) == " 000001" +string.format("%020.6o", 2) == " 000002" +string.format("%020.6o", 3) == " 000003" +string.format("%020.6o", 100) == " 000144" +string.format("%020.6o", 10000) == " 023420" +string.format("%020.6o", 100000) == " 303240" +string.format("%020.6o", 1000000) == " 3641100" +string.format("%020.6o", 10000000) == " 46113200" +string.format("%0+o", 0) == "0" +string.format("%0+o", 1) == "1" +string.format("%0+o", -1) == "1777777777777777777777" +string.format("%0+o", 2) == "2" +string.format("%0+o", -2) == "1777777777777777777776" +string.format("%0+o", 3) == "3" +string.format("%0+o", -3) == "1777777777777777777775" +string.format("%0+o", 100) == "144" +string.format("%0+o", 10000) == "23420" +string.format("%0+o", 100000) == "303240" +string.format("%0+o", 1000000) == "3641100" +string.format("%0+o", 10000000) == "46113200" +string.format("%0+.0o", 0) == "" +string.format("%0+.6o", 0) == "000000" +string.format("%0+.6o", 1) == "000001" +string.format("%0+.6o", 2) == "000002" +string.format("%0+.6o", 3) == "000003" +string.format("%0+.6o", 100) == "000144" +string.format("%0+.6o", 10000) == "023420" +string.format("%0+1.0o", 0) == " " +string.format("%0+1.6o", 0) == "000000" +string.format("%0+1.6o", 1) == "000001" +string.format("%0+1.6o", 2) == "000002" +string.format("%0+1.6o", 3) == "000003" +string.format("%0+1.6o", 100) == "000144" +string.format("%0+1.6o", 10000) == "023420" +string.format("%0+2o", 0) == "00" +string.format("%0+2o", 1) == "01" +string.format("%0+2o", 2) == "02" +string.format("%0+2o", 3) == "03" +string.format("%0+2.0o", 0) == " " +string.format("%0+2.0o", 1) == " 1" +string.format("%0+2.0o", 2) == " 2" +string.format("%0+2.0o", 3) == " 3" +string.format("%0+2.1o", 0) == " 0" +string.format("%0+2.1o", 1) == " 1" +string.format("%0+2.1o", 2) == " 2" +string.format("%0+2.1o", 3) == " 3" +string.format("%0+2.6o", 0) == "000000" +string.format("%0+2.6o", 1) == "000001" +string.format("%0+2.6o", 2) == "000002" +string.format("%0+2.6o", 3) == "000003" +string.format("%0+2.6o", 100) == "000144" +string.format("%0+2.6o", 10000) == "023420" +string.format("%0+6o", 0) == "000000" +string.format("%0+6o", 1) == "000001" +string.format("%0+6o", 2) == "000002" +string.format("%0+6o", 3) == "000003" +string.format("%0+6o", 100) == "000144" +string.format("%0+6o", 10000) == "023420" +string.format("%0+6.0o", 0) == " " +string.format("%0+6.0o", 1) == " 1" +string.format("%0+6.0o", 2) == " 2" +string.format("%0+6.0o", 3) == " 3" +string.format("%0+6.0o", 100) == " 144" +string.format("%0+6.0o", 10000) == " 23420" +string.format("%0+6.1o", 0) == " 0" +string.format("%0+6.1o", 1) == " 1" +string.format("%0+6.1o", 2) == " 2" +string.format("%0+6.1o", 3) == " 3" +string.format("%0+6.1o", 100) == " 144" +string.format("%0+6.1o", 10000) == " 23420" +string.format("%0+6.6o", 0) == "000000" +string.format("%0+6.6o", 1) == "000001" +string.format("%0+6.6o", 2) == "000002" +string.format("%0+6.6o", 3) == "000003" +string.format("%0+6.6o", 100) == "000144" +string.format("%0+6.6o", 10000) == "023420" +string.format("%0+20o", 0) == "00000000000000000000" +string.format("%0+20o", 1) == "00000000000000000001" +string.format("%0+20o", 2) == "00000000000000000002" +string.format("%0+20o", 3) == "00000000000000000003" +string.format("%0+20o", 100) == "00000000000000000144" +string.format("%0+20o", 10000) == "00000000000000023420" +string.format("%0+20o", 100000) == "00000000000000303240" +string.format("%0+20o", 1000000) == "00000000000003641100" +string.format("%0+20o", 10000000) == "00000000000046113200" +string.format("%0+20.0o", 0) == " " +string.format("%0+20.0o", 1) == " 1" +string.format("%0+20.0o", 2) == " 2" +string.format("%0+20.0o", 3) == " 3" +string.format("%0+20.0o", 100) == " 144" +string.format("%0+20.0o", 10000) == " 23420" +string.format("%0+20.0o", 100000) == " 303240" +string.format("%0+20.0o", 1000000) == " 3641100" +string.format("%0+20.0o", 10000000) == " 46113200" +string.format("%0+20.1o", 0) == " 0" +string.format("%0+20.1o", 1) == " 1" +string.format("%0+20.1o", 2) == " 2" +string.format("%0+20.1o", 3) == " 3" +string.format("%0+20.1o", 100) == " 144" +string.format("%0+20.1o", 10000) == " 23420" +string.format("%0+20.1o", 100000) == " 303240" +string.format("%0+20.1o", 1000000) == " 3641100" +string.format("%0+20.1o", 10000000) == " 46113200" +string.format("%0+20.6o", 0) == " 000000" +string.format("%0+20.6o", 1) == " 000001" +string.format("%0+20.6o", 2) == " 000002" +string.format("%0+20.6o", 3) == " 000003" +string.format("%0+20.6o", 100) == " 000144" +string.format("%0+20.6o", 10000) == " 023420" +string.format("%0+20.6o", 100000) == " 303240" +string.format("%0+20.6o", 1000000) == " 3641100" +string.format("%0+20.6o", 10000000) == " 46113200" +string.format("%0-o", 0) == "0" +string.format("%0-o", 1) == "1" +string.format("%0-o", -1) == "1777777777777777777777" +string.format("%0-o", 2) == "2" +string.format("%0-o", -2) == "1777777777777777777776" +string.format("%0-o", 3) == "3" +string.format("%0-o", -3) == "1777777777777777777775" +string.format("%0-o", 100) == "144" +string.format("%0-o", 10000) == "23420" +string.format("%0-o", 100000) == "303240" +string.format("%0-o", 1000000) == "3641100" +string.format("%0-o", 10000000) == "46113200" +string.format("%0-.0o", 0) == "" +string.format("%0-.6o", 0) == "000000" +string.format("%0-.6o", 1) == "000001" +string.format("%0-.6o", 2) == "000002" +string.format("%0-.6o", 3) == "000003" +string.format("%0-.6o", 100) == "000144" +string.format("%0-.6o", 10000) == "023420" +string.format("%0-1.0o", 0) == " " +string.format("%0-1.6o", 0) == "000000" +string.format("%0-1.6o", 1) == "000001" +string.format("%0-1.6o", 2) == "000002" +string.format("%0-1.6o", 3) == "000003" +string.format("%0-1.6o", 100) == "000144" +string.format("%0-1.6o", 10000) == "023420" +string.format("%0-2o", 0) == "0 " +string.format("%0-2o", 1) == "1 " +string.format("%0-2o", 2) == "2 " +string.format("%0-2o", 3) == "3 " +string.format("%0-2.0o", 0) == " " +string.format("%0-2.0o", 1) == "1 " +string.format("%0-2.0o", 2) == "2 " +string.format("%0-2.0o", 3) == "3 " +string.format("%0-2.1o", 0) == "0 " +string.format("%0-2.1o", 1) == "1 " +string.format("%0-2.1o", 2) == "2 " +string.format("%0-2.1o", 3) == "3 " +string.format("%0-2.6o", 0) == "000000" +string.format("%0-2.6o", 1) == "000001" +string.format("%0-2.6o", 2) == "000002" +string.format("%0-2.6o", 3) == "000003" +string.format("%0-2.6o", 100) == "000144" +string.format("%0-2.6o", 10000) == "023420" +string.format("%0-6o", 0) == "0 " +string.format("%0-6o", 1) == "1 " +string.format("%0-6o", 2) == "2 " +string.format("%0-6o", 3) == "3 " +string.format("%0-6o", 100) == "144 " +string.format("%0-6o", 10000) == "23420 " +string.format("%0-6.0o", 0) == " " +string.format("%0-6.0o", 1) == "1 " +string.format("%0-6.0o", 2) == "2 " +string.format("%0-6.0o", 3) == "3 " +string.format("%0-6.0o", 100) == "144 " +string.format("%0-6.0o", 10000) == "23420 " +string.format("%0-6.1o", 0) == "0 " +string.format("%0-6.1o", 1) == "1 " +string.format("%0-6.1o", 2) == "2 " +string.format("%0-6.1o", 3) == "3 " +string.format("%0-6.1o", 100) == "144 " +string.format("%0-6.1o", 10000) == "23420 " +string.format("%0-6.6o", 0) == "000000" +string.format("%0-6.6o", 1) == "000001" +string.format("%0-6.6o", 2) == "000002" +string.format("%0-6.6o", 3) == "000003" +string.format("%0-6.6o", 100) == "000144" +string.format("%0-6.6o", 10000) == "023420" +string.format("%0-20o", 0) == "0 " +string.format("%0-20o", 1) == "1 " +string.format("%0-20o", 2) == "2 " +string.format("%0-20o", 3) == "3 " +string.format("%0-20o", 100) == "144 " +string.format("%0-20o", 10000) == "23420 " +string.format("%0-20o", 100000) == "303240 " +string.format("%0-20o", 1000000) == "3641100 " +string.format("%0-20o", 10000000) == "46113200 " +string.format("%0-20.0o", 0) == " " +string.format("%0-20.0o", 1) == "1 " +string.format("%0-20.0o", 2) == "2 " +string.format("%0-20.0o", 3) == "3 " +string.format("%0-20.0o", 100) == "144 " +string.format("%0-20.0o", 10000) == "23420 " +string.format("%0-20.0o", 100000) == "303240 " +string.format("%0-20.0o", 1000000) == "3641100 " +string.format("%0-20.0o", 10000000) == "46113200 " +string.format("%0-20.1o", 0) == "0 " +string.format("%0-20.1o", 1) == "1 " +string.format("%0-20.1o", 2) == "2 " +string.format("%0-20.1o", 3) == "3 " +string.format("%0-20.1o", 100) == "144 " +string.format("%0-20.1o", 10000) == "23420 " +string.format("%0-20.1o", 100000) == "303240 " +string.format("%0-20.1o", 1000000) == "3641100 " +string.format("%0-20.1o", 10000000) == "46113200 " +string.format("%0-20.6o", 0) == "000000 " +string.format("%0-20.6o", 1) == "000001 " +string.format("%0-20.6o", 2) == "000002 " +string.format("%0-20.6o", 3) == "000003 " +string.format("%0-20.6o", 100) == "000144 " +string.format("%0-20.6o", 10000) == "023420 " +string.format("%0-20.6o", 100000) == "303240 " +string.format("%0-20.6o", 1000000) == "3641100 " +string.format("%0-20.6o", 10000000) == "46113200 " +string.format("%0-+o", 0) == "0" +string.format("%0-+o", 1) == "1" +string.format("%0-+o", -1) == "1777777777777777777777" +string.format("%0-+o", 2) == "2" +string.format("%0-+o", -2) == "1777777777777777777776" +string.format("%0-+o", 3) == "3" +string.format("%0-+o", -3) == "1777777777777777777775" +string.format("%0-+o", 100) == "144" +string.format("%0-+o", 10000) == "23420" +string.format("%0-+o", 100000) == "303240" +string.format("%0-+o", 1000000) == "3641100" +string.format("%0-+o", 10000000) == "46113200" +string.format("%0-+.0o", 0) == "" +string.format("%0-+.6o", 0) == "000000" +string.format("%0-+.6o", 1) == "000001" +string.format("%0-+.6o", 2) == "000002" +string.format("%0-+.6o", 3) == "000003" +string.format("%0-+.6o", 100) == "000144" +string.format("%0-+.6o", 10000) == "023420" +string.format("%0-+1.0o", 0) == " " +string.format("%0-+1.6o", 0) == "000000" +string.format("%0-+1.6o", 1) == "000001" +string.format("%0-+1.6o", 2) == "000002" +string.format("%0-+1.6o", 3) == "000003" +string.format("%0-+1.6o", 100) == "000144" +string.format("%0-+1.6o", 10000) == "023420" +string.format("%0-+2o", 0) == "0 " +string.format("%0-+2o", 1) == "1 " +string.format("%0-+2o", 2) == "2 " +string.format("%0-+2o", 3) == "3 " +string.format("%0-+2.0o", 0) == " " +string.format("%0-+2.0o", 1) == "1 " +string.format("%0-+2.0o", 2) == "2 " +string.format("%0-+2.0o", 3) == "3 " +string.format("%0-+2.1o", 0) == "0 " +string.format("%0-+2.1o", 1) == "1 " +string.format("%0-+2.1o", 2) == "2 " +string.format("%0-+2.1o", 3) == "3 " +string.format("%0-+2.6o", 0) == "000000" +string.format("%0-+2.6o", 1) == "000001" +string.format("%0-+2.6o", 2) == "000002" +string.format("%0-+2.6o", 3) == "000003" +string.format("%0-+2.6o", 100) == "000144" +string.format("%0-+2.6o", 10000) == "023420" +string.format("%0-+6o", 0) == "0 " +string.format("%0-+6o", 1) == "1 " +string.format("%0-+6o", 2) == "2 " +string.format("%0-+6o", 3) == "3 " +string.format("%0-+6o", 100) == "144 " +string.format("%0-+6o", 10000) == "23420 " +string.format("%0-+6.0o", 0) == " " +string.format("%0-+6.0o", 1) == "1 " +string.format("%0-+6.0o", 2) == "2 " +string.format("%0-+6.0o", 3) == "3 " +string.format("%0-+6.0o", 100) == "144 " +string.format("%0-+6.0o", 10000) == "23420 " +string.format("%0-+6.1o", 0) == "0 " +string.format("%0-+6.1o", 1) == "1 " +string.format("%0-+6.1o", 2) == "2 " +string.format("%0-+6.1o", 3) == "3 " +string.format("%0-+6.1o", 100) == "144 " +string.format("%0-+6.1o", 10000) == "23420 " +string.format("%0-+6.6o", 0) == "000000" +string.format("%0-+6.6o", 1) == "000001" +string.format("%0-+6.6o", 2) == "000002" +string.format("%0-+6.6o", 3) == "000003" +string.format("%0-+6.6o", 100) == "000144" +string.format("%0-+6.6o", 10000) == "023420" +string.format("%0-+20o", 0) == "0 " +string.format("%0-+20o", 1) == "1 " +string.format("%0-+20o", 2) == "2 " +string.format("%0-+20o", 3) == "3 " +string.format("%0-+20o", 100) == "144 " +string.format("%0-+20o", 10000) == "23420 " +string.format("%0-+20o", 100000) == "303240 " +string.format("%0-+20o", 1000000) == "3641100 " +string.format("%0-+20o", 10000000) == "46113200 " +string.format("%0-+20.0o", 0) == " " +string.format("%0-+20.0o", 1) == "1 " +string.format("%0-+20.0o", 2) == "2 " +string.format("%0-+20.0o", 3) == "3 " +string.format("%0-+20.0o", 100) == "144 " +string.format("%0-+20.0o", 10000) == "23420 " +string.format("%0-+20.0o", 100000) == "303240 " +string.format("%0-+20.0o", 1000000) == "3641100 " +string.format("%0-+20.0o", 10000000) == "46113200 " +string.format("%0-+20.1o", 0) == "0 " +string.format("%0-+20.1o", 1) == "1 " +string.format("%0-+20.1o", 2) == "2 " +string.format("%0-+20.1o", 3) == "3 " +string.format("%0-+20.1o", 100) == "144 " +string.format("%0-+20.1o", 10000) == "23420 " +string.format("%0-+20.1o", 100000) == "303240 " +string.format("%0-+20.1o", 1000000) == "3641100 " +string.format("%0-+20.1o", 10000000) == "46113200 " +string.format("%0-+20.6o", 0) == "000000 " +string.format("%0-+20.6o", 1) == "000001 " +string.format("%0-+20.6o", 2) == "000002 " +string.format("%0-+20.6o", 3) == "000003 " +string.format("%0-+20.6o", 100) == "000144 " +string.format("%0-+20.6o", 10000) == "023420 " +string.format("%0-+20.6o", 100000) == "303240 " +string.format("%0-+20.6o", 1000000) == "3641100 " +string.format("%0-+20.6o", 10000000) == "46113200 " +string.format("%0 o", 0) == "0" +string.format("%0 o", 1) == "1" +string.format("%0 o", -1) == "1777777777777777777777" +string.format("%0 o", 2) == "2" +string.format("%0 o", -2) == "1777777777777777777776" +string.format("%0 o", 3) == "3" +string.format("%0 o", -3) == "1777777777777777777775" +string.format("%0 o", 100) == "144" +string.format("%0 o", 10000) == "23420" +string.format("%0 o", 100000) == "303240" +string.format("%0 o", 1000000) == "3641100" +string.format("%0 o", 10000000) == "46113200" +string.format("%0 .0o", 0) == "" +string.format("%0 .6o", 0) == "000000" +string.format("%0 .6o", 1) == "000001" +string.format("%0 .6o", 2) == "000002" +string.format("%0 .6o", 3) == "000003" +string.format("%0 .6o", 100) == "000144" +string.format("%0 .6o", 10000) == "023420" +string.format("%0 1.0o", 0) == " " +string.format("%0 1.6o", 0) == "000000" +string.format("%0 1.6o", 1) == "000001" +string.format("%0 1.6o", 2) == "000002" +string.format("%0 1.6o", 3) == "000003" +string.format("%0 1.6o", 100) == "000144" +string.format("%0 1.6o", 10000) == "023420" +string.format("%0 2o", 0) == "00" +string.format("%0 2o", 1) == "01" +string.format("%0 2o", 2) == "02" +string.format("%0 2o", 3) == "03" +string.format("%0 2.0o", 0) == " " +string.format("%0 2.0o", 1) == " 1" +string.format("%0 2.0o", 2) == " 2" +string.format("%0 2.0o", 3) == " 3" +string.format("%0 2.1o", 0) == " 0" +string.format("%0 2.1o", 1) == " 1" +string.format("%0 2.1o", 2) == " 2" +string.format("%0 2.1o", 3) == " 3" +string.format("%0 2.6o", 0) == "000000" +string.format("%0 2.6o", 1) == "000001" +string.format("%0 2.6o", 2) == "000002" +string.format("%0 2.6o", 3) == "000003" +string.format("%0 2.6o", 100) == "000144" +string.format("%0 2.6o", 10000) == "023420" +string.format("%0 6o", 0) == "000000" +string.format("%0 6o", 1) == "000001" +string.format("%0 6o", 2) == "000002" +string.format("%0 6o", 3) == "000003" +string.format("%0 6o", 100) == "000144" +string.format("%0 6o", 10000) == "023420" +string.format("%0 6.0o", 0) == " " +string.format("%0 6.0o", 1) == " 1" +string.format("%0 6.0o", 2) == " 2" +string.format("%0 6.0o", 3) == " 3" +string.format("%0 6.0o", 100) == " 144" +string.format("%0 6.0o", 10000) == " 23420" +string.format("%0 6.1o", 0) == " 0" +string.format("%0 6.1o", 1) == " 1" +string.format("%0 6.1o", 2) == " 2" +string.format("%0 6.1o", 3) == " 3" +string.format("%0 6.1o", 100) == " 144" +string.format("%0 6.1o", 10000) == " 23420" +string.format("%0 6.6o", 0) == "000000" +string.format("%0 6.6o", 1) == "000001" +string.format("%0 6.6o", 2) == "000002" +string.format("%0 6.6o", 3) == "000003" +string.format("%0 6.6o", 100) == "000144" +string.format("%0 6.6o", 10000) == "023420" +string.format("%0 20o", 0) == "00000000000000000000" +string.format("%0 20o", 1) == "00000000000000000001" +string.format("%0 20o", 2) == "00000000000000000002" +string.format("%0 20o", 3) == "00000000000000000003" +string.format("%0 20o", 100) == "00000000000000000144" +string.format("%0 20o", 10000) == "00000000000000023420" +string.format("%0 20o", 100000) == "00000000000000303240" +string.format("%0 20o", 1000000) == "00000000000003641100" +string.format("%0 20o", 10000000) == "00000000000046113200" +string.format("%0 20.0o", 0) == " " +string.format("%0 20.0o", 1) == " 1" +string.format("%0 20.0o", 2) == " 2" +string.format("%0 20.0o", 3) == " 3" +string.format("%0 20.0o", 100) == " 144" +string.format("%0 20.0o", 10000) == " 23420" +string.format("%0 20.0o", 100000) == " 303240" +string.format("%0 20.0o", 1000000) == " 3641100" +string.format("%0 20.0o", 10000000) == " 46113200" +string.format("%0 20.1o", 0) == " 0" +string.format("%0 20.1o", 1) == " 1" +string.format("%0 20.1o", 2) == " 2" +string.format("%0 20.1o", 3) == " 3" +string.format("%0 20.1o", 100) == " 144" +string.format("%0 20.1o", 10000) == " 23420" +string.format("%0 20.1o", 100000) == " 303240" +string.format("%0 20.1o", 1000000) == " 3641100" +string.format("%0 20.1o", 10000000) == " 46113200" +string.format("%0 20.6o", 0) == " 000000" +string.format("%0 20.6o", 1) == " 000001" +string.format("%0 20.6o", 2) == " 000002" +string.format("%0 20.6o", 3) == " 000003" +string.format("%0 20.6o", 100) == " 000144" +string.format("%0 20.6o", 10000) == " 023420" +string.format("%0 20.6o", 100000) == " 303240" +string.format("%0 20.6o", 1000000) == " 3641100" +string.format("%0 20.6o", 10000000) == " 46113200" +string.format("%0 +o", 0) == "0" +string.format("%0 +o", 1) == "1" +string.format("%0 +o", -1) == "1777777777777777777777" +string.format("%0 +o", 2) == "2" +string.format("%0 +o", -2) == "1777777777777777777776" +string.format("%0 +o", 3) == "3" +string.format("%0 +o", -3) == "1777777777777777777775" +string.format("%0 +o", 100) == "144" +string.format("%0 +o", 10000) == "23420" +string.format("%0 +o", 100000) == "303240" +string.format("%0 +o", 1000000) == "3641100" +string.format("%0 +o", 10000000) == "46113200" +string.format("%0 +.0o", 0) == "" +string.format("%0 +.6o", 0) == "000000" +string.format("%0 +.6o", 1) == "000001" +string.format("%0 +.6o", 2) == "000002" +string.format("%0 +.6o", 3) == "000003" +string.format("%0 +.6o", 100) == "000144" +string.format("%0 +.6o", 10000) == "023420" +string.format("%0 +1.0o", 0) == " " +string.format("%0 +1.6o", 0) == "000000" +string.format("%0 +1.6o", 1) == "000001" +string.format("%0 +1.6o", 2) == "000002" +string.format("%0 +1.6o", 3) == "000003" +string.format("%0 +1.6o", 100) == "000144" +string.format("%0 +1.6o", 10000) == "023420" +string.format("%0 +2o", 0) == "00" +string.format("%0 +2o", 1) == "01" +string.format("%0 +2o", 2) == "02" +string.format("%0 +2o", 3) == "03" +string.format("%0 +2.0o", 0) == " " +string.format("%0 +2.0o", 1) == " 1" +string.format("%0 +2.0o", 2) == " 2" +string.format("%0 +2.0o", 3) == " 3" +string.format("%0 +2.1o", 0) == " 0" +string.format("%0 +2.1o", 1) == " 1" +string.format("%0 +2.1o", 2) == " 2" +string.format("%0 +2.1o", 3) == " 3" +string.format("%0 +2.6o", 0) == "000000" +string.format("%0 +2.6o", 1) == "000001" +string.format("%0 +2.6o", 2) == "000002" +string.format("%0 +2.6o", 3) == "000003" +string.format("%0 +2.6o", 100) == "000144" +string.format("%0 +2.6o", 10000) == "023420" +string.format("%0 +6o", 0) == "000000" +string.format("%0 +6o", 1) == "000001" +string.format("%0 +6o", 2) == "000002" +string.format("%0 +6o", 3) == "000003" +string.format("%0 +6o", 100) == "000144" +string.format("%0 +6o", 10000) == "023420" +string.format("%0 +6.0o", 0) == " " +string.format("%0 +6.0o", 1) == " 1" +string.format("%0 +6.0o", 2) == " 2" +string.format("%0 +6.0o", 3) == " 3" +string.format("%0 +6.0o", 100) == " 144" +string.format("%0 +6.0o", 10000) == " 23420" +string.format("%0 +6.1o", 0) == " 0" +string.format("%0 +6.1o", 1) == " 1" +string.format("%0 +6.1o", 2) == " 2" +string.format("%0 +6.1o", 3) == " 3" +string.format("%0 +6.1o", 100) == " 144" +string.format("%0 +6.1o", 10000) == " 23420" +string.format("%0 +6.6o", 0) == "000000" +string.format("%0 +6.6o", 1) == "000001" +string.format("%0 +6.6o", 2) == "000002" +string.format("%0 +6.6o", 3) == "000003" +string.format("%0 +6.6o", 100) == "000144" +string.format("%0 +6.6o", 10000) == "023420" +string.format("%0 +20o", 0) == "00000000000000000000" +string.format("%0 +20o", 1) == "00000000000000000001" +string.format("%0 +20o", 2) == "00000000000000000002" +string.format("%0 +20o", 3) == "00000000000000000003" +string.format("%0 +20o", 100) == "00000000000000000144" +string.format("%0 +20o", 10000) == "00000000000000023420" +string.format("%0 +20o", 100000) == "00000000000000303240" +string.format("%0 +20o", 1000000) == "00000000000003641100" +string.format("%0 +20o", 10000000) == "00000000000046113200" +string.format("%0 +20.0o", 0) == " " +string.format("%0 +20.0o", 1) == " 1" +string.format("%0 +20.0o", 2) == " 2" +string.format("%0 +20.0o", 3) == " 3" +string.format("%0 +20.0o", 100) == " 144" +string.format("%0 +20.0o", 10000) == " 23420" +string.format("%0 +20.0o", 100000) == " 303240" +string.format("%0 +20.0o", 1000000) == " 3641100" +string.format("%0 +20.0o", 10000000) == " 46113200" +string.format("%0 +20.1o", 0) == " 0" +string.format("%0 +20.1o", 1) == " 1" +string.format("%0 +20.1o", 2) == " 2" +string.format("%0 +20.1o", 3) == " 3" +string.format("%0 +20.1o", 100) == " 144" +string.format("%0 +20.1o", 10000) == " 23420" +string.format("%0 +20.1o", 100000) == " 303240" +string.format("%0 +20.1o", 1000000) == " 3641100" +string.format("%0 +20.1o", 10000000) == " 46113200" +string.format("%0 +20.6o", 0) == " 000000" +string.format("%0 +20.6o", 1) == " 000001" +string.format("%0 +20.6o", 2) == " 000002" +string.format("%0 +20.6o", 3) == " 000003" +string.format("%0 +20.6o", 100) == " 000144" +string.format("%0 +20.6o", 10000) == " 023420" +string.format("%0 +20.6o", 100000) == " 303240" +string.format("%0 +20.6o", 1000000) == " 3641100" +string.format("%0 +20.6o", 10000000) == " 46113200" +string.format("%0 -o", 0) == "0" +string.format("%0 -o", 1) == "1" +string.format("%0 -o", -1) == "1777777777777777777777" +string.format("%0 -o", 2) == "2" +string.format("%0 -o", -2) == "1777777777777777777776" +string.format("%0 -o", 3) == "3" +string.format("%0 -o", -3) == "1777777777777777777775" +string.format("%0 -o", 100) == "144" +string.format("%0 -o", 10000) == "23420" +string.format("%0 -o", 100000) == "303240" +string.format("%0 -o", 1000000) == "3641100" +string.format("%0 -o", 10000000) == "46113200" +string.format("%0 -.0o", 0) == "" +string.format("%0 -.6o", 0) == "000000" +string.format("%0 -.6o", 1) == "000001" +string.format("%0 -.6o", 2) == "000002" +string.format("%0 -.6o", 3) == "000003" +string.format("%0 -.6o", 100) == "000144" +string.format("%0 -.6o", 10000) == "023420" +string.format("%0 -1.0o", 0) == " " +string.format("%0 -1.6o", 0) == "000000" +string.format("%0 -1.6o", 1) == "000001" +string.format("%0 -1.6o", 2) == "000002" +string.format("%0 -1.6o", 3) == "000003" +string.format("%0 -1.6o", 100) == "000144" +string.format("%0 -1.6o", 10000) == "023420" +string.format("%0 -2o", 0) == "0 " +string.format("%0 -2o", 1) == "1 " +string.format("%0 -2o", 2) == "2 " +string.format("%0 -2o", 3) == "3 " +string.format("%0 -2.0o", 0) == " " +string.format("%0 -2.0o", 1) == "1 " +string.format("%0 -2.0o", 2) == "2 " +string.format("%0 -2.0o", 3) == "3 " +string.format("%0 -2.1o", 0) == "0 " +string.format("%0 -2.1o", 1) == "1 " +string.format("%0 -2.1o", 2) == "2 " +string.format("%0 -2.1o", 3) == "3 " +string.format("%0 -2.6o", 0) == "000000" +string.format("%0 -2.6o", 1) == "000001" +string.format("%0 -2.6o", 2) == "000002" +string.format("%0 -2.6o", 3) == "000003" +string.format("%0 -2.6o", 100) == "000144" +string.format("%0 -2.6o", 10000) == "023420" +string.format("%0 -6o", 0) == "0 " +string.format("%0 -6o", 1) == "1 " +string.format("%0 -6o", 2) == "2 " +string.format("%0 -6o", 3) == "3 " +string.format("%0 -6o", 100) == "144 " +string.format("%0 -6o", 10000) == "23420 " +string.format("%0 -6.0o", 0) == " " +string.format("%0 -6.0o", 1) == "1 " +string.format("%0 -6.0o", 2) == "2 " +string.format("%0 -6.0o", 3) == "3 " +string.format("%0 -6.0o", 100) == "144 " +string.format("%0 -6.0o", 10000) == "23420 " +string.format("%0 -6.1o", 0) == "0 " +string.format("%0 -6.1o", 1) == "1 " +string.format("%0 -6.1o", 2) == "2 " +string.format("%0 -6.1o", 3) == "3 " +string.format("%0 -6.1o", 100) == "144 " +string.format("%0 -6.1o", 10000) == "23420 " +string.format("%0 -6.6o", 0) == "000000" +string.format("%0 -6.6o", 1) == "000001" +string.format("%0 -6.6o", 2) == "000002" +string.format("%0 -6.6o", 3) == "000003" +string.format("%0 -6.6o", 100) == "000144" +string.format("%0 -6.6o", 10000) == "023420" +string.format("%0 -20o", 0) == "0 " +string.format("%0 -20o", 1) == "1 " +string.format("%0 -20o", 2) == "2 " +string.format("%0 -20o", 3) == "3 " +string.format("%0 -20o", 100) == "144 " +string.format("%0 -20o", 10000) == "23420 " +string.format("%0 -20o", 100000) == "303240 " +string.format("%0 -20o", 1000000) == "3641100 " +string.format("%0 -20o", 10000000) == "46113200 " +string.format("%0 -20.0o", 0) == " " +string.format("%0 -20.0o", 1) == "1 " +string.format("%0 -20.0o", 2) == "2 " +string.format("%0 -20.0o", 3) == "3 " +string.format("%0 -20.0o", 100) == "144 " +string.format("%0 -20.0o", 10000) == "23420 " +string.format("%0 -20.0o", 100000) == "303240 " +string.format("%0 -20.0o", 1000000) == "3641100 " +string.format("%0 -20.0o", 10000000) == "46113200 " +string.format("%0 -20.1o", 0) == "0 " +string.format("%0 -20.1o", 1) == "1 " +string.format("%0 -20.1o", 2) == "2 " +string.format("%0 -20.1o", 3) == "3 " +string.format("%0 -20.1o", 100) == "144 " +string.format("%0 -20.1o", 10000) == "23420 " +string.format("%0 -20.1o", 100000) == "303240 " +string.format("%0 -20.1o", 1000000) == "3641100 " +string.format("%0 -20.1o", 10000000) == "46113200 " +string.format("%0 -20.6o", 0) == "000000 " +string.format("%0 -20.6o", 1) == "000001 " +string.format("%0 -20.6o", 2) == "000002 " +string.format("%0 -20.6o", 3) == "000003 " +string.format("%0 -20.6o", 100) == "000144 " +string.format("%0 -20.6o", 10000) == "023420 " +string.format("%0 -20.6o", 100000) == "303240 " +string.format("%0 -20.6o", 1000000) == "3641100 " +string.format("%0 -20.6o", 10000000) == "46113200 " +string.format("%0 -+o", 0) == "0" +string.format("%0 -+o", 1) == "1" +string.format("%0 -+o", -1) == "1777777777777777777777" +string.format("%0 -+o", 2) == "2" +string.format("%0 -+o", -2) == "1777777777777777777776" +string.format("%0 -+o", 3) == "3" +string.format("%0 -+o", -3) == "1777777777777777777775" +string.format("%0 -+o", 100) == "144" +string.format("%0 -+o", 10000) == "23420" +string.format("%0 -+o", 100000) == "303240" +string.format("%0 -+o", 1000000) == "3641100" +string.format("%0 -+o", 10000000) == "46113200" +string.format("%0 -+.0o", 0) == "" +string.format("%0 -+.6o", 0) == "000000" +string.format("%0 -+.6o", 1) == "000001" +string.format("%0 -+.6o", 2) == "000002" +string.format("%0 -+.6o", 3) == "000003" +string.format("%0 -+.6o", 100) == "000144" +string.format("%0 -+.6o", 10000) == "023420" +string.format("%0 -+1.0o", 0) == " " +string.format("%0 -+1.6o", 0) == "000000" +string.format("%0 -+1.6o", 1) == "000001" +string.format("%0 -+1.6o", 2) == "000002" +string.format("%0 -+1.6o", 3) == "000003" +string.format("%0 -+1.6o", 100) == "000144" +string.format("%0 -+1.6o", 10000) == "023420" +string.format("%0 -+2o", 0) == "0 " +string.format("%0 -+2o", 1) == "1 " +string.format("%0 -+2o", 2) == "2 " +string.format("%0 -+2o", 3) == "3 " +string.format("%0 -+2.0o", 0) == " " +string.format("%0 -+2.0o", 1) == "1 " +string.format("%0 -+2.0o", 2) == "2 " +string.format("%0 -+2.0o", 3) == "3 " +string.format("%0 -+2.1o", 0) == "0 " +string.format("%0 -+2.1o", 1) == "1 " +string.format("%0 -+2.1o", 2) == "2 " +string.format("%0 -+2.1o", 3) == "3 " +string.format("%0 -+2.6o", 0) == "000000" +string.format("%0 -+2.6o", 1) == "000001" +string.format("%0 -+2.6o", 2) == "000002" +string.format("%0 -+2.6o", 3) == "000003" +string.format("%0 -+2.6o", 100) == "000144" +string.format("%0 -+2.6o", 10000) == "023420" +string.format("%0 -+6o", 0) == "0 " +string.format("%0 -+6o", 1) == "1 " +string.format("%0 -+6o", 2) == "2 " +string.format("%0 -+6o", 3) == "3 " +string.format("%0 -+6o", 100) == "144 " +string.format("%0 -+6o", 10000) == "23420 " +string.format("%0 -+6.0o", 0) == " " +string.format("%0 -+6.0o", 1) == "1 " +string.format("%0 -+6.0o", 2) == "2 " +string.format("%0 -+6.0o", 3) == "3 " +string.format("%0 -+6.0o", 100) == "144 " +string.format("%0 -+6.0o", 10000) == "23420 " +string.format("%0 -+6.1o", 0) == "0 " +string.format("%0 -+6.1o", 1) == "1 " +string.format("%0 -+6.1o", 2) == "2 " +string.format("%0 -+6.1o", 3) == "3 " +string.format("%0 -+6.1o", 100) == "144 " +string.format("%0 -+6.1o", 10000) == "23420 " +string.format("%0 -+6.6o", 0) == "000000" +string.format("%0 -+6.6o", 1) == "000001" +string.format("%0 -+6.6o", 2) == "000002" +string.format("%0 -+6.6o", 3) == "000003" +string.format("%0 -+6.6o", 100) == "000144" +string.format("%0 -+6.6o", 10000) == "023420" +string.format("%0 -+20o", 0) == "0 " +string.format("%0 -+20o", 1) == "1 " +string.format("%0 -+20o", 2) == "2 " +string.format("%0 -+20o", 3) == "3 " +string.format("%0 -+20o", 100) == "144 " +string.format("%0 -+20o", 10000) == "23420 " +string.format("%0 -+20o", 100000) == "303240 " +string.format("%0 -+20o", 1000000) == "3641100 " +string.format("%0 -+20o", 10000000) == "46113200 " +string.format("%0 -+20.0o", 0) == " " +string.format("%0 -+20.0o", 1) == "1 " +string.format("%0 -+20.0o", 2) == "2 " +string.format("%0 -+20.0o", 3) == "3 " +string.format("%0 -+20.0o", 100) == "144 " +string.format("%0 -+20.0o", 10000) == "23420 " +string.format("%0 -+20.0o", 100000) == "303240 " +string.format("%0 -+20.0o", 1000000) == "3641100 " +string.format("%0 -+20.0o", 10000000) == "46113200 " +string.format("%0 -+20.1o", 0) == "0 " +string.format("%0 -+20.1o", 1) == "1 " +string.format("%0 -+20.1o", 2) == "2 " +string.format("%0 -+20.1o", 3) == "3 " +string.format("%0 -+20.1o", 100) == "144 " +string.format("%0 -+20.1o", 10000) == "23420 " +string.format("%0 -+20.1o", 100000) == "303240 " +string.format("%0 -+20.1o", 1000000) == "3641100 " +string.format("%0 -+20.1o", 10000000) == "46113200 " +string.format("%0 -+20.6o", 0) == "000000 " +string.format("%0 -+20.6o", 1) == "000001 " +string.format("%0 -+20.6o", 2) == "000002 " +string.format("%0 -+20.6o", 3) == "000003 " +string.format("%0 -+20.6o", 100) == "000144 " +string.format("%0 -+20.6o", 10000) == "023420 " +string.format("%0 -+20.6o", 100000) == "303240 " +string.format("%0 -+20.6o", 1000000) == "3641100 " +string.format("%0 -+20.6o", 10000000) == "46113200 " +string.format("%0#o", 0) == "0" +string.format("%0#o", 1) == "01" +string.format("%0#o", -1) == "01777777777777777777777" +string.format("%0#o", 2) == "02" +string.format("%0#o", -2) == "01777777777777777777776" +string.format("%0#o", 3) == "03" +string.format("%0#o", -3) == "01777777777777777777775" +string.format("%0#o", 100) == "0144" +string.format("%0#o", 10000) == "023420" +string.format("%0#o", 100000) == "0303240" +string.format("%0#o", 1000000) == "03641100" +string.format("%0#o", 10000000) == "046113200" +string.format("%0#.6o", 0) == "000000" +string.format("%0#.6o", 1) == "000001" +string.format("%0#.6o", 2) == "000002" +string.format("%0#.6o", 3) == "000003" +string.format("%0#.6o", 100) == "000144" +string.format("%0#1.6o", 0) == "000000" +string.format("%0#1.6o", 1) == "000001" +string.format("%0#1.6o", 2) == "000002" +string.format("%0#1.6o", 3) == "000003" +string.format("%0#1.6o", 100) == "000144" +string.format("%0#2o", 0) == "00" +string.format("%0#2.0o", 0) == " 0" +string.format("%0#2.1o", 0) == " 0" +string.format("%0#2.6o", 0) == "000000" +string.format("%0#2.6o", 1) == "000001" +string.format("%0#2.6o", 2) == "000002" +string.format("%0#2.6o", 3) == "000003" +string.format("%0#2.6o", 100) == "000144" +string.format("%0#6o", 0) == "000000" +string.format("%0#6o", 1) == "000001" +string.format("%0#6o", 2) == "000002" +string.format("%0#6o", 3) == "000003" +string.format("%0#6o", 100) == "000144" +string.format("%0#6.0o", 0) == " 0" +string.format("%0#6.0o", 1) == " 01" +string.format("%0#6.0o", 2) == " 02" +string.format("%0#6.0o", 3) == " 03" +string.format("%0#6.0o", 100) == " 0144" +string.format("%0#6.1o", 0) == " 0" +string.format("%0#6.1o", 1) == " 01" +string.format("%0#6.1o", 2) == " 02" +string.format("%0#6.1o", 3) == " 03" +string.format("%0#6.1o", 100) == " 0144" +string.format("%0#6.6o", 0) == "000000" +string.format("%0#6.6o", 1) == "000001" +string.format("%0#6.6o", 2) == "000002" +string.format("%0#6.6o", 3) == "000003" +string.format("%0#6.6o", 100) == "000144" +string.format("%0#20o", 0) == "00000000000000000000" +string.format("%0#20o", 1) == "00000000000000000001" +string.format("%0#20o", 2) == "00000000000000000002" +string.format("%0#20o", 3) == "00000000000000000003" +string.format("%0#20o", 100) == "00000000000000000144" +string.format("%0#20o", 10000) == "00000000000000023420" +string.format("%0#20o", 100000) == "00000000000000303240" +string.format("%0#20o", 1000000) == "00000000000003641100" +string.format("%0#20o", 10000000) == "00000000000046113200" +string.format("%0#20.0o", 0) == " 0" +string.format("%0#20.0o", 1) == " 01" +string.format("%0#20.0o", 2) == " 02" +string.format("%0#20.0o", 3) == " 03" +string.format("%0#20.0o", 100) == " 0144" +string.format("%0#20.0o", 10000) == " 023420" +string.format("%0#20.0o", 100000) == " 0303240" +string.format("%0#20.0o", 1000000) == " 03641100" +string.format("%0#20.0o", 10000000) == " 046113200" +string.format("%0#20.1o", 0) == " 0" +string.format("%0#20.1o", 1) == " 01" +string.format("%0#20.1o", 2) == " 02" +string.format("%0#20.1o", 3) == " 03" +string.format("%0#20.1o", 100) == " 0144" +string.format("%0#20.1o", 10000) == " 023420" +string.format("%0#20.1o", 100000) == " 0303240" +string.format("%0#20.1o", 1000000) == " 03641100" +string.format("%0#20.1o", 10000000) == " 046113200" +string.format("%0#20.6o", 0) == " 000000" +string.format("%0#20.6o", 1) == " 000001" +string.format("%0#20.6o", 2) == " 000002" +string.format("%0#20.6o", 3) == " 000003" +string.format("%0#20.6o", 100) == " 000144" +string.format("%0#20.6o", 10000) == " 023420" +string.format("%0#20.6o", 100000) == " 0303240" +string.format("%0#20.6o", 1000000) == " 03641100" +string.format("%0#20.6o", 10000000) == " 046113200" +string.format("%0#+o", 0) == "0" +string.format("%0#+o", 1) == "01" +string.format("%0#+o", -1) == "01777777777777777777777" +string.format("%0#+o", 2) == "02" +string.format("%0#+o", -2) == "01777777777777777777776" +string.format("%0#+o", 3) == "03" +string.format("%0#+o", -3) == "01777777777777777777775" +string.format("%0#+o", 100) == "0144" +string.format("%0#+o", 10000) == "023420" +string.format("%0#+o", 100000) == "0303240" +string.format("%0#+o", 1000000) == "03641100" +string.format("%0#+o", 10000000) == "046113200" +string.format("%0#+.6o", 0) == "000000" +string.format("%0#+.6o", 1) == "000001" +string.format("%0#+.6o", 2) == "000002" +string.format("%0#+.6o", 3) == "000003" +string.format("%0#+.6o", 100) == "000144" +string.format("%0#+1.6o", 0) == "000000" +string.format("%0#+1.6o", 1) == "000001" +string.format("%0#+1.6o", 2) == "000002" +string.format("%0#+1.6o", 3) == "000003" +string.format("%0#+1.6o", 100) == "000144" +string.format("%0#+2o", 0) == "00" +string.format("%0#+2.0o", 0) == " 0" +string.format("%0#+2.1o", 0) == " 0" +string.format("%0#+2.6o", 0) == "000000" +string.format("%0#+2.6o", 1) == "000001" +string.format("%0#+2.6o", 2) == "000002" +string.format("%0#+2.6o", 3) == "000003" +string.format("%0#+2.6o", 100) == "000144" +string.format("%0#+6o", 0) == "000000" +string.format("%0#+6o", 1) == "000001" +string.format("%0#+6o", 2) == "000002" +string.format("%0#+6o", 3) == "000003" +string.format("%0#+6o", 100) == "000144" +string.format("%0#+6.0o", 0) == " 0" +string.format("%0#+6.0o", 1) == " 01" +string.format("%0#+6.0o", 2) == " 02" +string.format("%0#+6.0o", 3) == " 03" +string.format("%0#+6.0o", 100) == " 0144" +string.format("%0#+6.1o", 0) == " 0" +string.format("%0#+6.1o", 1) == " 01" +string.format("%0#+6.1o", 2) == " 02" +string.format("%0#+6.1o", 3) == " 03" +string.format("%0#+6.1o", 100) == " 0144" +string.format("%0#+6.6o", 0) == "000000" +string.format("%0#+6.6o", 1) == "000001" +string.format("%0#+6.6o", 2) == "000002" +string.format("%0#+6.6o", 3) == "000003" +string.format("%0#+6.6o", 100) == "000144" +string.format("%0#+20o", 0) == "00000000000000000000" +string.format("%0#+20o", 1) == "00000000000000000001" +string.format("%0#+20o", 2) == "00000000000000000002" +string.format("%0#+20o", 3) == "00000000000000000003" +string.format("%0#+20o", 100) == "00000000000000000144" +string.format("%0#+20o", 10000) == "00000000000000023420" +string.format("%0#+20o", 100000) == "00000000000000303240" +string.format("%0#+20o", 1000000) == "00000000000003641100" +string.format("%0#+20o", 10000000) == "00000000000046113200" +string.format("%0#+20.0o", 0) == " 0" +string.format("%0#+20.0o", 1) == " 01" +string.format("%0#+20.0o", 2) == " 02" +string.format("%0#+20.0o", 3) == " 03" +string.format("%0#+20.0o", 100) == " 0144" +string.format("%0#+20.0o", 10000) == " 023420" +string.format("%0#+20.0o", 100000) == " 0303240" +string.format("%0#+20.0o", 1000000) == " 03641100" +string.format("%0#+20.0o", 10000000) == " 046113200" +string.format("%0#+20.1o", 0) == " 0" +string.format("%0#+20.1o", 1) == " 01" +string.format("%0#+20.1o", 2) == " 02" +string.format("%0#+20.1o", 3) == " 03" +string.format("%0#+20.1o", 100) == " 0144" +string.format("%0#+20.1o", 10000) == " 023420" +string.format("%0#+20.1o", 100000) == " 0303240" +string.format("%0#+20.1o", 1000000) == " 03641100" +string.format("%0#+20.1o", 10000000) == " 046113200" +string.format("%0#+20.6o", 0) == " 000000" +string.format("%0#+20.6o", 1) == " 000001" +string.format("%0#+20.6o", 2) == " 000002" +string.format("%0#+20.6o", 3) == " 000003" +string.format("%0#+20.6o", 100) == " 000144" +string.format("%0#+20.6o", 10000) == " 023420" +string.format("%0#+20.6o", 100000) == " 0303240" +string.format("%0#+20.6o", 1000000) == " 03641100" +string.format("%0#+20.6o", 10000000) == " 046113200" +string.format("%0#-o", 0) == "0" +string.format("%0#-o", 1) == "01" +string.format("%0#-o", -1) == "01777777777777777777777" +string.format("%0#-o", 2) == "02" +string.format("%0#-o", -2) == "01777777777777777777776" +string.format("%0#-o", 3) == "03" +string.format("%0#-o", -3) == "01777777777777777777775" +string.format("%0#-o", 100) == "0144" +string.format("%0#-o", 10000) == "023420" +string.format("%0#-o", 100000) == "0303240" +string.format("%0#-o", 1000000) == "03641100" +string.format("%0#-o", 10000000) == "046113200" +string.format("%0#-.6o", 0) == "000000" +string.format("%0#-.6o", 1) == "000001" +string.format("%0#-.6o", 2) == "000002" +string.format("%0#-.6o", 3) == "000003" +string.format("%0#-.6o", 100) == "000144" +string.format("%0#-1.6o", 0) == "000000" +string.format("%0#-1.6o", 1) == "000001" +string.format("%0#-1.6o", 2) == "000002" +string.format("%0#-1.6o", 3) == "000003" +string.format("%0#-1.6o", 100) == "000144" +string.format("%0#-2o", 0) == "0 " +string.format("%0#-2.0o", 0) == "0 " +string.format("%0#-2.1o", 0) == "0 " +string.format("%0#-2.6o", 0) == "000000" +string.format("%0#-2.6o", 1) == "000001" +string.format("%0#-2.6o", 2) == "000002" +string.format("%0#-2.6o", 3) == "000003" +string.format("%0#-2.6o", 100) == "000144" +string.format("%0#-6o", 0) == "0 " +string.format("%0#-6o", 1) == "01 " +string.format("%0#-6o", 2) == "02 " +string.format("%0#-6o", 3) == "03 " +string.format("%0#-6o", 100) == "0144 " +string.format("%0#-6.0o", 0) == "0 " +string.format("%0#-6.0o", 1) == "01 " +string.format("%0#-6.0o", 2) == "02 " +string.format("%0#-6.0o", 3) == "03 " +string.format("%0#-6.0o", 100) == "0144 " +string.format("%0#-6.1o", 0) == "0 " +string.format("%0#-6.1o", 1) == "01 " +string.format("%0#-6.1o", 2) == "02 " +string.format("%0#-6.1o", 3) == "03 " +string.format("%0#-6.1o", 100) == "0144 " +string.format("%0#-6.6o", 0) == "000000" +string.format("%0#-6.6o", 1) == "000001" +string.format("%0#-6.6o", 2) == "000002" +string.format("%0#-6.6o", 3) == "000003" +string.format("%0#-6.6o", 100) == "000144" +string.format("%0#-20o", 0) == "0 " +string.format("%0#-20o", 1) == "01 " +string.format("%0#-20o", 2) == "02 " +string.format("%0#-20o", 3) == "03 " +string.format("%0#-20o", 100) == "0144 " +string.format("%0#-20o", 10000) == "023420 " +string.format("%0#-20o", 100000) == "0303240 " +string.format("%0#-20o", 1000000) == "03641100 " +string.format("%0#-20o", 10000000) == "046113200 " +string.format("%0#-20.0o", 0) == "0 " +string.format("%0#-20.0o", 1) == "01 " +string.format("%0#-20.0o", 2) == "02 " +string.format("%0#-20.0o", 3) == "03 " +string.format("%0#-20.0o", 100) == "0144 " +string.format("%0#-20.0o", 10000) == "023420 " +string.format("%0#-20.0o", 100000) == "0303240 " +string.format("%0#-20.0o", 1000000) == "03641100 " +string.format("%0#-20.0o", 10000000) == "046113200 " +string.format("%0#-20.1o", 0) == "0 " +string.format("%0#-20.1o", 1) == "01 " +string.format("%0#-20.1o", 2) == "02 " +string.format("%0#-20.1o", 3) == "03 " +string.format("%0#-20.1o", 100) == "0144 " +string.format("%0#-20.1o", 10000) == "023420 " +string.format("%0#-20.1o", 100000) == "0303240 " +string.format("%0#-20.1o", 1000000) == "03641100 " +string.format("%0#-20.1o", 10000000) == "046113200 " +string.format("%0#-20.6o", 0) == "000000 " +string.format("%0#-20.6o", 1) == "000001 " +string.format("%0#-20.6o", 2) == "000002 " +string.format("%0#-20.6o", 3) == "000003 " +string.format("%0#-20.6o", 100) == "000144 " +string.format("%0#-20.6o", 10000) == "023420 " +string.format("%0#-20.6o", 100000) == "0303240 " +string.format("%0#-20.6o", 1000000) == "03641100 " +string.format("%0#-20.6o", 10000000) == "046113200 " +string.format("%0#-+o", 0) == "0" +string.format("%0#-+o", 1) == "01" +string.format("%0#-+o", -1) == "01777777777777777777777" +string.format("%0#-+o", 2) == "02" +string.format("%0#-+o", -2) == "01777777777777777777776" +string.format("%0#-+o", 3) == "03" +string.format("%0#-+o", -3) == "01777777777777777777775" +string.format("%0#-+o", 100) == "0144" +string.format("%0#-+o", 10000) == "023420" +string.format("%0#-+o", 100000) == "0303240" +string.format("%0#-+o", 1000000) == "03641100" +string.format("%0#-+o", 10000000) == "046113200" +string.format("%0#-+.6o", 0) == "000000" +string.format("%0#-+.6o", 1) == "000001" +string.format("%0#-+.6o", 2) == "000002" +string.format("%0#-+.6o", 3) == "000003" +string.format("%0#-+.6o", 100) == "000144" +string.format("%0#-+1.6o", 0) == "000000" +string.format("%0#-+1.6o", 1) == "000001" +string.format("%0#-+1.6o", 2) == "000002" +string.format("%0#-+1.6o", 3) == "000003" +string.format("%0#-+1.6o", 100) == "000144" +string.format("%0#-+2o", 0) == "0 " +string.format("%0#-+2.0o", 0) == "0 " +string.format("%0#-+2.1o", 0) == "0 " +string.format("%0#-+2.6o", 0) == "000000" +string.format("%0#-+2.6o", 1) == "000001" +string.format("%0#-+2.6o", 2) == "000002" +string.format("%0#-+2.6o", 3) == "000003" +string.format("%0#-+2.6o", 100) == "000144" +string.format("%0#-+6o", 0) == "0 " +string.format("%0#-+6o", 1) == "01 " +string.format("%0#-+6o", 2) == "02 " +string.format("%0#-+6o", 3) == "03 " +string.format("%0#-+6o", 100) == "0144 " +string.format("%0#-+6.0o", 0) == "0 " +string.format("%0#-+6.0o", 1) == "01 " +string.format("%0#-+6.0o", 2) == "02 " +string.format("%0#-+6.0o", 3) == "03 " +string.format("%0#-+6.0o", 100) == "0144 " +string.format("%0#-+6.1o", 0) == "0 " +string.format("%0#-+6.1o", 1) == "01 " +string.format("%0#-+6.1o", 2) == "02 " +string.format("%0#-+6.1o", 3) == "03 " +string.format("%0#-+6.1o", 100) == "0144 " +string.format("%0#-+6.6o", 0) == "000000" +string.format("%0#-+6.6o", 1) == "000001" +string.format("%0#-+6.6o", 2) == "000002" +string.format("%0#-+6.6o", 3) == "000003" +string.format("%0#-+6.6o", 100) == "000144" +string.format("%0#-+20o", 0) == "0 " +string.format("%0#-+20o", 1) == "01 " +string.format("%0#-+20o", 2) == "02 " +string.format("%0#-+20o", 3) == "03 " +string.format("%0#-+20o", 100) == "0144 " +string.format("%0#-+20o", 10000) == "023420 " +string.format("%0#-+20o", 100000) == "0303240 " +string.format("%0#-+20o", 1000000) == "03641100 " +string.format("%0#-+20o", 10000000) == "046113200 " +string.format("%0#-+20.0o", 0) == "0 " +string.format("%0#-+20.0o", 1) == "01 " +string.format("%0#-+20.0o", 2) == "02 " +string.format("%0#-+20.0o", 3) == "03 " +string.format("%0#-+20.0o", 100) == "0144 " +string.format("%0#-+20.0o", 10000) == "023420 " +string.format("%0#-+20.0o", 100000) == "0303240 " +string.format("%0#-+20.0o", 1000000) == "03641100 " +string.format("%0#-+20.0o", 10000000) == "046113200 " +string.format("%0#-+20.1o", 0) == "0 " +string.format("%0#-+20.1o", 1) == "01 " +string.format("%0#-+20.1o", 2) == "02 " +string.format("%0#-+20.1o", 3) == "03 " +string.format("%0#-+20.1o", 100) == "0144 " +string.format("%0#-+20.1o", 10000) == "023420 " +string.format("%0#-+20.1o", 100000) == "0303240 " +string.format("%0#-+20.1o", 1000000) == "03641100 " +string.format("%0#-+20.1o", 10000000) == "046113200 " +string.format("%0#-+20.6o", 0) == "000000 " +string.format("%0#-+20.6o", 1) == "000001 " +string.format("%0#-+20.6o", 2) == "000002 " +string.format("%0#-+20.6o", 3) == "000003 " +string.format("%0#-+20.6o", 100) == "000144 " +string.format("%0#-+20.6o", 10000) == "023420 " +string.format("%0#-+20.6o", 100000) == "0303240 " +string.format("%0#-+20.6o", 1000000) == "03641100 " +string.format("%0#-+20.6o", 10000000) == "046113200 " +string.format("%0# o", 0) == "0" +string.format("%0# o", 1) == "01" +string.format("%0# o", -1) == "01777777777777777777777" +string.format("%0# o", 2) == "02" +string.format("%0# o", -2) == "01777777777777777777776" +string.format("%0# o", 3) == "03" +string.format("%0# o", -3) == "01777777777777777777775" +string.format("%0# o", 100) == "0144" +string.format("%0# o", 10000) == "023420" +string.format("%0# o", 100000) == "0303240" +string.format("%0# o", 1000000) == "03641100" +string.format("%0# o", 10000000) == "046113200" +string.format("%0# .6o", 0) == "000000" +string.format("%0# .6o", 1) == "000001" +string.format("%0# .6o", 2) == "000002" +string.format("%0# .6o", 3) == "000003" +string.format("%0# .6o", 100) == "000144" +string.format("%0# 1.6o", 0) == "000000" +string.format("%0# 1.6o", 1) == "000001" +string.format("%0# 1.6o", 2) == "000002" +string.format("%0# 1.6o", 3) == "000003" +string.format("%0# 1.6o", 100) == "000144" +string.format("%0# 2o", 0) == "00" +string.format("%0# 2.0o", 0) == " 0" +string.format("%0# 2.1o", 0) == " 0" +string.format("%0# 2.6o", 0) == "000000" +string.format("%0# 2.6o", 1) == "000001" +string.format("%0# 2.6o", 2) == "000002" +string.format("%0# 2.6o", 3) == "000003" +string.format("%0# 2.6o", 100) == "000144" +string.format("%0# 6o", 0) == "000000" +string.format("%0# 6o", 1) == "000001" +string.format("%0# 6o", 2) == "000002" +string.format("%0# 6o", 3) == "000003" +string.format("%0# 6o", 100) == "000144" +string.format("%0# 6.0o", 0) == " 0" +string.format("%0# 6.0o", 1) == " 01" +string.format("%0# 6.0o", 2) == " 02" +string.format("%0# 6.0o", 3) == " 03" +string.format("%0# 6.0o", 100) == " 0144" +string.format("%0# 6.1o", 0) == " 0" +string.format("%0# 6.1o", 1) == " 01" +string.format("%0# 6.1o", 2) == " 02" +string.format("%0# 6.1o", 3) == " 03" +string.format("%0# 6.1o", 100) == " 0144" +string.format("%0# 6.6o", 0) == "000000" +string.format("%0# 6.6o", 1) == "000001" +string.format("%0# 6.6o", 2) == "000002" +string.format("%0# 6.6o", 3) == "000003" +string.format("%0# 6.6o", 100) == "000144" +string.format("%0# 20o", 0) == "00000000000000000000" +string.format("%0# 20o", 1) == "00000000000000000001" +string.format("%0# 20o", 2) == "00000000000000000002" +string.format("%0# 20o", 3) == "00000000000000000003" +string.format("%0# 20o", 100) == "00000000000000000144" +string.format("%0# 20o", 10000) == "00000000000000023420" +string.format("%0# 20o", 100000) == "00000000000000303240" +string.format("%0# 20o", 1000000) == "00000000000003641100" +string.format("%0# 20o", 10000000) == "00000000000046113200" +string.format("%0# 20.0o", 0) == " 0" +string.format("%0# 20.0o", 1) == " 01" +string.format("%0# 20.0o", 2) == " 02" +string.format("%0# 20.0o", 3) == " 03" +string.format("%0# 20.0o", 100) == " 0144" +string.format("%0# 20.0o", 10000) == " 023420" +string.format("%0# 20.0o", 100000) == " 0303240" +string.format("%0# 20.0o", 1000000) == " 03641100" +string.format("%0# 20.0o", 10000000) == " 046113200" +string.format("%0# 20.1o", 0) == " 0" +string.format("%0# 20.1o", 1) == " 01" +string.format("%0# 20.1o", 2) == " 02" +string.format("%0# 20.1o", 3) == " 03" +string.format("%0# 20.1o", 100) == " 0144" +string.format("%0# 20.1o", 10000) == " 023420" +string.format("%0# 20.1o", 100000) == " 0303240" +string.format("%0# 20.1o", 1000000) == " 03641100" +string.format("%0# 20.1o", 10000000) == " 046113200" +string.format("%0# 20.6o", 0) == " 000000" +string.format("%0# 20.6o", 1) == " 000001" +string.format("%0# 20.6o", 2) == " 000002" +string.format("%0# 20.6o", 3) == " 000003" +string.format("%0# 20.6o", 100) == " 000144" +string.format("%0# 20.6o", 10000) == " 023420" +string.format("%0# 20.6o", 100000) == " 0303240" +string.format("%0# 20.6o", 1000000) == " 03641100" +string.format("%0# 20.6o", 10000000) == " 046113200" +string.format("%0# +o", 0) == "0" +string.format("%0# +o", 1) == "01" +string.format("%0# +o", -1) == "01777777777777777777777" +string.format("%0# +o", 2) == "02" +string.format("%0# +o", -2) == "01777777777777777777776" +string.format("%0# +o", 3) == "03" +string.format("%0# +o", -3) == "01777777777777777777775" +string.format("%0# +o", 100) == "0144" +string.format("%0# +o", 10000) == "023420" +string.format("%0# +o", 100000) == "0303240" +string.format("%0# +o", 1000000) == "03641100" +string.format("%0# +o", 10000000) == "046113200" +string.format("%0# +.6o", 0) == "000000" +string.format("%0# +.6o", 1) == "000001" +string.format("%0# +.6o", 2) == "000002" +string.format("%0# +.6o", 3) == "000003" +string.format("%0# +.6o", 100) == "000144" +string.format("%0# +1.6o", 0) == "000000" +string.format("%0# +1.6o", 1) == "000001" +string.format("%0# +1.6o", 2) == "000002" +string.format("%0# +1.6o", 3) == "000003" +string.format("%0# +1.6o", 100) == "000144" +string.format("%0# +2o", 0) == "00" +string.format("%0# +2.0o", 0) == " 0" +string.format("%0# +2.1o", 0) == " 0" +string.format("%0# +2.6o", 0) == "000000" +string.format("%0# +2.6o", 1) == "000001" +string.format("%0# +2.6o", 2) == "000002" +string.format("%0# +2.6o", 3) == "000003" +string.format("%0# +2.6o", 100) == "000144" +string.format("%0# +6o", 0) == "000000" +string.format("%0# +6o", 1) == "000001" +string.format("%0# +6o", 2) == "000002" +string.format("%0# +6o", 3) == "000003" +string.format("%0# +6o", 100) == "000144" +string.format("%0# +6.0o", 0) == " 0" +string.format("%0# +6.0o", 1) == " 01" +string.format("%0# +6.0o", 2) == " 02" +string.format("%0# +6.0o", 3) == " 03" +string.format("%0# +6.0o", 100) == " 0144" +string.format("%0# +6.1o", 0) == " 0" +string.format("%0# +6.1o", 1) == " 01" +string.format("%0# +6.1o", 2) == " 02" +string.format("%0# +6.1o", 3) == " 03" +string.format("%0# +6.1o", 100) == " 0144" +string.format("%0# +6.6o", 0) == "000000" +string.format("%0# +6.6o", 1) == "000001" +string.format("%0# +6.6o", 2) == "000002" +string.format("%0# +6.6o", 3) == "000003" +string.format("%0# +6.6o", 100) == "000144" +string.format("%0# +20o", 0) == "00000000000000000000" +string.format("%0# +20o", 1) == "00000000000000000001" +string.format("%0# +20o", 2) == "00000000000000000002" +string.format("%0# +20o", 3) == "00000000000000000003" +string.format("%0# +20o", 100) == "00000000000000000144" +string.format("%0# +20o", 10000) == "00000000000000023420" +string.format("%0# +20o", 100000) == "00000000000000303240" +string.format("%0# +20o", 1000000) == "00000000000003641100" +string.format("%0# +20o", 10000000) == "00000000000046113200" +string.format("%0# +20.0o", 0) == " 0" +string.format("%0# +20.0o", 1) == " 01" +string.format("%0# +20.0o", 2) == " 02" +string.format("%0# +20.0o", 3) == " 03" +string.format("%0# +20.0o", 100) == " 0144" +string.format("%0# +20.0o", 10000) == " 023420" +string.format("%0# +20.0o", 100000) == " 0303240" +string.format("%0# +20.0o", 1000000) == " 03641100" +string.format("%0# +20.0o", 10000000) == " 046113200" +string.format("%0# +20.1o", 0) == " 0" +string.format("%0# +20.1o", 1) == " 01" +string.format("%0# +20.1o", 2) == " 02" +string.format("%0# +20.1o", 3) == " 03" +string.format("%0# +20.1o", 100) == " 0144" +string.format("%0# +20.1o", 10000) == " 023420" +string.format("%0# +20.1o", 100000) == " 0303240" +string.format("%0# +20.1o", 1000000) == " 03641100" +string.format("%0# +20.1o", 10000000) == " 046113200" +string.format("%0# +20.6o", 0) == " 000000" +string.format("%0# +20.6o", 1) == " 000001" +string.format("%0# +20.6o", 2) == " 000002" +string.format("%0# +20.6o", 3) == " 000003" +string.format("%0# +20.6o", 100) == " 000144" +string.format("%0# +20.6o", 10000) == " 023420" +string.format("%0# +20.6o", 100000) == " 0303240" +string.format("%0# +20.6o", 1000000) == " 03641100" +string.format("%0# +20.6o", 10000000) == " 046113200" +string.format("%0# -o", 0) == "0" +string.format("%0# -o", 1) == "01" +string.format("%0# -o", -1) == "01777777777777777777777" +string.format("%0# -o", 2) == "02" +string.format("%0# -o", -2) == "01777777777777777777776" +string.format("%0# -o", 3) == "03" +string.format("%0# -o", -3) == "01777777777777777777775" +string.format("%0# -o", 100) == "0144" +string.format("%0# -o", 10000) == "023420" +string.format("%0# -o", 100000) == "0303240" +string.format("%0# -o", 1000000) == "03641100" +string.format("%0# -o", 10000000) == "046113200" +string.format("%0# -.6o", 0) == "000000" +string.format("%0# -.6o", 1) == "000001" +string.format("%0# -.6o", 2) == "000002" +string.format("%0# -.6o", 3) == "000003" +string.format("%0# -.6o", 100) == "000144" +string.format("%0# -1.6o", 0) == "000000" +string.format("%0# -1.6o", 1) == "000001" +string.format("%0# -1.6o", 2) == "000002" +string.format("%0# -1.6o", 3) == "000003" +string.format("%0# -1.6o", 100) == "000144" +string.format("%0# -2o", 0) == "0 " +string.format("%0# -2.0o", 0) == "0 " +string.format("%0# -2.1o", 0) == "0 " +string.format("%0# -2.6o", 0) == "000000" +string.format("%0# -2.6o", 1) == "000001" +string.format("%0# -2.6o", 2) == "000002" +string.format("%0# -2.6o", 3) == "000003" +string.format("%0# -2.6o", 100) == "000144" +string.format("%0# -6o", 0) == "0 " +string.format("%0# -6o", 1) == "01 " +string.format("%0# -6o", 2) == "02 " +string.format("%0# -6o", 3) == "03 " +string.format("%0# -6o", 100) == "0144 " +string.format("%0# -6.0o", 0) == "0 " +string.format("%0# -6.0o", 1) == "01 " +string.format("%0# -6.0o", 2) == "02 " +string.format("%0# -6.0o", 3) == "03 " +string.format("%0# -6.0o", 100) == "0144 " +string.format("%0# -6.1o", 0) == "0 " +string.format("%0# -6.1o", 1) == "01 " +string.format("%0# -6.1o", 2) == "02 " +string.format("%0# -6.1o", 3) == "03 " +string.format("%0# -6.1o", 100) == "0144 " +string.format("%0# -6.6o", 0) == "000000" +string.format("%0# -6.6o", 1) == "000001" +string.format("%0# -6.6o", 2) == "000002" +string.format("%0# -6.6o", 3) == "000003" +string.format("%0# -6.6o", 100) == "000144" +string.format("%0# -20o", 0) == "0 " +string.format("%0# -20o", 1) == "01 " +string.format("%0# -20o", 2) == "02 " +string.format("%0# -20o", 3) == "03 " +string.format("%0# -20o", 100) == "0144 " +string.format("%0# -20o", 10000) == "023420 " +string.format("%0# -20o", 100000) == "0303240 " +string.format("%0# -20o", 1000000) == "03641100 " +string.format("%0# -20o", 10000000) == "046113200 " +string.format("%0# -20.0o", 0) == "0 " +string.format("%0# -20.0o", 1) == "01 " +string.format("%0# -20.0o", 2) == "02 " +string.format("%0# -20.0o", 3) == "03 " +string.format("%0# -20.0o", 100) == "0144 " +string.format("%0# -20.0o", 10000) == "023420 " +string.format("%0# -20.0o", 100000) == "0303240 " +string.format("%0# -20.0o", 1000000) == "03641100 " +string.format("%0# -20.0o", 10000000) == "046113200 " +string.format("%0# -20.1o", 0) == "0 " +string.format("%0# -20.1o", 1) == "01 " +string.format("%0# -20.1o", 2) == "02 " +string.format("%0# -20.1o", 3) == "03 " +string.format("%0# -20.1o", 100) == "0144 " +string.format("%0# -20.1o", 10000) == "023420 " +string.format("%0# -20.1o", 100000) == "0303240 " +string.format("%0# -20.1o", 1000000) == "03641100 " +string.format("%0# -20.1o", 10000000) == "046113200 " +string.format("%0# -20.6o", 0) == "000000 " +string.format("%0# -20.6o", 1) == "000001 " +string.format("%0# -20.6o", 2) == "000002 " +string.format("%0# -20.6o", 3) == "000003 " +string.format("%0# -20.6o", 100) == "000144 " +string.format("%0# -20.6o", 10000) == "023420 " +string.format("%0# -20.6o", 100000) == "0303240 " +string.format("%0# -20.6o", 1000000) == "03641100 " +string.format("%0# -20.6o", 10000000) == "046113200 " +string.format("%0# -+o", 0) == "0" +string.format("%0# -+o", 1) == "01" +string.format("%0# -+o", -1) == "01777777777777777777777" +string.format("%0# -+o", 2) == "02" +string.format("%0# -+o", -2) == "01777777777777777777776" +string.format("%0# -+o", 3) == "03" +string.format("%0# -+o", -3) == "01777777777777777777775" +string.format("%0# -+o", 100) == "0144" +string.format("%0# -+o", 10000) == "023420" +string.format("%0# -+o", 100000) == "0303240" +string.format("%0# -+o", 1000000) == "03641100" +string.format("%0# -+o", 10000000) == "046113200" +string.format("%0# -+.6o", 0) == "000000" +string.format("%0# -+.6o", 1) == "000001" +string.format("%0# -+.6o", 2) == "000002" +string.format("%0# -+.6o", 3) == "000003" +string.format("%0# -+.6o", 100) == "000144" +string.format("%0# -+1.6o", 0) == "000000" +string.format("%0# -+1.6o", 1) == "000001" +string.format("%0# -+1.6o", 2) == "000002" +string.format("%0# -+1.6o", 3) == "000003" +string.format("%0# -+1.6o", 100) == "000144" +string.format("%0# -+2o", 0) == "0 " +string.format("%0# -+2.0o", 0) == "0 " +string.format("%0# -+2.1o", 0) == "0 " +string.format("%0# -+2.6o", 0) == "000000" +string.format("%0# -+2.6o", 1) == "000001" +string.format("%0# -+2.6o", 2) == "000002" +string.format("%0# -+2.6o", 3) == "000003" +string.format("%0# -+2.6o", 100) == "000144" +string.format("%0# -+6o", 0) == "0 " +string.format("%0# -+6o", 1) == "01 " +string.format("%0# -+6o", 2) == "02 " +string.format("%0# -+6o", 3) == "03 " +string.format("%0# -+6o", 100) == "0144 " +string.format("%0# -+6.0o", 0) == "0 " +string.format("%0# -+6.0o", 1) == "01 " +string.format("%0# -+6.0o", 2) == "02 " +string.format("%0# -+6.0o", 3) == "03 " +string.format("%0# -+6.0o", 100) == "0144 " +string.format("%0# -+6.1o", 0) == "0 " +string.format("%0# -+6.1o", 1) == "01 " +string.format("%0# -+6.1o", 2) == "02 " +string.format("%0# -+6.1o", 3) == "03 " +string.format("%0# -+6.1o", 100) == "0144 " +string.format("%0# -+6.6o", 0) == "000000" +string.format("%0# -+6.6o", 1) == "000001" +string.format("%0# -+6.6o", 2) == "000002" +string.format("%0# -+6.6o", 3) == "000003" +string.format("%0# -+6.6o", 100) == "000144" +string.format("%0# -+20o", 0) == "0 " +string.format("%0# -+20o", 1) == "01 " +string.format("%0# -+20o", 2) == "02 " +string.format("%0# -+20o", 3) == "03 " +string.format("%0# -+20o", 100) == "0144 " +string.format("%0# -+20o", 10000) == "023420 " +string.format("%0# -+20o", 100000) == "0303240 " +string.format("%0# -+20o", 1000000) == "03641100 " +string.format("%0# -+20o", 10000000) == "046113200 " +string.format("%0# -+20.0o", 0) == "0 " +string.format("%0# -+20.0o", 1) == "01 " +string.format("%0# -+20.0o", 2) == "02 " +string.format("%0# -+20.0o", 3) == "03 " +string.format("%0# -+20.0o", 100) == "0144 " +string.format("%0# -+20.0o", 10000) == "023420 " +string.format("%0# -+20.0o", 100000) == "0303240 " +string.format("%0# -+20.0o", 1000000) == "03641100 " +string.format("%0# -+20.0o", 10000000) == "046113200 " +string.format("%0# -+20.1o", 0) == "0 " +string.format("%0# -+20.1o", 1) == "01 " +string.format("%0# -+20.1o", 2) == "02 " +string.format("%0# -+20.1o", 3) == "03 " +string.format("%0# -+20.1o", 100) == "0144 " +string.format("%0# -+20.1o", 10000) == "023420 " +string.format("%0# -+20.1o", 100000) == "0303240 " +string.format("%0# -+20.1o", 1000000) == "03641100 " +string.format("%0# -+20.1o", 10000000) == "046113200 " +string.format("%0# -+20.6o", 0) == "000000 " +string.format("%0# -+20.6o", 1) == "000001 " +string.format("%0# -+20.6o", 2) == "000002 " +string.format("%0# -+20.6o", 3) == "000003 " +string.format("%0# -+20.6o", 100) == "000144 " +string.format("%0# -+20.6o", 10000) == "023420 " +string.format("%0# -+20.6o", 100000) == "0303240 " +string.format("%0# -+20.6o", 1000000) == "03641100 " +string.format("%0# -+20.6o", 10000000) == "046113200 " += u = +string.format("%u", 0) == "0" +string.format("%u", 1) == "1" +string.format("%u", -1) == "18446744073709551615" +string.format("%u", 2) == "2" +string.format("%u", -2) == "18446744073709551614" +string.format("%u", 3) == "3" +string.format("%u", -3) == "18446744073709551613" +string.format("%u", 100) == "100" +string.format("%u", 10000) == "10000" +string.format("%u", 100000) == "100000" +string.format("%u", 1000000) == "1000000" +string.format("%u", 10000000) == "10000000" +string.format("%.0u", 0) == "" +string.format("%.6u", 0) == "000000" +string.format("%.6u", 1) == "000001" +string.format("%.6u", 2) == "000002" +string.format("%.6u", 3) == "000003" +string.format("%.6u", 100) == "000100" +string.format("%.6u", 10000) == "010000" +string.format("%1.0u", 0) == " " +string.format("%1.6u", 0) == "000000" +string.format("%1.6u", 1) == "000001" +string.format("%1.6u", 2) == "000002" +string.format("%1.6u", 3) == "000003" +string.format("%1.6u", 100) == "000100" +string.format("%1.6u", 10000) == "010000" +string.format("%2u", 0) == " 0" +string.format("%2u", 1) == " 1" +string.format("%2u", 2) == " 2" +string.format("%2u", 3) == " 3" +string.format("%2.0u", 0) == " " +string.format("%2.0u", 1) == " 1" +string.format("%2.0u", 2) == " 2" +string.format("%2.0u", 3) == " 3" +string.format("%2.1u", 0) == " 0" +string.format("%2.1u", 1) == " 1" +string.format("%2.1u", 2) == " 2" +string.format("%2.1u", 3) == " 3" +string.format("%2.6u", 0) == "000000" +string.format("%2.6u", 1) == "000001" +string.format("%2.6u", 2) == "000002" +string.format("%2.6u", 3) == "000003" +string.format("%2.6u", 100) == "000100" +string.format("%2.6u", 10000) == "010000" +string.format("%6u", 0) == " 0" +string.format("%6u", 1) == " 1" +string.format("%6u", 2) == " 2" +string.format("%6u", 3) == " 3" +string.format("%6u", 100) == " 100" +string.format("%6u", 10000) == " 10000" +string.format("%6.0u", 0) == " " +string.format("%6.0u", 1) == " 1" +string.format("%6.0u", 2) == " 2" +string.format("%6.0u", 3) == " 3" +string.format("%6.0u", 100) == " 100" +string.format("%6.0u", 10000) == " 10000" +string.format("%6.1u", 0) == " 0" +string.format("%6.1u", 1) == " 1" +string.format("%6.1u", 2) == " 2" +string.format("%6.1u", 3) == " 3" +string.format("%6.1u", 100) == " 100" +string.format("%6.1u", 10000) == " 10000" +string.format("%6.6u", 0) == "000000" +string.format("%6.6u", 1) == "000001" +string.format("%6.6u", 2) == "000002" +string.format("%6.6u", 3) == "000003" +string.format("%6.6u", 100) == "000100" +string.format("%6.6u", 10000) == "010000" +string.format("%20u", 0) == " 0" +string.format("%20u", 1) == " 1" +string.format("%20u", 2) == " 2" +string.format("%20u", 3) == " 3" +string.format("%20u", 100) == " 100" +string.format("%20u", 10000) == " 10000" +string.format("%20u", 100000) == " 100000" +string.format("%20u", 1000000) == " 1000000" +string.format("%20u", 10000000) == " 10000000" +string.format("%20.0u", 0) == " " +string.format("%20.0u", 1) == " 1" +string.format("%20.0u", 2) == " 2" +string.format("%20.0u", 3) == " 3" +string.format("%20.0u", 100) == " 100" +string.format("%20.0u", 10000) == " 10000" +string.format("%20.0u", 100000) == " 100000" +string.format("%20.0u", 1000000) == " 1000000" +string.format("%20.0u", 10000000) == " 10000000" +string.format("%20.1u", 0) == " 0" +string.format("%20.1u", 1) == " 1" +string.format("%20.1u", 2) == " 2" +string.format("%20.1u", 3) == " 3" +string.format("%20.1u", 100) == " 100" +string.format("%20.1u", 10000) == " 10000" +string.format("%20.1u", 100000) == " 100000" +string.format("%20.1u", 1000000) == " 1000000" +string.format("%20.1u", 10000000) == " 10000000" +string.format("%20.6u", 0) == " 000000" +string.format("%20.6u", 1) == " 000001" +string.format("%20.6u", 2) == " 000002" +string.format("%20.6u", 3) == " 000003" +string.format("%20.6u", 100) == " 000100" +string.format("%20.6u", 10000) == " 010000" +string.format("%20.6u", 100000) == " 100000" +string.format("%20.6u", 1000000) == " 1000000" +string.format("%20.6u", 10000000) == " 10000000" +string.format("%+u", 0) == "0" +string.format("%+u", 1) == "1" +string.format("%+u", -1) == "18446744073709551615" +string.format("%+u", 2) == "2" +string.format("%+u", -2) == "18446744073709551614" +string.format("%+u", 3) == "3" +string.format("%+u", -3) == "18446744073709551613" +string.format("%+u", 100) == "100" +string.format("%+u", 10000) == "10000" +string.format("%+u", 100000) == "100000" +string.format("%+u", 1000000) == "1000000" +string.format("%+u", 10000000) == "10000000" +string.format("%+.0u", 0) == "" +string.format("%+.6u", 0) == "000000" +string.format("%+.6u", 1) == "000001" +string.format("%+.6u", 2) == "000002" +string.format("%+.6u", 3) == "000003" +string.format("%+.6u", 100) == "000100" +string.format("%+.6u", 10000) == "010000" +string.format("%+1.0u", 0) == " " +string.format("%+1.6u", 0) == "000000" +string.format("%+1.6u", 1) == "000001" +string.format("%+1.6u", 2) == "000002" +string.format("%+1.6u", 3) == "000003" +string.format("%+1.6u", 100) == "000100" +string.format("%+1.6u", 10000) == "010000" +string.format("%+2u", 0) == " 0" +string.format("%+2u", 1) == " 1" +string.format("%+2u", 2) == " 2" +string.format("%+2u", 3) == " 3" +string.format("%+2.0u", 0) == " " +string.format("%+2.0u", 1) == " 1" +string.format("%+2.0u", 2) == " 2" +string.format("%+2.0u", 3) == " 3" +string.format("%+2.1u", 0) == " 0" +string.format("%+2.1u", 1) == " 1" +string.format("%+2.1u", 2) == " 2" +string.format("%+2.1u", 3) == " 3" +string.format("%+2.6u", 0) == "000000" +string.format("%+2.6u", 1) == "000001" +string.format("%+2.6u", 2) == "000002" +string.format("%+2.6u", 3) == "000003" +string.format("%+2.6u", 100) == "000100" +string.format("%+2.6u", 10000) == "010000" +string.format("%+6u", 0) == " 0" +string.format("%+6u", 1) == " 1" +string.format("%+6u", 2) == " 2" +string.format("%+6u", 3) == " 3" +string.format("%+6u", 100) == " 100" +string.format("%+6u", 10000) == " 10000" +string.format("%+6.0u", 0) == " " +string.format("%+6.0u", 1) == " 1" +string.format("%+6.0u", 2) == " 2" +string.format("%+6.0u", 3) == " 3" +string.format("%+6.0u", 100) == " 100" +string.format("%+6.0u", 10000) == " 10000" +string.format("%+6.1u", 0) == " 0" +string.format("%+6.1u", 1) == " 1" +string.format("%+6.1u", 2) == " 2" +string.format("%+6.1u", 3) == " 3" +string.format("%+6.1u", 100) == " 100" +string.format("%+6.1u", 10000) == " 10000" +string.format("%+6.6u", 0) == "000000" +string.format("%+6.6u", 1) == "000001" +string.format("%+6.6u", 2) == "000002" +string.format("%+6.6u", 3) == "000003" +string.format("%+6.6u", 100) == "000100" +string.format("%+6.6u", 10000) == "010000" +string.format("%+20u", 0) == " 0" +string.format("%+20u", 1) == " 1" +string.format("%+20u", 2) == " 2" +string.format("%+20u", 3) == " 3" +string.format("%+20u", 100) == " 100" +string.format("%+20u", 10000) == " 10000" +string.format("%+20u", 100000) == " 100000" +string.format("%+20u", 1000000) == " 1000000" +string.format("%+20u", 10000000) == " 10000000" +string.format("%+20.0u", 0) == " " +string.format("%+20.0u", 1) == " 1" +string.format("%+20.0u", 2) == " 2" +string.format("%+20.0u", 3) == " 3" +string.format("%+20.0u", 100) == " 100" +string.format("%+20.0u", 10000) == " 10000" +string.format("%+20.0u", 100000) == " 100000" +string.format("%+20.0u", 1000000) == " 1000000" +string.format("%+20.0u", 10000000) == " 10000000" +string.format("%+20.1u", 0) == " 0" +string.format("%+20.1u", 1) == " 1" +string.format("%+20.1u", 2) == " 2" +string.format("%+20.1u", 3) == " 3" +string.format("%+20.1u", 100) == " 100" +string.format("%+20.1u", 10000) == " 10000" +string.format("%+20.1u", 100000) == " 100000" +string.format("%+20.1u", 1000000) == " 1000000" +string.format("%+20.1u", 10000000) == " 10000000" +string.format("%+20.6u", 0) == " 000000" +string.format("%+20.6u", 1) == " 000001" +string.format("%+20.6u", 2) == " 000002" +string.format("%+20.6u", 3) == " 000003" +string.format("%+20.6u", 100) == " 000100" +string.format("%+20.6u", 10000) == " 010000" +string.format("%+20.6u", 100000) == " 100000" +string.format("%+20.6u", 1000000) == " 1000000" +string.format("%+20.6u", 10000000) == " 10000000" +string.format("%-u", 0) == "0" +string.format("%-u", 1) == "1" +string.format("%-u", -1) == "18446744073709551615" +string.format("%-u", 2) == "2" +string.format("%-u", -2) == "18446744073709551614" +string.format("%-u", 3) == "3" +string.format("%-u", -3) == "18446744073709551613" +string.format("%-u", 100) == "100" +string.format("%-u", 10000) == "10000" +string.format("%-u", 100000) == "100000" +string.format("%-u", 1000000) == "1000000" +string.format("%-u", 10000000) == "10000000" +string.format("%-.0u", 0) == "" +string.format("%-.6u", 0) == "000000" +string.format("%-.6u", 1) == "000001" +string.format("%-.6u", 2) == "000002" +string.format("%-.6u", 3) == "000003" +string.format("%-.6u", 100) == "000100" +string.format("%-.6u", 10000) == "010000" +string.format("%-1.0u", 0) == " " +string.format("%-1.6u", 0) == "000000" +string.format("%-1.6u", 1) == "000001" +string.format("%-1.6u", 2) == "000002" +string.format("%-1.6u", 3) == "000003" +string.format("%-1.6u", 100) == "000100" +string.format("%-1.6u", 10000) == "010000" +string.format("%-2u", 0) == "0 " +string.format("%-2u", 1) == "1 " +string.format("%-2u", 2) == "2 " +string.format("%-2u", 3) == "3 " +string.format("%-2.0u", 0) == " " +string.format("%-2.0u", 1) == "1 " +string.format("%-2.0u", 2) == "2 " +string.format("%-2.0u", 3) == "3 " +string.format("%-2.1u", 0) == "0 " +string.format("%-2.1u", 1) == "1 " +string.format("%-2.1u", 2) == "2 " +string.format("%-2.1u", 3) == "3 " +string.format("%-2.6u", 0) == "000000" +string.format("%-2.6u", 1) == "000001" +string.format("%-2.6u", 2) == "000002" +string.format("%-2.6u", 3) == "000003" +string.format("%-2.6u", 100) == "000100" +string.format("%-2.6u", 10000) == "010000" +string.format("%-6u", 0) == "0 " +string.format("%-6u", 1) == "1 " +string.format("%-6u", 2) == "2 " +string.format("%-6u", 3) == "3 " +string.format("%-6u", 100) == "100 " +string.format("%-6u", 10000) == "10000 " +string.format("%-6.0u", 0) == " " +string.format("%-6.0u", 1) == "1 " +string.format("%-6.0u", 2) == "2 " +string.format("%-6.0u", 3) == "3 " +string.format("%-6.0u", 100) == "100 " +string.format("%-6.0u", 10000) == "10000 " +string.format("%-6.1u", 0) == "0 " +string.format("%-6.1u", 1) == "1 " +string.format("%-6.1u", 2) == "2 " +string.format("%-6.1u", 3) == "3 " +string.format("%-6.1u", 100) == "100 " +string.format("%-6.1u", 10000) == "10000 " +string.format("%-6.6u", 0) == "000000" +string.format("%-6.6u", 1) == "000001" +string.format("%-6.6u", 2) == "000002" +string.format("%-6.6u", 3) == "000003" +string.format("%-6.6u", 100) == "000100" +string.format("%-6.6u", 10000) == "010000" +string.format("%-20u", 0) == "0 " +string.format("%-20u", 1) == "1 " +string.format("%-20u", 2) == "2 " +string.format("%-20u", 3) == "3 " +string.format("%-20u", 100) == "100 " +string.format("%-20u", 10000) == "10000 " +string.format("%-20u", 100000) == "100000 " +string.format("%-20u", 1000000) == "1000000 " +string.format("%-20u", 10000000) == "10000000 " +string.format("%-20.0u", 0) == " " +string.format("%-20.0u", 1) == "1 " +string.format("%-20.0u", 2) == "2 " +string.format("%-20.0u", 3) == "3 " +string.format("%-20.0u", 100) == "100 " +string.format("%-20.0u", 10000) == "10000 " +string.format("%-20.0u", 100000) == "100000 " +string.format("%-20.0u", 1000000) == "1000000 " +string.format("%-20.0u", 10000000) == "10000000 " +string.format("%-20.1u", 0) == "0 " +string.format("%-20.1u", 1) == "1 " +string.format("%-20.1u", 2) == "2 " +string.format("%-20.1u", 3) == "3 " +string.format("%-20.1u", 100) == "100 " +string.format("%-20.1u", 10000) == "10000 " +string.format("%-20.1u", 100000) == "100000 " +string.format("%-20.1u", 1000000) == "1000000 " +string.format("%-20.1u", 10000000) == "10000000 " +string.format("%-20.6u", 0) == "000000 " +string.format("%-20.6u", 1) == "000001 " +string.format("%-20.6u", 2) == "000002 " +string.format("%-20.6u", 3) == "000003 " +string.format("%-20.6u", 100) == "000100 " +string.format("%-20.6u", 10000) == "010000 " +string.format("%-20.6u", 100000) == "100000 " +string.format("%-20.6u", 1000000) == "1000000 " +string.format("%-20.6u", 10000000) == "10000000 " +string.format("%-+u", 0) == "0" +string.format("%-+u", 1) == "1" +string.format("%-+u", -1) == "18446744073709551615" +string.format("%-+u", 2) == "2" +string.format("%-+u", -2) == "18446744073709551614" +string.format("%-+u", 3) == "3" +string.format("%-+u", -3) == "18446744073709551613" +string.format("%-+u", 100) == "100" +string.format("%-+u", 10000) == "10000" +string.format("%-+u", 100000) == "100000" +string.format("%-+u", 1000000) == "1000000" +string.format("%-+u", 10000000) == "10000000" +string.format("%-+.0u", 0) == "" +string.format("%-+.6u", 0) == "000000" +string.format("%-+.6u", 1) == "000001" +string.format("%-+.6u", 2) == "000002" +string.format("%-+.6u", 3) == "000003" +string.format("%-+.6u", 100) == "000100" +string.format("%-+.6u", 10000) == "010000" +string.format("%-+1.0u", 0) == " " +string.format("%-+1.6u", 0) == "000000" +string.format("%-+1.6u", 1) == "000001" +string.format("%-+1.6u", 2) == "000002" +string.format("%-+1.6u", 3) == "000003" +string.format("%-+1.6u", 100) == "000100" +string.format("%-+1.6u", 10000) == "010000" +string.format("%-+2u", 0) == "0 " +string.format("%-+2u", 1) == "1 " +string.format("%-+2u", 2) == "2 " +string.format("%-+2u", 3) == "3 " +string.format("%-+2.0u", 0) == " " +string.format("%-+2.0u", 1) == "1 " +string.format("%-+2.0u", 2) == "2 " +string.format("%-+2.0u", 3) == "3 " +string.format("%-+2.1u", 0) == "0 " +string.format("%-+2.1u", 1) == "1 " +string.format("%-+2.1u", 2) == "2 " +string.format("%-+2.1u", 3) == "3 " +string.format("%-+2.6u", 0) == "000000" +string.format("%-+2.6u", 1) == "000001" +string.format("%-+2.6u", 2) == "000002" +string.format("%-+2.6u", 3) == "000003" +string.format("%-+2.6u", 100) == "000100" +string.format("%-+2.6u", 10000) == "010000" +string.format("%-+6u", 0) == "0 " +string.format("%-+6u", 1) == "1 " +string.format("%-+6u", 2) == "2 " +string.format("%-+6u", 3) == "3 " +string.format("%-+6u", 100) == "100 " +string.format("%-+6u", 10000) == "10000 " +string.format("%-+6.0u", 0) == " " +string.format("%-+6.0u", 1) == "1 " +string.format("%-+6.0u", 2) == "2 " +string.format("%-+6.0u", 3) == "3 " +string.format("%-+6.0u", 100) == "100 " +string.format("%-+6.0u", 10000) == "10000 " +string.format("%-+6.1u", 0) == "0 " +string.format("%-+6.1u", 1) == "1 " +string.format("%-+6.1u", 2) == "2 " +string.format("%-+6.1u", 3) == "3 " +string.format("%-+6.1u", 100) == "100 " +string.format("%-+6.1u", 10000) == "10000 " +string.format("%-+6.6u", 0) == "000000" +string.format("%-+6.6u", 1) == "000001" +string.format("%-+6.6u", 2) == "000002" +string.format("%-+6.6u", 3) == "000003" +string.format("%-+6.6u", 100) == "000100" +string.format("%-+6.6u", 10000) == "010000" +string.format("%-+20u", 0) == "0 " +string.format("%-+20u", 1) == "1 " +string.format("%-+20u", 2) == "2 " +string.format("%-+20u", 3) == "3 " +string.format("%-+20u", 100) == "100 " +string.format("%-+20u", 10000) == "10000 " +string.format("%-+20u", 100000) == "100000 " +string.format("%-+20u", 1000000) == "1000000 " +string.format("%-+20u", 10000000) == "10000000 " +string.format("%-+20.0u", 0) == " " +string.format("%-+20.0u", 1) == "1 " +string.format("%-+20.0u", 2) == "2 " +string.format("%-+20.0u", 3) == "3 " +string.format("%-+20.0u", 100) == "100 " +string.format("%-+20.0u", 10000) == "10000 " +string.format("%-+20.0u", 100000) == "100000 " +string.format("%-+20.0u", 1000000) == "1000000 " +string.format("%-+20.0u", 10000000) == "10000000 " +string.format("%-+20.1u", 0) == "0 " +string.format("%-+20.1u", 1) == "1 " +string.format("%-+20.1u", 2) == "2 " +string.format("%-+20.1u", 3) == "3 " +string.format("%-+20.1u", 100) == "100 " +string.format("%-+20.1u", 10000) == "10000 " +string.format("%-+20.1u", 100000) == "100000 " +string.format("%-+20.1u", 1000000) == "1000000 " +string.format("%-+20.1u", 10000000) == "10000000 " +string.format("%-+20.6u", 0) == "000000 " +string.format("%-+20.6u", 1) == "000001 " +string.format("%-+20.6u", 2) == "000002 " +string.format("%-+20.6u", 3) == "000003 " +string.format("%-+20.6u", 100) == "000100 " +string.format("%-+20.6u", 10000) == "010000 " +string.format("%-+20.6u", 100000) == "100000 " +string.format("%-+20.6u", 1000000) == "1000000 " +string.format("%-+20.6u", 10000000) == "10000000 " +string.format("% u", 0) == "0" +string.format("% u", 1) == "1" +string.format("% u", -1) == "18446744073709551615" +string.format("% u", 2) == "2" +string.format("% u", -2) == "18446744073709551614" +string.format("% u", 3) == "3" +string.format("% u", -3) == "18446744073709551613" +string.format("% u", 100) == "100" +string.format("% u", 10000) == "10000" +string.format("% u", 100000) == "100000" +string.format("% u", 1000000) == "1000000" +string.format("% u", 10000000) == "10000000" +string.format("% .0u", 0) == "" +string.format("% .6u", 0) == "000000" +string.format("% .6u", 1) == "000001" +string.format("% .6u", 2) == "000002" +string.format("% .6u", 3) == "000003" +string.format("% .6u", 100) == "000100" +string.format("% .6u", 10000) == "010000" +string.format("% 1.0u", 0) == " " +string.format("% 1.6u", 0) == "000000" +string.format("% 1.6u", 1) == "000001" +string.format("% 1.6u", 2) == "000002" +string.format("% 1.6u", 3) == "000003" +string.format("% 1.6u", 100) == "000100" +string.format("% 1.6u", 10000) == "010000" +string.format("% 2u", 0) == " 0" +string.format("% 2u", 1) == " 1" +string.format("% 2u", 2) == " 2" +string.format("% 2u", 3) == " 3" +string.format("% 2.0u", 0) == " " +string.format("% 2.0u", 1) == " 1" +string.format("% 2.0u", 2) == " 2" +string.format("% 2.0u", 3) == " 3" +string.format("% 2.1u", 0) == " 0" +string.format("% 2.1u", 1) == " 1" +string.format("% 2.1u", 2) == " 2" +string.format("% 2.1u", 3) == " 3" +string.format("% 2.6u", 0) == "000000" +string.format("% 2.6u", 1) == "000001" +string.format("% 2.6u", 2) == "000002" +string.format("% 2.6u", 3) == "000003" +string.format("% 2.6u", 100) == "000100" +string.format("% 2.6u", 10000) == "010000" +string.format("% 6u", 0) == " 0" +string.format("% 6u", 1) == " 1" +string.format("% 6u", 2) == " 2" +string.format("% 6u", 3) == " 3" +string.format("% 6u", 100) == " 100" +string.format("% 6u", 10000) == " 10000" +string.format("% 6.0u", 0) == " " +string.format("% 6.0u", 1) == " 1" +string.format("% 6.0u", 2) == " 2" +string.format("% 6.0u", 3) == " 3" +string.format("% 6.0u", 100) == " 100" +string.format("% 6.0u", 10000) == " 10000" +string.format("% 6.1u", 0) == " 0" +string.format("% 6.1u", 1) == " 1" +string.format("% 6.1u", 2) == " 2" +string.format("% 6.1u", 3) == " 3" +string.format("% 6.1u", 100) == " 100" +string.format("% 6.1u", 10000) == " 10000" +string.format("% 6.6u", 0) == "000000" +string.format("% 6.6u", 1) == "000001" +string.format("% 6.6u", 2) == "000002" +string.format("% 6.6u", 3) == "000003" +string.format("% 6.6u", 100) == "000100" +string.format("% 6.6u", 10000) == "010000" +string.format("% 20u", 0) == " 0" +string.format("% 20u", 1) == " 1" +string.format("% 20u", 2) == " 2" +string.format("% 20u", 3) == " 3" +string.format("% 20u", 100) == " 100" +string.format("% 20u", 10000) == " 10000" +string.format("% 20u", 100000) == " 100000" +string.format("% 20u", 1000000) == " 1000000" +string.format("% 20u", 10000000) == " 10000000" +string.format("% 20.0u", 0) == " " +string.format("% 20.0u", 1) == " 1" +string.format("% 20.0u", 2) == " 2" +string.format("% 20.0u", 3) == " 3" +string.format("% 20.0u", 100) == " 100" +string.format("% 20.0u", 10000) == " 10000" +string.format("% 20.0u", 100000) == " 100000" +string.format("% 20.0u", 1000000) == " 1000000" +string.format("% 20.0u", 10000000) == " 10000000" +string.format("% 20.1u", 0) == " 0" +string.format("% 20.1u", 1) == " 1" +string.format("% 20.1u", 2) == " 2" +string.format("% 20.1u", 3) == " 3" +string.format("% 20.1u", 100) == " 100" +string.format("% 20.1u", 10000) == " 10000" +string.format("% 20.1u", 100000) == " 100000" +string.format("% 20.1u", 1000000) == " 1000000" +string.format("% 20.1u", 10000000) == " 10000000" +string.format("% 20.6u", 0) == " 000000" +string.format("% 20.6u", 1) == " 000001" +string.format("% 20.6u", 2) == " 000002" +string.format("% 20.6u", 3) == " 000003" +string.format("% 20.6u", 100) == " 000100" +string.format("% 20.6u", 10000) == " 010000" +string.format("% 20.6u", 100000) == " 100000" +string.format("% 20.6u", 1000000) == " 1000000" +string.format("% 20.6u", 10000000) == " 10000000" +string.format("% +u", 0) == "0" +string.format("% +u", 1) == "1" +string.format("% +u", -1) == "18446744073709551615" +string.format("% +u", 2) == "2" +string.format("% +u", -2) == "18446744073709551614" +string.format("% +u", 3) == "3" +string.format("% +u", -3) == "18446744073709551613" +string.format("% +u", 100) == "100" +string.format("% +u", 10000) == "10000" +string.format("% +u", 100000) == "100000" +string.format("% +u", 1000000) == "1000000" +string.format("% +u", 10000000) == "10000000" +string.format("% +.0u", 0) == "" +string.format("% +.6u", 0) == "000000" +string.format("% +.6u", 1) == "000001" +string.format("% +.6u", 2) == "000002" +string.format("% +.6u", 3) == "000003" +string.format("% +.6u", 100) == "000100" +string.format("% +.6u", 10000) == "010000" +string.format("% +1.0u", 0) == " " +string.format("% +1.6u", 0) == "000000" +string.format("% +1.6u", 1) == "000001" +string.format("% +1.6u", 2) == "000002" +string.format("% +1.6u", 3) == "000003" +string.format("% +1.6u", 100) == "000100" +string.format("% +1.6u", 10000) == "010000" +string.format("% +2u", 0) == " 0" +string.format("% +2u", 1) == " 1" +string.format("% +2u", 2) == " 2" +string.format("% +2u", 3) == " 3" +string.format("% +2.0u", 0) == " " +string.format("% +2.0u", 1) == " 1" +string.format("% +2.0u", 2) == " 2" +string.format("% +2.0u", 3) == " 3" +string.format("% +2.1u", 0) == " 0" +string.format("% +2.1u", 1) == " 1" +string.format("% +2.1u", 2) == " 2" +string.format("% +2.1u", 3) == " 3" +string.format("% +2.6u", 0) == "000000" +string.format("% +2.6u", 1) == "000001" +string.format("% +2.6u", 2) == "000002" +string.format("% +2.6u", 3) == "000003" +string.format("% +2.6u", 100) == "000100" +string.format("% +2.6u", 10000) == "010000" +string.format("% +6u", 0) == " 0" +string.format("% +6u", 1) == " 1" +string.format("% +6u", 2) == " 2" +string.format("% +6u", 3) == " 3" +string.format("% +6u", 100) == " 100" +string.format("% +6u", 10000) == " 10000" +string.format("% +6.0u", 0) == " " +string.format("% +6.0u", 1) == " 1" +string.format("% +6.0u", 2) == " 2" +string.format("% +6.0u", 3) == " 3" +string.format("% +6.0u", 100) == " 100" +string.format("% +6.0u", 10000) == " 10000" +string.format("% +6.1u", 0) == " 0" +string.format("% +6.1u", 1) == " 1" +string.format("% +6.1u", 2) == " 2" +string.format("% +6.1u", 3) == " 3" +string.format("% +6.1u", 100) == " 100" +string.format("% +6.1u", 10000) == " 10000" +string.format("% +6.6u", 0) == "000000" +string.format("% +6.6u", 1) == "000001" +string.format("% +6.6u", 2) == "000002" +string.format("% +6.6u", 3) == "000003" +string.format("% +6.6u", 100) == "000100" +string.format("% +6.6u", 10000) == "010000" +string.format("% +20u", 0) == " 0" +string.format("% +20u", 1) == " 1" +string.format("% +20u", 2) == " 2" +string.format("% +20u", 3) == " 3" +string.format("% +20u", 100) == " 100" +string.format("% +20u", 10000) == " 10000" +string.format("% +20u", 100000) == " 100000" +string.format("% +20u", 1000000) == " 1000000" +string.format("% +20u", 10000000) == " 10000000" +string.format("% +20.0u", 0) == " " +string.format("% +20.0u", 1) == " 1" +string.format("% +20.0u", 2) == " 2" +string.format("% +20.0u", 3) == " 3" +string.format("% +20.0u", 100) == " 100" +string.format("% +20.0u", 10000) == " 10000" +string.format("% +20.0u", 100000) == " 100000" +string.format("% +20.0u", 1000000) == " 1000000" +string.format("% +20.0u", 10000000) == " 10000000" +string.format("% +20.1u", 0) == " 0" +string.format("% +20.1u", 1) == " 1" +string.format("% +20.1u", 2) == " 2" +string.format("% +20.1u", 3) == " 3" +string.format("% +20.1u", 100) == " 100" +string.format("% +20.1u", 10000) == " 10000" +string.format("% +20.1u", 100000) == " 100000" +string.format("% +20.1u", 1000000) == " 1000000" +string.format("% +20.1u", 10000000) == " 10000000" +string.format("% +20.6u", 0) == " 000000" +string.format("% +20.6u", 1) == " 000001" +string.format("% +20.6u", 2) == " 000002" +string.format("% +20.6u", 3) == " 000003" +string.format("% +20.6u", 100) == " 000100" +string.format("% +20.6u", 10000) == " 010000" +string.format("% +20.6u", 100000) == " 100000" +string.format("% +20.6u", 1000000) == " 1000000" +string.format("% +20.6u", 10000000) == " 10000000" +string.format("% -u", 0) == "0" +string.format("% -u", 1) == "1" +string.format("% -u", -1) == "18446744073709551615" +string.format("% -u", 2) == "2" +string.format("% -u", -2) == "18446744073709551614" +string.format("% -u", 3) == "3" +string.format("% -u", -3) == "18446744073709551613" +string.format("% -u", 100) == "100" +string.format("% -u", 10000) == "10000" +string.format("% -u", 100000) == "100000" +string.format("% -u", 1000000) == "1000000" +string.format("% -u", 10000000) == "10000000" +string.format("% -.0u", 0) == "" +string.format("% -.6u", 0) == "000000" +string.format("% -.6u", 1) == "000001" +string.format("% -.6u", 2) == "000002" +string.format("% -.6u", 3) == "000003" +string.format("% -.6u", 100) == "000100" +string.format("% -.6u", 10000) == "010000" +string.format("% -1.0u", 0) == " " +string.format("% -1.6u", 0) == "000000" +string.format("% -1.6u", 1) == "000001" +string.format("% -1.6u", 2) == "000002" +string.format("% -1.6u", 3) == "000003" +string.format("% -1.6u", 100) == "000100" +string.format("% -1.6u", 10000) == "010000" +string.format("% -2u", 0) == "0 " +string.format("% -2u", 1) == "1 " +string.format("% -2u", 2) == "2 " +string.format("% -2u", 3) == "3 " +string.format("% -2.0u", 0) == " " +string.format("% -2.0u", 1) == "1 " +string.format("% -2.0u", 2) == "2 " +string.format("% -2.0u", 3) == "3 " +string.format("% -2.1u", 0) == "0 " +string.format("% -2.1u", 1) == "1 " +string.format("% -2.1u", 2) == "2 " +string.format("% -2.1u", 3) == "3 " +string.format("% -2.6u", 0) == "000000" +string.format("% -2.6u", 1) == "000001" +string.format("% -2.6u", 2) == "000002" +string.format("% -2.6u", 3) == "000003" +string.format("% -2.6u", 100) == "000100" +string.format("% -2.6u", 10000) == "010000" +string.format("% -6u", 0) == "0 " +string.format("% -6u", 1) == "1 " +string.format("% -6u", 2) == "2 " +string.format("% -6u", 3) == "3 " +string.format("% -6u", 100) == "100 " +string.format("% -6u", 10000) == "10000 " +string.format("% -6.0u", 0) == " " +string.format("% -6.0u", 1) == "1 " +string.format("% -6.0u", 2) == "2 " +string.format("% -6.0u", 3) == "3 " +string.format("% -6.0u", 100) == "100 " +string.format("% -6.0u", 10000) == "10000 " +string.format("% -6.1u", 0) == "0 " +string.format("% -6.1u", 1) == "1 " +string.format("% -6.1u", 2) == "2 " +string.format("% -6.1u", 3) == "3 " +string.format("% -6.1u", 100) == "100 " +string.format("% -6.1u", 10000) == "10000 " +string.format("% -6.6u", 0) == "000000" +string.format("% -6.6u", 1) == "000001" +string.format("% -6.6u", 2) == "000002" +string.format("% -6.6u", 3) == "000003" +string.format("% -6.6u", 100) == "000100" +string.format("% -6.6u", 10000) == "010000" +string.format("% -20u", 0) == "0 " +string.format("% -20u", 1) == "1 " +string.format("% -20u", 2) == "2 " +string.format("% -20u", 3) == "3 " +string.format("% -20u", 100) == "100 " +string.format("% -20u", 10000) == "10000 " +string.format("% -20u", 100000) == "100000 " +string.format("% -20u", 1000000) == "1000000 " +string.format("% -20u", 10000000) == "10000000 " +string.format("% -20.0u", 0) == " " +string.format("% -20.0u", 1) == "1 " +string.format("% -20.0u", 2) == "2 " +string.format("% -20.0u", 3) == "3 " +string.format("% -20.0u", 100) == "100 " +string.format("% -20.0u", 10000) == "10000 " +string.format("% -20.0u", 100000) == "100000 " +string.format("% -20.0u", 1000000) == "1000000 " +string.format("% -20.0u", 10000000) == "10000000 " +string.format("% -20.1u", 0) == "0 " +string.format("% -20.1u", 1) == "1 " +string.format("% -20.1u", 2) == "2 " +string.format("% -20.1u", 3) == "3 " +string.format("% -20.1u", 100) == "100 " +string.format("% -20.1u", 10000) == "10000 " +string.format("% -20.1u", 100000) == "100000 " +string.format("% -20.1u", 1000000) == "1000000 " +string.format("% -20.1u", 10000000) == "10000000 " +string.format("% -20.6u", 0) == "000000 " +string.format("% -20.6u", 1) == "000001 " +string.format("% -20.6u", 2) == "000002 " +string.format("% -20.6u", 3) == "000003 " +string.format("% -20.6u", 100) == "000100 " +string.format("% -20.6u", 10000) == "010000 " +string.format("% -20.6u", 100000) == "100000 " +string.format("% -20.6u", 1000000) == "1000000 " +string.format("% -20.6u", 10000000) == "10000000 " +string.format("% -+u", 0) == "0" +string.format("% -+u", 1) == "1" +string.format("% -+u", -1) == "18446744073709551615" +string.format("% -+u", 2) == "2" +string.format("% -+u", -2) == "18446744073709551614" +string.format("% -+u", 3) == "3" +string.format("% -+u", -3) == "18446744073709551613" +string.format("% -+u", 100) == "100" +string.format("% -+u", 10000) == "10000" +string.format("% -+u", 100000) == "100000" +string.format("% -+u", 1000000) == "1000000" +string.format("% -+u", 10000000) == "10000000" +string.format("% -+.0u", 0) == "" +string.format("% -+.6u", 0) == "000000" +string.format("% -+.6u", 1) == "000001" +string.format("% -+.6u", 2) == "000002" +string.format("% -+.6u", 3) == "000003" +string.format("% -+.6u", 100) == "000100" +string.format("% -+.6u", 10000) == "010000" +string.format("% -+1.0u", 0) == " " +string.format("% -+1.6u", 0) == "000000" +string.format("% -+1.6u", 1) == "000001" +string.format("% -+1.6u", 2) == "000002" +string.format("% -+1.6u", 3) == "000003" +string.format("% -+1.6u", 100) == "000100" +string.format("% -+1.6u", 10000) == "010000" +string.format("% -+2u", 0) == "0 " +string.format("% -+2u", 1) == "1 " +string.format("% -+2u", 2) == "2 " +string.format("% -+2u", 3) == "3 " +string.format("% -+2.0u", 0) == " " +string.format("% -+2.0u", 1) == "1 " +string.format("% -+2.0u", 2) == "2 " +string.format("% -+2.0u", 3) == "3 " +string.format("% -+2.1u", 0) == "0 " +string.format("% -+2.1u", 1) == "1 " +string.format("% -+2.1u", 2) == "2 " +string.format("% -+2.1u", 3) == "3 " +string.format("% -+2.6u", 0) == "000000" +string.format("% -+2.6u", 1) == "000001" +string.format("% -+2.6u", 2) == "000002" +string.format("% -+2.6u", 3) == "000003" +string.format("% -+2.6u", 100) == "000100" +string.format("% -+2.6u", 10000) == "010000" +string.format("% -+6u", 0) == "0 " +string.format("% -+6u", 1) == "1 " +string.format("% -+6u", 2) == "2 " +string.format("% -+6u", 3) == "3 " +string.format("% -+6u", 100) == "100 " +string.format("% -+6u", 10000) == "10000 " +string.format("% -+6.0u", 0) == " " +string.format("% -+6.0u", 1) == "1 " +string.format("% -+6.0u", 2) == "2 " +string.format("% -+6.0u", 3) == "3 " +string.format("% -+6.0u", 100) == "100 " +string.format("% -+6.0u", 10000) == "10000 " +string.format("% -+6.1u", 0) == "0 " +string.format("% -+6.1u", 1) == "1 " +string.format("% -+6.1u", 2) == "2 " +string.format("% -+6.1u", 3) == "3 " +string.format("% -+6.1u", 100) == "100 " +string.format("% -+6.1u", 10000) == "10000 " +string.format("% -+6.6u", 0) == "000000" +string.format("% -+6.6u", 1) == "000001" +string.format("% -+6.6u", 2) == "000002" +string.format("% -+6.6u", 3) == "000003" +string.format("% -+6.6u", 100) == "000100" +string.format("% -+6.6u", 10000) == "010000" +string.format("% -+20u", 0) == "0 " +string.format("% -+20u", 1) == "1 " +string.format("% -+20u", 2) == "2 " +string.format("% -+20u", 3) == "3 " +string.format("% -+20u", 100) == "100 " +string.format("% -+20u", 10000) == "10000 " +string.format("% -+20u", 100000) == "100000 " +string.format("% -+20u", 1000000) == "1000000 " +string.format("% -+20u", 10000000) == "10000000 " +string.format("% -+20.0u", 0) == " " +string.format("% -+20.0u", 1) == "1 " +string.format("% -+20.0u", 2) == "2 " +string.format("% -+20.0u", 3) == "3 " +string.format("% -+20.0u", 100) == "100 " +string.format("% -+20.0u", 10000) == "10000 " +string.format("% -+20.0u", 100000) == "100000 " +string.format("% -+20.0u", 1000000) == "1000000 " +string.format("% -+20.0u", 10000000) == "10000000 " +string.format("% -+20.1u", 0) == "0 " +string.format("% -+20.1u", 1) == "1 " +string.format("% -+20.1u", 2) == "2 " +string.format("% -+20.1u", 3) == "3 " +string.format("% -+20.1u", 100) == "100 " +string.format("% -+20.1u", 10000) == "10000 " +string.format("% -+20.1u", 100000) == "100000 " +string.format("% -+20.1u", 1000000) == "1000000 " +string.format("% -+20.1u", 10000000) == "10000000 " +string.format("% -+20.6u", 0) == "000000 " +string.format("% -+20.6u", 1) == "000001 " +string.format("% -+20.6u", 2) == "000002 " +string.format("% -+20.6u", 3) == "000003 " +string.format("% -+20.6u", 100) == "000100 " +string.format("% -+20.6u", 10000) == "010000 " +string.format("% -+20.6u", 100000) == "100000 " +string.format("% -+20.6u", 1000000) == "1000000 " +string.format("% -+20.6u", 10000000) == "10000000 " +string.format("%#u", 0) == "0" +string.format("%#u", 1) == "1" +string.format("%#u", -1) == "18446744073709551615" +string.format("%#u", 2) == "2" +string.format("%#u", -2) == "18446744073709551614" +string.format("%#u", 3) == "3" +string.format("%#u", -3) == "18446744073709551613" +string.format("%#u", 100) == "100" +string.format("%#u", 10000) == "10000" +string.format("%#u", 100000) == "100000" +string.format("%#u", 1000000) == "1000000" +string.format("%#u", 10000000) == "10000000" +string.format("%#.0u", 0) == "" +string.format("%#.6u", 0) == "000000" +string.format("%#.6u", 1) == "000001" +string.format("%#.6u", 2) == "000002" +string.format("%#.6u", 3) == "000003" +string.format("%#.6u", 100) == "000100" +string.format("%#.6u", 10000) == "010000" +string.format("%#1.0u", 0) == " " +string.format("%#1.6u", 0) == "000000" +string.format("%#1.6u", 1) == "000001" +string.format("%#1.6u", 2) == "000002" +string.format("%#1.6u", 3) == "000003" +string.format("%#1.6u", 100) == "000100" +string.format("%#1.6u", 10000) == "010000" +string.format("%#2u", 0) == " 0" +string.format("%#2u", 1) == " 1" +string.format("%#2u", 2) == " 2" +string.format("%#2u", 3) == " 3" +string.format("%#2.0u", 0) == " " +string.format("%#2.0u", 1) == " 1" +string.format("%#2.0u", 2) == " 2" +string.format("%#2.0u", 3) == " 3" +string.format("%#2.1u", 0) == " 0" +string.format("%#2.1u", 1) == " 1" +string.format("%#2.1u", 2) == " 2" +string.format("%#2.1u", 3) == " 3" +string.format("%#2.6u", 0) == "000000" +string.format("%#2.6u", 1) == "000001" +string.format("%#2.6u", 2) == "000002" +string.format("%#2.6u", 3) == "000003" +string.format("%#2.6u", 100) == "000100" +string.format("%#2.6u", 10000) == "010000" +string.format("%#6u", 0) == " 0" +string.format("%#6u", 1) == " 1" +string.format("%#6u", 2) == " 2" +string.format("%#6u", 3) == " 3" +string.format("%#6u", 100) == " 100" +string.format("%#6u", 10000) == " 10000" +string.format("%#6.0u", 0) == " " +string.format("%#6.0u", 1) == " 1" +string.format("%#6.0u", 2) == " 2" +string.format("%#6.0u", 3) == " 3" +string.format("%#6.0u", 100) == " 100" +string.format("%#6.0u", 10000) == " 10000" +string.format("%#6.1u", 0) == " 0" +string.format("%#6.1u", 1) == " 1" +string.format("%#6.1u", 2) == " 2" +string.format("%#6.1u", 3) == " 3" +string.format("%#6.1u", 100) == " 100" +string.format("%#6.1u", 10000) == " 10000" +string.format("%#6.6u", 0) == "000000" +string.format("%#6.6u", 1) == "000001" +string.format("%#6.6u", 2) == "000002" +string.format("%#6.6u", 3) == "000003" +string.format("%#6.6u", 100) == "000100" +string.format("%#6.6u", 10000) == "010000" +string.format("%#20u", 0) == " 0" +string.format("%#20u", 1) == " 1" +string.format("%#20u", 2) == " 2" +string.format("%#20u", 3) == " 3" +string.format("%#20u", 100) == " 100" +string.format("%#20u", 10000) == " 10000" +string.format("%#20u", 100000) == " 100000" +string.format("%#20u", 1000000) == " 1000000" +string.format("%#20u", 10000000) == " 10000000" +string.format("%#20.0u", 0) == " " +string.format("%#20.0u", 1) == " 1" +string.format("%#20.0u", 2) == " 2" +string.format("%#20.0u", 3) == " 3" +string.format("%#20.0u", 100) == " 100" +string.format("%#20.0u", 10000) == " 10000" +string.format("%#20.0u", 100000) == " 100000" +string.format("%#20.0u", 1000000) == " 1000000" +string.format("%#20.0u", 10000000) == " 10000000" +string.format("%#20.1u", 0) == " 0" +string.format("%#20.1u", 1) == " 1" +string.format("%#20.1u", 2) == " 2" +string.format("%#20.1u", 3) == " 3" +string.format("%#20.1u", 100) == " 100" +string.format("%#20.1u", 10000) == " 10000" +string.format("%#20.1u", 100000) == " 100000" +string.format("%#20.1u", 1000000) == " 1000000" +string.format("%#20.1u", 10000000) == " 10000000" +string.format("%#20.6u", 0) == " 000000" +string.format("%#20.6u", 1) == " 000001" +string.format("%#20.6u", 2) == " 000002" +string.format("%#20.6u", 3) == " 000003" +string.format("%#20.6u", 100) == " 000100" +string.format("%#20.6u", 10000) == " 010000" +string.format("%#20.6u", 100000) == " 100000" +string.format("%#20.6u", 1000000) == " 1000000" +string.format("%#20.6u", 10000000) == " 10000000" +string.format("%#+u", 0) == "0" +string.format("%#+u", 1) == "1" +string.format("%#+u", -1) == "18446744073709551615" +string.format("%#+u", 2) == "2" +string.format("%#+u", -2) == "18446744073709551614" +string.format("%#+u", 3) == "3" +string.format("%#+u", -3) == "18446744073709551613" +string.format("%#+u", 100) == "100" +string.format("%#+u", 10000) == "10000" +string.format("%#+u", 100000) == "100000" +string.format("%#+u", 1000000) == "1000000" +string.format("%#+u", 10000000) == "10000000" +string.format("%#+.0u", 0) == "" +string.format("%#+.6u", 0) == "000000" +string.format("%#+.6u", 1) == "000001" +string.format("%#+.6u", 2) == "000002" +string.format("%#+.6u", 3) == "000003" +string.format("%#+.6u", 100) == "000100" +string.format("%#+.6u", 10000) == "010000" +string.format("%#+1.0u", 0) == " " +string.format("%#+1.6u", 0) == "000000" +string.format("%#+1.6u", 1) == "000001" +string.format("%#+1.6u", 2) == "000002" +string.format("%#+1.6u", 3) == "000003" +string.format("%#+1.6u", 100) == "000100" +string.format("%#+1.6u", 10000) == "010000" +string.format("%#+2u", 0) == " 0" +string.format("%#+2u", 1) == " 1" +string.format("%#+2u", 2) == " 2" +string.format("%#+2u", 3) == " 3" +string.format("%#+2.0u", 0) == " " +string.format("%#+2.0u", 1) == " 1" +string.format("%#+2.0u", 2) == " 2" +string.format("%#+2.0u", 3) == " 3" +string.format("%#+2.1u", 0) == " 0" +string.format("%#+2.1u", 1) == " 1" +string.format("%#+2.1u", 2) == " 2" +string.format("%#+2.1u", 3) == " 3" +string.format("%#+2.6u", 0) == "000000" +string.format("%#+2.6u", 1) == "000001" +string.format("%#+2.6u", 2) == "000002" +string.format("%#+2.6u", 3) == "000003" +string.format("%#+2.6u", 100) == "000100" +string.format("%#+2.6u", 10000) == "010000" +string.format("%#+6u", 0) == " 0" +string.format("%#+6u", 1) == " 1" +string.format("%#+6u", 2) == " 2" +string.format("%#+6u", 3) == " 3" +string.format("%#+6u", 100) == " 100" +string.format("%#+6u", 10000) == " 10000" +string.format("%#+6.0u", 0) == " " +string.format("%#+6.0u", 1) == " 1" +string.format("%#+6.0u", 2) == " 2" +string.format("%#+6.0u", 3) == " 3" +string.format("%#+6.0u", 100) == " 100" +string.format("%#+6.0u", 10000) == " 10000" +string.format("%#+6.1u", 0) == " 0" +string.format("%#+6.1u", 1) == " 1" +string.format("%#+6.1u", 2) == " 2" +string.format("%#+6.1u", 3) == " 3" +string.format("%#+6.1u", 100) == " 100" +string.format("%#+6.1u", 10000) == " 10000" +string.format("%#+6.6u", 0) == "000000" +string.format("%#+6.6u", 1) == "000001" +string.format("%#+6.6u", 2) == "000002" +string.format("%#+6.6u", 3) == "000003" +string.format("%#+6.6u", 100) == "000100" +string.format("%#+6.6u", 10000) == "010000" +string.format("%#+20u", 0) == " 0" +string.format("%#+20u", 1) == " 1" +string.format("%#+20u", 2) == " 2" +string.format("%#+20u", 3) == " 3" +string.format("%#+20u", 100) == " 100" +string.format("%#+20u", 10000) == " 10000" +string.format("%#+20u", 100000) == " 100000" +string.format("%#+20u", 1000000) == " 1000000" +string.format("%#+20u", 10000000) == " 10000000" +string.format("%#+20.0u", 0) == " " +string.format("%#+20.0u", 1) == " 1" +string.format("%#+20.0u", 2) == " 2" +string.format("%#+20.0u", 3) == " 3" +string.format("%#+20.0u", 100) == " 100" +string.format("%#+20.0u", 10000) == " 10000" +string.format("%#+20.0u", 100000) == " 100000" +string.format("%#+20.0u", 1000000) == " 1000000" +string.format("%#+20.0u", 10000000) == " 10000000" +string.format("%#+20.1u", 0) == " 0" +string.format("%#+20.1u", 1) == " 1" +string.format("%#+20.1u", 2) == " 2" +string.format("%#+20.1u", 3) == " 3" +string.format("%#+20.1u", 100) == " 100" +string.format("%#+20.1u", 10000) == " 10000" +string.format("%#+20.1u", 100000) == " 100000" +string.format("%#+20.1u", 1000000) == " 1000000" +string.format("%#+20.1u", 10000000) == " 10000000" +string.format("%#+20.6u", 0) == " 000000" +string.format("%#+20.6u", 1) == " 000001" +string.format("%#+20.6u", 2) == " 000002" +string.format("%#+20.6u", 3) == " 000003" +string.format("%#+20.6u", 100) == " 000100" +string.format("%#+20.6u", 10000) == " 010000" +string.format("%#+20.6u", 100000) == " 100000" +string.format("%#+20.6u", 1000000) == " 1000000" +string.format("%#+20.6u", 10000000) == " 10000000" +string.format("%#-u", 0) == "0" +string.format("%#-u", 1) == "1" +string.format("%#-u", -1) == "18446744073709551615" +string.format("%#-u", 2) == "2" +string.format("%#-u", -2) == "18446744073709551614" +string.format("%#-u", 3) == "3" +string.format("%#-u", -3) == "18446744073709551613" +string.format("%#-u", 100) == "100" +string.format("%#-u", 10000) == "10000" +string.format("%#-u", 100000) == "100000" +string.format("%#-u", 1000000) == "1000000" +string.format("%#-u", 10000000) == "10000000" +string.format("%#-.0u", 0) == "" +string.format("%#-.6u", 0) == "000000" +string.format("%#-.6u", 1) == "000001" +string.format("%#-.6u", 2) == "000002" +string.format("%#-.6u", 3) == "000003" +string.format("%#-.6u", 100) == "000100" +string.format("%#-.6u", 10000) == "010000" +string.format("%#-1.0u", 0) == " " +string.format("%#-1.6u", 0) == "000000" +string.format("%#-1.6u", 1) == "000001" +string.format("%#-1.6u", 2) == "000002" +string.format("%#-1.6u", 3) == "000003" +string.format("%#-1.6u", 100) == "000100" +string.format("%#-1.6u", 10000) == "010000" +string.format("%#-2u", 0) == "0 " +string.format("%#-2u", 1) == "1 " +string.format("%#-2u", 2) == "2 " +string.format("%#-2u", 3) == "3 " +string.format("%#-2.0u", 0) == " " +string.format("%#-2.0u", 1) == "1 " +string.format("%#-2.0u", 2) == "2 " +string.format("%#-2.0u", 3) == "3 " +string.format("%#-2.1u", 0) == "0 " +string.format("%#-2.1u", 1) == "1 " +string.format("%#-2.1u", 2) == "2 " +string.format("%#-2.1u", 3) == "3 " +string.format("%#-2.6u", 0) == "000000" +string.format("%#-2.6u", 1) == "000001" +string.format("%#-2.6u", 2) == "000002" +string.format("%#-2.6u", 3) == "000003" +string.format("%#-2.6u", 100) == "000100" +string.format("%#-2.6u", 10000) == "010000" +string.format("%#-6u", 0) == "0 " +string.format("%#-6u", 1) == "1 " +string.format("%#-6u", 2) == "2 " +string.format("%#-6u", 3) == "3 " +string.format("%#-6u", 100) == "100 " +string.format("%#-6u", 10000) == "10000 " +string.format("%#-6.0u", 0) == " " +string.format("%#-6.0u", 1) == "1 " +string.format("%#-6.0u", 2) == "2 " +string.format("%#-6.0u", 3) == "3 " +string.format("%#-6.0u", 100) == "100 " +string.format("%#-6.0u", 10000) == "10000 " +string.format("%#-6.1u", 0) == "0 " +string.format("%#-6.1u", 1) == "1 " +string.format("%#-6.1u", 2) == "2 " +string.format("%#-6.1u", 3) == "3 " +string.format("%#-6.1u", 100) == "100 " +string.format("%#-6.1u", 10000) == "10000 " +string.format("%#-6.6u", 0) == "000000" +string.format("%#-6.6u", 1) == "000001" +string.format("%#-6.6u", 2) == "000002" +string.format("%#-6.6u", 3) == "000003" +string.format("%#-6.6u", 100) == "000100" +string.format("%#-6.6u", 10000) == "010000" +string.format("%#-20u", 0) == "0 " +string.format("%#-20u", 1) == "1 " +string.format("%#-20u", 2) == "2 " +string.format("%#-20u", 3) == "3 " +string.format("%#-20u", 100) == "100 " +string.format("%#-20u", 10000) == "10000 " +string.format("%#-20u", 100000) == "100000 " +string.format("%#-20u", 1000000) == "1000000 " +string.format("%#-20u", 10000000) == "10000000 " +string.format("%#-20.0u", 0) == " " +string.format("%#-20.0u", 1) == "1 " +string.format("%#-20.0u", 2) == "2 " +string.format("%#-20.0u", 3) == "3 " +string.format("%#-20.0u", 100) == "100 " +string.format("%#-20.0u", 10000) == "10000 " +string.format("%#-20.0u", 100000) == "100000 " +string.format("%#-20.0u", 1000000) == "1000000 " +string.format("%#-20.0u", 10000000) == "10000000 " +string.format("%#-20.1u", 0) == "0 " +string.format("%#-20.1u", 1) == "1 " +string.format("%#-20.1u", 2) == "2 " +string.format("%#-20.1u", 3) == "3 " +string.format("%#-20.1u", 100) == "100 " +string.format("%#-20.1u", 10000) == "10000 " +string.format("%#-20.1u", 100000) == "100000 " +string.format("%#-20.1u", 1000000) == "1000000 " +string.format("%#-20.1u", 10000000) == "10000000 " +string.format("%#-20.6u", 0) == "000000 " +string.format("%#-20.6u", 1) == "000001 " +string.format("%#-20.6u", 2) == "000002 " +string.format("%#-20.6u", 3) == "000003 " +string.format("%#-20.6u", 100) == "000100 " +string.format("%#-20.6u", 10000) == "010000 " +string.format("%#-20.6u", 100000) == "100000 " +string.format("%#-20.6u", 1000000) == "1000000 " +string.format("%#-20.6u", 10000000) == "10000000 " +string.format("%#-+u", 0) == "0" +string.format("%#-+u", 1) == "1" +string.format("%#-+u", -1) == "18446744073709551615" +string.format("%#-+u", 2) == "2" +string.format("%#-+u", -2) == "18446744073709551614" +string.format("%#-+u", 3) == "3" +string.format("%#-+u", -3) == "18446744073709551613" +string.format("%#-+u", 100) == "100" +string.format("%#-+u", 10000) == "10000" +string.format("%#-+u", 100000) == "100000" +string.format("%#-+u", 1000000) == "1000000" +string.format("%#-+u", 10000000) == "10000000" +string.format("%#-+.0u", 0) == "" +string.format("%#-+.6u", 0) == "000000" +string.format("%#-+.6u", 1) == "000001" +string.format("%#-+.6u", 2) == "000002" +string.format("%#-+.6u", 3) == "000003" +string.format("%#-+.6u", 100) == "000100" +string.format("%#-+.6u", 10000) == "010000" +string.format("%#-+1.0u", 0) == " " +string.format("%#-+1.6u", 0) == "000000" +string.format("%#-+1.6u", 1) == "000001" +string.format("%#-+1.6u", 2) == "000002" +string.format("%#-+1.6u", 3) == "000003" +string.format("%#-+1.6u", 100) == "000100" +string.format("%#-+1.6u", 10000) == "010000" +string.format("%#-+2u", 0) == "0 " +string.format("%#-+2u", 1) == "1 " +string.format("%#-+2u", 2) == "2 " +string.format("%#-+2u", 3) == "3 " +string.format("%#-+2.0u", 0) == " " +string.format("%#-+2.0u", 1) == "1 " +string.format("%#-+2.0u", 2) == "2 " +string.format("%#-+2.0u", 3) == "3 " +string.format("%#-+2.1u", 0) == "0 " +string.format("%#-+2.1u", 1) == "1 " +string.format("%#-+2.1u", 2) == "2 " +string.format("%#-+2.1u", 3) == "3 " +string.format("%#-+2.6u", 0) == "000000" +string.format("%#-+2.6u", 1) == "000001" +string.format("%#-+2.6u", 2) == "000002" +string.format("%#-+2.6u", 3) == "000003" +string.format("%#-+2.6u", 100) == "000100" +string.format("%#-+2.6u", 10000) == "010000" +string.format("%#-+6u", 0) == "0 " +string.format("%#-+6u", 1) == "1 " +string.format("%#-+6u", 2) == "2 " +string.format("%#-+6u", 3) == "3 " +string.format("%#-+6u", 100) == "100 " +string.format("%#-+6u", 10000) == "10000 " +string.format("%#-+6.0u", 0) == " " +string.format("%#-+6.0u", 1) == "1 " +string.format("%#-+6.0u", 2) == "2 " +string.format("%#-+6.0u", 3) == "3 " +string.format("%#-+6.0u", 100) == "100 " +string.format("%#-+6.0u", 10000) == "10000 " +string.format("%#-+6.1u", 0) == "0 " +string.format("%#-+6.1u", 1) == "1 " +string.format("%#-+6.1u", 2) == "2 " +string.format("%#-+6.1u", 3) == "3 " +string.format("%#-+6.1u", 100) == "100 " +string.format("%#-+6.1u", 10000) == "10000 " +string.format("%#-+6.6u", 0) == "000000" +string.format("%#-+6.6u", 1) == "000001" +string.format("%#-+6.6u", 2) == "000002" +string.format("%#-+6.6u", 3) == "000003" +string.format("%#-+6.6u", 100) == "000100" +string.format("%#-+6.6u", 10000) == "010000" +string.format("%#-+20u", 0) == "0 " +string.format("%#-+20u", 1) == "1 " +string.format("%#-+20u", 2) == "2 " +string.format("%#-+20u", 3) == "3 " +string.format("%#-+20u", 100) == "100 " +string.format("%#-+20u", 10000) == "10000 " +string.format("%#-+20u", 100000) == "100000 " +string.format("%#-+20u", 1000000) == "1000000 " +string.format("%#-+20u", 10000000) == "10000000 " +string.format("%#-+20.0u", 0) == " " +string.format("%#-+20.0u", 1) == "1 " +string.format("%#-+20.0u", 2) == "2 " +string.format("%#-+20.0u", 3) == "3 " +string.format("%#-+20.0u", 100) == "100 " +string.format("%#-+20.0u", 10000) == "10000 " +string.format("%#-+20.0u", 100000) == "100000 " +string.format("%#-+20.0u", 1000000) == "1000000 " +string.format("%#-+20.0u", 10000000) == "10000000 " +string.format("%#-+20.1u", 0) == "0 " +string.format("%#-+20.1u", 1) == "1 " +string.format("%#-+20.1u", 2) == "2 " +string.format("%#-+20.1u", 3) == "3 " +string.format("%#-+20.1u", 100) == "100 " +string.format("%#-+20.1u", 10000) == "10000 " +string.format("%#-+20.1u", 100000) == "100000 " +string.format("%#-+20.1u", 1000000) == "1000000 " +string.format("%#-+20.1u", 10000000) == "10000000 " +string.format("%#-+20.6u", 0) == "000000 " +string.format("%#-+20.6u", 1) == "000001 " +string.format("%#-+20.6u", 2) == "000002 " +string.format("%#-+20.6u", 3) == "000003 " +string.format("%#-+20.6u", 100) == "000100 " +string.format("%#-+20.6u", 10000) == "010000 " +string.format("%#-+20.6u", 100000) == "100000 " +string.format("%#-+20.6u", 1000000) == "1000000 " +string.format("%#-+20.6u", 10000000) == "10000000 " +string.format("%# u", 0) == "0" +string.format("%# u", 1) == "1" +string.format("%# u", -1) == "18446744073709551615" +string.format("%# u", 2) == "2" +string.format("%# u", -2) == "18446744073709551614" +string.format("%# u", 3) == "3" +string.format("%# u", -3) == "18446744073709551613" +string.format("%# u", 100) == "100" +string.format("%# u", 10000) == "10000" +string.format("%# u", 100000) == "100000" +string.format("%# u", 1000000) == "1000000" +string.format("%# u", 10000000) == "10000000" +string.format("%# .0u", 0) == "" +string.format("%# .6u", 0) == "000000" +string.format("%# .6u", 1) == "000001" +string.format("%# .6u", 2) == "000002" +string.format("%# .6u", 3) == "000003" +string.format("%# .6u", 100) == "000100" +string.format("%# .6u", 10000) == "010000" +string.format("%# 1.0u", 0) == " " +string.format("%# 1.6u", 0) == "000000" +string.format("%# 1.6u", 1) == "000001" +string.format("%# 1.6u", 2) == "000002" +string.format("%# 1.6u", 3) == "000003" +string.format("%# 1.6u", 100) == "000100" +string.format("%# 1.6u", 10000) == "010000" +string.format("%# 2u", 0) == " 0" +string.format("%# 2u", 1) == " 1" +string.format("%# 2u", 2) == " 2" +string.format("%# 2u", 3) == " 3" +string.format("%# 2.0u", 0) == " " +string.format("%# 2.0u", 1) == " 1" +string.format("%# 2.0u", 2) == " 2" +string.format("%# 2.0u", 3) == " 3" +string.format("%# 2.1u", 0) == " 0" +string.format("%# 2.1u", 1) == " 1" +string.format("%# 2.1u", 2) == " 2" +string.format("%# 2.1u", 3) == " 3" +string.format("%# 2.6u", 0) == "000000" +string.format("%# 2.6u", 1) == "000001" +string.format("%# 2.6u", 2) == "000002" +string.format("%# 2.6u", 3) == "000003" +string.format("%# 2.6u", 100) == "000100" +string.format("%# 2.6u", 10000) == "010000" +string.format("%# 6u", 0) == " 0" +string.format("%# 6u", 1) == " 1" +string.format("%# 6u", 2) == " 2" +string.format("%# 6u", 3) == " 3" +string.format("%# 6u", 100) == " 100" +string.format("%# 6u", 10000) == " 10000" +string.format("%# 6.0u", 0) == " " +string.format("%# 6.0u", 1) == " 1" +string.format("%# 6.0u", 2) == " 2" +string.format("%# 6.0u", 3) == " 3" +string.format("%# 6.0u", 100) == " 100" +string.format("%# 6.0u", 10000) == " 10000" +string.format("%# 6.1u", 0) == " 0" +string.format("%# 6.1u", 1) == " 1" +string.format("%# 6.1u", 2) == " 2" +string.format("%# 6.1u", 3) == " 3" +string.format("%# 6.1u", 100) == " 100" +string.format("%# 6.1u", 10000) == " 10000" +string.format("%# 6.6u", 0) == "000000" +string.format("%# 6.6u", 1) == "000001" +string.format("%# 6.6u", 2) == "000002" +string.format("%# 6.6u", 3) == "000003" +string.format("%# 6.6u", 100) == "000100" +string.format("%# 6.6u", 10000) == "010000" +string.format("%# 20u", 0) == " 0" +string.format("%# 20u", 1) == " 1" +string.format("%# 20u", 2) == " 2" +string.format("%# 20u", 3) == " 3" +string.format("%# 20u", 100) == " 100" +string.format("%# 20u", 10000) == " 10000" +string.format("%# 20u", 100000) == " 100000" +string.format("%# 20u", 1000000) == " 1000000" +string.format("%# 20u", 10000000) == " 10000000" +string.format("%# 20.0u", 0) == " " +string.format("%# 20.0u", 1) == " 1" +string.format("%# 20.0u", 2) == " 2" +string.format("%# 20.0u", 3) == " 3" +string.format("%# 20.0u", 100) == " 100" +string.format("%# 20.0u", 10000) == " 10000" +string.format("%# 20.0u", 100000) == " 100000" +string.format("%# 20.0u", 1000000) == " 1000000" +string.format("%# 20.0u", 10000000) == " 10000000" +string.format("%# 20.1u", 0) == " 0" +string.format("%# 20.1u", 1) == " 1" +string.format("%# 20.1u", 2) == " 2" +string.format("%# 20.1u", 3) == " 3" +string.format("%# 20.1u", 100) == " 100" +string.format("%# 20.1u", 10000) == " 10000" +string.format("%# 20.1u", 100000) == " 100000" +string.format("%# 20.1u", 1000000) == " 1000000" +string.format("%# 20.1u", 10000000) == " 10000000" +string.format("%# 20.6u", 0) == " 000000" +string.format("%# 20.6u", 1) == " 000001" +string.format("%# 20.6u", 2) == " 000002" +string.format("%# 20.6u", 3) == " 000003" +string.format("%# 20.6u", 100) == " 000100" +string.format("%# 20.6u", 10000) == " 010000" +string.format("%# 20.6u", 100000) == " 100000" +string.format("%# 20.6u", 1000000) == " 1000000" +string.format("%# 20.6u", 10000000) == " 10000000" +string.format("%# +u", 0) == "0" +string.format("%# +u", 1) == "1" +string.format("%# +u", -1) == "18446744073709551615" +string.format("%# +u", 2) == "2" +string.format("%# +u", -2) == "18446744073709551614" +string.format("%# +u", 3) == "3" +string.format("%# +u", -3) == "18446744073709551613" +string.format("%# +u", 100) == "100" +string.format("%# +u", 10000) == "10000" +string.format("%# +u", 100000) == "100000" +string.format("%# +u", 1000000) == "1000000" +string.format("%# +u", 10000000) == "10000000" +string.format("%# +.0u", 0) == "" +string.format("%# +.6u", 0) == "000000" +string.format("%# +.6u", 1) == "000001" +string.format("%# +.6u", 2) == "000002" +string.format("%# +.6u", 3) == "000003" +string.format("%# +.6u", 100) == "000100" +string.format("%# +.6u", 10000) == "010000" +string.format("%# +1.0u", 0) == " " +string.format("%# +1.6u", 0) == "000000" +string.format("%# +1.6u", 1) == "000001" +string.format("%# +1.6u", 2) == "000002" +string.format("%# +1.6u", 3) == "000003" +string.format("%# +1.6u", 100) == "000100" +string.format("%# +1.6u", 10000) == "010000" +string.format("%# +2u", 0) == " 0" +string.format("%# +2u", 1) == " 1" +string.format("%# +2u", 2) == " 2" +string.format("%# +2u", 3) == " 3" +string.format("%# +2.0u", 0) == " " +string.format("%# +2.0u", 1) == " 1" +string.format("%# +2.0u", 2) == " 2" +string.format("%# +2.0u", 3) == " 3" +string.format("%# +2.1u", 0) == " 0" +string.format("%# +2.1u", 1) == " 1" +string.format("%# +2.1u", 2) == " 2" +string.format("%# +2.1u", 3) == " 3" +string.format("%# +2.6u", 0) == "000000" +string.format("%# +2.6u", 1) == "000001" +string.format("%# +2.6u", 2) == "000002" +string.format("%# +2.6u", 3) == "000003" +string.format("%# +2.6u", 100) == "000100" +string.format("%# +2.6u", 10000) == "010000" +string.format("%# +6u", 0) == " 0" +string.format("%# +6u", 1) == " 1" +string.format("%# +6u", 2) == " 2" +string.format("%# +6u", 3) == " 3" +string.format("%# +6u", 100) == " 100" +string.format("%# +6u", 10000) == " 10000" +string.format("%# +6.0u", 0) == " " +string.format("%# +6.0u", 1) == " 1" +string.format("%# +6.0u", 2) == " 2" +string.format("%# +6.0u", 3) == " 3" +string.format("%# +6.0u", 100) == " 100" +string.format("%# +6.0u", 10000) == " 10000" +string.format("%# +6.1u", 0) == " 0" +string.format("%# +6.1u", 1) == " 1" +string.format("%# +6.1u", 2) == " 2" +string.format("%# +6.1u", 3) == " 3" +string.format("%# +6.1u", 100) == " 100" +string.format("%# +6.1u", 10000) == " 10000" +string.format("%# +6.6u", 0) == "000000" +string.format("%# +6.6u", 1) == "000001" +string.format("%# +6.6u", 2) == "000002" +string.format("%# +6.6u", 3) == "000003" +string.format("%# +6.6u", 100) == "000100" +string.format("%# +6.6u", 10000) == "010000" +string.format("%# +20u", 0) == " 0" +string.format("%# +20u", 1) == " 1" +string.format("%# +20u", 2) == " 2" +string.format("%# +20u", 3) == " 3" +string.format("%# +20u", 100) == " 100" +string.format("%# +20u", 10000) == " 10000" +string.format("%# +20u", 100000) == " 100000" +string.format("%# +20u", 1000000) == " 1000000" +string.format("%# +20u", 10000000) == " 10000000" +string.format("%# +20.0u", 0) == " " +string.format("%# +20.0u", 1) == " 1" +string.format("%# +20.0u", 2) == " 2" +string.format("%# +20.0u", 3) == " 3" +string.format("%# +20.0u", 100) == " 100" +string.format("%# +20.0u", 10000) == " 10000" +string.format("%# +20.0u", 100000) == " 100000" +string.format("%# +20.0u", 1000000) == " 1000000" +string.format("%# +20.0u", 10000000) == " 10000000" +string.format("%# +20.1u", 0) == " 0" +string.format("%# +20.1u", 1) == " 1" +string.format("%# +20.1u", 2) == " 2" +string.format("%# +20.1u", 3) == " 3" +string.format("%# +20.1u", 100) == " 100" +string.format("%# +20.1u", 10000) == " 10000" +string.format("%# +20.1u", 100000) == " 100000" +string.format("%# +20.1u", 1000000) == " 1000000" +string.format("%# +20.1u", 10000000) == " 10000000" +string.format("%# +20.6u", 0) == " 000000" +string.format("%# +20.6u", 1) == " 000001" +string.format("%# +20.6u", 2) == " 000002" +string.format("%# +20.6u", 3) == " 000003" +string.format("%# +20.6u", 100) == " 000100" +string.format("%# +20.6u", 10000) == " 010000" +string.format("%# +20.6u", 100000) == " 100000" +string.format("%# +20.6u", 1000000) == " 1000000" +string.format("%# +20.6u", 10000000) == " 10000000" +string.format("%# -u", 0) == "0" +string.format("%# -u", 1) == "1" +string.format("%# -u", -1) == "18446744073709551615" +string.format("%# -u", 2) == "2" +string.format("%# -u", -2) == "18446744073709551614" +string.format("%# -u", 3) == "3" +string.format("%# -u", -3) == "18446744073709551613" +string.format("%# -u", 100) == "100" +string.format("%# -u", 10000) == "10000" +string.format("%# -u", 100000) == "100000" +string.format("%# -u", 1000000) == "1000000" +string.format("%# -u", 10000000) == "10000000" +string.format("%# -.0u", 0) == "" +string.format("%# -.6u", 0) == "000000" +string.format("%# -.6u", 1) == "000001" +string.format("%# -.6u", 2) == "000002" +string.format("%# -.6u", 3) == "000003" +string.format("%# -.6u", 100) == "000100" +string.format("%# -.6u", 10000) == "010000" +string.format("%# -1.0u", 0) == " " +string.format("%# -1.6u", 0) == "000000" +string.format("%# -1.6u", 1) == "000001" +string.format("%# -1.6u", 2) == "000002" +string.format("%# -1.6u", 3) == "000003" +string.format("%# -1.6u", 100) == "000100" +string.format("%# -1.6u", 10000) == "010000" +string.format("%# -2u", 0) == "0 " +string.format("%# -2u", 1) == "1 " +string.format("%# -2u", 2) == "2 " +string.format("%# -2u", 3) == "3 " +string.format("%# -2.0u", 0) == " " +string.format("%# -2.0u", 1) == "1 " +string.format("%# -2.0u", 2) == "2 " +string.format("%# -2.0u", 3) == "3 " +string.format("%# -2.1u", 0) == "0 " +string.format("%# -2.1u", 1) == "1 " +string.format("%# -2.1u", 2) == "2 " +string.format("%# -2.1u", 3) == "3 " +string.format("%# -2.6u", 0) == "000000" +string.format("%# -2.6u", 1) == "000001" +string.format("%# -2.6u", 2) == "000002" +string.format("%# -2.6u", 3) == "000003" +string.format("%# -2.6u", 100) == "000100" +string.format("%# -2.6u", 10000) == "010000" +string.format("%# -6u", 0) == "0 " +string.format("%# -6u", 1) == "1 " +string.format("%# -6u", 2) == "2 " +string.format("%# -6u", 3) == "3 " +string.format("%# -6u", 100) == "100 " +string.format("%# -6u", 10000) == "10000 " +string.format("%# -6.0u", 0) == " " +string.format("%# -6.0u", 1) == "1 " +string.format("%# -6.0u", 2) == "2 " +string.format("%# -6.0u", 3) == "3 " +string.format("%# -6.0u", 100) == "100 " +string.format("%# -6.0u", 10000) == "10000 " +string.format("%# -6.1u", 0) == "0 " +string.format("%# -6.1u", 1) == "1 " +string.format("%# -6.1u", 2) == "2 " +string.format("%# -6.1u", 3) == "3 " +string.format("%# -6.1u", 100) == "100 " +string.format("%# -6.1u", 10000) == "10000 " +string.format("%# -6.6u", 0) == "000000" +string.format("%# -6.6u", 1) == "000001" +string.format("%# -6.6u", 2) == "000002" +string.format("%# -6.6u", 3) == "000003" +string.format("%# -6.6u", 100) == "000100" +string.format("%# -6.6u", 10000) == "010000" +string.format("%# -20u", 0) == "0 " +string.format("%# -20u", 1) == "1 " +string.format("%# -20u", 2) == "2 " +string.format("%# -20u", 3) == "3 " +string.format("%# -20u", 100) == "100 " +string.format("%# -20u", 10000) == "10000 " +string.format("%# -20u", 100000) == "100000 " +string.format("%# -20u", 1000000) == "1000000 " +string.format("%# -20u", 10000000) == "10000000 " +string.format("%# -20.0u", 0) == " " +string.format("%# -20.0u", 1) == "1 " +string.format("%# -20.0u", 2) == "2 " +string.format("%# -20.0u", 3) == "3 " +string.format("%# -20.0u", 100) == "100 " +string.format("%# -20.0u", 10000) == "10000 " +string.format("%# -20.0u", 100000) == "100000 " +string.format("%# -20.0u", 1000000) == "1000000 " +string.format("%# -20.0u", 10000000) == "10000000 " +string.format("%# -20.1u", 0) == "0 " +string.format("%# -20.1u", 1) == "1 " +string.format("%# -20.1u", 2) == "2 " +string.format("%# -20.1u", 3) == "3 " +string.format("%# -20.1u", 100) == "100 " +string.format("%# -20.1u", 10000) == "10000 " +string.format("%# -20.1u", 100000) == "100000 " +string.format("%# -20.1u", 1000000) == "1000000 " +string.format("%# -20.1u", 10000000) == "10000000 " +string.format("%# -20.6u", 0) == "000000 " +string.format("%# -20.6u", 1) == "000001 " +string.format("%# -20.6u", 2) == "000002 " +string.format("%# -20.6u", 3) == "000003 " +string.format("%# -20.6u", 100) == "000100 " +string.format("%# -20.6u", 10000) == "010000 " +string.format("%# -20.6u", 100000) == "100000 " +string.format("%# -20.6u", 1000000) == "1000000 " +string.format("%# -20.6u", 10000000) == "10000000 " +string.format("%# -+u", 0) == "0" +string.format("%# -+u", 1) == "1" +string.format("%# -+u", -1) == "18446744073709551615" +string.format("%# -+u", 2) == "2" +string.format("%# -+u", -2) == "18446744073709551614" +string.format("%# -+u", 3) == "3" +string.format("%# -+u", -3) == "18446744073709551613" +string.format("%# -+u", 100) == "100" +string.format("%# -+u", 10000) == "10000" +string.format("%# -+u", 100000) == "100000" +string.format("%# -+u", 1000000) == "1000000" +string.format("%# -+u", 10000000) == "10000000" +string.format("%# -+.0u", 0) == "" +string.format("%# -+.6u", 0) == "000000" +string.format("%# -+.6u", 1) == "000001" +string.format("%# -+.6u", 2) == "000002" +string.format("%# -+.6u", 3) == "000003" +string.format("%# -+.6u", 100) == "000100" +string.format("%# -+.6u", 10000) == "010000" +string.format("%# -+1.0u", 0) == " " +string.format("%# -+1.6u", 0) == "000000" +string.format("%# -+1.6u", 1) == "000001" +string.format("%# -+1.6u", 2) == "000002" +string.format("%# -+1.6u", 3) == "000003" +string.format("%# -+1.6u", 100) == "000100" +string.format("%# -+1.6u", 10000) == "010000" +string.format("%# -+2u", 0) == "0 " +string.format("%# -+2u", 1) == "1 " +string.format("%# -+2u", 2) == "2 " +string.format("%# -+2u", 3) == "3 " +string.format("%# -+2.0u", 0) == " " +string.format("%# -+2.0u", 1) == "1 " +string.format("%# -+2.0u", 2) == "2 " +string.format("%# -+2.0u", 3) == "3 " +string.format("%# -+2.1u", 0) == "0 " +string.format("%# -+2.1u", 1) == "1 " +string.format("%# -+2.1u", 2) == "2 " +string.format("%# -+2.1u", 3) == "3 " +string.format("%# -+2.6u", 0) == "000000" +string.format("%# -+2.6u", 1) == "000001" +string.format("%# -+2.6u", 2) == "000002" +string.format("%# -+2.6u", 3) == "000003" +string.format("%# -+2.6u", 100) == "000100" +string.format("%# -+2.6u", 10000) == "010000" +string.format("%# -+6u", 0) == "0 " +string.format("%# -+6u", 1) == "1 " +string.format("%# -+6u", 2) == "2 " +string.format("%# -+6u", 3) == "3 " +string.format("%# -+6u", 100) == "100 " +string.format("%# -+6u", 10000) == "10000 " +string.format("%# -+6.0u", 0) == " " +string.format("%# -+6.0u", 1) == "1 " +string.format("%# -+6.0u", 2) == "2 " +string.format("%# -+6.0u", 3) == "3 " +string.format("%# -+6.0u", 100) == "100 " +string.format("%# -+6.0u", 10000) == "10000 " +string.format("%# -+6.1u", 0) == "0 " +string.format("%# -+6.1u", 1) == "1 " +string.format("%# -+6.1u", 2) == "2 " +string.format("%# -+6.1u", 3) == "3 " +string.format("%# -+6.1u", 100) == "100 " +string.format("%# -+6.1u", 10000) == "10000 " +string.format("%# -+6.6u", 0) == "000000" +string.format("%# -+6.6u", 1) == "000001" +string.format("%# -+6.6u", 2) == "000002" +string.format("%# -+6.6u", 3) == "000003" +string.format("%# -+6.6u", 100) == "000100" +string.format("%# -+6.6u", 10000) == "010000" +string.format("%# -+20u", 0) == "0 " +string.format("%# -+20u", 1) == "1 " +string.format("%# -+20u", 2) == "2 " +string.format("%# -+20u", 3) == "3 " +string.format("%# -+20u", 100) == "100 " +string.format("%# -+20u", 10000) == "10000 " +string.format("%# -+20u", 100000) == "100000 " +string.format("%# -+20u", 1000000) == "1000000 " +string.format("%# -+20u", 10000000) == "10000000 " +string.format("%# -+20.0u", 0) == " " +string.format("%# -+20.0u", 1) == "1 " +string.format("%# -+20.0u", 2) == "2 " +string.format("%# -+20.0u", 3) == "3 " +string.format("%# -+20.0u", 100) == "100 " +string.format("%# -+20.0u", 10000) == "10000 " +string.format("%# -+20.0u", 100000) == "100000 " +string.format("%# -+20.0u", 1000000) == "1000000 " +string.format("%# -+20.0u", 10000000) == "10000000 " +string.format("%# -+20.1u", 0) == "0 " +string.format("%# -+20.1u", 1) == "1 " +string.format("%# -+20.1u", 2) == "2 " +string.format("%# -+20.1u", 3) == "3 " +string.format("%# -+20.1u", 100) == "100 " +string.format("%# -+20.1u", 10000) == "10000 " +string.format("%# -+20.1u", 100000) == "100000 " +string.format("%# -+20.1u", 1000000) == "1000000 " +string.format("%# -+20.1u", 10000000) == "10000000 " +string.format("%# -+20.6u", 0) == "000000 " +string.format("%# -+20.6u", 1) == "000001 " +string.format("%# -+20.6u", 2) == "000002 " +string.format("%# -+20.6u", 3) == "000003 " +string.format("%# -+20.6u", 100) == "000100 " +string.format("%# -+20.6u", 10000) == "010000 " +string.format("%# -+20.6u", 100000) == "100000 " +string.format("%# -+20.6u", 1000000) == "1000000 " +string.format("%# -+20.6u", 10000000) == "10000000 " +string.format("%0u", 0) == "0" +string.format("%0u", 1) == "1" +string.format("%0u", -1) == "18446744073709551615" +string.format("%0u", 2) == "2" +string.format("%0u", -2) == "18446744073709551614" +string.format("%0u", 3) == "3" +string.format("%0u", -3) == "18446744073709551613" +string.format("%0u", 100) == "100" +string.format("%0u", 10000) == "10000" +string.format("%0u", 100000) == "100000" +string.format("%0u", 1000000) == "1000000" +string.format("%0u", 10000000) == "10000000" +string.format("%0.0u", 0) == "" +string.format("%0.6u", 0) == "000000" +string.format("%0.6u", 1) == "000001" +string.format("%0.6u", 2) == "000002" +string.format("%0.6u", 3) == "000003" +string.format("%0.6u", 100) == "000100" +string.format("%0.6u", 10000) == "010000" +string.format("%01.0u", 0) == " " +string.format("%01.6u", 0) == "000000" +string.format("%01.6u", 1) == "000001" +string.format("%01.6u", 2) == "000002" +string.format("%01.6u", 3) == "000003" +string.format("%01.6u", 100) == "000100" +string.format("%01.6u", 10000) == "010000" +string.format("%02u", 0) == "00" +string.format("%02u", 1) == "01" +string.format("%02u", 2) == "02" +string.format("%02u", 3) == "03" +string.format("%02.0u", 0) == " " +string.format("%02.0u", 1) == " 1" +string.format("%02.0u", 2) == " 2" +string.format("%02.0u", 3) == " 3" +string.format("%02.1u", 0) == " 0" +string.format("%02.1u", 1) == " 1" +string.format("%02.1u", 2) == " 2" +string.format("%02.1u", 3) == " 3" +string.format("%02.6u", 0) == "000000" +string.format("%02.6u", 1) == "000001" +string.format("%02.6u", 2) == "000002" +string.format("%02.6u", 3) == "000003" +string.format("%02.6u", 100) == "000100" +string.format("%02.6u", 10000) == "010000" +string.format("%06u", 0) == "000000" +string.format("%06u", 1) == "000001" +string.format("%06u", 2) == "000002" +string.format("%06u", 3) == "000003" +string.format("%06u", 100) == "000100" +string.format("%06u", 10000) == "010000" +string.format("%06.0u", 0) == " " +string.format("%06.0u", 1) == " 1" +string.format("%06.0u", 2) == " 2" +string.format("%06.0u", 3) == " 3" +string.format("%06.0u", 100) == " 100" +string.format("%06.0u", 10000) == " 10000" +string.format("%06.1u", 0) == " 0" +string.format("%06.1u", 1) == " 1" +string.format("%06.1u", 2) == " 2" +string.format("%06.1u", 3) == " 3" +string.format("%06.1u", 100) == " 100" +string.format("%06.1u", 10000) == " 10000" +string.format("%06.6u", 0) == "000000" +string.format("%06.6u", 1) == "000001" +string.format("%06.6u", 2) == "000002" +string.format("%06.6u", 3) == "000003" +string.format("%06.6u", 100) == "000100" +string.format("%06.6u", 10000) == "010000" +string.format("%020u", 0) == "00000000000000000000" +string.format("%020u", 1) == "00000000000000000001" +string.format("%020u", 2) == "00000000000000000002" +string.format("%020u", 3) == "00000000000000000003" +string.format("%020u", 100) == "00000000000000000100" +string.format("%020u", 10000) == "00000000000000010000" +string.format("%020u", 100000) == "00000000000000100000" +string.format("%020u", 1000000) == "00000000000001000000" +string.format("%020u", 10000000) == "00000000000010000000" +string.format("%020.0u", 0) == " " +string.format("%020.0u", 1) == " 1" +string.format("%020.0u", 2) == " 2" +string.format("%020.0u", 3) == " 3" +string.format("%020.0u", 100) == " 100" +string.format("%020.0u", 10000) == " 10000" +string.format("%020.0u", 100000) == " 100000" +string.format("%020.0u", 1000000) == " 1000000" +string.format("%020.0u", 10000000) == " 10000000" +string.format("%020.1u", 0) == " 0" +string.format("%020.1u", 1) == " 1" +string.format("%020.1u", 2) == " 2" +string.format("%020.1u", 3) == " 3" +string.format("%020.1u", 100) == " 100" +string.format("%020.1u", 10000) == " 10000" +string.format("%020.1u", 100000) == " 100000" +string.format("%020.1u", 1000000) == " 1000000" +string.format("%020.1u", 10000000) == " 10000000" +string.format("%020.6u", 0) == " 000000" +string.format("%020.6u", 1) == " 000001" +string.format("%020.6u", 2) == " 000002" +string.format("%020.6u", 3) == " 000003" +string.format("%020.6u", 100) == " 000100" +string.format("%020.6u", 10000) == " 010000" +string.format("%020.6u", 100000) == " 100000" +string.format("%020.6u", 1000000) == " 1000000" +string.format("%020.6u", 10000000) == " 10000000" +string.format("%0+u", 0) == "0" +string.format("%0+u", 1) == "1" +string.format("%0+u", -1) == "18446744073709551615" +string.format("%0+u", 2) == "2" +string.format("%0+u", -2) == "18446744073709551614" +string.format("%0+u", 3) == "3" +string.format("%0+u", -3) == "18446744073709551613" +string.format("%0+u", 100) == "100" +string.format("%0+u", 10000) == "10000" +string.format("%0+u", 100000) == "100000" +string.format("%0+u", 1000000) == "1000000" +string.format("%0+u", 10000000) == "10000000" +string.format("%0+.0u", 0) == "" +string.format("%0+.6u", 0) == "000000" +string.format("%0+.6u", 1) == "000001" +string.format("%0+.6u", 2) == "000002" +string.format("%0+.6u", 3) == "000003" +string.format("%0+.6u", 100) == "000100" +string.format("%0+.6u", 10000) == "010000" +string.format("%0+1.0u", 0) == " " +string.format("%0+1.6u", 0) == "000000" +string.format("%0+1.6u", 1) == "000001" +string.format("%0+1.6u", 2) == "000002" +string.format("%0+1.6u", 3) == "000003" +string.format("%0+1.6u", 100) == "000100" +string.format("%0+1.6u", 10000) == "010000" +string.format("%0+2u", 0) == "00" +string.format("%0+2u", 1) == "01" +string.format("%0+2u", 2) == "02" +string.format("%0+2u", 3) == "03" +string.format("%0+2.0u", 0) == " " +string.format("%0+2.0u", 1) == " 1" +string.format("%0+2.0u", 2) == " 2" +string.format("%0+2.0u", 3) == " 3" +string.format("%0+2.1u", 0) == " 0" +string.format("%0+2.1u", 1) == " 1" +string.format("%0+2.1u", 2) == " 2" +string.format("%0+2.1u", 3) == " 3" +string.format("%0+2.6u", 0) == "000000" +string.format("%0+2.6u", 1) == "000001" +string.format("%0+2.6u", 2) == "000002" +string.format("%0+2.6u", 3) == "000003" +string.format("%0+2.6u", 100) == "000100" +string.format("%0+2.6u", 10000) == "010000" +string.format("%0+6u", 0) == "000000" +string.format("%0+6u", 1) == "000001" +string.format("%0+6u", 2) == "000002" +string.format("%0+6u", 3) == "000003" +string.format("%0+6u", 100) == "000100" +string.format("%0+6u", 10000) == "010000" +string.format("%0+6.0u", 0) == " " +string.format("%0+6.0u", 1) == " 1" +string.format("%0+6.0u", 2) == " 2" +string.format("%0+6.0u", 3) == " 3" +string.format("%0+6.0u", 100) == " 100" +string.format("%0+6.0u", 10000) == " 10000" +string.format("%0+6.1u", 0) == " 0" +string.format("%0+6.1u", 1) == " 1" +string.format("%0+6.1u", 2) == " 2" +string.format("%0+6.1u", 3) == " 3" +string.format("%0+6.1u", 100) == " 100" +string.format("%0+6.1u", 10000) == " 10000" +string.format("%0+6.6u", 0) == "000000" +string.format("%0+6.6u", 1) == "000001" +string.format("%0+6.6u", 2) == "000002" +string.format("%0+6.6u", 3) == "000003" +string.format("%0+6.6u", 100) == "000100" +string.format("%0+6.6u", 10000) == "010000" +string.format("%0+20u", 0) == "00000000000000000000" +string.format("%0+20u", 1) == "00000000000000000001" +string.format("%0+20u", 2) == "00000000000000000002" +string.format("%0+20u", 3) == "00000000000000000003" +string.format("%0+20u", 100) == "00000000000000000100" +string.format("%0+20u", 10000) == "00000000000000010000" +string.format("%0+20u", 100000) == "00000000000000100000" +string.format("%0+20u", 1000000) == "00000000000001000000" +string.format("%0+20u", 10000000) == "00000000000010000000" +string.format("%0+20.0u", 0) == " " +string.format("%0+20.0u", 1) == " 1" +string.format("%0+20.0u", 2) == " 2" +string.format("%0+20.0u", 3) == " 3" +string.format("%0+20.0u", 100) == " 100" +string.format("%0+20.0u", 10000) == " 10000" +string.format("%0+20.0u", 100000) == " 100000" +string.format("%0+20.0u", 1000000) == " 1000000" +string.format("%0+20.0u", 10000000) == " 10000000" +string.format("%0+20.1u", 0) == " 0" +string.format("%0+20.1u", 1) == " 1" +string.format("%0+20.1u", 2) == " 2" +string.format("%0+20.1u", 3) == " 3" +string.format("%0+20.1u", 100) == " 100" +string.format("%0+20.1u", 10000) == " 10000" +string.format("%0+20.1u", 100000) == " 100000" +string.format("%0+20.1u", 1000000) == " 1000000" +string.format("%0+20.1u", 10000000) == " 10000000" +string.format("%0+20.6u", 0) == " 000000" +string.format("%0+20.6u", 1) == " 000001" +string.format("%0+20.6u", 2) == " 000002" +string.format("%0+20.6u", 3) == " 000003" +string.format("%0+20.6u", 100) == " 000100" +string.format("%0+20.6u", 10000) == " 010000" +string.format("%0+20.6u", 100000) == " 100000" +string.format("%0+20.6u", 1000000) == " 1000000" +string.format("%0+20.6u", 10000000) == " 10000000" +string.format("%0-u", 0) == "0" +string.format("%0-u", 1) == "1" +string.format("%0-u", -1) == "18446744073709551615" +string.format("%0-u", 2) == "2" +string.format("%0-u", -2) == "18446744073709551614" +string.format("%0-u", 3) == "3" +string.format("%0-u", -3) == "18446744073709551613" +string.format("%0-u", 100) == "100" +string.format("%0-u", 10000) == "10000" +string.format("%0-u", 100000) == "100000" +string.format("%0-u", 1000000) == "1000000" +string.format("%0-u", 10000000) == "10000000" +string.format("%0-.0u", 0) == "" +string.format("%0-.6u", 0) == "000000" +string.format("%0-.6u", 1) == "000001" +string.format("%0-.6u", 2) == "000002" +string.format("%0-.6u", 3) == "000003" +string.format("%0-.6u", 100) == "000100" +string.format("%0-.6u", 10000) == "010000" +string.format("%0-1.0u", 0) == " " +string.format("%0-1.6u", 0) == "000000" +string.format("%0-1.6u", 1) == "000001" +string.format("%0-1.6u", 2) == "000002" +string.format("%0-1.6u", 3) == "000003" +string.format("%0-1.6u", 100) == "000100" +string.format("%0-1.6u", 10000) == "010000" +string.format("%0-2u", 0) == "0 " +string.format("%0-2u", 1) == "1 " +string.format("%0-2u", 2) == "2 " +string.format("%0-2u", 3) == "3 " +string.format("%0-2.0u", 0) == " " +string.format("%0-2.0u", 1) == "1 " +string.format("%0-2.0u", 2) == "2 " +string.format("%0-2.0u", 3) == "3 " +string.format("%0-2.1u", 0) == "0 " +string.format("%0-2.1u", 1) == "1 " +string.format("%0-2.1u", 2) == "2 " +string.format("%0-2.1u", 3) == "3 " +string.format("%0-2.6u", 0) == "000000" +string.format("%0-2.6u", 1) == "000001" +string.format("%0-2.6u", 2) == "000002" +string.format("%0-2.6u", 3) == "000003" +string.format("%0-2.6u", 100) == "000100" +string.format("%0-2.6u", 10000) == "010000" +string.format("%0-6u", 0) == "0 " +string.format("%0-6u", 1) == "1 " +string.format("%0-6u", 2) == "2 " +string.format("%0-6u", 3) == "3 " +string.format("%0-6u", 100) == "100 " +string.format("%0-6u", 10000) == "10000 " +string.format("%0-6.0u", 0) == " " +string.format("%0-6.0u", 1) == "1 " +string.format("%0-6.0u", 2) == "2 " +string.format("%0-6.0u", 3) == "3 " +string.format("%0-6.0u", 100) == "100 " +string.format("%0-6.0u", 10000) == "10000 " +string.format("%0-6.1u", 0) == "0 " +string.format("%0-6.1u", 1) == "1 " +string.format("%0-6.1u", 2) == "2 " +string.format("%0-6.1u", 3) == "3 " +string.format("%0-6.1u", 100) == "100 " +string.format("%0-6.1u", 10000) == "10000 " +string.format("%0-6.6u", 0) == "000000" +string.format("%0-6.6u", 1) == "000001" +string.format("%0-6.6u", 2) == "000002" +string.format("%0-6.6u", 3) == "000003" +string.format("%0-6.6u", 100) == "000100" +string.format("%0-6.6u", 10000) == "010000" +string.format("%0-20u", 0) == "0 " +string.format("%0-20u", 1) == "1 " +string.format("%0-20u", 2) == "2 " +string.format("%0-20u", 3) == "3 " +string.format("%0-20u", 100) == "100 " +string.format("%0-20u", 10000) == "10000 " +string.format("%0-20u", 100000) == "100000 " +string.format("%0-20u", 1000000) == "1000000 " +string.format("%0-20u", 10000000) == "10000000 " +string.format("%0-20.0u", 0) == " " +string.format("%0-20.0u", 1) == "1 " +string.format("%0-20.0u", 2) == "2 " +string.format("%0-20.0u", 3) == "3 " +string.format("%0-20.0u", 100) == "100 " +string.format("%0-20.0u", 10000) == "10000 " +string.format("%0-20.0u", 100000) == "100000 " +string.format("%0-20.0u", 1000000) == "1000000 " +string.format("%0-20.0u", 10000000) == "10000000 " +string.format("%0-20.1u", 0) == "0 " +string.format("%0-20.1u", 1) == "1 " +string.format("%0-20.1u", 2) == "2 " +string.format("%0-20.1u", 3) == "3 " +string.format("%0-20.1u", 100) == "100 " +string.format("%0-20.1u", 10000) == "10000 " +string.format("%0-20.1u", 100000) == "100000 " +string.format("%0-20.1u", 1000000) == "1000000 " +string.format("%0-20.1u", 10000000) == "10000000 " +string.format("%0-20.6u", 0) == "000000 " +string.format("%0-20.6u", 1) == "000001 " +string.format("%0-20.6u", 2) == "000002 " +string.format("%0-20.6u", 3) == "000003 " +string.format("%0-20.6u", 100) == "000100 " +string.format("%0-20.6u", 10000) == "010000 " +string.format("%0-20.6u", 100000) == "100000 " +string.format("%0-20.6u", 1000000) == "1000000 " +string.format("%0-20.6u", 10000000) == "10000000 " +string.format("%0-+u", 0) == "0" +string.format("%0-+u", 1) == "1" +string.format("%0-+u", -1) == "18446744073709551615" +string.format("%0-+u", 2) == "2" +string.format("%0-+u", -2) == "18446744073709551614" +string.format("%0-+u", 3) == "3" +string.format("%0-+u", -3) == "18446744073709551613" +string.format("%0-+u", 100) == "100" +string.format("%0-+u", 10000) == "10000" +string.format("%0-+u", 100000) == "100000" +string.format("%0-+u", 1000000) == "1000000" +string.format("%0-+u", 10000000) == "10000000" +string.format("%0-+.0u", 0) == "" +string.format("%0-+.6u", 0) == "000000" +string.format("%0-+.6u", 1) == "000001" +string.format("%0-+.6u", 2) == "000002" +string.format("%0-+.6u", 3) == "000003" +string.format("%0-+.6u", 100) == "000100" +string.format("%0-+.6u", 10000) == "010000" +string.format("%0-+1.0u", 0) == " " +string.format("%0-+1.6u", 0) == "000000" +string.format("%0-+1.6u", 1) == "000001" +string.format("%0-+1.6u", 2) == "000002" +string.format("%0-+1.6u", 3) == "000003" +string.format("%0-+1.6u", 100) == "000100" +string.format("%0-+1.6u", 10000) == "010000" +string.format("%0-+2u", 0) == "0 " +string.format("%0-+2u", 1) == "1 " +string.format("%0-+2u", 2) == "2 " +string.format("%0-+2u", 3) == "3 " +string.format("%0-+2.0u", 0) == " " +string.format("%0-+2.0u", 1) == "1 " +string.format("%0-+2.0u", 2) == "2 " +string.format("%0-+2.0u", 3) == "3 " +string.format("%0-+2.1u", 0) == "0 " +string.format("%0-+2.1u", 1) == "1 " +string.format("%0-+2.1u", 2) == "2 " +string.format("%0-+2.1u", 3) == "3 " +string.format("%0-+2.6u", 0) == "000000" +string.format("%0-+2.6u", 1) == "000001" +string.format("%0-+2.6u", 2) == "000002" +string.format("%0-+2.6u", 3) == "000003" +string.format("%0-+2.6u", 100) == "000100" +string.format("%0-+2.6u", 10000) == "010000" +string.format("%0-+6u", 0) == "0 " +string.format("%0-+6u", 1) == "1 " +string.format("%0-+6u", 2) == "2 " +string.format("%0-+6u", 3) == "3 " +string.format("%0-+6u", 100) == "100 " +string.format("%0-+6u", 10000) == "10000 " +string.format("%0-+6.0u", 0) == " " +string.format("%0-+6.0u", 1) == "1 " +string.format("%0-+6.0u", 2) == "2 " +string.format("%0-+6.0u", 3) == "3 " +string.format("%0-+6.0u", 100) == "100 " +string.format("%0-+6.0u", 10000) == "10000 " +string.format("%0-+6.1u", 0) == "0 " +string.format("%0-+6.1u", 1) == "1 " +string.format("%0-+6.1u", 2) == "2 " +string.format("%0-+6.1u", 3) == "3 " +string.format("%0-+6.1u", 100) == "100 " +string.format("%0-+6.1u", 10000) == "10000 " +string.format("%0-+6.6u", 0) == "000000" +string.format("%0-+6.6u", 1) == "000001" +string.format("%0-+6.6u", 2) == "000002" +string.format("%0-+6.6u", 3) == "000003" +string.format("%0-+6.6u", 100) == "000100" +string.format("%0-+6.6u", 10000) == "010000" +string.format("%0-+20u", 0) == "0 " +string.format("%0-+20u", 1) == "1 " +string.format("%0-+20u", 2) == "2 " +string.format("%0-+20u", 3) == "3 " +string.format("%0-+20u", 100) == "100 " +string.format("%0-+20u", 10000) == "10000 " +string.format("%0-+20u", 100000) == "100000 " +string.format("%0-+20u", 1000000) == "1000000 " +string.format("%0-+20u", 10000000) == "10000000 " +string.format("%0-+20.0u", 0) == " " +string.format("%0-+20.0u", 1) == "1 " +string.format("%0-+20.0u", 2) == "2 " +string.format("%0-+20.0u", 3) == "3 " +string.format("%0-+20.0u", 100) == "100 " +string.format("%0-+20.0u", 10000) == "10000 " +string.format("%0-+20.0u", 100000) == "100000 " +string.format("%0-+20.0u", 1000000) == "1000000 " +string.format("%0-+20.0u", 10000000) == "10000000 " +string.format("%0-+20.1u", 0) == "0 " +string.format("%0-+20.1u", 1) == "1 " +string.format("%0-+20.1u", 2) == "2 " +string.format("%0-+20.1u", 3) == "3 " +string.format("%0-+20.1u", 100) == "100 " +string.format("%0-+20.1u", 10000) == "10000 " +string.format("%0-+20.1u", 100000) == "100000 " +string.format("%0-+20.1u", 1000000) == "1000000 " +string.format("%0-+20.1u", 10000000) == "10000000 " +string.format("%0-+20.6u", 0) == "000000 " +string.format("%0-+20.6u", 1) == "000001 " +string.format("%0-+20.6u", 2) == "000002 " +string.format("%0-+20.6u", 3) == "000003 " +string.format("%0-+20.6u", 100) == "000100 " +string.format("%0-+20.6u", 10000) == "010000 " +string.format("%0-+20.6u", 100000) == "100000 " +string.format("%0-+20.6u", 1000000) == "1000000 " +string.format("%0-+20.6u", 10000000) == "10000000 " +string.format("%0 u", 0) == "0" +string.format("%0 u", 1) == "1" +string.format("%0 u", -1) == "18446744073709551615" +string.format("%0 u", 2) == "2" +string.format("%0 u", -2) == "18446744073709551614" +string.format("%0 u", 3) == "3" +string.format("%0 u", -3) == "18446744073709551613" +string.format("%0 u", 100) == "100" +string.format("%0 u", 10000) == "10000" +string.format("%0 u", 100000) == "100000" +string.format("%0 u", 1000000) == "1000000" +string.format("%0 u", 10000000) == "10000000" +string.format("%0 .0u", 0) == "" +string.format("%0 .6u", 0) == "000000" +string.format("%0 .6u", 1) == "000001" +string.format("%0 .6u", 2) == "000002" +string.format("%0 .6u", 3) == "000003" +string.format("%0 .6u", 100) == "000100" +string.format("%0 .6u", 10000) == "010000" +string.format("%0 1.0u", 0) == " " +string.format("%0 1.6u", 0) == "000000" +string.format("%0 1.6u", 1) == "000001" +string.format("%0 1.6u", 2) == "000002" +string.format("%0 1.6u", 3) == "000003" +string.format("%0 1.6u", 100) == "000100" +string.format("%0 1.6u", 10000) == "010000" +string.format("%0 2u", 0) == "00" +string.format("%0 2u", 1) == "01" +string.format("%0 2u", 2) == "02" +string.format("%0 2u", 3) == "03" +string.format("%0 2.0u", 0) == " " +string.format("%0 2.0u", 1) == " 1" +string.format("%0 2.0u", 2) == " 2" +string.format("%0 2.0u", 3) == " 3" +string.format("%0 2.1u", 0) == " 0" +string.format("%0 2.1u", 1) == " 1" +string.format("%0 2.1u", 2) == " 2" +string.format("%0 2.1u", 3) == " 3" +string.format("%0 2.6u", 0) == "000000" +string.format("%0 2.6u", 1) == "000001" +string.format("%0 2.6u", 2) == "000002" +string.format("%0 2.6u", 3) == "000003" +string.format("%0 2.6u", 100) == "000100" +string.format("%0 2.6u", 10000) == "010000" +string.format("%0 6u", 0) == "000000" +string.format("%0 6u", 1) == "000001" +string.format("%0 6u", 2) == "000002" +string.format("%0 6u", 3) == "000003" +string.format("%0 6u", 100) == "000100" +string.format("%0 6u", 10000) == "010000" +string.format("%0 6.0u", 0) == " " +string.format("%0 6.0u", 1) == " 1" +string.format("%0 6.0u", 2) == " 2" +string.format("%0 6.0u", 3) == " 3" +string.format("%0 6.0u", 100) == " 100" +string.format("%0 6.0u", 10000) == " 10000" +string.format("%0 6.1u", 0) == " 0" +string.format("%0 6.1u", 1) == " 1" +string.format("%0 6.1u", 2) == " 2" +string.format("%0 6.1u", 3) == " 3" +string.format("%0 6.1u", 100) == " 100" +string.format("%0 6.1u", 10000) == " 10000" +string.format("%0 6.6u", 0) == "000000" +string.format("%0 6.6u", 1) == "000001" +string.format("%0 6.6u", 2) == "000002" +string.format("%0 6.6u", 3) == "000003" +string.format("%0 6.6u", 100) == "000100" +string.format("%0 6.6u", 10000) == "010000" +string.format("%0 20u", 0) == "00000000000000000000" +string.format("%0 20u", 1) == "00000000000000000001" +string.format("%0 20u", 2) == "00000000000000000002" +string.format("%0 20u", 3) == "00000000000000000003" +string.format("%0 20u", 100) == "00000000000000000100" +string.format("%0 20u", 10000) == "00000000000000010000" +string.format("%0 20u", 100000) == "00000000000000100000" +string.format("%0 20u", 1000000) == "00000000000001000000" +string.format("%0 20u", 10000000) == "00000000000010000000" +string.format("%0 20.0u", 0) == " " +string.format("%0 20.0u", 1) == " 1" +string.format("%0 20.0u", 2) == " 2" +string.format("%0 20.0u", 3) == " 3" +string.format("%0 20.0u", 100) == " 100" +string.format("%0 20.0u", 10000) == " 10000" +string.format("%0 20.0u", 100000) == " 100000" +string.format("%0 20.0u", 1000000) == " 1000000" +string.format("%0 20.0u", 10000000) == " 10000000" +string.format("%0 20.1u", 0) == " 0" +string.format("%0 20.1u", 1) == " 1" +string.format("%0 20.1u", 2) == " 2" +string.format("%0 20.1u", 3) == " 3" +string.format("%0 20.1u", 100) == " 100" +string.format("%0 20.1u", 10000) == " 10000" +string.format("%0 20.1u", 100000) == " 100000" +string.format("%0 20.1u", 1000000) == " 1000000" +string.format("%0 20.1u", 10000000) == " 10000000" +string.format("%0 20.6u", 0) == " 000000" +string.format("%0 20.6u", 1) == " 000001" +string.format("%0 20.6u", 2) == " 000002" +string.format("%0 20.6u", 3) == " 000003" +string.format("%0 20.6u", 100) == " 000100" +string.format("%0 20.6u", 10000) == " 010000" +string.format("%0 20.6u", 100000) == " 100000" +string.format("%0 20.6u", 1000000) == " 1000000" +string.format("%0 20.6u", 10000000) == " 10000000" +string.format("%0 +u", 0) == "0" +string.format("%0 +u", 1) == "1" +string.format("%0 +u", -1) == "18446744073709551615" +string.format("%0 +u", 2) == "2" +string.format("%0 +u", -2) == "18446744073709551614" +string.format("%0 +u", 3) == "3" +string.format("%0 +u", -3) == "18446744073709551613" +string.format("%0 +u", 100) == "100" +string.format("%0 +u", 10000) == "10000" +string.format("%0 +u", 100000) == "100000" +string.format("%0 +u", 1000000) == "1000000" +string.format("%0 +u", 10000000) == "10000000" +string.format("%0 +.0u", 0) == "" +string.format("%0 +.6u", 0) == "000000" +string.format("%0 +.6u", 1) == "000001" +string.format("%0 +.6u", 2) == "000002" +string.format("%0 +.6u", 3) == "000003" +string.format("%0 +.6u", 100) == "000100" +string.format("%0 +.6u", 10000) == "010000" +string.format("%0 +1.0u", 0) == " " +string.format("%0 +1.6u", 0) == "000000" +string.format("%0 +1.6u", 1) == "000001" +string.format("%0 +1.6u", 2) == "000002" +string.format("%0 +1.6u", 3) == "000003" +string.format("%0 +1.6u", 100) == "000100" +string.format("%0 +1.6u", 10000) == "010000" +string.format("%0 +2u", 0) == "00" +string.format("%0 +2u", 1) == "01" +string.format("%0 +2u", 2) == "02" +string.format("%0 +2u", 3) == "03" +string.format("%0 +2.0u", 0) == " " +string.format("%0 +2.0u", 1) == " 1" +string.format("%0 +2.0u", 2) == " 2" +string.format("%0 +2.0u", 3) == " 3" +string.format("%0 +2.1u", 0) == " 0" +string.format("%0 +2.1u", 1) == " 1" +string.format("%0 +2.1u", 2) == " 2" +string.format("%0 +2.1u", 3) == " 3" +string.format("%0 +2.6u", 0) == "000000" +string.format("%0 +2.6u", 1) == "000001" +string.format("%0 +2.6u", 2) == "000002" +string.format("%0 +2.6u", 3) == "000003" +string.format("%0 +2.6u", 100) == "000100" +string.format("%0 +2.6u", 10000) == "010000" +string.format("%0 +6u", 0) == "000000" +string.format("%0 +6u", 1) == "000001" +string.format("%0 +6u", 2) == "000002" +string.format("%0 +6u", 3) == "000003" +string.format("%0 +6u", 100) == "000100" +string.format("%0 +6u", 10000) == "010000" +string.format("%0 +6.0u", 0) == " " +string.format("%0 +6.0u", 1) == " 1" +string.format("%0 +6.0u", 2) == " 2" +string.format("%0 +6.0u", 3) == " 3" +string.format("%0 +6.0u", 100) == " 100" +string.format("%0 +6.0u", 10000) == " 10000" +string.format("%0 +6.1u", 0) == " 0" +string.format("%0 +6.1u", 1) == " 1" +string.format("%0 +6.1u", 2) == " 2" +string.format("%0 +6.1u", 3) == " 3" +string.format("%0 +6.1u", 100) == " 100" +string.format("%0 +6.1u", 10000) == " 10000" +string.format("%0 +6.6u", 0) == "000000" +string.format("%0 +6.6u", 1) == "000001" +string.format("%0 +6.6u", 2) == "000002" +string.format("%0 +6.6u", 3) == "000003" +string.format("%0 +6.6u", 100) == "000100" +string.format("%0 +6.6u", 10000) == "010000" +string.format("%0 +20u", 0) == "00000000000000000000" +string.format("%0 +20u", 1) == "00000000000000000001" +string.format("%0 +20u", 2) == "00000000000000000002" +string.format("%0 +20u", 3) == "00000000000000000003" +string.format("%0 +20u", 100) == "00000000000000000100" +string.format("%0 +20u", 10000) == "00000000000000010000" +string.format("%0 +20u", 100000) == "00000000000000100000" +string.format("%0 +20u", 1000000) == "00000000000001000000" +string.format("%0 +20u", 10000000) == "00000000000010000000" +string.format("%0 +20.0u", 0) == " " +string.format("%0 +20.0u", 1) == " 1" +string.format("%0 +20.0u", 2) == " 2" +string.format("%0 +20.0u", 3) == " 3" +string.format("%0 +20.0u", 100) == " 100" +string.format("%0 +20.0u", 10000) == " 10000" +string.format("%0 +20.0u", 100000) == " 100000" +string.format("%0 +20.0u", 1000000) == " 1000000" +string.format("%0 +20.0u", 10000000) == " 10000000" +string.format("%0 +20.1u", 0) == " 0" +string.format("%0 +20.1u", 1) == " 1" +string.format("%0 +20.1u", 2) == " 2" +string.format("%0 +20.1u", 3) == " 3" +string.format("%0 +20.1u", 100) == " 100" +string.format("%0 +20.1u", 10000) == " 10000" +string.format("%0 +20.1u", 100000) == " 100000" +string.format("%0 +20.1u", 1000000) == " 1000000" +string.format("%0 +20.1u", 10000000) == " 10000000" +string.format("%0 +20.6u", 0) == " 000000" +string.format("%0 +20.6u", 1) == " 000001" +string.format("%0 +20.6u", 2) == " 000002" +string.format("%0 +20.6u", 3) == " 000003" +string.format("%0 +20.6u", 100) == " 000100" +string.format("%0 +20.6u", 10000) == " 010000" +string.format("%0 +20.6u", 100000) == " 100000" +string.format("%0 +20.6u", 1000000) == " 1000000" +string.format("%0 +20.6u", 10000000) == " 10000000" +string.format("%0 -u", 0) == "0" +string.format("%0 -u", 1) == "1" +string.format("%0 -u", -1) == "18446744073709551615" +string.format("%0 -u", 2) == "2" +string.format("%0 -u", -2) == "18446744073709551614" +string.format("%0 -u", 3) == "3" +string.format("%0 -u", -3) == "18446744073709551613" +string.format("%0 -u", 100) == "100" +string.format("%0 -u", 10000) == "10000" +string.format("%0 -u", 100000) == "100000" +string.format("%0 -u", 1000000) == "1000000" +string.format("%0 -u", 10000000) == "10000000" +string.format("%0 -.0u", 0) == "" +string.format("%0 -.6u", 0) == "000000" +string.format("%0 -.6u", 1) == "000001" +string.format("%0 -.6u", 2) == "000002" +string.format("%0 -.6u", 3) == "000003" +string.format("%0 -.6u", 100) == "000100" +string.format("%0 -.6u", 10000) == "010000" +string.format("%0 -1.0u", 0) == " " +string.format("%0 -1.6u", 0) == "000000" +string.format("%0 -1.6u", 1) == "000001" +string.format("%0 -1.6u", 2) == "000002" +string.format("%0 -1.6u", 3) == "000003" +string.format("%0 -1.6u", 100) == "000100" +string.format("%0 -1.6u", 10000) == "010000" +string.format("%0 -2u", 0) == "0 " +string.format("%0 -2u", 1) == "1 " +string.format("%0 -2u", 2) == "2 " +string.format("%0 -2u", 3) == "3 " +string.format("%0 -2.0u", 0) == " " +string.format("%0 -2.0u", 1) == "1 " +string.format("%0 -2.0u", 2) == "2 " +string.format("%0 -2.0u", 3) == "3 " +string.format("%0 -2.1u", 0) == "0 " +string.format("%0 -2.1u", 1) == "1 " +string.format("%0 -2.1u", 2) == "2 " +string.format("%0 -2.1u", 3) == "3 " +string.format("%0 -2.6u", 0) == "000000" +string.format("%0 -2.6u", 1) == "000001" +string.format("%0 -2.6u", 2) == "000002" +string.format("%0 -2.6u", 3) == "000003" +string.format("%0 -2.6u", 100) == "000100" +string.format("%0 -2.6u", 10000) == "010000" +string.format("%0 -6u", 0) == "0 " +string.format("%0 -6u", 1) == "1 " +string.format("%0 -6u", 2) == "2 " +string.format("%0 -6u", 3) == "3 " +string.format("%0 -6u", 100) == "100 " +string.format("%0 -6u", 10000) == "10000 " +string.format("%0 -6.0u", 0) == " " +string.format("%0 -6.0u", 1) == "1 " +string.format("%0 -6.0u", 2) == "2 " +string.format("%0 -6.0u", 3) == "3 " +string.format("%0 -6.0u", 100) == "100 " +string.format("%0 -6.0u", 10000) == "10000 " +string.format("%0 -6.1u", 0) == "0 " +string.format("%0 -6.1u", 1) == "1 " +string.format("%0 -6.1u", 2) == "2 " +string.format("%0 -6.1u", 3) == "3 " +string.format("%0 -6.1u", 100) == "100 " +string.format("%0 -6.1u", 10000) == "10000 " +string.format("%0 -6.6u", 0) == "000000" +string.format("%0 -6.6u", 1) == "000001" +string.format("%0 -6.6u", 2) == "000002" +string.format("%0 -6.6u", 3) == "000003" +string.format("%0 -6.6u", 100) == "000100" +string.format("%0 -6.6u", 10000) == "010000" +string.format("%0 -20u", 0) == "0 " +string.format("%0 -20u", 1) == "1 " +string.format("%0 -20u", 2) == "2 " +string.format("%0 -20u", 3) == "3 " +string.format("%0 -20u", 100) == "100 " +string.format("%0 -20u", 10000) == "10000 " +string.format("%0 -20u", 100000) == "100000 " +string.format("%0 -20u", 1000000) == "1000000 " +string.format("%0 -20u", 10000000) == "10000000 " +string.format("%0 -20.0u", 0) == " " +string.format("%0 -20.0u", 1) == "1 " +string.format("%0 -20.0u", 2) == "2 " +string.format("%0 -20.0u", 3) == "3 " +string.format("%0 -20.0u", 100) == "100 " +string.format("%0 -20.0u", 10000) == "10000 " +string.format("%0 -20.0u", 100000) == "100000 " +string.format("%0 -20.0u", 1000000) == "1000000 " +string.format("%0 -20.0u", 10000000) == "10000000 " +string.format("%0 -20.1u", 0) == "0 " +string.format("%0 -20.1u", 1) == "1 " +string.format("%0 -20.1u", 2) == "2 " +string.format("%0 -20.1u", 3) == "3 " +string.format("%0 -20.1u", 100) == "100 " +string.format("%0 -20.1u", 10000) == "10000 " +string.format("%0 -20.1u", 100000) == "100000 " +string.format("%0 -20.1u", 1000000) == "1000000 " +string.format("%0 -20.1u", 10000000) == "10000000 " +string.format("%0 -20.6u", 0) == "000000 " +string.format("%0 -20.6u", 1) == "000001 " +string.format("%0 -20.6u", 2) == "000002 " +string.format("%0 -20.6u", 3) == "000003 " +string.format("%0 -20.6u", 100) == "000100 " +string.format("%0 -20.6u", 10000) == "010000 " +string.format("%0 -20.6u", 100000) == "100000 " +string.format("%0 -20.6u", 1000000) == "1000000 " +string.format("%0 -20.6u", 10000000) == "10000000 " +string.format("%0 -+u", 0) == "0" +string.format("%0 -+u", 1) == "1" +string.format("%0 -+u", -1) == "18446744073709551615" +string.format("%0 -+u", 2) == "2" +string.format("%0 -+u", -2) == "18446744073709551614" +string.format("%0 -+u", 3) == "3" +string.format("%0 -+u", -3) == "18446744073709551613" +string.format("%0 -+u", 100) == "100" +string.format("%0 -+u", 10000) == "10000" +string.format("%0 -+u", 100000) == "100000" +string.format("%0 -+u", 1000000) == "1000000" +string.format("%0 -+u", 10000000) == "10000000" +string.format("%0 -+.0u", 0) == "" +string.format("%0 -+.6u", 0) == "000000" +string.format("%0 -+.6u", 1) == "000001" +string.format("%0 -+.6u", 2) == "000002" +string.format("%0 -+.6u", 3) == "000003" +string.format("%0 -+.6u", 100) == "000100" +string.format("%0 -+.6u", 10000) == "010000" +string.format("%0 -+1.0u", 0) == " " +string.format("%0 -+1.6u", 0) == "000000" +string.format("%0 -+1.6u", 1) == "000001" +string.format("%0 -+1.6u", 2) == "000002" +string.format("%0 -+1.6u", 3) == "000003" +string.format("%0 -+1.6u", 100) == "000100" +string.format("%0 -+1.6u", 10000) == "010000" +string.format("%0 -+2u", 0) == "0 " +string.format("%0 -+2u", 1) == "1 " +string.format("%0 -+2u", 2) == "2 " +string.format("%0 -+2u", 3) == "3 " +string.format("%0 -+2.0u", 0) == " " +string.format("%0 -+2.0u", 1) == "1 " +string.format("%0 -+2.0u", 2) == "2 " +string.format("%0 -+2.0u", 3) == "3 " +string.format("%0 -+2.1u", 0) == "0 " +string.format("%0 -+2.1u", 1) == "1 " +string.format("%0 -+2.1u", 2) == "2 " +string.format("%0 -+2.1u", 3) == "3 " +string.format("%0 -+2.6u", 0) == "000000" +string.format("%0 -+2.6u", 1) == "000001" +string.format("%0 -+2.6u", 2) == "000002" +string.format("%0 -+2.6u", 3) == "000003" +string.format("%0 -+2.6u", 100) == "000100" +string.format("%0 -+2.6u", 10000) == "010000" +string.format("%0 -+6u", 0) == "0 " +string.format("%0 -+6u", 1) == "1 " +string.format("%0 -+6u", 2) == "2 " +string.format("%0 -+6u", 3) == "3 " +string.format("%0 -+6u", 100) == "100 " +string.format("%0 -+6u", 10000) == "10000 " +string.format("%0 -+6.0u", 0) == " " +string.format("%0 -+6.0u", 1) == "1 " +string.format("%0 -+6.0u", 2) == "2 " +string.format("%0 -+6.0u", 3) == "3 " +string.format("%0 -+6.0u", 100) == "100 " +string.format("%0 -+6.0u", 10000) == "10000 " +string.format("%0 -+6.1u", 0) == "0 " +string.format("%0 -+6.1u", 1) == "1 " +string.format("%0 -+6.1u", 2) == "2 " +string.format("%0 -+6.1u", 3) == "3 " +string.format("%0 -+6.1u", 100) == "100 " +string.format("%0 -+6.1u", 10000) == "10000 " +string.format("%0 -+6.6u", 0) == "000000" +string.format("%0 -+6.6u", 1) == "000001" +string.format("%0 -+6.6u", 2) == "000002" +string.format("%0 -+6.6u", 3) == "000003" +string.format("%0 -+6.6u", 100) == "000100" +string.format("%0 -+6.6u", 10000) == "010000" +string.format("%0 -+20u", 0) == "0 " +string.format("%0 -+20u", 1) == "1 " +string.format("%0 -+20u", 2) == "2 " +string.format("%0 -+20u", 3) == "3 " +string.format("%0 -+20u", 100) == "100 " +string.format("%0 -+20u", 10000) == "10000 " +string.format("%0 -+20u", 100000) == "100000 " +string.format("%0 -+20u", 1000000) == "1000000 " +string.format("%0 -+20u", 10000000) == "10000000 " +string.format("%0 -+20.0u", 0) == " " +string.format("%0 -+20.0u", 1) == "1 " +string.format("%0 -+20.0u", 2) == "2 " +string.format("%0 -+20.0u", 3) == "3 " +string.format("%0 -+20.0u", 100) == "100 " +string.format("%0 -+20.0u", 10000) == "10000 " +string.format("%0 -+20.0u", 100000) == "100000 " +string.format("%0 -+20.0u", 1000000) == "1000000 " +string.format("%0 -+20.0u", 10000000) == "10000000 " +string.format("%0 -+20.1u", 0) == "0 " +string.format("%0 -+20.1u", 1) == "1 " +string.format("%0 -+20.1u", 2) == "2 " +string.format("%0 -+20.1u", 3) == "3 " +string.format("%0 -+20.1u", 100) == "100 " +string.format("%0 -+20.1u", 10000) == "10000 " +string.format("%0 -+20.1u", 100000) == "100000 " +string.format("%0 -+20.1u", 1000000) == "1000000 " +string.format("%0 -+20.1u", 10000000) == "10000000 " +string.format("%0 -+20.6u", 0) == "000000 " +string.format("%0 -+20.6u", 1) == "000001 " +string.format("%0 -+20.6u", 2) == "000002 " +string.format("%0 -+20.6u", 3) == "000003 " +string.format("%0 -+20.6u", 100) == "000100 " +string.format("%0 -+20.6u", 10000) == "010000 " +string.format("%0 -+20.6u", 100000) == "100000 " +string.format("%0 -+20.6u", 1000000) == "1000000 " +string.format("%0 -+20.6u", 10000000) == "10000000 " +string.format("%0#u", 0) == "0" +string.format("%0#u", 1) == "1" +string.format("%0#u", -1) == "18446744073709551615" +string.format("%0#u", 2) == "2" +string.format("%0#u", -2) == "18446744073709551614" +string.format("%0#u", 3) == "3" +string.format("%0#u", -3) == "18446744073709551613" +string.format("%0#u", 100) == "100" +string.format("%0#u", 10000) == "10000" +string.format("%0#u", 100000) == "100000" +string.format("%0#u", 1000000) == "1000000" +string.format("%0#u", 10000000) == "10000000" +string.format("%0#.0u", 0) == "" +string.format("%0#.6u", 0) == "000000" +string.format("%0#.6u", 1) == "000001" +string.format("%0#.6u", 2) == "000002" +string.format("%0#.6u", 3) == "000003" +string.format("%0#.6u", 100) == "000100" +string.format("%0#.6u", 10000) == "010000" +string.format("%0#1.0u", 0) == " " +string.format("%0#1.6u", 0) == "000000" +string.format("%0#1.6u", 1) == "000001" +string.format("%0#1.6u", 2) == "000002" +string.format("%0#1.6u", 3) == "000003" +string.format("%0#1.6u", 100) == "000100" +string.format("%0#1.6u", 10000) == "010000" +string.format("%0#2u", 0) == "00" +string.format("%0#2u", 1) == "01" +string.format("%0#2u", 2) == "02" +string.format("%0#2u", 3) == "03" +string.format("%0#2.0u", 0) == " " +string.format("%0#2.0u", 1) == " 1" +string.format("%0#2.0u", 2) == " 2" +string.format("%0#2.0u", 3) == " 3" +string.format("%0#2.1u", 0) == " 0" +string.format("%0#2.1u", 1) == " 1" +string.format("%0#2.1u", 2) == " 2" +string.format("%0#2.1u", 3) == " 3" +string.format("%0#2.6u", 0) == "000000" +string.format("%0#2.6u", 1) == "000001" +string.format("%0#2.6u", 2) == "000002" +string.format("%0#2.6u", 3) == "000003" +string.format("%0#2.6u", 100) == "000100" +string.format("%0#2.6u", 10000) == "010000" +string.format("%0#6u", 0) == "000000" +string.format("%0#6u", 1) == "000001" +string.format("%0#6u", 2) == "000002" +string.format("%0#6u", 3) == "000003" +string.format("%0#6u", 100) == "000100" +string.format("%0#6u", 10000) == "010000" +string.format("%0#6.0u", 0) == " " +string.format("%0#6.0u", 1) == " 1" +string.format("%0#6.0u", 2) == " 2" +string.format("%0#6.0u", 3) == " 3" +string.format("%0#6.0u", 100) == " 100" +string.format("%0#6.0u", 10000) == " 10000" +string.format("%0#6.1u", 0) == " 0" +string.format("%0#6.1u", 1) == " 1" +string.format("%0#6.1u", 2) == " 2" +string.format("%0#6.1u", 3) == " 3" +string.format("%0#6.1u", 100) == " 100" +string.format("%0#6.1u", 10000) == " 10000" +string.format("%0#6.6u", 0) == "000000" +string.format("%0#6.6u", 1) == "000001" +string.format("%0#6.6u", 2) == "000002" +string.format("%0#6.6u", 3) == "000003" +string.format("%0#6.6u", 100) == "000100" +string.format("%0#6.6u", 10000) == "010000" +string.format("%0#20u", 0) == "00000000000000000000" +string.format("%0#20u", 1) == "00000000000000000001" +string.format("%0#20u", 2) == "00000000000000000002" +string.format("%0#20u", 3) == "00000000000000000003" +string.format("%0#20u", 100) == "00000000000000000100" +string.format("%0#20u", 10000) == "00000000000000010000" +string.format("%0#20u", 100000) == "00000000000000100000" +string.format("%0#20u", 1000000) == "00000000000001000000" +string.format("%0#20u", 10000000) == "00000000000010000000" +string.format("%0#20.0u", 0) == " " +string.format("%0#20.0u", 1) == " 1" +string.format("%0#20.0u", 2) == " 2" +string.format("%0#20.0u", 3) == " 3" +string.format("%0#20.0u", 100) == " 100" +string.format("%0#20.0u", 10000) == " 10000" +string.format("%0#20.0u", 100000) == " 100000" +string.format("%0#20.0u", 1000000) == " 1000000" +string.format("%0#20.0u", 10000000) == " 10000000" +string.format("%0#20.1u", 0) == " 0" +string.format("%0#20.1u", 1) == " 1" +string.format("%0#20.1u", 2) == " 2" +string.format("%0#20.1u", 3) == " 3" +string.format("%0#20.1u", 100) == " 100" +string.format("%0#20.1u", 10000) == " 10000" +string.format("%0#20.1u", 100000) == " 100000" +string.format("%0#20.1u", 1000000) == " 1000000" +string.format("%0#20.1u", 10000000) == " 10000000" +string.format("%0#20.6u", 0) == " 000000" +string.format("%0#20.6u", 1) == " 000001" +string.format("%0#20.6u", 2) == " 000002" +string.format("%0#20.6u", 3) == " 000003" +string.format("%0#20.6u", 100) == " 000100" +string.format("%0#20.6u", 10000) == " 010000" +string.format("%0#20.6u", 100000) == " 100000" +string.format("%0#20.6u", 1000000) == " 1000000" +string.format("%0#20.6u", 10000000) == " 10000000" +string.format("%0#+u", 0) == "0" +string.format("%0#+u", 1) == "1" +string.format("%0#+u", -1) == "18446744073709551615" +string.format("%0#+u", 2) == "2" +string.format("%0#+u", -2) == "18446744073709551614" +string.format("%0#+u", 3) == "3" +string.format("%0#+u", -3) == "18446744073709551613" +string.format("%0#+u", 100) == "100" +string.format("%0#+u", 10000) == "10000" +string.format("%0#+u", 100000) == "100000" +string.format("%0#+u", 1000000) == "1000000" +string.format("%0#+u", 10000000) == "10000000" +string.format("%0#+.0u", 0) == "" +string.format("%0#+.6u", 0) == "000000" +string.format("%0#+.6u", 1) == "000001" +string.format("%0#+.6u", 2) == "000002" +string.format("%0#+.6u", 3) == "000003" +string.format("%0#+.6u", 100) == "000100" +string.format("%0#+.6u", 10000) == "010000" +string.format("%0#+1.0u", 0) == " " +string.format("%0#+1.6u", 0) == "000000" +string.format("%0#+1.6u", 1) == "000001" +string.format("%0#+1.6u", 2) == "000002" +string.format("%0#+1.6u", 3) == "000003" +string.format("%0#+1.6u", 100) == "000100" +string.format("%0#+1.6u", 10000) == "010000" +string.format("%0#+2u", 0) == "00" +string.format("%0#+2u", 1) == "01" +string.format("%0#+2u", 2) == "02" +string.format("%0#+2u", 3) == "03" +string.format("%0#+2.0u", 0) == " " +string.format("%0#+2.0u", 1) == " 1" +string.format("%0#+2.0u", 2) == " 2" +string.format("%0#+2.0u", 3) == " 3" +string.format("%0#+2.1u", 0) == " 0" +string.format("%0#+2.1u", 1) == " 1" +string.format("%0#+2.1u", 2) == " 2" +string.format("%0#+2.1u", 3) == " 3" +string.format("%0#+2.6u", 0) == "000000" +string.format("%0#+2.6u", 1) == "000001" +string.format("%0#+2.6u", 2) == "000002" +string.format("%0#+2.6u", 3) == "000003" +string.format("%0#+2.6u", 100) == "000100" +string.format("%0#+2.6u", 10000) == "010000" +string.format("%0#+6u", 0) == "000000" +string.format("%0#+6u", 1) == "000001" +string.format("%0#+6u", 2) == "000002" +string.format("%0#+6u", 3) == "000003" +string.format("%0#+6u", 100) == "000100" +string.format("%0#+6u", 10000) == "010000" +string.format("%0#+6.0u", 0) == " " +string.format("%0#+6.0u", 1) == " 1" +string.format("%0#+6.0u", 2) == " 2" +string.format("%0#+6.0u", 3) == " 3" +string.format("%0#+6.0u", 100) == " 100" +string.format("%0#+6.0u", 10000) == " 10000" +string.format("%0#+6.1u", 0) == " 0" +string.format("%0#+6.1u", 1) == " 1" +string.format("%0#+6.1u", 2) == " 2" +string.format("%0#+6.1u", 3) == " 3" +string.format("%0#+6.1u", 100) == " 100" +string.format("%0#+6.1u", 10000) == " 10000" +string.format("%0#+6.6u", 0) == "000000" +string.format("%0#+6.6u", 1) == "000001" +string.format("%0#+6.6u", 2) == "000002" +string.format("%0#+6.6u", 3) == "000003" +string.format("%0#+6.6u", 100) == "000100" +string.format("%0#+6.6u", 10000) == "010000" +string.format("%0#+20u", 0) == "00000000000000000000" +string.format("%0#+20u", 1) == "00000000000000000001" +string.format("%0#+20u", 2) == "00000000000000000002" +string.format("%0#+20u", 3) == "00000000000000000003" +string.format("%0#+20u", 100) == "00000000000000000100" +string.format("%0#+20u", 10000) == "00000000000000010000" +string.format("%0#+20u", 100000) == "00000000000000100000" +string.format("%0#+20u", 1000000) == "00000000000001000000" +string.format("%0#+20u", 10000000) == "00000000000010000000" +string.format("%0#+20.0u", 0) == " " +string.format("%0#+20.0u", 1) == " 1" +string.format("%0#+20.0u", 2) == " 2" +string.format("%0#+20.0u", 3) == " 3" +string.format("%0#+20.0u", 100) == " 100" +string.format("%0#+20.0u", 10000) == " 10000" +string.format("%0#+20.0u", 100000) == " 100000" +string.format("%0#+20.0u", 1000000) == " 1000000" +string.format("%0#+20.0u", 10000000) == " 10000000" +string.format("%0#+20.1u", 0) == " 0" +string.format("%0#+20.1u", 1) == " 1" +string.format("%0#+20.1u", 2) == " 2" +string.format("%0#+20.1u", 3) == " 3" +string.format("%0#+20.1u", 100) == " 100" +string.format("%0#+20.1u", 10000) == " 10000" +string.format("%0#+20.1u", 100000) == " 100000" +string.format("%0#+20.1u", 1000000) == " 1000000" +string.format("%0#+20.1u", 10000000) == " 10000000" +string.format("%0#+20.6u", 0) == " 000000" +string.format("%0#+20.6u", 1) == " 000001" +string.format("%0#+20.6u", 2) == " 000002" +string.format("%0#+20.6u", 3) == " 000003" +string.format("%0#+20.6u", 100) == " 000100" +string.format("%0#+20.6u", 10000) == " 010000" +string.format("%0#+20.6u", 100000) == " 100000" +string.format("%0#+20.6u", 1000000) == " 1000000" +string.format("%0#+20.6u", 10000000) == " 10000000" +string.format("%0#-u", 0) == "0" +string.format("%0#-u", 1) == "1" +string.format("%0#-u", -1) == "18446744073709551615" +string.format("%0#-u", 2) == "2" +string.format("%0#-u", -2) == "18446744073709551614" +string.format("%0#-u", 3) == "3" +string.format("%0#-u", -3) == "18446744073709551613" +string.format("%0#-u", 100) == "100" +string.format("%0#-u", 10000) == "10000" +string.format("%0#-u", 100000) == "100000" +string.format("%0#-u", 1000000) == "1000000" +string.format("%0#-u", 10000000) == "10000000" +string.format("%0#-.0u", 0) == "" +string.format("%0#-.6u", 0) == "000000" +string.format("%0#-.6u", 1) == "000001" +string.format("%0#-.6u", 2) == "000002" +string.format("%0#-.6u", 3) == "000003" +string.format("%0#-.6u", 100) == "000100" +string.format("%0#-.6u", 10000) == "010000" +string.format("%0#-1.0u", 0) == " " +string.format("%0#-1.6u", 0) == "000000" +string.format("%0#-1.6u", 1) == "000001" +string.format("%0#-1.6u", 2) == "000002" +string.format("%0#-1.6u", 3) == "000003" +string.format("%0#-1.6u", 100) == "000100" +string.format("%0#-1.6u", 10000) == "010000" +string.format("%0#-2u", 0) == "0 " +string.format("%0#-2u", 1) == "1 " +string.format("%0#-2u", 2) == "2 " +string.format("%0#-2u", 3) == "3 " +string.format("%0#-2.0u", 0) == " " +string.format("%0#-2.0u", 1) == "1 " +string.format("%0#-2.0u", 2) == "2 " +string.format("%0#-2.0u", 3) == "3 " +string.format("%0#-2.1u", 0) == "0 " +string.format("%0#-2.1u", 1) == "1 " +string.format("%0#-2.1u", 2) == "2 " +string.format("%0#-2.1u", 3) == "3 " +string.format("%0#-2.6u", 0) == "000000" +string.format("%0#-2.6u", 1) == "000001" +string.format("%0#-2.6u", 2) == "000002" +string.format("%0#-2.6u", 3) == "000003" +string.format("%0#-2.6u", 100) == "000100" +string.format("%0#-2.6u", 10000) == "010000" +string.format("%0#-6u", 0) == "0 " +string.format("%0#-6u", 1) == "1 " +string.format("%0#-6u", 2) == "2 " +string.format("%0#-6u", 3) == "3 " +string.format("%0#-6u", 100) == "100 " +string.format("%0#-6u", 10000) == "10000 " +string.format("%0#-6.0u", 0) == " " +string.format("%0#-6.0u", 1) == "1 " +string.format("%0#-6.0u", 2) == "2 " +string.format("%0#-6.0u", 3) == "3 " +string.format("%0#-6.0u", 100) == "100 " +string.format("%0#-6.0u", 10000) == "10000 " +string.format("%0#-6.1u", 0) == "0 " +string.format("%0#-6.1u", 1) == "1 " +string.format("%0#-6.1u", 2) == "2 " +string.format("%0#-6.1u", 3) == "3 " +string.format("%0#-6.1u", 100) == "100 " +string.format("%0#-6.1u", 10000) == "10000 " +string.format("%0#-6.6u", 0) == "000000" +string.format("%0#-6.6u", 1) == "000001" +string.format("%0#-6.6u", 2) == "000002" +string.format("%0#-6.6u", 3) == "000003" +string.format("%0#-6.6u", 100) == "000100" +string.format("%0#-6.6u", 10000) == "010000" +string.format("%0#-20u", 0) == "0 " +string.format("%0#-20u", 1) == "1 " +string.format("%0#-20u", 2) == "2 " +string.format("%0#-20u", 3) == "3 " +string.format("%0#-20u", 100) == "100 " +string.format("%0#-20u", 10000) == "10000 " +string.format("%0#-20u", 100000) == "100000 " +string.format("%0#-20u", 1000000) == "1000000 " +string.format("%0#-20u", 10000000) == "10000000 " +string.format("%0#-20.0u", 0) == " " +string.format("%0#-20.0u", 1) == "1 " +string.format("%0#-20.0u", 2) == "2 " +string.format("%0#-20.0u", 3) == "3 " +string.format("%0#-20.0u", 100) == "100 " +string.format("%0#-20.0u", 10000) == "10000 " +string.format("%0#-20.0u", 100000) == "100000 " +string.format("%0#-20.0u", 1000000) == "1000000 " +string.format("%0#-20.0u", 10000000) == "10000000 " +string.format("%0#-20.1u", 0) == "0 " +string.format("%0#-20.1u", 1) == "1 " +string.format("%0#-20.1u", 2) == "2 " +string.format("%0#-20.1u", 3) == "3 " +string.format("%0#-20.1u", 100) == "100 " +string.format("%0#-20.1u", 10000) == "10000 " +string.format("%0#-20.1u", 100000) == "100000 " +string.format("%0#-20.1u", 1000000) == "1000000 " +string.format("%0#-20.1u", 10000000) == "10000000 " +string.format("%0#-20.6u", 0) == "000000 " +string.format("%0#-20.6u", 1) == "000001 " +string.format("%0#-20.6u", 2) == "000002 " +string.format("%0#-20.6u", 3) == "000003 " +string.format("%0#-20.6u", 100) == "000100 " +string.format("%0#-20.6u", 10000) == "010000 " +string.format("%0#-20.6u", 100000) == "100000 " +string.format("%0#-20.6u", 1000000) == "1000000 " +string.format("%0#-20.6u", 10000000) == "10000000 " +string.format("%0#-+u", 0) == "0" +string.format("%0#-+u", 1) == "1" +string.format("%0#-+u", -1) == "18446744073709551615" +string.format("%0#-+u", 2) == "2" +string.format("%0#-+u", -2) == "18446744073709551614" +string.format("%0#-+u", 3) == "3" +string.format("%0#-+u", -3) == "18446744073709551613" +string.format("%0#-+u", 100) == "100" +string.format("%0#-+u", 10000) == "10000" +string.format("%0#-+u", 100000) == "100000" +string.format("%0#-+u", 1000000) == "1000000" +string.format("%0#-+u", 10000000) == "10000000" +string.format("%0#-+.0u", 0) == "" +string.format("%0#-+.6u", 0) == "000000" +string.format("%0#-+.6u", 1) == "000001" +string.format("%0#-+.6u", 2) == "000002" +string.format("%0#-+.6u", 3) == "000003" +string.format("%0#-+.6u", 100) == "000100" +string.format("%0#-+.6u", 10000) == "010000" +string.format("%0#-+1.0u", 0) == " " +string.format("%0#-+1.6u", 0) == "000000" +string.format("%0#-+1.6u", 1) == "000001" +string.format("%0#-+1.6u", 2) == "000002" +string.format("%0#-+1.6u", 3) == "000003" +string.format("%0#-+1.6u", 100) == "000100" +string.format("%0#-+1.6u", 10000) == "010000" +string.format("%0#-+2u", 0) == "0 " +string.format("%0#-+2u", 1) == "1 " +string.format("%0#-+2u", 2) == "2 " +string.format("%0#-+2u", 3) == "3 " +string.format("%0#-+2.0u", 0) == " " +string.format("%0#-+2.0u", 1) == "1 " +string.format("%0#-+2.0u", 2) == "2 " +string.format("%0#-+2.0u", 3) == "3 " +string.format("%0#-+2.1u", 0) == "0 " +string.format("%0#-+2.1u", 1) == "1 " +string.format("%0#-+2.1u", 2) == "2 " +string.format("%0#-+2.1u", 3) == "3 " +string.format("%0#-+2.6u", 0) == "000000" +string.format("%0#-+2.6u", 1) == "000001" +string.format("%0#-+2.6u", 2) == "000002" +string.format("%0#-+2.6u", 3) == "000003" +string.format("%0#-+2.6u", 100) == "000100" +string.format("%0#-+2.6u", 10000) == "010000" +string.format("%0#-+6u", 0) == "0 " +string.format("%0#-+6u", 1) == "1 " +string.format("%0#-+6u", 2) == "2 " +string.format("%0#-+6u", 3) == "3 " +string.format("%0#-+6u", 100) == "100 " +string.format("%0#-+6u", 10000) == "10000 " +string.format("%0#-+6.0u", 0) == " " +string.format("%0#-+6.0u", 1) == "1 " +string.format("%0#-+6.0u", 2) == "2 " +string.format("%0#-+6.0u", 3) == "3 " +string.format("%0#-+6.0u", 100) == "100 " +string.format("%0#-+6.0u", 10000) == "10000 " +string.format("%0#-+6.1u", 0) == "0 " +string.format("%0#-+6.1u", 1) == "1 " +string.format("%0#-+6.1u", 2) == "2 " +string.format("%0#-+6.1u", 3) == "3 " +string.format("%0#-+6.1u", 100) == "100 " +string.format("%0#-+6.1u", 10000) == "10000 " +string.format("%0#-+6.6u", 0) == "000000" +string.format("%0#-+6.6u", 1) == "000001" +string.format("%0#-+6.6u", 2) == "000002" +string.format("%0#-+6.6u", 3) == "000003" +string.format("%0#-+6.6u", 100) == "000100" +string.format("%0#-+6.6u", 10000) == "010000" +string.format("%0#-+20u", 0) == "0 " +string.format("%0#-+20u", 1) == "1 " +string.format("%0#-+20u", 2) == "2 " +string.format("%0#-+20u", 3) == "3 " +string.format("%0#-+20u", 100) == "100 " +string.format("%0#-+20u", 10000) == "10000 " +string.format("%0#-+20u", 100000) == "100000 " +string.format("%0#-+20u", 1000000) == "1000000 " +string.format("%0#-+20u", 10000000) == "10000000 " +string.format("%0#-+20.0u", 0) == " " +string.format("%0#-+20.0u", 1) == "1 " +string.format("%0#-+20.0u", 2) == "2 " +string.format("%0#-+20.0u", 3) == "3 " +string.format("%0#-+20.0u", 100) == "100 " +string.format("%0#-+20.0u", 10000) == "10000 " +string.format("%0#-+20.0u", 100000) == "100000 " +string.format("%0#-+20.0u", 1000000) == "1000000 " +string.format("%0#-+20.0u", 10000000) == "10000000 " +string.format("%0#-+20.1u", 0) == "0 " +string.format("%0#-+20.1u", 1) == "1 " +string.format("%0#-+20.1u", 2) == "2 " +string.format("%0#-+20.1u", 3) == "3 " +string.format("%0#-+20.1u", 100) == "100 " +string.format("%0#-+20.1u", 10000) == "10000 " +string.format("%0#-+20.1u", 100000) == "100000 " +string.format("%0#-+20.1u", 1000000) == "1000000 " +string.format("%0#-+20.1u", 10000000) == "10000000 " +string.format("%0#-+20.6u", 0) == "000000 " +string.format("%0#-+20.6u", 1) == "000001 " +string.format("%0#-+20.6u", 2) == "000002 " +string.format("%0#-+20.6u", 3) == "000003 " +string.format("%0#-+20.6u", 100) == "000100 " +string.format("%0#-+20.6u", 10000) == "010000 " +string.format("%0#-+20.6u", 100000) == "100000 " +string.format("%0#-+20.6u", 1000000) == "1000000 " +string.format("%0#-+20.6u", 10000000) == "10000000 " +string.format("%0# u", 0) == "0" +string.format("%0# u", 1) == "1" +string.format("%0# u", -1) == "18446744073709551615" +string.format("%0# u", 2) == "2" +string.format("%0# u", -2) == "18446744073709551614" +string.format("%0# u", 3) == "3" +string.format("%0# u", -3) == "18446744073709551613" +string.format("%0# u", 100) == "100" +string.format("%0# u", 10000) == "10000" +string.format("%0# u", 100000) == "100000" +string.format("%0# u", 1000000) == "1000000" +string.format("%0# u", 10000000) == "10000000" +string.format("%0# .0u", 0) == "" +string.format("%0# .6u", 0) == "000000" +string.format("%0# .6u", 1) == "000001" +string.format("%0# .6u", 2) == "000002" +string.format("%0# .6u", 3) == "000003" +string.format("%0# .6u", 100) == "000100" +string.format("%0# .6u", 10000) == "010000" +string.format("%0# 1.0u", 0) == " " +string.format("%0# 1.6u", 0) == "000000" +string.format("%0# 1.6u", 1) == "000001" +string.format("%0# 1.6u", 2) == "000002" +string.format("%0# 1.6u", 3) == "000003" +string.format("%0# 1.6u", 100) == "000100" +string.format("%0# 1.6u", 10000) == "010000" +string.format("%0# 2u", 0) == "00" +string.format("%0# 2u", 1) == "01" +string.format("%0# 2u", 2) == "02" +string.format("%0# 2u", 3) == "03" +string.format("%0# 2.0u", 0) == " " +string.format("%0# 2.0u", 1) == " 1" +string.format("%0# 2.0u", 2) == " 2" +string.format("%0# 2.0u", 3) == " 3" +string.format("%0# 2.1u", 0) == " 0" +string.format("%0# 2.1u", 1) == " 1" +string.format("%0# 2.1u", 2) == " 2" +string.format("%0# 2.1u", 3) == " 3" +string.format("%0# 2.6u", 0) == "000000" +string.format("%0# 2.6u", 1) == "000001" +string.format("%0# 2.6u", 2) == "000002" +string.format("%0# 2.6u", 3) == "000003" +string.format("%0# 2.6u", 100) == "000100" +string.format("%0# 2.6u", 10000) == "010000" +string.format("%0# 6u", 0) == "000000" +string.format("%0# 6u", 1) == "000001" +string.format("%0# 6u", 2) == "000002" +string.format("%0# 6u", 3) == "000003" +string.format("%0# 6u", 100) == "000100" +string.format("%0# 6u", 10000) == "010000" +string.format("%0# 6.0u", 0) == " " +string.format("%0# 6.0u", 1) == " 1" +string.format("%0# 6.0u", 2) == " 2" +string.format("%0# 6.0u", 3) == " 3" +string.format("%0# 6.0u", 100) == " 100" +string.format("%0# 6.0u", 10000) == " 10000" +string.format("%0# 6.1u", 0) == " 0" +string.format("%0# 6.1u", 1) == " 1" +string.format("%0# 6.1u", 2) == " 2" +string.format("%0# 6.1u", 3) == " 3" +string.format("%0# 6.1u", 100) == " 100" +string.format("%0# 6.1u", 10000) == " 10000" +string.format("%0# 6.6u", 0) == "000000" +string.format("%0# 6.6u", 1) == "000001" +string.format("%0# 6.6u", 2) == "000002" +string.format("%0# 6.6u", 3) == "000003" +string.format("%0# 6.6u", 100) == "000100" +string.format("%0# 6.6u", 10000) == "010000" +string.format("%0# 20u", 0) == "00000000000000000000" +string.format("%0# 20u", 1) == "00000000000000000001" +string.format("%0# 20u", 2) == "00000000000000000002" +string.format("%0# 20u", 3) == "00000000000000000003" +string.format("%0# 20u", 100) == "00000000000000000100" +string.format("%0# 20u", 10000) == "00000000000000010000" +string.format("%0# 20u", 100000) == "00000000000000100000" +string.format("%0# 20u", 1000000) == "00000000000001000000" +string.format("%0# 20u", 10000000) == "00000000000010000000" +string.format("%0# 20.0u", 0) == " " +string.format("%0# 20.0u", 1) == " 1" +string.format("%0# 20.0u", 2) == " 2" +string.format("%0# 20.0u", 3) == " 3" +string.format("%0# 20.0u", 100) == " 100" +string.format("%0# 20.0u", 10000) == " 10000" +string.format("%0# 20.0u", 100000) == " 100000" +string.format("%0# 20.0u", 1000000) == " 1000000" +string.format("%0# 20.0u", 10000000) == " 10000000" +string.format("%0# 20.1u", 0) == " 0" +string.format("%0# 20.1u", 1) == " 1" +string.format("%0# 20.1u", 2) == " 2" +string.format("%0# 20.1u", 3) == " 3" +string.format("%0# 20.1u", 100) == " 100" +string.format("%0# 20.1u", 10000) == " 10000" +string.format("%0# 20.1u", 100000) == " 100000" +string.format("%0# 20.1u", 1000000) == " 1000000" +string.format("%0# 20.1u", 10000000) == " 10000000" +string.format("%0# 20.6u", 0) == " 000000" +string.format("%0# 20.6u", 1) == " 000001" +string.format("%0# 20.6u", 2) == " 000002" +string.format("%0# 20.6u", 3) == " 000003" +string.format("%0# 20.6u", 100) == " 000100" +string.format("%0# 20.6u", 10000) == " 010000" +string.format("%0# 20.6u", 100000) == " 100000" +string.format("%0# 20.6u", 1000000) == " 1000000" +string.format("%0# 20.6u", 10000000) == " 10000000" +string.format("%0# +u", 0) == "0" +string.format("%0# +u", 1) == "1" +string.format("%0# +u", -1) == "18446744073709551615" +string.format("%0# +u", 2) == "2" +string.format("%0# +u", -2) == "18446744073709551614" +string.format("%0# +u", 3) == "3" +string.format("%0# +u", -3) == "18446744073709551613" +string.format("%0# +u", 100) == "100" +string.format("%0# +u", 10000) == "10000" +string.format("%0# +u", 100000) == "100000" +string.format("%0# +u", 1000000) == "1000000" +string.format("%0# +u", 10000000) == "10000000" +string.format("%0# +.0u", 0) == "" +string.format("%0# +.6u", 0) == "000000" +string.format("%0# +.6u", 1) == "000001" +string.format("%0# +.6u", 2) == "000002" +string.format("%0# +.6u", 3) == "000003" +string.format("%0# +.6u", 100) == "000100" +string.format("%0# +.6u", 10000) == "010000" +string.format("%0# +1.0u", 0) == " " +string.format("%0# +1.6u", 0) == "000000" +string.format("%0# +1.6u", 1) == "000001" +string.format("%0# +1.6u", 2) == "000002" +string.format("%0# +1.6u", 3) == "000003" +string.format("%0# +1.6u", 100) == "000100" +string.format("%0# +1.6u", 10000) == "010000" +string.format("%0# +2u", 0) == "00" +string.format("%0# +2u", 1) == "01" +string.format("%0# +2u", 2) == "02" +string.format("%0# +2u", 3) == "03" +string.format("%0# +2.0u", 0) == " " +string.format("%0# +2.0u", 1) == " 1" +string.format("%0# +2.0u", 2) == " 2" +string.format("%0# +2.0u", 3) == " 3" +string.format("%0# +2.1u", 0) == " 0" +string.format("%0# +2.1u", 1) == " 1" +string.format("%0# +2.1u", 2) == " 2" +string.format("%0# +2.1u", 3) == " 3" +string.format("%0# +2.6u", 0) == "000000" +string.format("%0# +2.6u", 1) == "000001" +string.format("%0# +2.6u", 2) == "000002" +string.format("%0# +2.6u", 3) == "000003" +string.format("%0# +2.6u", 100) == "000100" +string.format("%0# +2.6u", 10000) == "010000" +string.format("%0# +6u", 0) == "000000" +string.format("%0# +6u", 1) == "000001" +string.format("%0# +6u", 2) == "000002" +string.format("%0# +6u", 3) == "000003" +string.format("%0# +6u", 100) == "000100" +string.format("%0# +6u", 10000) == "010000" +string.format("%0# +6.0u", 0) == " " +string.format("%0# +6.0u", 1) == " 1" +string.format("%0# +6.0u", 2) == " 2" +string.format("%0# +6.0u", 3) == " 3" +string.format("%0# +6.0u", 100) == " 100" +string.format("%0# +6.0u", 10000) == " 10000" +string.format("%0# +6.1u", 0) == " 0" +string.format("%0# +6.1u", 1) == " 1" +string.format("%0# +6.1u", 2) == " 2" +string.format("%0# +6.1u", 3) == " 3" +string.format("%0# +6.1u", 100) == " 100" +string.format("%0# +6.1u", 10000) == " 10000" +string.format("%0# +6.6u", 0) == "000000" +string.format("%0# +6.6u", 1) == "000001" +string.format("%0# +6.6u", 2) == "000002" +string.format("%0# +6.6u", 3) == "000003" +string.format("%0# +6.6u", 100) == "000100" +string.format("%0# +6.6u", 10000) == "010000" +string.format("%0# +20u", 0) == "00000000000000000000" +string.format("%0# +20u", 1) == "00000000000000000001" +string.format("%0# +20u", 2) == "00000000000000000002" +string.format("%0# +20u", 3) == "00000000000000000003" +string.format("%0# +20u", 100) == "00000000000000000100" +string.format("%0# +20u", 10000) == "00000000000000010000" +string.format("%0# +20u", 100000) == "00000000000000100000" +string.format("%0# +20u", 1000000) == "00000000000001000000" +string.format("%0# +20u", 10000000) == "00000000000010000000" +string.format("%0# +20.0u", 0) == " " +string.format("%0# +20.0u", 1) == " 1" +string.format("%0# +20.0u", 2) == " 2" +string.format("%0# +20.0u", 3) == " 3" +string.format("%0# +20.0u", 100) == " 100" +string.format("%0# +20.0u", 10000) == " 10000" +string.format("%0# +20.0u", 100000) == " 100000" +string.format("%0# +20.0u", 1000000) == " 1000000" +string.format("%0# +20.0u", 10000000) == " 10000000" +string.format("%0# +20.1u", 0) == " 0" +string.format("%0# +20.1u", 1) == " 1" +string.format("%0# +20.1u", 2) == " 2" +string.format("%0# +20.1u", 3) == " 3" +string.format("%0# +20.1u", 100) == " 100" +string.format("%0# +20.1u", 10000) == " 10000" +string.format("%0# +20.1u", 100000) == " 100000" +string.format("%0# +20.1u", 1000000) == " 1000000" +string.format("%0# +20.1u", 10000000) == " 10000000" +string.format("%0# +20.6u", 0) == " 000000" +string.format("%0# +20.6u", 1) == " 000001" +string.format("%0# +20.6u", 2) == " 000002" +string.format("%0# +20.6u", 3) == " 000003" +string.format("%0# +20.6u", 100) == " 000100" +string.format("%0# +20.6u", 10000) == " 010000" +string.format("%0# +20.6u", 100000) == " 100000" +string.format("%0# +20.6u", 1000000) == " 1000000" +string.format("%0# +20.6u", 10000000) == " 10000000" +string.format("%0# -u", 0) == "0" +string.format("%0# -u", 1) == "1" +string.format("%0# -u", -1) == "18446744073709551615" +string.format("%0# -u", 2) == "2" +string.format("%0# -u", -2) == "18446744073709551614" +string.format("%0# -u", 3) == "3" +string.format("%0# -u", -3) == "18446744073709551613" +string.format("%0# -u", 100) == "100" +string.format("%0# -u", 10000) == "10000" +string.format("%0# -u", 100000) == "100000" +string.format("%0# -u", 1000000) == "1000000" +string.format("%0# -u", 10000000) == "10000000" +string.format("%0# -.0u", 0) == "" +string.format("%0# -.6u", 0) == "000000" +string.format("%0# -.6u", 1) == "000001" +string.format("%0# -.6u", 2) == "000002" +string.format("%0# -.6u", 3) == "000003" +string.format("%0# -.6u", 100) == "000100" +string.format("%0# -.6u", 10000) == "010000" +string.format("%0# -1.0u", 0) == " " +string.format("%0# -1.6u", 0) == "000000" +string.format("%0# -1.6u", 1) == "000001" +string.format("%0# -1.6u", 2) == "000002" +string.format("%0# -1.6u", 3) == "000003" +string.format("%0# -1.6u", 100) == "000100" +string.format("%0# -1.6u", 10000) == "010000" +string.format("%0# -2u", 0) == "0 " +string.format("%0# -2u", 1) == "1 " +string.format("%0# -2u", 2) == "2 " +string.format("%0# -2u", 3) == "3 " +string.format("%0# -2.0u", 0) == " " +string.format("%0# -2.0u", 1) == "1 " +string.format("%0# -2.0u", 2) == "2 " +string.format("%0# -2.0u", 3) == "3 " +string.format("%0# -2.1u", 0) == "0 " +string.format("%0# -2.1u", 1) == "1 " +string.format("%0# -2.1u", 2) == "2 " +string.format("%0# -2.1u", 3) == "3 " +string.format("%0# -2.6u", 0) == "000000" +string.format("%0# -2.6u", 1) == "000001" +string.format("%0# -2.6u", 2) == "000002" +string.format("%0# -2.6u", 3) == "000003" +string.format("%0# -2.6u", 100) == "000100" +string.format("%0# -2.6u", 10000) == "010000" +string.format("%0# -6u", 0) == "0 " +string.format("%0# -6u", 1) == "1 " +string.format("%0# -6u", 2) == "2 " +string.format("%0# -6u", 3) == "3 " +string.format("%0# -6u", 100) == "100 " +string.format("%0# -6u", 10000) == "10000 " +string.format("%0# -6.0u", 0) == " " +string.format("%0# -6.0u", 1) == "1 " +string.format("%0# -6.0u", 2) == "2 " +string.format("%0# -6.0u", 3) == "3 " +string.format("%0# -6.0u", 100) == "100 " +string.format("%0# -6.0u", 10000) == "10000 " +string.format("%0# -6.1u", 0) == "0 " +string.format("%0# -6.1u", 1) == "1 " +string.format("%0# -6.1u", 2) == "2 " +string.format("%0# -6.1u", 3) == "3 " +string.format("%0# -6.1u", 100) == "100 " +string.format("%0# -6.1u", 10000) == "10000 " +string.format("%0# -6.6u", 0) == "000000" +string.format("%0# -6.6u", 1) == "000001" +string.format("%0# -6.6u", 2) == "000002" +string.format("%0# -6.6u", 3) == "000003" +string.format("%0# -6.6u", 100) == "000100" +string.format("%0# -6.6u", 10000) == "010000" +string.format("%0# -20u", 0) == "0 " +string.format("%0# -20u", 1) == "1 " +string.format("%0# -20u", 2) == "2 " +string.format("%0# -20u", 3) == "3 " +string.format("%0# -20u", 100) == "100 " +string.format("%0# -20u", 10000) == "10000 " +string.format("%0# -20u", 100000) == "100000 " +string.format("%0# -20u", 1000000) == "1000000 " +string.format("%0# -20u", 10000000) == "10000000 " +string.format("%0# -20.0u", 0) == " " +string.format("%0# -20.0u", 1) == "1 " +string.format("%0# -20.0u", 2) == "2 " +string.format("%0# -20.0u", 3) == "3 " +string.format("%0# -20.0u", 100) == "100 " +string.format("%0# -20.0u", 10000) == "10000 " +string.format("%0# -20.0u", 100000) == "100000 " +string.format("%0# -20.0u", 1000000) == "1000000 " +string.format("%0# -20.0u", 10000000) == "10000000 " +string.format("%0# -20.1u", 0) == "0 " +string.format("%0# -20.1u", 1) == "1 " +string.format("%0# -20.1u", 2) == "2 " +string.format("%0# -20.1u", 3) == "3 " +string.format("%0# -20.1u", 100) == "100 " +string.format("%0# -20.1u", 10000) == "10000 " +string.format("%0# -20.1u", 100000) == "100000 " +string.format("%0# -20.1u", 1000000) == "1000000 " +string.format("%0# -20.1u", 10000000) == "10000000 " +string.format("%0# -20.6u", 0) == "000000 " +string.format("%0# -20.6u", 1) == "000001 " +string.format("%0# -20.6u", 2) == "000002 " +string.format("%0# -20.6u", 3) == "000003 " +string.format("%0# -20.6u", 100) == "000100 " +string.format("%0# -20.6u", 10000) == "010000 " +string.format("%0# -20.6u", 100000) == "100000 " +string.format("%0# -20.6u", 1000000) == "1000000 " +string.format("%0# -20.6u", 10000000) == "10000000 " +string.format("%0# -+u", 0) == "0" +string.format("%0# -+u", 1) == "1" +string.format("%0# -+u", -1) == "18446744073709551615" +string.format("%0# -+u", 2) == "2" +string.format("%0# -+u", -2) == "18446744073709551614" +string.format("%0# -+u", 3) == "3" +string.format("%0# -+u", -3) == "18446744073709551613" +string.format("%0# -+u", 100) == "100" +string.format("%0# -+u", 10000) == "10000" +string.format("%0# -+u", 100000) == "100000" +string.format("%0# -+u", 1000000) == "1000000" +string.format("%0# -+u", 10000000) == "10000000" +string.format("%0# -+.0u", 0) == "" +string.format("%0# -+.6u", 0) == "000000" +string.format("%0# -+.6u", 1) == "000001" +string.format("%0# -+.6u", 2) == "000002" +string.format("%0# -+.6u", 3) == "000003" +string.format("%0# -+.6u", 100) == "000100" +string.format("%0# -+.6u", 10000) == "010000" +string.format("%0# -+1.0u", 0) == " " +string.format("%0# -+1.6u", 0) == "000000" +string.format("%0# -+1.6u", 1) == "000001" +string.format("%0# -+1.6u", 2) == "000002" +string.format("%0# -+1.6u", 3) == "000003" +string.format("%0# -+1.6u", 100) == "000100" +string.format("%0# -+1.6u", 10000) == "010000" +string.format("%0# -+2u", 0) == "0 " +string.format("%0# -+2u", 1) == "1 " +string.format("%0# -+2u", 2) == "2 " +string.format("%0# -+2u", 3) == "3 " +string.format("%0# -+2.0u", 0) == " " +string.format("%0# -+2.0u", 1) == "1 " +string.format("%0# -+2.0u", 2) == "2 " +string.format("%0# -+2.0u", 3) == "3 " +string.format("%0# -+2.1u", 0) == "0 " +string.format("%0# -+2.1u", 1) == "1 " +string.format("%0# -+2.1u", 2) == "2 " +string.format("%0# -+2.1u", 3) == "3 " +string.format("%0# -+2.6u", 0) == "000000" +string.format("%0# -+2.6u", 1) == "000001" +string.format("%0# -+2.6u", 2) == "000002" +string.format("%0# -+2.6u", 3) == "000003" +string.format("%0# -+2.6u", 100) == "000100" +string.format("%0# -+2.6u", 10000) == "010000" +string.format("%0# -+6u", 0) == "0 " +string.format("%0# -+6u", 1) == "1 " +string.format("%0# -+6u", 2) == "2 " +string.format("%0# -+6u", 3) == "3 " +string.format("%0# -+6u", 100) == "100 " +string.format("%0# -+6u", 10000) == "10000 " +string.format("%0# -+6.0u", 0) == " " +string.format("%0# -+6.0u", 1) == "1 " +string.format("%0# -+6.0u", 2) == "2 " +string.format("%0# -+6.0u", 3) == "3 " +string.format("%0# -+6.0u", 100) == "100 " +string.format("%0# -+6.0u", 10000) == "10000 " +string.format("%0# -+6.1u", 0) == "0 " +string.format("%0# -+6.1u", 1) == "1 " +string.format("%0# -+6.1u", 2) == "2 " +string.format("%0# -+6.1u", 3) == "3 " +string.format("%0# -+6.1u", 100) == "100 " +string.format("%0# -+6.1u", 10000) == "10000 " +string.format("%0# -+6.6u", 0) == "000000" +string.format("%0# -+6.6u", 1) == "000001" +string.format("%0# -+6.6u", 2) == "000002" +string.format("%0# -+6.6u", 3) == "000003" +string.format("%0# -+6.6u", 100) == "000100" +string.format("%0# -+6.6u", 10000) == "010000" +string.format("%0# -+20u", 0) == "0 " +string.format("%0# -+20u", 1) == "1 " +string.format("%0# -+20u", 2) == "2 " +string.format("%0# -+20u", 3) == "3 " +string.format("%0# -+20u", 100) == "100 " +string.format("%0# -+20u", 10000) == "10000 " +string.format("%0# -+20u", 100000) == "100000 " +string.format("%0# -+20u", 1000000) == "1000000 " +string.format("%0# -+20u", 10000000) == "10000000 " +string.format("%0# -+20.0u", 0) == " " +string.format("%0# -+20.0u", 1) == "1 " +string.format("%0# -+20.0u", 2) == "2 " +string.format("%0# -+20.0u", 3) == "3 " +string.format("%0# -+20.0u", 100) == "100 " +string.format("%0# -+20.0u", 10000) == "10000 " +string.format("%0# -+20.0u", 100000) == "100000 " +string.format("%0# -+20.0u", 1000000) == "1000000 " +string.format("%0# -+20.0u", 10000000) == "10000000 " +string.format("%0# -+20.1u", 0) == "0 " +string.format("%0# -+20.1u", 1) == "1 " +string.format("%0# -+20.1u", 2) == "2 " +string.format("%0# -+20.1u", 3) == "3 " +string.format("%0# -+20.1u", 100) == "100 " +string.format("%0# -+20.1u", 10000) == "10000 " +string.format("%0# -+20.1u", 100000) == "100000 " +string.format("%0# -+20.1u", 1000000) == "1000000 " +string.format("%0# -+20.1u", 10000000) == "10000000 " +string.format("%0# -+20.6u", 0) == "000000 " +string.format("%0# -+20.6u", 1) == "000001 " +string.format("%0# -+20.6u", 2) == "000002 " +string.format("%0# -+20.6u", 3) == "000003 " +string.format("%0# -+20.6u", 100) == "000100 " +string.format("%0# -+20.6u", 10000) == "010000 " +string.format("%0# -+20.6u", 100000) == "100000 " +string.format("%0# -+20.6u", 1000000) == "1000000 " +string.format("%0# -+20.6u", 10000000) == "10000000 " += x = +string.format("%x", 0) == "0" +string.format("%x", 1) == "1" +string.format("%x", -1) == "ffffffffffffffff" +string.format("%x", 2) == "2" +string.format("%x", -2) == "fffffffffffffffe" +string.format("%x", 3) == "3" +string.format("%x", -3) == "fffffffffffffffd" +string.format("%x", 100) == "64" +string.format("%x", 10000) == "2710" +string.format("%x", 100000) == "186a0" +string.format("%x", 1000000) == "f4240" +string.format("%x", 10000000) == "989680" +string.format("%.0x", 0) == "" +string.format("%.6x", 0) == "000000" +string.format("%.6x", 1) == "000001" +string.format("%.6x", 2) == "000002" +string.format("%.6x", 3) == "000003" +string.format("%.6x", 100) == "000064" +string.format("%.6x", 10000) == "002710" +string.format("%.6x", 100000) == "0186a0" +string.format("%.6x", 1000000) == "0f4240" +string.format("%1.0x", 0) == " " +string.format("%1.6x", 0) == "000000" +string.format("%1.6x", 1) == "000001" +string.format("%1.6x", 2) == "000002" +string.format("%1.6x", 3) == "000003" +string.format("%1.6x", 100) == "000064" +string.format("%1.6x", 10000) == "002710" +string.format("%1.6x", 100000) == "0186a0" +string.format("%1.6x", 1000000) == "0f4240" +string.format("%2x", 0) == " 0" +string.format("%2x", 1) == " 1" +string.format("%2x", 2) == " 2" +string.format("%2x", 3) == " 3" +string.format("%2.0x", 0) == " " +string.format("%2.0x", 1) == " 1" +string.format("%2.0x", 2) == " 2" +string.format("%2.0x", 3) == " 3" +string.format("%2.1x", 0) == " 0" +string.format("%2.1x", 1) == " 1" +string.format("%2.1x", 2) == " 2" +string.format("%2.1x", 3) == " 3" +string.format("%2.6x", 0) == "000000" +string.format("%2.6x", 1) == "000001" +string.format("%2.6x", 2) == "000002" +string.format("%2.6x", 3) == "000003" +string.format("%2.6x", 100) == "000064" +string.format("%2.6x", 10000) == "002710" +string.format("%2.6x", 100000) == "0186a0" +string.format("%2.6x", 1000000) == "0f4240" +string.format("%6x", 0) == " 0" +string.format("%6x", 1) == " 1" +string.format("%6x", 2) == " 2" +string.format("%6x", 3) == " 3" +string.format("%6x", 100) == " 64" +string.format("%6x", 10000) == " 2710" +string.format("%6x", 100000) == " 186a0" +string.format("%6x", 1000000) == " f4240" +string.format("%6.0x", 0) == " " +string.format("%6.0x", 1) == " 1" +string.format("%6.0x", 2) == " 2" +string.format("%6.0x", 3) == " 3" +string.format("%6.0x", 100) == " 64" +string.format("%6.0x", 10000) == " 2710" +string.format("%6.0x", 100000) == " 186a0" +string.format("%6.0x", 1000000) == " f4240" +string.format("%6.1x", 0) == " 0" +string.format("%6.1x", 1) == " 1" +string.format("%6.1x", 2) == " 2" +string.format("%6.1x", 3) == " 3" +string.format("%6.1x", 100) == " 64" +string.format("%6.1x", 10000) == " 2710" +string.format("%6.1x", 100000) == " 186a0" +string.format("%6.1x", 1000000) == " f4240" +string.format("%6.6x", 0) == "000000" +string.format("%6.6x", 1) == "000001" +string.format("%6.6x", 2) == "000002" +string.format("%6.6x", 3) == "000003" +string.format("%6.6x", 100) == "000064" +string.format("%6.6x", 10000) == "002710" +string.format("%6.6x", 100000) == "0186a0" +string.format("%6.6x", 1000000) == "0f4240" +string.format("%20x", 0) == " 0" +string.format("%20x", 1) == " 1" +string.format("%20x", -1) == " ffffffffffffffff" +string.format("%20x", 2) == " 2" +string.format("%20x", -2) == " fffffffffffffffe" +string.format("%20x", 3) == " 3" +string.format("%20x", -3) == " fffffffffffffffd" +string.format("%20x", 100) == " 64" +string.format("%20x", 10000) == " 2710" +string.format("%20x", 100000) == " 186a0" +string.format("%20x", 1000000) == " f4240" +string.format("%20x", 10000000) == " 989680" +string.format("%20.0x", 0) == " " +string.format("%20.0x", 1) == " 1" +string.format("%20.0x", -1) == " ffffffffffffffff" +string.format("%20.0x", 2) == " 2" +string.format("%20.0x", -2) == " fffffffffffffffe" +string.format("%20.0x", 3) == " 3" +string.format("%20.0x", -3) == " fffffffffffffffd" +string.format("%20.0x", 100) == " 64" +string.format("%20.0x", 10000) == " 2710" +string.format("%20.0x", 100000) == " 186a0" +string.format("%20.0x", 1000000) == " f4240" +string.format("%20.0x", 10000000) == " 989680" +string.format("%20.1x", 0) == " 0" +string.format("%20.1x", 1) == " 1" +string.format("%20.1x", -1) == " ffffffffffffffff" +string.format("%20.1x", 2) == " 2" +string.format("%20.1x", -2) == " fffffffffffffffe" +string.format("%20.1x", 3) == " 3" +string.format("%20.1x", -3) == " fffffffffffffffd" +string.format("%20.1x", 100) == " 64" +string.format("%20.1x", 10000) == " 2710" +string.format("%20.1x", 100000) == " 186a0" +string.format("%20.1x", 1000000) == " f4240" +string.format("%20.1x", 10000000) == " 989680" +string.format("%20.6x", 0) == " 000000" +string.format("%20.6x", 1) == " 000001" +string.format("%20.6x", -1) == " ffffffffffffffff" +string.format("%20.6x", 2) == " 000002" +string.format("%20.6x", -2) == " fffffffffffffffe" +string.format("%20.6x", 3) == " 000003" +string.format("%20.6x", -3) == " fffffffffffffffd" +string.format("%20.6x", 100) == " 000064" +string.format("%20.6x", 10000) == " 002710" +string.format("%20.6x", 100000) == " 0186a0" +string.format("%20.6x", 1000000) == " 0f4240" +string.format("%20.6x", 10000000) == " 989680" +string.format("%+x", 0) == "0" +string.format("%+x", 1) == "1" +string.format("%+x", -1) == "ffffffffffffffff" +string.format("%+x", 2) == "2" +string.format("%+x", -2) == "fffffffffffffffe" +string.format("%+x", 3) == "3" +string.format("%+x", -3) == "fffffffffffffffd" +string.format("%+x", 100) == "64" +string.format("%+x", 10000) == "2710" +string.format("%+x", 100000) == "186a0" +string.format("%+x", 1000000) == "f4240" +string.format("%+x", 10000000) == "989680" +string.format("%+.0x", 0) == "" +string.format("%+.6x", 0) == "000000" +string.format("%+.6x", 1) == "000001" +string.format("%+.6x", 2) == "000002" +string.format("%+.6x", 3) == "000003" +string.format("%+.6x", 100) == "000064" +string.format("%+.6x", 10000) == "002710" +string.format("%+.6x", 100000) == "0186a0" +string.format("%+.6x", 1000000) == "0f4240" +string.format("%+1.0x", 0) == " " +string.format("%+1.6x", 0) == "000000" +string.format("%+1.6x", 1) == "000001" +string.format("%+1.6x", 2) == "000002" +string.format("%+1.6x", 3) == "000003" +string.format("%+1.6x", 100) == "000064" +string.format("%+1.6x", 10000) == "002710" +string.format("%+1.6x", 100000) == "0186a0" +string.format("%+1.6x", 1000000) == "0f4240" +string.format("%+2x", 0) == " 0" +string.format("%+2x", 1) == " 1" +string.format("%+2x", 2) == " 2" +string.format("%+2x", 3) == " 3" +string.format("%+2.0x", 0) == " " +string.format("%+2.0x", 1) == " 1" +string.format("%+2.0x", 2) == " 2" +string.format("%+2.0x", 3) == " 3" +string.format("%+2.1x", 0) == " 0" +string.format("%+2.1x", 1) == " 1" +string.format("%+2.1x", 2) == " 2" +string.format("%+2.1x", 3) == " 3" +string.format("%+2.6x", 0) == "000000" +string.format("%+2.6x", 1) == "000001" +string.format("%+2.6x", 2) == "000002" +string.format("%+2.6x", 3) == "000003" +string.format("%+2.6x", 100) == "000064" +string.format("%+2.6x", 10000) == "002710" +string.format("%+2.6x", 100000) == "0186a0" +string.format("%+2.6x", 1000000) == "0f4240" +string.format("%+6x", 0) == " 0" +string.format("%+6x", 1) == " 1" +string.format("%+6x", 2) == " 2" +string.format("%+6x", 3) == " 3" +string.format("%+6x", 100) == " 64" +string.format("%+6x", 10000) == " 2710" +string.format("%+6x", 100000) == " 186a0" +string.format("%+6x", 1000000) == " f4240" +string.format("%+6.0x", 0) == " " +string.format("%+6.0x", 1) == " 1" +string.format("%+6.0x", 2) == " 2" +string.format("%+6.0x", 3) == " 3" +string.format("%+6.0x", 100) == " 64" +string.format("%+6.0x", 10000) == " 2710" +string.format("%+6.0x", 100000) == " 186a0" +string.format("%+6.0x", 1000000) == " f4240" +string.format("%+6.1x", 0) == " 0" +string.format("%+6.1x", 1) == " 1" +string.format("%+6.1x", 2) == " 2" +string.format("%+6.1x", 3) == " 3" +string.format("%+6.1x", 100) == " 64" +string.format("%+6.1x", 10000) == " 2710" +string.format("%+6.1x", 100000) == " 186a0" +string.format("%+6.1x", 1000000) == " f4240" +string.format("%+6.6x", 0) == "000000" +string.format("%+6.6x", 1) == "000001" +string.format("%+6.6x", 2) == "000002" +string.format("%+6.6x", 3) == "000003" +string.format("%+6.6x", 100) == "000064" +string.format("%+6.6x", 10000) == "002710" +string.format("%+6.6x", 100000) == "0186a0" +string.format("%+6.6x", 1000000) == "0f4240" +string.format("%+20x", 0) == " 0" +string.format("%+20x", 1) == " 1" +string.format("%+20x", -1) == " ffffffffffffffff" +string.format("%+20x", 2) == " 2" +string.format("%+20x", -2) == " fffffffffffffffe" +string.format("%+20x", 3) == " 3" +string.format("%+20x", -3) == " fffffffffffffffd" +string.format("%+20x", 100) == " 64" +string.format("%+20x", 10000) == " 2710" +string.format("%+20x", 100000) == " 186a0" +string.format("%+20x", 1000000) == " f4240" +string.format("%+20x", 10000000) == " 989680" +string.format("%+20.0x", 0) == " " +string.format("%+20.0x", 1) == " 1" +string.format("%+20.0x", -1) == " ffffffffffffffff" +string.format("%+20.0x", 2) == " 2" +string.format("%+20.0x", -2) == " fffffffffffffffe" +string.format("%+20.0x", 3) == " 3" +string.format("%+20.0x", -3) == " fffffffffffffffd" +string.format("%+20.0x", 100) == " 64" +string.format("%+20.0x", 10000) == " 2710" +string.format("%+20.0x", 100000) == " 186a0" +string.format("%+20.0x", 1000000) == " f4240" +string.format("%+20.0x", 10000000) == " 989680" +string.format("%+20.1x", 0) == " 0" +string.format("%+20.1x", 1) == " 1" +string.format("%+20.1x", -1) == " ffffffffffffffff" +string.format("%+20.1x", 2) == " 2" +string.format("%+20.1x", -2) == " fffffffffffffffe" +string.format("%+20.1x", 3) == " 3" +string.format("%+20.1x", -3) == " fffffffffffffffd" +string.format("%+20.1x", 100) == " 64" +string.format("%+20.1x", 10000) == " 2710" +string.format("%+20.1x", 100000) == " 186a0" +string.format("%+20.1x", 1000000) == " f4240" +string.format("%+20.1x", 10000000) == " 989680" +string.format("%+20.6x", 0) == " 000000" +string.format("%+20.6x", 1) == " 000001" +string.format("%+20.6x", -1) == " ffffffffffffffff" +string.format("%+20.6x", 2) == " 000002" +string.format("%+20.6x", -2) == " fffffffffffffffe" +string.format("%+20.6x", 3) == " 000003" +string.format("%+20.6x", -3) == " fffffffffffffffd" +string.format("%+20.6x", 100) == " 000064" +string.format("%+20.6x", 10000) == " 002710" +string.format("%+20.6x", 100000) == " 0186a0" +string.format("%+20.6x", 1000000) == " 0f4240" +string.format("%+20.6x", 10000000) == " 989680" +string.format("%-x", 0) == "0" +string.format("%-x", 1) == "1" +string.format("%-x", -1) == "ffffffffffffffff" +string.format("%-x", 2) == "2" +string.format("%-x", -2) == "fffffffffffffffe" +string.format("%-x", 3) == "3" +string.format("%-x", -3) == "fffffffffffffffd" +string.format("%-x", 100) == "64" +string.format("%-x", 10000) == "2710" +string.format("%-x", 100000) == "186a0" +string.format("%-x", 1000000) == "f4240" +string.format("%-x", 10000000) == "989680" +string.format("%-.0x", 0) == "" +string.format("%-.6x", 0) == "000000" +string.format("%-.6x", 1) == "000001" +string.format("%-.6x", 2) == "000002" +string.format("%-.6x", 3) == "000003" +string.format("%-.6x", 100) == "000064" +string.format("%-.6x", 10000) == "002710" +string.format("%-.6x", 100000) == "0186a0" +string.format("%-.6x", 1000000) == "0f4240" +string.format("%-1.0x", 0) == " " +string.format("%-1.6x", 0) == "000000" +string.format("%-1.6x", 1) == "000001" +string.format("%-1.6x", 2) == "000002" +string.format("%-1.6x", 3) == "000003" +string.format("%-1.6x", 100) == "000064" +string.format("%-1.6x", 10000) == "002710" +string.format("%-1.6x", 100000) == "0186a0" +string.format("%-1.6x", 1000000) == "0f4240" +string.format("%-2x", 0) == "0 " +string.format("%-2x", 1) == "1 " +string.format("%-2x", 2) == "2 " +string.format("%-2x", 3) == "3 " +string.format("%-2.0x", 0) == " " +string.format("%-2.0x", 1) == "1 " +string.format("%-2.0x", 2) == "2 " +string.format("%-2.0x", 3) == "3 " +string.format("%-2.1x", 0) == "0 " +string.format("%-2.1x", 1) == "1 " +string.format("%-2.1x", 2) == "2 " +string.format("%-2.1x", 3) == "3 " +string.format("%-2.6x", 0) == "000000" +string.format("%-2.6x", 1) == "000001" +string.format("%-2.6x", 2) == "000002" +string.format("%-2.6x", 3) == "000003" +string.format("%-2.6x", 100) == "000064" +string.format("%-2.6x", 10000) == "002710" +string.format("%-2.6x", 100000) == "0186a0" +string.format("%-2.6x", 1000000) == "0f4240" +string.format("%-6x", 0) == "0 " +string.format("%-6x", 1) == "1 " +string.format("%-6x", 2) == "2 " +string.format("%-6x", 3) == "3 " +string.format("%-6x", 100) == "64 " +string.format("%-6x", 10000) == "2710 " +string.format("%-6x", 100000) == "186a0 " +string.format("%-6x", 1000000) == "f4240 " +string.format("%-6.0x", 0) == " " +string.format("%-6.0x", 1) == "1 " +string.format("%-6.0x", 2) == "2 " +string.format("%-6.0x", 3) == "3 " +string.format("%-6.0x", 100) == "64 " +string.format("%-6.0x", 10000) == "2710 " +string.format("%-6.0x", 100000) == "186a0 " +string.format("%-6.0x", 1000000) == "f4240 " +string.format("%-6.1x", 0) == "0 " +string.format("%-6.1x", 1) == "1 " +string.format("%-6.1x", 2) == "2 " +string.format("%-6.1x", 3) == "3 " +string.format("%-6.1x", 100) == "64 " +string.format("%-6.1x", 10000) == "2710 " +string.format("%-6.1x", 100000) == "186a0 " +string.format("%-6.1x", 1000000) == "f4240 " +string.format("%-6.6x", 0) == "000000" +string.format("%-6.6x", 1) == "000001" +string.format("%-6.6x", 2) == "000002" +string.format("%-6.6x", 3) == "000003" +string.format("%-6.6x", 100) == "000064" +string.format("%-6.6x", 10000) == "002710" +string.format("%-6.6x", 100000) == "0186a0" +string.format("%-6.6x", 1000000) == "0f4240" +string.format("%-20x", 0) == "0 " +string.format("%-20x", 1) == "1 " +string.format("%-20x", -1) == "ffffffffffffffff " +string.format("%-20x", 2) == "2 " +string.format("%-20x", -2) == "fffffffffffffffe " +string.format("%-20x", 3) == "3 " +string.format("%-20x", -3) == "fffffffffffffffd " +string.format("%-20x", 100) == "64 " +string.format("%-20x", 10000) == "2710 " +string.format("%-20x", 100000) == "186a0 " +string.format("%-20x", 1000000) == "f4240 " +string.format("%-20x", 10000000) == "989680 " +string.format("%-20.0x", 0) == " " +string.format("%-20.0x", 1) == "1 " +string.format("%-20.0x", -1) == "ffffffffffffffff " +string.format("%-20.0x", 2) == "2 " +string.format("%-20.0x", -2) == "fffffffffffffffe " +string.format("%-20.0x", 3) == "3 " +string.format("%-20.0x", -3) == "fffffffffffffffd " +string.format("%-20.0x", 100) == "64 " +string.format("%-20.0x", 10000) == "2710 " +string.format("%-20.0x", 100000) == "186a0 " +string.format("%-20.0x", 1000000) == "f4240 " +string.format("%-20.0x", 10000000) == "989680 " +string.format("%-20.1x", 0) == "0 " +string.format("%-20.1x", 1) == "1 " +string.format("%-20.1x", -1) == "ffffffffffffffff " +string.format("%-20.1x", 2) == "2 " +string.format("%-20.1x", -2) == "fffffffffffffffe " +string.format("%-20.1x", 3) == "3 " +string.format("%-20.1x", -3) == "fffffffffffffffd " +string.format("%-20.1x", 100) == "64 " +string.format("%-20.1x", 10000) == "2710 " +string.format("%-20.1x", 100000) == "186a0 " +string.format("%-20.1x", 1000000) == "f4240 " +string.format("%-20.1x", 10000000) == "989680 " +string.format("%-20.6x", 0) == "000000 " +string.format("%-20.6x", 1) == "000001 " +string.format("%-20.6x", -1) == "ffffffffffffffff " +string.format("%-20.6x", 2) == "000002 " +string.format("%-20.6x", -2) == "fffffffffffffffe " +string.format("%-20.6x", 3) == "000003 " +string.format("%-20.6x", -3) == "fffffffffffffffd " +string.format("%-20.6x", 100) == "000064 " +string.format("%-20.6x", 10000) == "002710 " +string.format("%-20.6x", 100000) == "0186a0 " +string.format("%-20.6x", 1000000) == "0f4240 " +string.format("%-20.6x", 10000000) == "989680 " +string.format("%-+x", 0) == "0" +string.format("%-+x", 1) == "1" +string.format("%-+x", -1) == "ffffffffffffffff" +string.format("%-+x", 2) == "2" +string.format("%-+x", -2) == "fffffffffffffffe" +string.format("%-+x", 3) == "3" +string.format("%-+x", -3) == "fffffffffffffffd" +string.format("%-+x", 100) == "64" +string.format("%-+x", 10000) == "2710" +string.format("%-+x", 100000) == "186a0" +string.format("%-+x", 1000000) == "f4240" +string.format("%-+x", 10000000) == "989680" +string.format("%-+.0x", 0) == "" +string.format("%-+.6x", 0) == "000000" +string.format("%-+.6x", 1) == "000001" +string.format("%-+.6x", 2) == "000002" +string.format("%-+.6x", 3) == "000003" +string.format("%-+.6x", 100) == "000064" +string.format("%-+.6x", 10000) == "002710" +string.format("%-+.6x", 100000) == "0186a0" +string.format("%-+.6x", 1000000) == "0f4240" +string.format("%-+1.0x", 0) == " " +string.format("%-+1.6x", 0) == "000000" +string.format("%-+1.6x", 1) == "000001" +string.format("%-+1.6x", 2) == "000002" +string.format("%-+1.6x", 3) == "000003" +string.format("%-+1.6x", 100) == "000064" +string.format("%-+1.6x", 10000) == "002710" +string.format("%-+1.6x", 100000) == "0186a0" +string.format("%-+1.6x", 1000000) == "0f4240" +string.format("%-+2x", 0) == "0 " +string.format("%-+2x", 1) == "1 " +string.format("%-+2x", 2) == "2 " +string.format("%-+2x", 3) == "3 " +string.format("%-+2.0x", 0) == " " +string.format("%-+2.0x", 1) == "1 " +string.format("%-+2.0x", 2) == "2 " +string.format("%-+2.0x", 3) == "3 " +string.format("%-+2.1x", 0) == "0 " +string.format("%-+2.1x", 1) == "1 " +string.format("%-+2.1x", 2) == "2 " +string.format("%-+2.1x", 3) == "3 " +string.format("%-+2.6x", 0) == "000000" +string.format("%-+2.6x", 1) == "000001" +string.format("%-+2.6x", 2) == "000002" +string.format("%-+2.6x", 3) == "000003" +string.format("%-+2.6x", 100) == "000064" +string.format("%-+2.6x", 10000) == "002710" +string.format("%-+2.6x", 100000) == "0186a0" +string.format("%-+2.6x", 1000000) == "0f4240" +string.format("%-+6x", 0) == "0 " +string.format("%-+6x", 1) == "1 " +string.format("%-+6x", 2) == "2 " +string.format("%-+6x", 3) == "3 " +string.format("%-+6x", 100) == "64 " +string.format("%-+6x", 10000) == "2710 " +string.format("%-+6x", 100000) == "186a0 " +string.format("%-+6x", 1000000) == "f4240 " +string.format("%-+6.0x", 0) == " " +string.format("%-+6.0x", 1) == "1 " +string.format("%-+6.0x", 2) == "2 " +string.format("%-+6.0x", 3) == "3 " +string.format("%-+6.0x", 100) == "64 " +string.format("%-+6.0x", 10000) == "2710 " +string.format("%-+6.0x", 100000) == "186a0 " +string.format("%-+6.0x", 1000000) == "f4240 " +string.format("%-+6.1x", 0) == "0 " +string.format("%-+6.1x", 1) == "1 " +string.format("%-+6.1x", 2) == "2 " +string.format("%-+6.1x", 3) == "3 " +string.format("%-+6.1x", 100) == "64 " +string.format("%-+6.1x", 10000) == "2710 " +string.format("%-+6.1x", 100000) == "186a0 " +string.format("%-+6.1x", 1000000) == "f4240 " +string.format("%-+6.6x", 0) == "000000" +string.format("%-+6.6x", 1) == "000001" +string.format("%-+6.6x", 2) == "000002" +string.format("%-+6.6x", 3) == "000003" +string.format("%-+6.6x", 100) == "000064" +string.format("%-+6.6x", 10000) == "002710" +string.format("%-+6.6x", 100000) == "0186a0" +string.format("%-+6.6x", 1000000) == "0f4240" +string.format("%-+20x", 0) == "0 " +string.format("%-+20x", 1) == "1 " +string.format("%-+20x", -1) == "ffffffffffffffff " +string.format("%-+20x", 2) == "2 " +string.format("%-+20x", -2) == "fffffffffffffffe " +string.format("%-+20x", 3) == "3 " +string.format("%-+20x", -3) == "fffffffffffffffd " +string.format("%-+20x", 100) == "64 " +string.format("%-+20x", 10000) == "2710 " +string.format("%-+20x", 100000) == "186a0 " +string.format("%-+20x", 1000000) == "f4240 " +string.format("%-+20x", 10000000) == "989680 " +string.format("%-+20.0x", 0) == " " +string.format("%-+20.0x", 1) == "1 " +string.format("%-+20.0x", -1) == "ffffffffffffffff " +string.format("%-+20.0x", 2) == "2 " +string.format("%-+20.0x", -2) == "fffffffffffffffe " +string.format("%-+20.0x", 3) == "3 " +string.format("%-+20.0x", -3) == "fffffffffffffffd " +string.format("%-+20.0x", 100) == "64 " +string.format("%-+20.0x", 10000) == "2710 " +string.format("%-+20.0x", 100000) == "186a0 " +string.format("%-+20.0x", 1000000) == "f4240 " +string.format("%-+20.0x", 10000000) == "989680 " +string.format("%-+20.1x", 0) == "0 " +string.format("%-+20.1x", 1) == "1 " +string.format("%-+20.1x", -1) == "ffffffffffffffff " +string.format("%-+20.1x", 2) == "2 " +string.format("%-+20.1x", -2) == "fffffffffffffffe " +string.format("%-+20.1x", 3) == "3 " +string.format("%-+20.1x", -3) == "fffffffffffffffd " +string.format("%-+20.1x", 100) == "64 " +string.format("%-+20.1x", 10000) == "2710 " +string.format("%-+20.1x", 100000) == "186a0 " +string.format("%-+20.1x", 1000000) == "f4240 " +string.format("%-+20.1x", 10000000) == "989680 " +string.format("%-+20.6x", 0) == "000000 " +string.format("%-+20.6x", 1) == "000001 " +string.format("%-+20.6x", -1) == "ffffffffffffffff " +string.format("%-+20.6x", 2) == "000002 " +string.format("%-+20.6x", -2) == "fffffffffffffffe " +string.format("%-+20.6x", 3) == "000003 " +string.format("%-+20.6x", -3) == "fffffffffffffffd " +string.format("%-+20.6x", 100) == "000064 " +string.format("%-+20.6x", 10000) == "002710 " +string.format("%-+20.6x", 100000) == "0186a0 " +string.format("%-+20.6x", 1000000) == "0f4240 " +string.format("%-+20.6x", 10000000) == "989680 " +string.format("% x", 0) == "0" +string.format("% x", 1) == "1" +string.format("% x", -1) == "ffffffffffffffff" +string.format("% x", 2) == "2" +string.format("% x", -2) == "fffffffffffffffe" +string.format("% x", 3) == "3" +string.format("% x", -3) == "fffffffffffffffd" +string.format("% x", 100) == "64" +string.format("% x", 10000) == "2710" +string.format("% x", 100000) == "186a0" +string.format("% x", 1000000) == "f4240" +string.format("% x", 10000000) == "989680" +string.format("% .0x", 0) == "" +string.format("% .6x", 0) == "000000" +string.format("% .6x", 1) == "000001" +string.format("% .6x", 2) == "000002" +string.format("% .6x", 3) == "000003" +string.format("% .6x", 100) == "000064" +string.format("% .6x", 10000) == "002710" +string.format("% .6x", 100000) == "0186a0" +string.format("% .6x", 1000000) == "0f4240" +string.format("% 1.0x", 0) == " " +string.format("% 1.6x", 0) == "000000" +string.format("% 1.6x", 1) == "000001" +string.format("% 1.6x", 2) == "000002" +string.format("% 1.6x", 3) == "000003" +string.format("% 1.6x", 100) == "000064" +string.format("% 1.6x", 10000) == "002710" +string.format("% 1.6x", 100000) == "0186a0" +string.format("% 1.6x", 1000000) == "0f4240" +string.format("% 2x", 0) == " 0" +string.format("% 2x", 1) == " 1" +string.format("% 2x", 2) == " 2" +string.format("% 2x", 3) == " 3" +string.format("% 2.0x", 0) == " " +string.format("% 2.0x", 1) == " 1" +string.format("% 2.0x", 2) == " 2" +string.format("% 2.0x", 3) == " 3" +string.format("% 2.1x", 0) == " 0" +string.format("% 2.1x", 1) == " 1" +string.format("% 2.1x", 2) == " 2" +string.format("% 2.1x", 3) == " 3" +string.format("% 2.6x", 0) == "000000" +string.format("% 2.6x", 1) == "000001" +string.format("% 2.6x", 2) == "000002" +string.format("% 2.6x", 3) == "000003" +string.format("% 2.6x", 100) == "000064" +string.format("% 2.6x", 10000) == "002710" +string.format("% 2.6x", 100000) == "0186a0" +string.format("% 2.6x", 1000000) == "0f4240" +string.format("% 6x", 0) == " 0" +string.format("% 6x", 1) == " 1" +string.format("% 6x", 2) == " 2" +string.format("% 6x", 3) == " 3" +string.format("% 6x", 100) == " 64" +string.format("% 6x", 10000) == " 2710" +string.format("% 6x", 100000) == " 186a0" +string.format("% 6x", 1000000) == " f4240" +string.format("% 6.0x", 0) == " " +string.format("% 6.0x", 1) == " 1" +string.format("% 6.0x", 2) == " 2" +string.format("% 6.0x", 3) == " 3" +string.format("% 6.0x", 100) == " 64" +string.format("% 6.0x", 10000) == " 2710" +string.format("% 6.0x", 100000) == " 186a0" +string.format("% 6.0x", 1000000) == " f4240" +string.format("% 6.1x", 0) == " 0" +string.format("% 6.1x", 1) == " 1" +string.format("% 6.1x", 2) == " 2" +string.format("% 6.1x", 3) == " 3" +string.format("% 6.1x", 100) == " 64" +string.format("% 6.1x", 10000) == " 2710" +string.format("% 6.1x", 100000) == " 186a0" +string.format("% 6.1x", 1000000) == " f4240" +string.format("% 6.6x", 0) == "000000" +string.format("% 6.6x", 1) == "000001" +string.format("% 6.6x", 2) == "000002" +string.format("% 6.6x", 3) == "000003" +string.format("% 6.6x", 100) == "000064" +string.format("% 6.6x", 10000) == "002710" +string.format("% 6.6x", 100000) == "0186a0" +string.format("% 6.6x", 1000000) == "0f4240" +string.format("% 20x", 0) == " 0" +string.format("% 20x", 1) == " 1" +string.format("% 20x", -1) == " ffffffffffffffff" +string.format("% 20x", 2) == " 2" +string.format("% 20x", -2) == " fffffffffffffffe" +string.format("% 20x", 3) == " 3" +string.format("% 20x", -3) == " fffffffffffffffd" +string.format("% 20x", 100) == " 64" +string.format("% 20x", 10000) == " 2710" +string.format("% 20x", 100000) == " 186a0" +string.format("% 20x", 1000000) == " f4240" +string.format("% 20x", 10000000) == " 989680" +string.format("% 20.0x", 0) == " " +string.format("% 20.0x", 1) == " 1" +string.format("% 20.0x", -1) == " ffffffffffffffff" +string.format("% 20.0x", 2) == " 2" +string.format("% 20.0x", -2) == " fffffffffffffffe" +string.format("% 20.0x", 3) == " 3" +string.format("% 20.0x", -3) == " fffffffffffffffd" +string.format("% 20.0x", 100) == " 64" +string.format("% 20.0x", 10000) == " 2710" +string.format("% 20.0x", 100000) == " 186a0" +string.format("% 20.0x", 1000000) == " f4240" +string.format("% 20.0x", 10000000) == " 989680" +string.format("% 20.1x", 0) == " 0" +string.format("% 20.1x", 1) == " 1" +string.format("% 20.1x", -1) == " ffffffffffffffff" +string.format("% 20.1x", 2) == " 2" +string.format("% 20.1x", -2) == " fffffffffffffffe" +string.format("% 20.1x", 3) == " 3" +string.format("% 20.1x", -3) == " fffffffffffffffd" +string.format("% 20.1x", 100) == " 64" +string.format("% 20.1x", 10000) == " 2710" +string.format("% 20.1x", 100000) == " 186a0" +string.format("% 20.1x", 1000000) == " f4240" +string.format("% 20.1x", 10000000) == " 989680" +string.format("% 20.6x", 0) == " 000000" +string.format("% 20.6x", 1) == " 000001" +string.format("% 20.6x", -1) == " ffffffffffffffff" +string.format("% 20.6x", 2) == " 000002" +string.format("% 20.6x", -2) == " fffffffffffffffe" +string.format("% 20.6x", 3) == " 000003" +string.format("% 20.6x", -3) == " fffffffffffffffd" +string.format("% 20.6x", 100) == " 000064" +string.format("% 20.6x", 10000) == " 002710" +string.format("% 20.6x", 100000) == " 0186a0" +string.format("% 20.6x", 1000000) == " 0f4240" +string.format("% 20.6x", 10000000) == " 989680" +string.format("% +x", 0) == "0" +string.format("% +x", 1) == "1" +string.format("% +x", -1) == "ffffffffffffffff" +string.format("% +x", 2) == "2" +string.format("% +x", -2) == "fffffffffffffffe" +string.format("% +x", 3) == "3" +string.format("% +x", -3) == "fffffffffffffffd" +string.format("% +x", 100) == "64" +string.format("% +x", 10000) == "2710" +string.format("% +x", 100000) == "186a0" +string.format("% +x", 1000000) == "f4240" +string.format("% +x", 10000000) == "989680" +string.format("% +.0x", 0) == "" +string.format("% +.6x", 0) == "000000" +string.format("% +.6x", 1) == "000001" +string.format("% +.6x", 2) == "000002" +string.format("% +.6x", 3) == "000003" +string.format("% +.6x", 100) == "000064" +string.format("% +.6x", 10000) == "002710" +string.format("% +.6x", 100000) == "0186a0" +string.format("% +.6x", 1000000) == "0f4240" +string.format("% +1.0x", 0) == " " +string.format("% +1.6x", 0) == "000000" +string.format("% +1.6x", 1) == "000001" +string.format("% +1.6x", 2) == "000002" +string.format("% +1.6x", 3) == "000003" +string.format("% +1.6x", 100) == "000064" +string.format("% +1.6x", 10000) == "002710" +string.format("% +1.6x", 100000) == "0186a0" +string.format("% +1.6x", 1000000) == "0f4240" +string.format("% +2x", 0) == " 0" +string.format("% +2x", 1) == " 1" +string.format("% +2x", 2) == " 2" +string.format("% +2x", 3) == " 3" +string.format("% +2.0x", 0) == " " +string.format("% +2.0x", 1) == " 1" +string.format("% +2.0x", 2) == " 2" +string.format("% +2.0x", 3) == " 3" +string.format("% +2.1x", 0) == " 0" +string.format("% +2.1x", 1) == " 1" +string.format("% +2.1x", 2) == " 2" +string.format("% +2.1x", 3) == " 3" +string.format("% +2.6x", 0) == "000000" +string.format("% +2.6x", 1) == "000001" +string.format("% +2.6x", 2) == "000002" +string.format("% +2.6x", 3) == "000003" +string.format("% +2.6x", 100) == "000064" +string.format("% +2.6x", 10000) == "002710" +string.format("% +2.6x", 100000) == "0186a0" +string.format("% +2.6x", 1000000) == "0f4240" +string.format("% +6x", 0) == " 0" +string.format("% +6x", 1) == " 1" +string.format("% +6x", 2) == " 2" +string.format("% +6x", 3) == " 3" +string.format("% +6x", 100) == " 64" +string.format("% +6x", 10000) == " 2710" +string.format("% +6x", 100000) == " 186a0" +string.format("% +6x", 1000000) == " f4240" +string.format("% +6.0x", 0) == " " +string.format("% +6.0x", 1) == " 1" +string.format("% +6.0x", 2) == " 2" +string.format("% +6.0x", 3) == " 3" +string.format("% +6.0x", 100) == " 64" +string.format("% +6.0x", 10000) == " 2710" +string.format("% +6.0x", 100000) == " 186a0" +string.format("% +6.0x", 1000000) == " f4240" +string.format("% +6.1x", 0) == " 0" +string.format("% +6.1x", 1) == " 1" +string.format("% +6.1x", 2) == " 2" +string.format("% +6.1x", 3) == " 3" +string.format("% +6.1x", 100) == " 64" +string.format("% +6.1x", 10000) == " 2710" +string.format("% +6.1x", 100000) == " 186a0" +string.format("% +6.1x", 1000000) == " f4240" +string.format("% +6.6x", 0) == "000000" +string.format("% +6.6x", 1) == "000001" +string.format("% +6.6x", 2) == "000002" +string.format("% +6.6x", 3) == "000003" +string.format("% +6.6x", 100) == "000064" +string.format("% +6.6x", 10000) == "002710" +string.format("% +6.6x", 100000) == "0186a0" +string.format("% +6.6x", 1000000) == "0f4240" +string.format("% +20x", 0) == " 0" +string.format("% +20x", 1) == " 1" +string.format("% +20x", -1) == " ffffffffffffffff" +string.format("% +20x", 2) == " 2" +string.format("% +20x", -2) == " fffffffffffffffe" +string.format("% +20x", 3) == " 3" +string.format("% +20x", -3) == " fffffffffffffffd" +string.format("% +20x", 100) == " 64" +string.format("% +20x", 10000) == " 2710" +string.format("% +20x", 100000) == " 186a0" +string.format("% +20x", 1000000) == " f4240" +string.format("% +20x", 10000000) == " 989680" +string.format("% +20.0x", 0) == " " +string.format("% +20.0x", 1) == " 1" +string.format("% +20.0x", -1) == " ffffffffffffffff" +string.format("% +20.0x", 2) == " 2" +string.format("% +20.0x", -2) == " fffffffffffffffe" +string.format("% +20.0x", 3) == " 3" +string.format("% +20.0x", -3) == " fffffffffffffffd" +string.format("% +20.0x", 100) == " 64" +string.format("% +20.0x", 10000) == " 2710" +string.format("% +20.0x", 100000) == " 186a0" +string.format("% +20.0x", 1000000) == " f4240" +string.format("% +20.0x", 10000000) == " 989680" +string.format("% +20.1x", 0) == " 0" +string.format("% +20.1x", 1) == " 1" +string.format("% +20.1x", -1) == " ffffffffffffffff" +string.format("% +20.1x", 2) == " 2" +string.format("% +20.1x", -2) == " fffffffffffffffe" +string.format("% +20.1x", 3) == " 3" +string.format("% +20.1x", -3) == " fffffffffffffffd" +string.format("% +20.1x", 100) == " 64" +string.format("% +20.1x", 10000) == " 2710" +string.format("% +20.1x", 100000) == " 186a0" +string.format("% +20.1x", 1000000) == " f4240" +string.format("% +20.1x", 10000000) == " 989680" +string.format("% +20.6x", 0) == " 000000" +string.format("% +20.6x", 1) == " 000001" +string.format("% +20.6x", -1) == " ffffffffffffffff" +string.format("% +20.6x", 2) == " 000002" +string.format("% +20.6x", -2) == " fffffffffffffffe" +string.format("% +20.6x", 3) == " 000003" +string.format("% +20.6x", -3) == " fffffffffffffffd" +string.format("% +20.6x", 100) == " 000064" +string.format("% +20.6x", 10000) == " 002710" +string.format("% +20.6x", 100000) == " 0186a0" +string.format("% +20.6x", 1000000) == " 0f4240" +string.format("% +20.6x", 10000000) == " 989680" +string.format("% -x", 0) == "0" +string.format("% -x", 1) == "1" +string.format("% -x", -1) == "ffffffffffffffff" +string.format("% -x", 2) == "2" +string.format("% -x", -2) == "fffffffffffffffe" +string.format("% -x", 3) == "3" +string.format("% -x", -3) == "fffffffffffffffd" +string.format("% -x", 100) == "64" +string.format("% -x", 10000) == "2710" +string.format("% -x", 100000) == "186a0" +string.format("% -x", 1000000) == "f4240" +string.format("% -x", 10000000) == "989680" +string.format("% -.0x", 0) == "" +string.format("% -.6x", 0) == "000000" +string.format("% -.6x", 1) == "000001" +string.format("% -.6x", 2) == "000002" +string.format("% -.6x", 3) == "000003" +string.format("% -.6x", 100) == "000064" +string.format("% -.6x", 10000) == "002710" +string.format("% -.6x", 100000) == "0186a0" +string.format("% -.6x", 1000000) == "0f4240" +string.format("% -1.0x", 0) == " " +string.format("% -1.6x", 0) == "000000" +string.format("% -1.6x", 1) == "000001" +string.format("% -1.6x", 2) == "000002" +string.format("% -1.6x", 3) == "000003" +string.format("% -1.6x", 100) == "000064" +string.format("% -1.6x", 10000) == "002710" +string.format("% -1.6x", 100000) == "0186a0" +string.format("% -1.6x", 1000000) == "0f4240" +string.format("% -2x", 0) == "0 " +string.format("% -2x", 1) == "1 " +string.format("% -2x", 2) == "2 " +string.format("% -2x", 3) == "3 " +string.format("% -2.0x", 0) == " " +string.format("% -2.0x", 1) == "1 " +string.format("% -2.0x", 2) == "2 " +string.format("% -2.0x", 3) == "3 " +string.format("% -2.1x", 0) == "0 " +string.format("% -2.1x", 1) == "1 " +string.format("% -2.1x", 2) == "2 " +string.format("% -2.1x", 3) == "3 " +string.format("% -2.6x", 0) == "000000" +string.format("% -2.6x", 1) == "000001" +string.format("% -2.6x", 2) == "000002" +string.format("% -2.6x", 3) == "000003" +string.format("% -2.6x", 100) == "000064" +string.format("% -2.6x", 10000) == "002710" +string.format("% -2.6x", 100000) == "0186a0" +string.format("% -2.6x", 1000000) == "0f4240" +string.format("% -6x", 0) == "0 " +string.format("% -6x", 1) == "1 " +string.format("% -6x", 2) == "2 " +string.format("% -6x", 3) == "3 " +string.format("% -6x", 100) == "64 " +string.format("% -6x", 10000) == "2710 " +string.format("% -6x", 100000) == "186a0 " +string.format("% -6x", 1000000) == "f4240 " +string.format("% -6.0x", 0) == " " +string.format("% -6.0x", 1) == "1 " +string.format("% -6.0x", 2) == "2 " +string.format("% -6.0x", 3) == "3 " +string.format("% -6.0x", 100) == "64 " +string.format("% -6.0x", 10000) == "2710 " +string.format("% -6.0x", 100000) == "186a0 " +string.format("% -6.0x", 1000000) == "f4240 " +string.format("% -6.1x", 0) == "0 " +string.format("% -6.1x", 1) == "1 " +string.format("% -6.1x", 2) == "2 " +string.format("% -6.1x", 3) == "3 " +string.format("% -6.1x", 100) == "64 " +string.format("% -6.1x", 10000) == "2710 " +string.format("% -6.1x", 100000) == "186a0 " +string.format("% -6.1x", 1000000) == "f4240 " +string.format("% -6.6x", 0) == "000000" +string.format("% -6.6x", 1) == "000001" +string.format("% -6.6x", 2) == "000002" +string.format("% -6.6x", 3) == "000003" +string.format("% -6.6x", 100) == "000064" +string.format("% -6.6x", 10000) == "002710" +string.format("% -6.6x", 100000) == "0186a0" +string.format("% -6.6x", 1000000) == "0f4240" +string.format("% -20x", 0) == "0 " +string.format("% -20x", 1) == "1 " +string.format("% -20x", -1) == "ffffffffffffffff " +string.format("% -20x", 2) == "2 " +string.format("% -20x", -2) == "fffffffffffffffe " +string.format("% -20x", 3) == "3 " +string.format("% -20x", -3) == "fffffffffffffffd " +string.format("% -20x", 100) == "64 " +string.format("% -20x", 10000) == "2710 " +string.format("% -20x", 100000) == "186a0 " +string.format("% -20x", 1000000) == "f4240 " +string.format("% -20x", 10000000) == "989680 " +string.format("% -20.0x", 0) == " " +string.format("% -20.0x", 1) == "1 " +string.format("% -20.0x", -1) == "ffffffffffffffff " +string.format("% -20.0x", 2) == "2 " +string.format("% -20.0x", -2) == "fffffffffffffffe " +string.format("% -20.0x", 3) == "3 " +string.format("% -20.0x", -3) == "fffffffffffffffd " +string.format("% -20.0x", 100) == "64 " +string.format("% -20.0x", 10000) == "2710 " +string.format("% -20.0x", 100000) == "186a0 " +string.format("% -20.0x", 1000000) == "f4240 " +string.format("% -20.0x", 10000000) == "989680 " +string.format("% -20.1x", 0) == "0 " +string.format("% -20.1x", 1) == "1 " +string.format("% -20.1x", -1) == "ffffffffffffffff " +string.format("% -20.1x", 2) == "2 " +string.format("% -20.1x", -2) == "fffffffffffffffe " +string.format("% -20.1x", 3) == "3 " +string.format("% -20.1x", -3) == "fffffffffffffffd " +string.format("% -20.1x", 100) == "64 " +string.format("% -20.1x", 10000) == "2710 " +string.format("% -20.1x", 100000) == "186a0 " +string.format("% -20.1x", 1000000) == "f4240 " +string.format("% -20.1x", 10000000) == "989680 " +string.format("% -20.6x", 0) == "000000 " +string.format("% -20.6x", 1) == "000001 " +string.format("% -20.6x", -1) == "ffffffffffffffff " +string.format("% -20.6x", 2) == "000002 " +string.format("% -20.6x", -2) == "fffffffffffffffe " +string.format("% -20.6x", 3) == "000003 " +string.format("% -20.6x", -3) == "fffffffffffffffd " +string.format("% -20.6x", 100) == "000064 " +string.format("% -20.6x", 10000) == "002710 " +string.format("% -20.6x", 100000) == "0186a0 " +string.format("% -20.6x", 1000000) == "0f4240 " +string.format("% -20.6x", 10000000) == "989680 " +string.format("% -+x", 0) == "0" +string.format("% -+x", 1) == "1" +string.format("% -+x", -1) == "ffffffffffffffff" +string.format("% -+x", 2) == "2" +string.format("% -+x", -2) == "fffffffffffffffe" +string.format("% -+x", 3) == "3" +string.format("% -+x", -3) == "fffffffffffffffd" +string.format("% -+x", 100) == "64" +string.format("% -+x", 10000) == "2710" +string.format("% -+x", 100000) == "186a0" +string.format("% -+x", 1000000) == "f4240" +string.format("% -+x", 10000000) == "989680" +string.format("% -+.0x", 0) == "" +string.format("% -+.6x", 0) == "000000" +string.format("% -+.6x", 1) == "000001" +string.format("% -+.6x", 2) == "000002" +string.format("% -+.6x", 3) == "000003" +string.format("% -+.6x", 100) == "000064" +string.format("% -+.6x", 10000) == "002710" +string.format("% -+.6x", 100000) == "0186a0" +string.format("% -+.6x", 1000000) == "0f4240" +string.format("% -+1.0x", 0) == " " +string.format("% -+1.6x", 0) == "000000" +string.format("% -+1.6x", 1) == "000001" +string.format("% -+1.6x", 2) == "000002" +string.format("% -+1.6x", 3) == "000003" +string.format("% -+1.6x", 100) == "000064" +string.format("% -+1.6x", 10000) == "002710" +string.format("% -+1.6x", 100000) == "0186a0" +string.format("% -+1.6x", 1000000) == "0f4240" +string.format("% -+2x", 0) == "0 " +string.format("% -+2x", 1) == "1 " +string.format("% -+2x", 2) == "2 " +string.format("% -+2x", 3) == "3 " +string.format("% -+2.0x", 0) == " " +string.format("% -+2.0x", 1) == "1 " +string.format("% -+2.0x", 2) == "2 " +string.format("% -+2.0x", 3) == "3 " +string.format("% -+2.1x", 0) == "0 " +string.format("% -+2.1x", 1) == "1 " +string.format("% -+2.1x", 2) == "2 " +string.format("% -+2.1x", 3) == "3 " +string.format("% -+2.6x", 0) == "000000" +string.format("% -+2.6x", 1) == "000001" +string.format("% -+2.6x", 2) == "000002" +string.format("% -+2.6x", 3) == "000003" +string.format("% -+2.6x", 100) == "000064" +string.format("% -+2.6x", 10000) == "002710" +string.format("% -+2.6x", 100000) == "0186a0" +string.format("% -+2.6x", 1000000) == "0f4240" +string.format("% -+6x", 0) == "0 " +string.format("% -+6x", 1) == "1 " +string.format("% -+6x", 2) == "2 " +string.format("% -+6x", 3) == "3 " +string.format("% -+6x", 100) == "64 " +string.format("% -+6x", 10000) == "2710 " +string.format("% -+6x", 100000) == "186a0 " +string.format("% -+6x", 1000000) == "f4240 " +string.format("% -+6.0x", 0) == " " +string.format("% -+6.0x", 1) == "1 " +string.format("% -+6.0x", 2) == "2 " +string.format("% -+6.0x", 3) == "3 " +string.format("% -+6.0x", 100) == "64 " +string.format("% -+6.0x", 10000) == "2710 " +string.format("% -+6.0x", 100000) == "186a0 " +string.format("% -+6.0x", 1000000) == "f4240 " +string.format("% -+6.1x", 0) == "0 " +string.format("% -+6.1x", 1) == "1 " +string.format("% -+6.1x", 2) == "2 " +string.format("% -+6.1x", 3) == "3 " +string.format("% -+6.1x", 100) == "64 " +string.format("% -+6.1x", 10000) == "2710 " +string.format("% -+6.1x", 100000) == "186a0 " +string.format("% -+6.1x", 1000000) == "f4240 " +string.format("% -+6.6x", 0) == "000000" +string.format("% -+6.6x", 1) == "000001" +string.format("% -+6.6x", 2) == "000002" +string.format("% -+6.6x", 3) == "000003" +string.format("% -+6.6x", 100) == "000064" +string.format("% -+6.6x", 10000) == "002710" +string.format("% -+6.6x", 100000) == "0186a0" +string.format("% -+6.6x", 1000000) == "0f4240" +string.format("% -+20x", 0) == "0 " +string.format("% -+20x", 1) == "1 " +string.format("% -+20x", -1) == "ffffffffffffffff " +string.format("% -+20x", 2) == "2 " +string.format("% -+20x", -2) == "fffffffffffffffe " +string.format("% -+20x", 3) == "3 " +string.format("% -+20x", -3) == "fffffffffffffffd " +string.format("% -+20x", 100) == "64 " +string.format("% -+20x", 10000) == "2710 " +string.format("% -+20x", 100000) == "186a0 " +string.format("% -+20x", 1000000) == "f4240 " +string.format("% -+20x", 10000000) == "989680 " +string.format("% -+20.0x", 0) == " " +string.format("% -+20.0x", 1) == "1 " +string.format("% -+20.0x", -1) == "ffffffffffffffff " +string.format("% -+20.0x", 2) == "2 " +string.format("% -+20.0x", -2) == "fffffffffffffffe " +string.format("% -+20.0x", 3) == "3 " +string.format("% -+20.0x", -3) == "fffffffffffffffd " +string.format("% -+20.0x", 100) == "64 " +string.format("% -+20.0x", 10000) == "2710 " +string.format("% -+20.0x", 100000) == "186a0 " +string.format("% -+20.0x", 1000000) == "f4240 " +string.format("% -+20.0x", 10000000) == "989680 " +string.format("% -+20.1x", 0) == "0 " +string.format("% -+20.1x", 1) == "1 " +string.format("% -+20.1x", -1) == "ffffffffffffffff " +string.format("% -+20.1x", 2) == "2 " +string.format("% -+20.1x", -2) == "fffffffffffffffe " +string.format("% -+20.1x", 3) == "3 " +string.format("% -+20.1x", -3) == "fffffffffffffffd " +string.format("% -+20.1x", 100) == "64 " +string.format("% -+20.1x", 10000) == "2710 " +string.format("% -+20.1x", 100000) == "186a0 " +string.format("% -+20.1x", 1000000) == "f4240 " +string.format("% -+20.1x", 10000000) == "989680 " +string.format("% -+20.6x", 0) == "000000 " +string.format("% -+20.6x", 1) == "000001 " +string.format("% -+20.6x", -1) == "ffffffffffffffff " +string.format("% -+20.6x", 2) == "000002 " +string.format("% -+20.6x", -2) == "fffffffffffffffe " +string.format("% -+20.6x", 3) == "000003 " +string.format("% -+20.6x", -3) == "fffffffffffffffd " +string.format("% -+20.6x", 100) == "000064 " +string.format("% -+20.6x", 10000) == "002710 " +string.format("% -+20.6x", 100000) == "0186a0 " +string.format("% -+20.6x", 1000000) == "0f4240 " +string.format("% -+20.6x", 10000000) == "989680 " +string.format("%#x", 0) == "0" +string.format("%#x", 1) == "0x1" +string.format("%#x", -1) == "0xffffffffffffffff" +string.format("%#x", 2) == "0x2" +string.format("%#x", -2) == "0xfffffffffffffffe" +string.format("%#x", 3) == "0x3" +string.format("%#x", -3) == "0xfffffffffffffffd" +string.format("%#x", 100) == "0x64" +string.format("%#x", 10000) == "0x2710" +string.format("%#x", 100000) == "0x186a0" +string.format("%#x", 1000000) == "0xf4240" +string.format("%#x", 10000000) == "0x989680" +string.format("%#.0x", 0) == "" +string.format("%#.6x", 0) == "000000" +string.format("%#.6x", 1) == "0x000001" +string.format("%#.6x", 2) == "0x000002" +string.format("%#.6x", 3) == "0x000003" +string.format("%#.6x", 100) == "0x000064" +string.format("%#.6x", 10000) == "0x002710" +string.format("%#.6x", 100000) == "0x0186a0" +string.format("%#.6x", 1000000) == "0x0f4240" +string.format("%#1.0x", 0) == " " +string.format("%#1.6x", 0) == "000000" +string.format("%#1.6x", 1) == "0x000001" +string.format("%#1.6x", 2) == "0x000002" +string.format("%#1.6x", 3) == "0x000003" +string.format("%#1.6x", 100) == "0x000064" +string.format("%#1.6x", 10000) == "0x002710" +string.format("%#1.6x", 100000) == "0x0186a0" +string.format("%#1.6x", 1000000) == "0x0f4240" +string.format("%#2x", 0) == " 0" +string.format("%#2.0x", 0) == " " +string.format("%#2.1x", 0) == " 0" +string.format("%#2.6x", 0) == "000000" +string.format("%#2.6x", 1) == "0x000001" +string.format("%#2.6x", 2) == "0x000002" +string.format("%#2.6x", 3) == "0x000003" +string.format("%#2.6x", 100) == "0x000064" +string.format("%#2.6x", 10000) == "0x002710" +string.format("%#2.6x", 100000) == "0x0186a0" +string.format("%#2.6x", 1000000) == "0x0f4240" +string.format("%#6x", 0) == " 0" +string.format("%#6x", 1) == " 0x1" +string.format("%#6x", 2) == " 0x2" +string.format("%#6x", 3) == " 0x3" +string.format("%#6x", 100) == " 0x64" +string.format("%#6.0x", 0) == " " +string.format("%#6.0x", 1) == " 0x1" +string.format("%#6.0x", 2) == " 0x2" +string.format("%#6.0x", 3) == " 0x3" +string.format("%#6.0x", 100) == " 0x64" +string.format("%#6.1x", 0) == " 0" +string.format("%#6.1x", 1) == " 0x1" +string.format("%#6.1x", 2) == " 0x2" +string.format("%#6.1x", 3) == " 0x3" +string.format("%#6.1x", 100) == " 0x64" +string.format("%#6.6x", 0) == "000000" +string.format("%#6.6x", 1) == "0x000001" +string.format("%#6.6x", 2) == "0x000002" +string.format("%#6.6x", 3) == "0x000003" +string.format("%#6.6x", 100) == "0x000064" +string.format("%#6.6x", 10000) == "0x002710" +string.format("%#6.6x", 100000) == "0x0186a0" +string.format("%#6.6x", 1000000) == "0x0f4240" +string.format("%#20x", 0) == " 0" +string.format("%#20x", 1) == " 0x1" +string.format("%#20x", -1) == " 0xffffffffffffffff" +string.format("%#20x", 2) == " 0x2" +string.format("%#20x", -2) == " 0xfffffffffffffffe" +string.format("%#20x", 3) == " 0x3" +string.format("%#20x", -3) == " 0xfffffffffffffffd" +string.format("%#20x", 100) == " 0x64" +string.format("%#20x", 10000) == " 0x2710" +string.format("%#20x", 100000) == " 0x186a0" +string.format("%#20x", 1000000) == " 0xf4240" +string.format("%#20x", 10000000) == " 0x989680" +string.format("%#20.0x", 0) == " " +string.format("%#20.0x", 1) == " 0x1" +string.format("%#20.0x", -1) == " 0xffffffffffffffff" +string.format("%#20.0x", 2) == " 0x2" +string.format("%#20.0x", -2) == " 0xfffffffffffffffe" +string.format("%#20.0x", 3) == " 0x3" +string.format("%#20.0x", -3) == " 0xfffffffffffffffd" +string.format("%#20.0x", 100) == " 0x64" +string.format("%#20.0x", 10000) == " 0x2710" +string.format("%#20.0x", 100000) == " 0x186a0" +string.format("%#20.0x", 1000000) == " 0xf4240" +string.format("%#20.0x", 10000000) == " 0x989680" +string.format("%#20.1x", 0) == " 0" +string.format("%#20.1x", 1) == " 0x1" +string.format("%#20.1x", -1) == " 0xffffffffffffffff" +string.format("%#20.1x", 2) == " 0x2" +string.format("%#20.1x", -2) == " 0xfffffffffffffffe" +string.format("%#20.1x", 3) == " 0x3" +string.format("%#20.1x", -3) == " 0xfffffffffffffffd" +string.format("%#20.1x", 100) == " 0x64" +string.format("%#20.1x", 10000) == " 0x2710" +string.format("%#20.1x", 100000) == " 0x186a0" +string.format("%#20.1x", 1000000) == " 0xf4240" +string.format("%#20.1x", 10000000) == " 0x989680" +string.format("%#20.6x", 0) == " 000000" +string.format("%#20.6x", 1) == " 0x000001" +string.format("%#20.6x", -1) == " 0xffffffffffffffff" +string.format("%#20.6x", 2) == " 0x000002" +string.format("%#20.6x", -2) == " 0xfffffffffffffffe" +string.format("%#20.6x", 3) == " 0x000003" +string.format("%#20.6x", -3) == " 0xfffffffffffffffd" +string.format("%#20.6x", 100) == " 0x000064" +string.format("%#20.6x", 10000) == " 0x002710" +string.format("%#20.6x", 100000) == " 0x0186a0" +string.format("%#20.6x", 1000000) == " 0x0f4240" +string.format("%#20.6x", 10000000) == " 0x989680" +string.format("%#+x", 0) == "0" +string.format("%#+x", 1) == "0x1" +string.format("%#+x", -1) == "0xffffffffffffffff" +string.format("%#+x", 2) == "0x2" +string.format("%#+x", -2) == "0xfffffffffffffffe" +string.format("%#+x", 3) == "0x3" +string.format("%#+x", -3) == "0xfffffffffffffffd" +string.format("%#+x", 100) == "0x64" +string.format("%#+x", 10000) == "0x2710" +string.format("%#+x", 100000) == "0x186a0" +string.format("%#+x", 1000000) == "0xf4240" +string.format("%#+x", 10000000) == "0x989680" +string.format("%#+.0x", 0) == "" +string.format("%#+.6x", 0) == "000000" +string.format("%#+.6x", 1) == "0x000001" +string.format("%#+.6x", 2) == "0x000002" +string.format("%#+.6x", 3) == "0x000003" +string.format("%#+.6x", 100) == "0x000064" +string.format("%#+.6x", 10000) == "0x002710" +string.format("%#+.6x", 100000) == "0x0186a0" +string.format("%#+.6x", 1000000) == "0x0f4240" +string.format("%#+1.0x", 0) == " " +string.format("%#+1.6x", 0) == "000000" +string.format("%#+1.6x", 1) == "0x000001" +string.format("%#+1.6x", 2) == "0x000002" +string.format("%#+1.6x", 3) == "0x000003" +string.format("%#+1.6x", 100) == "0x000064" +string.format("%#+1.6x", 10000) == "0x002710" +string.format("%#+1.6x", 100000) == "0x0186a0" +string.format("%#+1.6x", 1000000) == "0x0f4240" +string.format("%#+2x", 0) == " 0" +string.format("%#+2.0x", 0) == " " +string.format("%#+2.1x", 0) == " 0" +string.format("%#+2.6x", 0) == "000000" +string.format("%#+2.6x", 1) == "0x000001" +string.format("%#+2.6x", 2) == "0x000002" +string.format("%#+2.6x", 3) == "0x000003" +string.format("%#+2.6x", 100) == "0x000064" +string.format("%#+2.6x", 10000) == "0x002710" +string.format("%#+2.6x", 100000) == "0x0186a0" +string.format("%#+2.6x", 1000000) == "0x0f4240" +string.format("%#+6x", 0) == " 0" +string.format("%#+6x", 1) == " 0x1" +string.format("%#+6x", 2) == " 0x2" +string.format("%#+6x", 3) == " 0x3" +string.format("%#+6x", 100) == " 0x64" +string.format("%#+6.0x", 0) == " " +string.format("%#+6.0x", 1) == " 0x1" +string.format("%#+6.0x", 2) == " 0x2" +string.format("%#+6.0x", 3) == " 0x3" +string.format("%#+6.0x", 100) == " 0x64" +string.format("%#+6.1x", 0) == " 0" +string.format("%#+6.1x", 1) == " 0x1" +string.format("%#+6.1x", 2) == " 0x2" +string.format("%#+6.1x", 3) == " 0x3" +string.format("%#+6.1x", 100) == " 0x64" +string.format("%#+6.6x", 0) == "000000" +string.format("%#+6.6x", 1) == "0x000001" +string.format("%#+6.6x", 2) == "0x000002" +string.format("%#+6.6x", 3) == "0x000003" +string.format("%#+6.6x", 100) == "0x000064" +string.format("%#+6.6x", 10000) == "0x002710" +string.format("%#+6.6x", 100000) == "0x0186a0" +string.format("%#+6.6x", 1000000) == "0x0f4240" +string.format("%#+20x", 0) == " 0" +string.format("%#+20x", 1) == " 0x1" +string.format("%#+20x", -1) == " 0xffffffffffffffff" +string.format("%#+20x", 2) == " 0x2" +string.format("%#+20x", -2) == " 0xfffffffffffffffe" +string.format("%#+20x", 3) == " 0x3" +string.format("%#+20x", -3) == " 0xfffffffffffffffd" +string.format("%#+20x", 100) == " 0x64" +string.format("%#+20x", 10000) == " 0x2710" +string.format("%#+20x", 100000) == " 0x186a0" +string.format("%#+20x", 1000000) == " 0xf4240" +string.format("%#+20x", 10000000) == " 0x989680" +string.format("%#+20.0x", 0) == " " +string.format("%#+20.0x", 1) == " 0x1" +string.format("%#+20.0x", -1) == " 0xffffffffffffffff" +string.format("%#+20.0x", 2) == " 0x2" +string.format("%#+20.0x", -2) == " 0xfffffffffffffffe" +string.format("%#+20.0x", 3) == " 0x3" +string.format("%#+20.0x", -3) == " 0xfffffffffffffffd" +string.format("%#+20.0x", 100) == " 0x64" +string.format("%#+20.0x", 10000) == " 0x2710" +string.format("%#+20.0x", 100000) == " 0x186a0" +string.format("%#+20.0x", 1000000) == " 0xf4240" +string.format("%#+20.0x", 10000000) == " 0x989680" +string.format("%#+20.1x", 0) == " 0" +string.format("%#+20.1x", 1) == " 0x1" +string.format("%#+20.1x", -1) == " 0xffffffffffffffff" +string.format("%#+20.1x", 2) == " 0x2" +string.format("%#+20.1x", -2) == " 0xfffffffffffffffe" +string.format("%#+20.1x", 3) == " 0x3" +string.format("%#+20.1x", -3) == " 0xfffffffffffffffd" +string.format("%#+20.1x", 100) == " 0x64" +string.format("%#+20.1x", 10000) == " 0x2710" +string.format("%#+20.1x", 100000) == " 0x186a0" +string.format("%#+20.1x", 1000000) == " 0xf4240" +string.format("%#+20.1x", 10000000) == " 0x989680" +string.format("%#+20.6x", 0) == " 000000" +string.format("%#+20.6x", 1) == " 0x000001" +string.format("%#+20.6x", -1) == " 0xffffffffffffffff" +string.format("%#+20.6x", 2) == " 0x000002" +string.format("%#+20.6x", -2) == " 0xfffffffffffffffe" +string.format("%#+20.6x", 3) == " 0x000003" +string.format("%#+20.6x", -3) == " 0xfffffffffffffffd" +string.format("%#+20.6x", 100) == " 0x000064" +string.format("%#+20.6x", 10000) == " 0x002710" +string.format("%#+20.6x", 100000) == " 0x0186a0" +string.format("%#+20.6x", 1000000) == " 0x0f4240" +string.format("%#+20.6x", 10000000) == " 0x989680" +string.format("%#-x", 0) == "0" +string.format("%#-x", 1) == "0x1" +string.format("%#-x", -1) == "0xffffffffffffffff" +string.format("%#-x", 2) == "0x2" +string.format("%#-x", -2) == "0xfffffffffffffffe" +string.format("%#-x", 3) == "0x3" +string.format("%#-x", -3) == "0xfffffffffffffffd" +string.format("%#-x", 100) == "0x64" +string.format("%#-x", 10000) == "0x2710" +string.format("%#-x", 100000) == "0x186a0" +string.format("%#-x", 1000000) == "0xf4240" +string.format("%#-x", 10000000) == "0x989680" +string.format("%#-.0x", 0) == "" +string.format("%#-.6x", 0) == "000000" +string.format("%#-.6x", 1) == "0x000001" +string.format("%#-.6x", 2) == "0x000002" +string.format("%#-.6x", 3) == "0x000003" +string.format("%#-.6x", 100) == "0x000064" +string.format("%#-.6x", 10000) == "0x002710" +string.format("%#-.6x", 100000) == "0x0186a0" +string.format("%#-.6x", 1000000) == "0x0f4240" +string.format("%#-1.0x", 0) == " " +string.format("%#-1.6x", 0) == "000000" +string.format("%#-1.6x", 1) == "0x000001" +string.format("%#-1.6x", 2) == "0x000002" +string.format("%#-1.6x", 3) == "0x000003" +string.format("%#-1.6x", 100) == "0x000064" +string.format("%#-1.6x", 10000) == "0x002710" +string.format("%#-1.6x", 100000) == "0x0186a0" +string.format("%#-1.6x", 1000000) == "0x0f4240" +string.format("%#-2x", 0) == "0 " +string.format("%#-2.0x", 0) == " " +string.format("%#-2.1x", 0) == "0 " +string.format("%#-2.6x", 0) == "000000" +string.format("%#-2.6x", 1) == "0x000001" +string.format("%#-2.6x", 2) == "0x000002" +string.format("%#-2.6x", 3) == "0x000003" +string.format("%#-2.6x", 100) == "0x000064" +string.format("%#-2.6x", 10000) == "0x002710" +string.format("%#-2.6x", 100000) == "0x0186a0" +string.format("%#-2.6x", 1000000) == "0x0f4240" +string.format("%#-6x", 0) == "0 " +string.format("%#-6x", 1) == "0x1 " +string.format("%#-6x", 2) == "0x2 " +string.format("%#-6x", 3) == "0x3 " +string.format("%#-6x", 100) == "0x64 " +string.format("%#-6.0x", 0) == " " +string.format("%#-6.0x", 1) == "0x1 " +string.format("%#-6.0x", 2) == "0x2 " +string.format("%#-6.0x", 3) == "0x3 " +string.format("%#-6.0x", 100) == "0x64 " +string.format("%#-6.1x", 0) == "0 " +string.format("%#-6.1x", 1) == "0x1 " +string.format("%#-6.1x", 2) == "0x2 " +string.format("%#-6.1x", 3) == "0x3 " +string.format("%#-6.1x", 100) == "0x64 " +string.format("%#-6.6x", 0) == "000000" +string.format("%#-6.6x", 1) == "0x000001" +string.format("%#-6.6x", 2) == "0x000002" +string.format("%#-6.6x", 3) == "0x000003" +string.format("%#-6.6x", 100) == "0x000064" +string.format("%#-6.6x", 10000) == "0x002710" +string.format("%#-6.6x", 100000) == "0x0186a0" +string.format("%#-6.6x", 1000000) == "0x0f4240" +string.format("%#-20x", 0) == "0 " +string.format("%#-20x", 1) == "0x1 " +string.format("%#-20x", -1) == "0xffffffffffffffff " +string.format("%#-20x", 2) == "0x2 " +string.format("%#-20x", -2) == "0xfffffffffffffffe " +string.format("%#-20x", 3) == "0x3 " +string.format("%#-20x", -3) == "0xfffffffffffffffd " +string.format("%#-20x", 100) == "0x64 " +string.format("%#-20x", 10000) == "0x2710 " +string.format("%#-20x", 100000) == "0x186a0 " +string.format("%#-20x", 1000000) == "0xf4240 " +string.format("%#-20x", 10000000) == "0x989680 " +string.format("%#-20.0x", 0) == " " +string.format("%#-20.0x", 1) == "0x1 " +string.format("%#-20.0x", -1) == "0xffffffffffffffff " +string.format("%#-20.0x", 2) == "0x2 " +string.format("%#-20.0x", -2) == "0xfffffffffffffffe " +string.format("%#-20.0x", 3) == "0x3 " +string.format("%#-20.0x", -3) == "0xfffffffffffffffd " +string.format("%#-20.0x", 100) == "0x64 " +string.format("%#-20.0x", 10000) == "0x2710 " +string.format("%#-20.0x", 100000) == "0x186a0 " +string.format("%#-20.0x", 1000000) == "0xf4240 " +string.format("%#-20.0x", 10000000) == "0x989680 " +string.format("%#-20.1x", 0) == "0 " +string.format("%#-20.1x", 1) == "0x1 " +string.format("%#-20.1x", -1) == "0xffffffffffffffff " +string.format("%#-20.1x", 2) == "0x2 " +string.format("%#-20.1x", -2) == "0xfffffffffffffffe " +string.format("%#-20.1x", 3) == "0x3 " +string.format("%#-20.1x", -3) == "0xfffffffffffffffd " +string.format("%#-20.1x", 100) == "0x64 " +string.format("%#-20.1x", 10000) == "0x2710 " +string.format("%#-20.1x", 100000) == "0x186a0 " +string.format("%#-20.1x", 1000000) == "0xf4240 " +string.format("%#-20.1x", 10000000) == "0x989680 " +string.format("%#-20.6x", 0) == "000000 " +string.format("%#-20.6x", 1) == "0x000001 " +string.format("%#-20.6x", -1) == "0xffffffffffffffff " +string.format("%#-20.6x", 2) == "0x000002 " +string.format("%#-20.6x", -2) == "0xfffffffffffffffe " +string.format("%#-20.6x", 3) == "0x000003 " +string.format("%#-20.6x", -3) == "0xfffffffffffffffd " +string.format("%#-20.6x", 100) == "0x000064 " +string.format("%#-20.6x", 10000) == "0x002710 " +string.format("%#-20.6x", 100000) == "0x0186a0 " +string.format("%#-20.6x", 1000000) == "0x0f4240 " +string.format("%#-20.6x", 10000000) == "0x989680 " +string.format("%#-+x", 0) == "0" +string.format("%#-+x", 1) == "0x1" +string.format("%#-+x", -1) == "0xffffffffffffffff" +string.format("%#-+x", 2) == "0x2" +string.format("%#-+x", -2) == "0xfffffffffffffffe" +string.format("%#-+x", 3) == "0x3" +string.format("%#-+x", -3) == "0xfffffffffffffffd" +string.format("%#-+x", 100) == "0x64" +string.format("%#-+x", 10000) == "0x2710" +string.format("%#-+x", 100000) == "0x186a0" +string.format("%#-+x", 1000000) == "0xf4240" +string.format("%#-+x", 10000000) == "0x989680" +string.format("%#-+.0x", 0) == "" +string.format("%#-+.6x", 0) == "000000" +string.format("%#-+.6x", 1) == "0x000001" +string.format("%#-+.6x", 2) == "0x000002" +string.format("%#-+.6x", 3) == "0x000003" +string.format("%#-+.6x", 100) == "0x000064" +string.format("%#-+.6x", 10000) == "0x002710" +string.format("%#-+.6x", 100000) == "0x0186a0" +string.format("%#-+.6x", 1000000) == "0x0f4240" +string.format("%#-+1.0x", 0) == " " +string.format("%#-+1.6x", 0) == "000000" +string.format("%#-+1.6x", 1) == "0x000001" +string.format("%#-+1.6x", 2) == "0x000002" +string.format("%#-+1.6x", 3) == "0x000003" +string.format("%#-+1.6x", 100) == "0x000064" +string.format("%#-+1.6x", 10000) == "0x002710" +string.format("%#-+1.6x", 100000) == "0x0186a0" +string.format("%#-+1.6x", 1000000) == "0x0f4240" +string.format("%#-+2x", 0) == "0 " +string.format("%#-+2.0x", 0) == " " +string.format("%#-+2.1x", 0) == "0 " +string.format("%#-+2.6x", 0) == "000000" +string.format("%#-+2.6x", 1) == "0x000001" +string.format("%#-+2.6x", 2) == "0x000002" +string.format("%#-+2.6x", 3) == "0x000003" +string.format("%#-+2.6x", 100) == "0x000064" +string.format("%#-+2.6x", 10000) == "0x002710" +string.format("%#-+2.6x", 100000) == "0x0186a0" +string.format("%#-+2.6x", 1000000) == "0x0f4240" +string.format("%#-+6x", 0) == "0 " +string.format("%#-+6x", 1) == "0x1 " +string.format("%#-+6x", 2) == "0x2 " +string.format("%#-+6x", 3) == "0x3 " +string.format("%#-+6x", 100) == "0x64 " +string.format("%#-+6.0x", 0) == " " +string.format("%#-+6.0x", 1) == "0x1 " +string.format("%#-+6.0x", 2) == "0x2 " +string.format("%#-+6.0x", 3) == "0x3 " +string.format("%#-+6.0x", 100) == "0x64 " +string.format("%#-+6.1x", 0) == "0 " +string.format("%#-+6.1x", 1) == "0x1 " +string.format("%#-+6.1x", 2) == "0x2 " +string.format("%#-+6.1x", 3) == "0x3 " +string.format("%#-+6.1x", 100) == "0x64 " +string.format("%#-+6.6x", 0) == "000000" +string.format("%#-+6.6x", 1) == "0x000001" +string.format("%#-+6.6x", 2) == "0x000002" +string.format("%#-+6.6x", 3) == "0x000003" +string.format("%#-+6.6x", 100) == "0x000064" +string.format("%#-+6.6x", 10000) == "0x002710" +string.format("%#-+6.6x", 100000) == "0x0186a0" +string.format("%#-+6.6x", 1000000) == "0x0f4240" +string.format("%#-+20x", 0) == "0 " +string.format("%#-+20x", 1) == "0x1 " +string.format("%#-+20x", -1) == "0xffffffffffffffff " +string.format("%#-+20x", 2) == "0x2 " +string.format("%#-+20x", -2) == "0xfffffffffffffffe " +string.format("%#-+20x", 3) == "0x3 " +string.format("%#-+20x", -3) == "0xfffffffffffffffd " +string.format("%#-+20x", 100) == "0x64 " +string.format("%#-+20x", 10000) == "0x2710 " +string.format("%#-+20x", 100000) == "0x186a0 " +string.format("%#-+20x", 1000000) == "0xf4240 " +string.format("%#-+20x", 10000000) == "0x989680 " +string.format("%#-+20.0x", 0) == " " +string.format("%#-+20.0x", 1) == "0x1 " +string.format("%#-+20.0x", -1) == "0xffffffffffffffff " +string.format("%#-+20.0x", 2) == "0x2 " +string.format("%#-+20.0x", -2) == "0xfffffffffffffffe " +string.format("%#-+20.0x", 3) == "0x3 " +string.format("%#-+20.0x", -3) == "0xfffffffffffffffd " +string.format("%#-+20.0x", 100) == "0x64 " +string.format("%#-+20.0x", 10000) == "0x2710 " +string.format("%#-+20.0x", 100000) == "0x186a0 " +string.format("%#-+20.0x", 1000000) == "0xf4240 " +string.format("%#-+20.0x", 10000000) == "0x989680 " +string.format("%#-+20.1x", 0) == "0 " +string.format("%#-+20.1x", 1) == "0x1 " +string.format("%#-+20.1x", -1) == "0xffffffffffffffff " +string.format("%#-+20.1x", 2) == "0x2 " +string.format("%#-+20.1x", -2) == "0xfffffffffffffffe " +string.format("%#-+20.1x", 3) == "0x3 " +string.format("%#-+20.1x", -3) == "0xfffffffffffffffd " +string.format("%#-+20.1x", 100) == "0x64 " +string.format("%#-+20.1x", 10000) == "0x2710 " +string.format("%#-+20.1x", 100000) == "0x186a0 " +string.format("%#-+20.1x", 1000000) == "0xf4240 " +string.format("%#-+20.1x", 10000000) == "0x989680 " +string.format("%#-+20.6x", 0) == "000000 " +string.format("%#-+20.6x", 1) == "0x000001 " +string.format("%#-+20.6x", -1) == "0xffffffffffffffff " +string.format("%#-+20.6x", 2) == "0x000002 " +string.format("%#-+20.6x", -2) == "0xfffffffffffffffe " +string.format("%#-+20.6x", 3) == "0x000003 " +string.format("%#-+20.6x", -3) == "0xfffffffffffffffd " +string.format("%#-+20.6x", 100) == "0x000064 " +string.format("%#-+20.6x", 10000) == "0x002710 " +string.format("%#-+20.6x", 100000) == "0x0186a0 " +string.format("%#-+20.6x", 1000000) == "0x0f4240 " +string.format("%#-+20.6x", 10000000) == "0x989680 " +string.format("%# x", 0) == "0" +string.format("%# x", 1) == "0x1" +string.format("%# x", -1) == "0xffffffffffffffff" +string.format("%# x", 2) == "0x2" +string.format("%# x", -2) == "0xfffffffffffffffe" +string.format("%# x", 3) == "0x3" +string.format("%# x", -3) == "0xfffffffffffffffd" +string.format("%# x", 100) == "0x64" +string.format("%# x", 10000) == "0x2710" +string.format("%# x", 100000) == "0x186a0" +string.format("%# x", 1000000) == "0xf4240" +string.format("%# x", 10000000) == "0x989680" +string.format("%# .0x", 0) == "" +string.format("%# .6x", 0) == "000000" +string.format("%# .6x", 1) == "0x000001" +string.format("%# .6x", 2) == "0x000002" +string.format("%# .6x", 3) == "0x000003" +string.format("%# .6x", 100) == "0x000064" +string.format("%# .6x", 10000) == "0x002710" +string.format("%# .6x", 100000) == "0x0186a0" +string.format("%# .6x", 1000000) == "0x0f4240" +string.format("%# 1.0x", 0) == " " +string.format("%# 1.6x", 0) == "000000" +string.format("%# 1.6x", 1) == "0x000001" +string.format("%# 1.6x", 2) == "0x000002" +string.format("%# 1.6x", 3) == "0x000003" +string.format("%# 1.6x", 100) == "0x000064" +string.format("%# 1.6x", 10000) == "0x002710" +string.format("%# 1.6x", 100000) == "0x0186a0" +string.format("%# 1.6x", 1000000) == "0x0f4240" +string.format("%# 2x", 0) == " 0" +string.format("%# 2.0x", 0) == " " +string.format("%# 2.1x", 0) == " 0" +string.format("%# 2.6x", 0) == "000000" +string.format("%# 2.6x", 1) == "0x000001" +string.format("%# 2.6x", 2) == "0x000002" +string.format("%# 2.6x", 3) == "0x000003" +string.format("%# 2.6x", 100) == "0x000064" +string.format("%# 2.6x", 10000) == "0x002710" +string.format("%# 2.6x", 100000) == "0x0186a0" +string.format("%# 2.6x", 1000000) == "0x0f4240" +string.format("%# 6x", 0) == " 0" +string.format("%# 6x", 1) == " 0x1" +string.format("%# 6x", 2) == " 0x2" +string.format("%# 6x", 3) == " 0x3" +string.format("%# 6x", 100) == " 0x64" +string.format("%# 6.0x", 0) == " " +string.format("%# 6.0x", 1) == " 0x1" +string.format("%# 6.0x", 2) == " 0x2" +string.format("%# 6.0x", 3) == " 0x3" +string.format("%# 6.0x", 100) == " 0x64" +string.format("%# 6.1x", 0) == " 0" +string.format("%# 6.1x", 1) == " 0x1" +string.format("%# 6.1x", 2) == " 0x2" +string.format("%# 6.1x", 3) == " 0x3" +string.format("%# 6.1x", 100) == " 0x64" +string.format("%# 6.6x", 0) == "000000" +string.format("%# 6.6x", 1) == "0x000001" +string.format("%# 6.6x", 2) == "0x000002" +string.format("%# 6.6x", 3) == "0x000003" +string.format("%# 6.6x", 100) == "0x000064" +string.format("%# 6.6x", 10000) == "0x002710" +string.format("%# 6.6x", 100000) == "0x0186a0" +string.format("%# 6.6x", 1000000) == "0x0f4240" +string.format("%# 20x", 0) == " 0" +string.format("%# 20x", 1) == " 0x1" +string.format("%# 20x", -1) == " 0xffffffffffffffff" +string.format("%# 20x", 2) == " 0x2" +string.format("%# 20x", -2) == " 0xfffffffffffffffe" +string.format("%# 20x", 3) == " 0x3" +string.format("%# 20x", -3) == " 0xfffffffffffffffd" +string.format("%# 20x", 100) == " 0x64" +string.format("%# 20x", 10000) == " 0x2710" +string.format("%# 20x", 100000) == " 0x186a0" +string.format("%# 20x", 1000000) == " 0xf4240" +string.format("%# 20x", 10000000) == " 0x989680" +string.format("%# 20.0x", 0) == " " +string.format("%# 20.0x", 1) == " 0x1" +string.format("%# 20.0x", -1) == " 0xffffffffffffffff" +string.format("%# 20.0x", 2) == " 0x2" +string.format("%# 20.0x", -2) == " 0xfffffffffffffffe" +string.format("%# 20.0x", 3) == " 0x3" +string.format("%# 20.0x", -3) == " 0xfffffffffffffffd" +string.format("%# 20.0x", 100) == " 0x64" +string.format("%# 20.0x", 10000) == " 0x2710" +string.format("%# 20.0x", 100000) == " 0x186a0" +string.format("%# 20.0x", 1000000) == " 0xf4240" +string.format("%# 20.0x", 10000000) == " 0x989680" +string.format("%# 20.1x", 0) == " 0" +string.format("%# 20.1x", 1) == " 0x1" +string.format("%# 20.1x", -1) == " 0xffffffffffffffff" +string.format("%# 20.1x", 2) == " 0x2" +string.format("%# 20.1x", -2) == " 0xfffffffffffffffe" +string.format("%# 20.1x", 3) == " 0x3" +string.format("%# 20.1x", -3) == " 0xfffffffffffffffd" +string.format("%# 20.1x", 100) == " 0x64" +string.format("%# 20.1x", 10000) == " 0x2710" +string.format("%# 20.1x", 100000) == " 0x186a0" +string.format("%# 20.1x", 1000000) == " 0xf4240" +string.format("%# 20.1x", 10000000) == " 0x989680" +string.format("%# 20.6x", 0) == " 000000" +string.format("%# 20.6x", 1) == " 0x000001" +string.format("%# 20.6x", -1) == " 0xffffffffffffffff" +string.format("%# 20.6x", 2) == " 0x000002" +string.format("%# 20.6x", -2) == " 0xfffffffffffffffe" +string.format("%# 20.6x", 3) == " 0x000003" +string.format("%# 20.6x", -3) == " 0xfffffffffffffffd" +string.format("%# 20.6x", 100) == " 0x000064" +string.format("%# 20.6x", 10000) == " 0x002710" +string.format("%# 20.6x", 100000) == " 0x0186a0" +string.format("%# 20.6x", 1000000) == " 0x0f4240" +string.format("%# 20.6x", 10000000) == " 0x989680" +string.format("%# +x", 0) == "0" +string.format("%# +x", 1) == "0x1" +string.format("%# +x", -1) == "0xffffffffffffffff" +string.format("%# +x", 2) == "0x2" +string.format("%# +x", -2) == "0xfffffffffffffffe" +string.format("%# +x", 3) == "0x3" +string.format("%# +x", -3) == "0xfffffffffffffffd" +string.format("%# +x", 100) == "0x64" +string.format("%# +x", 10000) == "0x2710" +string.format("%# +x", 100000) == "0x186a0" +string.format("%# +x", 1000000) == "0xf4240" +string.format("%# +x", 10000000) == "0x989680" +string.format("%# +.0x", 0) == "" +string.format("%# +.6x", 0) == "000000" +string.format("%# +.6x", 1) == "0x000001" +string.format("%# +.6x", 2) == "0x000002" +string.format("%# +.6x", 3) == "0x000003" +string.format("%# +.6x", 100) == "0x000064" +string.format("%# +.6x", 10000) == "0x002710" +string.format("%# +.6x", 100000) == "0x0186a0" +string.format("%# +.6x", 1000000) == "0x0f4240" +string.format("%# +1.0x", 0) == " " +string.format("%# +1.6x", 0) == "000000" +string.format("%# +1.6x", 1) == "0x000001" +string.format("%# +1.6x", 2) == "0x000002" +string.format("%# +1.6x", 3) == "0x000003" +string.format("%# +1.6x", 100) == "0x000064" +string.format("%# +1.6x", 10000) == "0x002710" +string.format("%# +1.6x", 100000) == "0x0186a0" +string.format("%# +1.6x", 1000000) == "0x0f4240" +string.format("%# +2x", 0) == " 0" +string.format("%# +2.0x", 0) == " " +string.format("%# +2.1x", 0) == " 0" +string.format("%# +2.6x", 0) == "000000" +string.format("%# +2.6x", 1) == "0x000001" +string.format("%# +2.6x", 2) == "0x000002" +string.format("%# +2.6x", 3) == "0x000003" +string.format("%# +2.6x", 100) == "0x000064" +string.format("%# +2.6x", 10000) == "0x002710" +string.format("%# +2.6x", 100000) == "0x0186a0" +string.format("%# +2.6x", 1000000) == "0x0f4240" +string.format("%# +6x", 0) == " 0" +string.format("%# +6x", 1) == " 0x1" +string.format("%# +6x", 2) == " 0x2" +string.format("%# +6x", 3) == " 0x3" +string.format("%# +6x", 100) == " 0x64" +string.format("%# +6.0x", 0) == " " +string.format("%# +6.0x", 1) == " 0x1" +string.format("%# +6.0x", 2) == " 0x2" +string.format("%# +6.0x", 3) == " 0x3" +string.format("%# +6.0x", 100) == " 0x64" +string.format("%# +6.1x", 0) == " 0" +string.format("%# +6.1x", 1) == " 0x1" +string.format("%# +6.1x", 2) == " 0x2" +string.format("%# +6.1x", 3) == " 0x3" +string.format("%# +6.1x", 100) == " 0x64" +string.format("%# +6.6x", 0) == "000000" +string.format("%# +6.6x", 1) == "0x000001" +string.format("%# +6.6x", 2) == "0x000002" +string.format("%# +6.6x", 3) == "0x000003" +string.format("%# +6.6x", 100) == "0x000064" +string.format("%# +6.6x", 10000) == "0x002710" +string.format("%# +6.6x", 100000) == "0x0186a0" +string.format("%# +6.6x", 1000000) == "0x0f4240" +string.format("%# +20x", 0) == " 0" +string.format("%# +20x", 1) == " 0x1" +string.format("%# +20x", -1) == " 0xffffffffffffffff" +string.format("%# +20x", 2) == " 0x2" +string.format("%# +20x", -2) == " 0xfffffffffffffffe" +string.format("%# +20x", 3) == " 0x3" +string.format("%# +20x", -3) == " 0xfffffffffffffffd" +string.format("%# +20x", 100) == " 0x64" +string.format("%# +20x", 10000) == " 0x2710" +string.format("%# +20x", 100000) == " 0x186a0" +string.format("%# +20x", 1000000) == " 0xf4240" +string.format("%# +20x", 10000000) == " 0x989680" +string.format("%# +20.0x", 0) == " " +string.format("%# +20.0x", 1) == " 0x1" +string.format("%# +20.0x", -1) == " 0xffffffffffffffff" +string.format("%# +20.0x", 2) == " 0x2" +string.format("%# +20.0x", -2) == " 0xfffffffffffffffe" +string.format("%# +20.0x", 3) == " 0x3" +string.format("%# +20.0x", -3) == " 0xfffffffffffffffd" +string.format("%# +20.0x", 100) == " 0x64" +string.format("%# +20.0x", 10000) == " 0x2710" +string.format("%# +20.0x", 100000) == " 0x186a0" +string.format("%# +20.0x", 1000000) == " 0xf4240" +string.format("%# +20.0x", 10000000) == " 0x989680" +string.format("%# +20.1x", 0) == " 0" +string.format("%# +20.1x", 1) == " 0x1" +string.format("%# +20.1x", -1) == " 0xffffffffffffffff" +string.format("%# +20.1x", 2) == " 0x2" +string.format("%# +20.1x", -2) == " 0xfffffffffffffffe" +string.format("%# +20.1x", 3) == " 0x3" +string.format("%# +20.1x", -3) == " 0xfffffffffffffffd" +string.format("%# +20.1x", 100) == " 0x64" +string.format("%# +20.1x", 10000) == " 0x2710" +string.format("%# +20.1x", 100000) == " 0x186a0" +string.format("%# +20.1x", 1000000) == " 0xf4240" +string.format("%# +20.1x", 10000000) == " 0x989680" +string.format("%# +20.6x", 0) == " 000000" +string.format("%# +20.6x", 1) == " 0x000001" +string.format("%# +20.6x", -1) == " 0xffffffffffffffff" +string.format("%# +20.6x", 2) == " 0x000002" +string.format("%# +20.6x", -2) == " 0xfffffffffffffffe" +string.format("%# +20.6x", 3) == " 0x000003" +string.format("%# +20.6x", -3) == " 0xfffffffffffffffd" +string.format("%# +20.6x", 100) == " 0x000064" +string.format("%# +20.6x", 10000) == " 0x002710" +string.format("%# +20.6x", 100000) == " 0x0186a0" +string.format("%# +20.6x", 1000000) == " 0x0f4240" +string.format("%# +20.6x", 10000000) == " 0x989680" +string.format("%# -x", 0) == "0" +string.format("%# -x", 1) == "0x1" +string.format("%# -x", -1) == "0xffffffffffffffff" +string.format("%# -x", 2) == "0x2" +string.format("%# -x", -2) == "0xfffffffffffffffe" +string.format("%# -x", 3) == "0x3" +string.format("%# -x", -3) == "0xfffffffffffffffd" +string.format("%# -x", 100) == "0x64" +string.format("%# -x", 10000) == "0x2710" +string.format("%# -x", 100000) == "0x186a0" +string.format("%# -x", 1000000) == "0xf4240" +string.format("%# -x", 10000000) == "0x989680" +string.format("%# -.0x", 0) == "" +string.format("%# -.6x", 0) == "000000" +string.format("%# -.6x", 1) == "0x000001" +string.format("%# -.6x", 2) == "0x000002" +string.format("%# -.6x", 3) == "0x000003" +string.format("%# -.6x", 100) == "0x000064" +string.format("%# -.6x", 10000) == "0x002710" +string.format("%# -.6x", 100000) == "0x0186a0" +string.format("%# -.6x", 1000000) == "0x0f4240" +string.format("%# -1.0x", 0) == " " +string.format("%# -1.6x", 0) == "000000" +string.format("%# -1.6x", 1) == "0x000001" +string.format("%# -1.6x", 2) == "0x000002" +string.format("%# -1.6x", 3) == "0x000003" +string.format("%# -1.6x", 100) == "0x000064" +string.format("%# -1.6x", 10000) == "0x002710" +string.format("%# -1.6x", 100000) == "0x0186a0" +string.format("%# -1.6x", 1000000) == "0x0f4240" +string.format("%# -2x", 0) == "0 " +string.format("%# -2.0x", 0) == " " +string.format("%# -2.1x", 0) == "0 " +string.format("%# -2.6x", 0) == "000000" +string.format("%# -2.6x", 1) == "0x000001" +string.format("%# -2.6x", 2) == "0x000002" +string.format("%# -2.6x", 3) == "0x000003" +string.format("%# -2.6x", 100) == "0x000064" +string.format("%# -2.6x", 10000) == "0x002710" +string.format("%# -2.6x", 100000) == "0x0186a0" +string.format("%# -2.6x", 1000000) == "0x0f4240" +string.format("%# -6x", 0) == "0 " +string.format("%# -6x", 1) == "0x1 " +string.format("%# -6x", 2) == "0x2 " +string.format("%# -6x", 3) == "0x3 " +string.format("%# -6x", 100) == "0x64 " +string.format("%# -6.0x", 0) == " " +string.format("%# -6.0x", 1) == "0x1 " +string.format("%# -6.0x", 2) == "0x2 " +string.format("%# -6.0x", 3) == "0x3 " +string.format("%# -6.0x", 100) == "0x64 " +string.format("%# -6.1x", 0) == "0 " +string.format("%# -6.1x", 1) == "0x1 " +string.format("%# -6.1x", 2) == "0x2 " +string.format("%# -6.1x", 3) == "0x3 " +string.format("%# -6.1x", 100) == "0x64 " +string.format("%# -6.6x", 0) == "000000" +string.format("%# -6.6x", 1) == "0x000001" +string.format("%# -6.6x", 2) == "0x000002" +string.format("%# -6.6x", 3) == "0x000003" +string.format("%# -6.6x", 100) == "0x000064" +string.format("%# -6.6x", 10000) == "0x002710" +string.format("%# -6.6x", 100000) == "0x0186a0" +string.format("%# -6.6x", 1000000) == "0x0f4240" +string.format("%# -20x", 0) == "0 " +string.format("%# -20x", 1) == "0x1 " +string.format("%# -20x", -1) == "0xffffffffffffffff " +string.format("%# -20x", 2) == "0x2 " +string.format("%# -20x", -2) == "0xfffffffffffffffe " +string.format("%# -20x", 3) == "0x3 " +string.format("%# -20x", -3) == "0xfffffffffffffffd " +string.format("%# -20x", 100) == "0x64 " +string.format("%# -20x", 10000) == "0x2710 " +string.format("%# -20x", 100000) == "0x186a0 " +string.format("%# -20x", 1000000) == "0xf4240 " +string.format("%# -20x", 10000000) == "0x989680 " +string.format("%# -20.0x", 0) == " " +string.format("%# -20.0x", 1) == "0x1 " +string.format("%# -20.0x", -1) == "0xffffffffffffffff " +string.format("%# -20.0x", 2) == "0x2 " +string.format("%# -20.0x", -2) == "0xfffffffffffffffe " +string.format("%# -20.0x", 3) == "0x3 " +string.format("%# -20.0x", -3) == "0xfffffffffffffffd " +string.format("%# -20.0x", 100) == "0x64 " +string.format("%# -20.0x", 10000) == "0x2710 " +string.format("%# -20.0x", 100000) == "0x186a0 " +string.format("%# -20.0x", 1000000) == "0xf4240 " +string.format("%# -20.0x", 10000000) == "0x989680 " +string.format("%# -20.1x", 0) == "0 " +string.format("%# -20.1x", 1) == "0x1 " +string.format("%# -20.1x", -1) == "0xffffffffffffffff " +string.format("%# -20.1x", 2) == "0x2 " +string.format("%# -20.1x", -2) == "0xfffffffffffffffe " +string.format("%# -20.1x", 3) == "0x3 " +string.format("%# -20.1x", -3) == "0xfffffffffffffffd " +string.format("%# -20.1x", 100) == "0x64 " +string.format("%# -20.1x", 10000) == "0x2710 " +string.format("%# -20.1x", 100000) == "0x186a0 " +string.format("%# -20.1x", 1000000) == "0xf4240 " +string.format("%# -20.1x", 10000000) == "0x989680 " +string.format("%# -20.6x", 0) == "000000 " +string.format("%# -20.6x", 1) == "0x000001 " +string.format("%# -20.6x", -1) == "0xffffffffffffffff " +string.format("%# -20.6x", 2) == "0x000002 " +string.format("%# -20.6x", -2) == "0xfffffffffffffffe " +string.format("%# -20.6x", 3) == "0x000003 " +string.format("%# -20.6x", -3) == "0xfffffffffffffffd " +string.format("%# -20.6x", 100) == "0x000064 " +string.format("%# -20.6x", 10000) == "0x002710 " +string.format("%# -20.6x", 100000) == "0x0186a0 " +string.format("%# -20.6x", 1000000) == "0x0f4240 " +string.format("%# -20.6x", 10000000) == "0x989680 " +string.format("%# -+x", 0) == "0" +string.format("%# -+x", 1) == "0x1" +string.format("%# -+x", -1) == "0xffffffffffffffff" +string.format("%# -+x", 2) == "0x2" +string.format("%# -+x", -2) == "0xfffffffffffffffe" +string.format("%# -+x", 3) == "0x3" +string.format("%# -+x", -3) == "0xfffffffffffffffd" +string.format("%# -+x", 100) == "0x64" +string.format("%# -+x", 10000) == "0x2710" +string.format("%# -+x", 100000) == "0x186a0" +string.format("%# -+x", 1000000) == "0xf4240" +string.format("%# -+x", 10000000) == "0x989680" +string.format("%# -+.0x", 0) == "" +string.format("%# -+.6x", 0) == "000000" +string.format("%# -+.6x", 1) == "0x000001" +string.format("%# -+.6x", 2) == "0x000002" +string.format("%# -+.6x", 3) == "0x000003" +string.format("%# -+.6x", 100) == "0x000064" +string.format("%# -+.6x", 10000) == "0x002710" +string.format("%# -+.6x", 100000) == "0x0186a0" +string.format("%# -+.6x", 1000000) == "0x0f4240" +string.format("%# -+1.0x", 0) == " " +string.format("%# -+1.6x", 0) == "000000" +string.format("%# -+1.6x", 1) == "0x000001" +string.format("%# -+1.6x", 2) == "0x000002" +string.format("%# -+1.6x", 3) == "0x000003" +string.format("%# -+1.6x", 100) == "0x000064" +string.format("%# -+1.6x", 10000) == "0x002710" +string.format("%# -+1.6x", 100000) == "0x0186a0" +string.format("%# -+1.6x", 1000000) == "0x0f4240" +string.format("%# -+2x", 0) == "0 " +string.format("%# -+2.0x", 0) == " " +string.format("%# -+2.1x", 0) == "0 " +string.format("%# -+2.6x", 0) == "000000" +string.format("%# -+2.6x", 1) == "0x000001" +string.format("%# -+2.6x", 2) == "0x000002" +string.format("%# -+2.6x", 3) == "0x000003" +string.format("%# -+2.6x", 100) == "0x000064" +string.format("%# -+2.6x", 10000) == "0x002710" +string.format("%# -+2.6x", 100000) == "0x0186a0" +string.format("%# -+2.6x", 1000000) == "0x0f4240" +string.format("%# -+6x", 0) == "0 " +string.format("%# -+6x", 1) == "0x1 " +string.format("%# -+6x", 2) == "0x2 " +string.format("%# -+6x", 3) == "0x3 " +string.format("%# -+6x", 100) == "0x64 " +string.format("%# -+6.0x", 0) == " " +string.format("%# -+6.0x", 1) == "0x1 " +string.format("%# -+6.0x", 2) == "0x2 " +string.format("%# -+6.0x", 3) == "0x3 " +string.format("%# -+6.0x", 100) == "0x64 " +string.format("%# -+6.1x", 0) == "0 " +string.format("%# -+6.1x", 1) == "0x1 " +string.format("%# -+6.1x", 2) == "0x2 " +string.format("%# -+6.1x", 3) == "0x3 " +string.format("%# -+6.1x", 100) == "0x64 " +string.format("%# -+6.6x", 0) == "000000" +string.format("%# -+6.6x", 1) == "0x000001" +string.format("%# -+6.6x", 2) == "0x000002" +string.format("%# -+6.6x", 3) == "0x000003" +string.format("%# -+6.6x", 100) == "0x000064" +string.format("%# -+6.6x", 10000) == "0x002710" +string.format("%# -+6.6x", 100000) == "0x0186a0" +string.format("%# -+6.6x", 1000000) == "0x0f4240" +string.format("%# -+20x", 0) == "0 " +string.format("%# -+20x", 1) == "0x1 " +string.format("%# -+20x", -1) == "0xffffffffffffffff " +string.format("%# -+20x", 2) == "0x2 " +string.format("%# -+20x", -2) == "0xfffffffffffffffe " +string.format("%# -+20x", 3) == "0x3 " +string.format("%# -+20x", -3) == "0xfffffffffffffffd " +string.format("%# -+20x", 100) == "0x64 " +string.format("%# -+20x", 10000) == "0x2710 " +string.format("%# -+20x", 100000) == "0x186a0 " +string.format("%# -+20x", 1000000) == "0xf4240 " +string.format("%# -+20x", 10000000) == "0x989680 " +string.format("%# -+20.0x", 0) == " " +string.format("%# -+20.0x", 1) == "0x1 " +string.format("%# -+20.0x", -1) == "0xffffffffffffffff " +string.format("%# -+20.0x", 2) == "0x2 " +string.format("%# -+20.0x", -2) == "0xfffffffffffffffe " +string.format("%# -+20.0x", 3) == "0x3 " +string.format("%# -+20.0x", -3) == "0xfffffffffffffffd " +string.format("%# -+20.0x", 100) == "0x64 " +string.format("%# -+20.0x", 10000) == "0x2710 " +string.format("%# -+20.0x", 100000) == "0x186a0 " +string.format("%# -+20.0x", 1000000) == "0xf4240 " +string.format("%# -+20.0x", 10000000) == "0x989680 " +string.format("%# -+20.1x", 0) == "0 " +string.format("%# -+20.1x", 1) == "0x1 " +string.format("%# -+20.1x", -1) == "0xffffffffffffffff " +string.format("%# -+20.1x", 2) == "0x2 " +string.format("%# -+20.1x", -2) == "0xfffffffffffffffe " +string.format("%# -+20.1x", 3) == "0x3 " +string.format("%# -+20.1x", -3) == "0xfffffffffffffffd " +string.format("%# -+20.1x", 100) == "0x64 " +string.format("%# -+20.1x", 10000) == "0x2710 " +string.format("%# -+20.1x", 100000) == "0x186a0 " +string.format("%# -+20.1x", 1000000) == "0xf4240 " +string.format("%# -+20.1x", 10000000) == "0x989680 " +string.format("%# -+20.6x", 0) == "000000 " +string.format("%# -+20.6x", 1) == "0x000001 " +string.format("%# -+20.6x", -1) == "0xffffffffffffffff " +string.format("%# -+20.6x", 2) == "0x000002 " +string.format("%# -+20.6x", -2) == "0xfffffffffffffffe " +string.format("%# -+20.6x", 3) == "0x000003 " +string.format("%# -+20.6x", -3) == "0xfffffffffffffffd " +string.format("%# -+20.6x", 100) == "0x000064 " +string.format("%# -+20.6x", 10000) == "0x002710 " +string.format("%# -+20.6x", 100000) == "0x0186a0 " +string.format("%# -+20.6x", 1000000) == "0x0f4240 " +string.format("%# -+20.6x", 10000000) == "0x989680 " +string.format("%0x", 0) == "0" +string.format("%0x", 1) == "1" +string.format("%0x", -1) == "ffffffffffffffff" +string.format("%0x", 2) == "2" +string.format("%0x", -2) == "fffffffffffffffe" +string.format("%0x", 3) == "3" +string.format("%0x", -3) == "fffffffffffffffd" +string.format("%0x", 100) == "64" +string.format("%0x", 10000) == "2710" +string.format("%0x", 100000) == "186a0" +string.format("%0x", 1000000) == "f4240" +string.format("%0x", 10000000) == "989680" +string.format("%0.0x", 0) == "" +string.format("%0.6x", 0) == "000000" +string.format("%0.6x", 1) == "000001" +string.format("%0.6x", 2) == "000002" +string.format("%0.6x", 3) == "000003" +string.format("%0.6x", 100) == "000064" +string.format("%0.6x", 10000) == "002710" +string.format("%0.6x", 100000) == "0186a0" +string.format("%0.6x", 1000000) == "0f4240" +string.format("%01.0x", 0) == " " +string.format("%01.6x", 0) == "000000" +string.format("%01.6x", 1) == "000001" +string.format("%01.6x", 2) == "000002" +string.format("%01.6x", 3) == "000003" +string.format("%01.6x", 100) == "000064" +string.format("%01.6x", 10000) == "002710" +string.format("%01.6x", 100000) == "0186a0" +string.format("%01.6x", 1000000) == "0f4240" +string.format("%02x", 0) == "00" +string.format("%02x", 1) == "01" +string.format("%02x", 2) == "02" +string.format("%02x", 3) == "03" +string.format("%02.0x", 0) == " " +string.format("%02.0x", 1) == " 1" +string.format("%02.0x", 2) == " 2" +string.format("%02.0x", 3) == " 3" +string.format("%02.1x", 0) == " 0" +string.format("%02.1x", 1) == " 1" +string.format("%02.1x", 2) == " 2" +string.format("%02.1x", 3) == " 3" +string.format("%02.6x", 0) == "000000" +string.format("%02.6x", 1) == "000001" +string.format("%02.6x", 2) == "000002" +string.format("%02.6x", 3) == "000003" +string.format("%02.6x", 100) == "000064" +string.format("%02.6x", 10000) == "002710" +string.format("%02.6x", 100000) == "0186a0" +string.format("%02.6x", 1000000) == "0f4240" +string.format("%06x", 0) == "000000" +string.format("%06x", 1) == "000001" +string.format("%06x", 2) == "000002" +string.format("%06x", 3) == "000003" +string.format("%06x", 100) == "000064" +string.format("%06x", 10000) == "002710" +string.format("%06x", 100000) == "0186a0" +string.format("%06x", 1000000) == "0f4240" +string.format("%06.0x", 0) == " " +string.format("%06.0x", 1) == " 1" +string.format("%06.0x", 2) == " 2" +string.format("%06.0x", 3) == " 3" +string.format("%06.0x", 100) == " 64" +string.format("%06.0x", 10000) == " 2710" +string.format("%06.0x", 100000) == " 186a0" +string.format("%06.0x", 1000000) == " f4240" +string.format("%06.1x", 0) == " 0" +string.format("%06.1x", 1) == " 1" +string.format("%06.1x", 2) == " 2" +string.format("%06.1x", 3) == " 3" +string.format("%06.1x", 100) == " 64" +string.format("%06.1x", 10000) == " 2710" +string.format("%06.1x", 100000) == " 186a0" +string.format("%06.1x", 1000000) == " f4240" +string.format("%06.6x", 0) == "000000" +string.format("%06.6x", 1) == "000001" +string.format("%06.6x", 2) == "000002" +string.format("%06.6x", 3) == "000003" +string.format("%06.6x", 100) == "000064" +string.format("%06.6x", 10000) == "002710" +string.format("%06.6x", 100000) == "0186a0" +string.format("%06.6x", 1000000) == "0f4240" +string.format("%020x", 0) == "00000000000000000000" +string.format("%020x", 1) == "00000000000000000001" +string.format("%020x", -1) == "0000ffffffffffffffff" +string.format("%020x", 2) == "00000000000000000002" +string.format("%020x", -2) == "0000fffffffffffffffe" +string.format("%020x", 3) == "00000000000000000003" +string.format("%020x", -3) == "0000fffffffffffffffd" +string.format("%020x", 100) == "00000000000000000064" +string.format("%020x", 10000) == "00000000000000002710" +string.format("%020x", 100000) == "000000000000000186a0" +string.format("%020x", 1000000) == "000000000000000f4240" +string.format("%020x", 10000000) == "00000000000000989680" +string.format("%020.0x", 0) == " " +string.format("%020.0x", 1) == " 1" +string.format("%020.0x", -1) == " ffffffffffffffff" +string.format("%020.0x", 2) == " 2" +string.format("%020.0x", -2) == " fffffffffffffffe" +string.format("%020.0x", 3) == " 3" +string.format("%020.0x", -3) == " fffffffffffffffd" +string.format("%020.0x", 100) == " 64" +string.format("%020.0x", 10000) == " 2710" +string.format("%020.0x", 100000) == " 186a0" +string.format("%020.0x", 1000000) == " f4240" +string.format("%020.0x", 10000000) == " 989680" +string.format("%020.1x", 0) == " 0" +string.format("%020.1x", 1) == " 1" +string.format("%020.1x", -1) == " ffffffffffffffff" +string.format("%020.1x", 2) == " 2" +string.format("%020.1x", -2) == " fffffffffffffffe" +string.format("%020.1x", 3) == " 3" +string.format("%020.1x", -3) == " fffffffffffffffd" +string.format("%020.1x", 100) == " 64" +string.format("%020.1x", 10000) == " 2710" +string.format("%020.1x", 100000) == " 186a0" +string.format("%020.1x", 1000000) == " f4240" +string.format("%020.1x", 10000000) == " 989680" +string.format("%020.6x", 0) == " 000000" +string.format("%020.6x", 1) == " 000001" +string.format("%020.6x", -1) == " ffffffffffffffff" +string.format("%020.6x", 2) == " 000002" +string.format("%020.6x", -2) == " fffffffffffffffe" +string.format("%020.6x", 3) == " 000003" +string.format("%020.6x", -3) == " fffffffffffffffd" +string.format("%020.6x", 100) == " 000064" +string.format("%020.6x", 10000) == " 002710" +string.format("%020.6x", 100000) == " 0186a0" +string.format("%020.6x", 1000000) == " 0f4240" +string.format("%020.6x", 10000000) == " 989680" +string.format("%0+x", 0) == "0" +string.format("%0+x", 1) == "1" +string.format("%0+x", -1) == "ffffffffffffffff" +string.format("%0+x", 2) == "2" +string.format("%0+x", -2) == "fffffffffffffffe" +string.format("%0+x", 3) == "3" +string.format("%0+x", -3) == "fffffffffffffffd" +string.format("%0+x", 100) == "64" +string.format("%0+x", 10000) == "2710" +string.format("%0+x", 100000) == "186a0" +string.format("%0+x", 1000000) == "f4240" +string.format("%0+x", 10000000) == "989680" +string.format("%0+.0x", 0) == "" +string.format("%0+.6x", 0) == "000000" +string.format("%0+.6x", 1) == "000001" +string.format("%0+.6x", 2) == "000002" +string.format("%0+.6x", 3) == "000003" +string.format("%0+.6x", 100) == "000064" +string.format("%0+.6x", 10000) == "002710" +string.format("%0+.6x", 100000) == "0186a0" +string.format("%0+.6x", 1000000) == "0f4240" +string.format("%0+1.0x", 0) == " " +string.format("%0+1.6x", 0) == "000000" +string.format("%0+1.6x", 1) == "000001" +string.format("%0+1.6x", 2) == "000002" +string.format("%0+1.6x", 3) == "000003" +string.format("%0+1.6x", 100) == "000064" +string.format("%0+1.6x", 10000) == "002710" +string.format("%0+1.6x", 100000) == "0186a0" +string.format("%0+1.6x", 1000000) == "0f4240" +string.format("%0+2x", 0) == "00" +string.format("%0+2x", 1) == "01" +string.format("%0+2x", 2) == "02" +string.format("%0+2x", 3) == "03" +string.format("%0+2.0x", 0) == " " +string.format("%0+2.0x", 1) == " 1" +string.format("%0+2.0x", 2) == " 2" +string.format("%0+2.0x", 3) == " 3" +string.format("%0+2.1x", 0) == " 0" +string.format("%0+2.1x", 1) == " 1" +string.format("%0+2.1x", 2) == " 2" +string.format("%0+2.1x", 3) == " 3" +string.format("%0+2.6x", 0) == "000000" +string.format("%0+2.6x", 1) == "000001" +string.format("%0+2.6x", 2) == "000002" +string.format("%0+2.6x", 3) == "000003" +string.format("%0+2.6x", 100) == "000064" +string.format("%0+2.6x", 10000) == "002710" +string.format("%0+2.6x", 100000) == "0186a0" +string.format("%0+2.6x", 1000000) == "0f4240" +string.format("%0+6x", 0) == "000000" +string.format("%0+6x", 1) == "000001" +string.format("%0+6x", 2) == "000002" +string.format("%0+6x", 3) == "000003" +string.format("%0+6x", 100) == "000064" +string.format("%0+6x", 10000) == "002710" +string.format("%0+6x", 100000) == "0186a0" +string.format("%0+6x", 1000000) == "0f4240" +string.format("%0+6.0x", 0) == " " +string.format("%0+6.0x", 1) == " 1" +string.format("%0+6.0x", 2) == " 2" +string.format("%0+6.0x", 3) == " 3" +string.format("%0+6.0x", 100) == " 64" +string.format("%0+6.0x", 10000) == " 2710" +string.format("%0+6.0x", 100000) == " 186a0" +string.format("%0+6.0x", 1000000) == " f4240" +string.format("%0+6.1x", 0) == " 0" +string.format("%0+6.1x", 1) == " 1" +string.format("%0+6.1x", 2) == " 2" +string.format("%0+6.1x", 3) == " 3" +string.format("%0+6.1x", 100) == " 64" +string.format("%0+6.1x", 10000) == " 2710" +string.format("%0+6.1x", 100000) == " 186a0" +string.format("%0+6.1x", 1000000) == " f4240" +string.format("%0+6.6x", 0) == "000000" +string.format("%0+6.6x", 1) == "000001" +string.format("%0+6.6x", 2) == "000002" +string.format("%0+6.6x", 3) == "000003" +string.format("%0+6.6x", 100) == "000064" +string.format("%0+6.6x", 10000) == "002710" +string.format("%0+6.6x", 100000) == "0186a0" +string.format("%0+6.6x", 1000000) == "0f4240" +string.format("%0+20x", 0) == "00000000000000000000" +string.format("%0+20x", 1) == "00000000000000000001" +string.format("%0+20x", -1) == "0000ffffffffffffffff" +string.format("%0+20x", 2) == "00000000000000000002" +string.format("%0+20x", -2) == "0000fffffffffffffffe" +string.format("%0+20x", 3) == "00000000000000000003" +string.format("%0+20x", -3) == "0000fffffffffffffffd" +string.format("%0+20x", 100) == "00000000000000000064" +string.format("%0+20x", 10000) == "00000000000000002710" +string.format("%0+20x", 100000) == "000000000000000186a0" +string.format("%0+20x", 1000000) == "000000000000000f4240" +string.format("%0+20x", 10000000) == "00000000000000989680" +string.format("%0+20.0x", 0) == " " +string.format("%0+20.0x", 1) == " 1" +string.format("%0+20.0x", -1) == " ffffffffffffffff" +string.format("%0+20.0x", 2) == " 2" +string.format("%0+20.0x", -2) == " fffffffffffffffe" +string.format("%0+20.0x", 3) == " 3" +string.format("%0+20.0x", -3) == " fffffffffffffffd" +string.format("%0+20.0x", 100) == " 64" +string.format("%0+20.0x", 10000) == " 2710" +string.format("%0+20.0x", 100000) == " 186a0" +string.format("%0+20.0x", 1000000) == " f4240" +string.format("%0+20.0x", 10000000) == " 989680" +string.format("%0+20.1x", 0) == " 0" +string.format("%0+20.1x", 1) == " 1" +string.format("%0+20.1x", -1) == " ffffffffffffffff" +string.format("%0+20.1x", 2) == " 2" +string.format("%0+20.1x", -2) == " fffffffffffffffe" +string.format("%0+20.1x", 3) == " 3" +string.format("%0+20.1x", -3) == " fffffffffffffffd" +string.format("%0+20.1x", 100) == " 64" +string.format("%0+20.1x", 10000) == " 2710" +string.format("%0+20.1x", 100000) == " 186a0" +string.format("%0+20.1x", 1000000) == " f4240" +string.format("%0+20.1x", 10000000) == " 989680" +string.format("%0+20.6x", 0) == " 000000" +string.format("%0+20.6x", 1) == " 000001" +string.format("%0+20.6x", -1) == " ffffffffffffffff" +string.format("%0+20.6x", 2) == " 000002" +string.format("%0+20.6x", -2) == " fffffffffffffffe" +string.format("%0+20.6x", 3) == " 000003" +string.format("%0+20.6x", -3) == " fffffffffffffffd" +string.format("%0+20.6x", 100) == " 000064" +string.format("%0+20.6x", 10000) == " 002710" +string.format("%0+20.6x", 100000) == " 0186a0" +string.format("%0+20.6x", 1000000) == " 0f4240" +string.format("%0+20.6x", 10000000) == " 989680" +string.format("%0-x", 0) == "0" +string.format("%0-x", 1) == "1" +string.format("%0-x", -1) == "ffffffffffffffff" +string.format("%0-x", 2) == "2" +string.format("%0-x", -2) == "fffffffffffffffe" +string.format("%0-x", 3) == "3" +string.format("%0-x", -3) == "fffffffffffffffd" +string.format("%0-x", 100) == "64" +string.format("%0-x", 10000) == "2710" +string.format("%0-x", 100000) == "186a0" +string.format("%0-x", 1000000) == "f4240" +string.format("%0-x", 10000000) == "989680" +string.format("%0-.0x", 0) == "" +string.format("%0-.6x", 0) == "000000" +string.format("%0-.6x", 1) == "000001" +string.format("%0-.6x", 2) == "000002" +string.format("%0-.6x", 3) == "000003" +string.format("%0-.6x", 100) == "000064" +string.format("%0-.6x", 10000) == "002710" +string.format("%0-.6x", 100000) == "0186a0" +string.format("%0-.6x", 1000000) == "0f4240" +string.format("%0-1.0x", 0) == " " +string.format("%0-1.6x", 0) == "000000" +string.format("%0-1.6x", 1) == "000001" +string.format("%0-1.6x", 2) == "000002" +string.format("%0-1.6x", 3) == "000003" +string.format("%0-1.6x", 100) == "000064" +string.format("%0-1.6x", 10000) == "002710" +string.format("%0-1.6x", 100000) == "0186a0" +string.format("%0-1.6x", 1000000) == "0f4240" +string.format("%0-2x", 0) == "0 " +string.format("%0-2x", 1) == "1 " +string.format("%0-2x", 2) == "2 " +string.format("%0-2x", 3) == "3 " +string.format("%0-2.0x", 0) == " " +string.format("%0-2.0x", 1) == "1 " +string.format("%0-2.0x", 2) == "2 " +string.format("%0-2.0x", 3) == "3 " +string.format("%0-2.1x", 0) == "0 " +string.format("%0-2.1x", 1) == "1 " +string.format("%0-2.1x", 2) == "2 " +string.format("%0-2.1x", 3) == "3 " +string.format("%0-2.6x", 0) == "000000" +string.format("%0-2.6x", 1) == "000001" +string.format("%0-2.6x", 2) == "000002" +string.format("%0-2.6x", 3) == "000003" +string.format("%0-2.6x", 100) == "000064" +string.format("%0-2.6x", 10000) == "002710" +string.format("%0-2.6x", 100000) == "0186a0" +string.format("%0-2.6x", 1000000) == "0f4240" +string.format("%0-6x", 0) == "0 " +string.format("%0-6x", 1) == "1 " +string.format("%0-6x", 2) == "2 " +string.format("%0-6x", 3) == "3 " +string.format("%0-6x", 100) == "64 " +string.format("%0-6x", 10000) == "2710 " +string.format("%0-6x", 100000) == "186a0 " +string.format("%0-6x", 1000000) == "f4240 " +string.format("%0-6.0x", 0) == " " +string.format("%0-6.0x", 1) == "1 " +string.format("%0-6.0x", 2) == "2 " +string.format("%0-6.0x", 3) == "3 " +string.format("%0-6.0x", 100) == "64 " +string.format("%0-6.0x", 10000) == "2710 " +string.format("%0-6.0x", 100000) == "186a0 " +string.format("%0-6.0x", 1000000) == "f4240 " +string.format("%0-6.1x", 0) == "0 " +string.format("%0-6.1x", 1) == "1 " +string.format("%0-6.1x", 2) == "2 " +string.format("%0-6.1x", 3) == "3 " +string.format("%0-6.1x", 100) == "64 " +string.format("%0-6.1x", 10000) == "2710 " +string.format("%0-6.1x", 100000) == "186a0 " +string.format("%0-6.1x", 1000000) == "f4240 " +string.format("%0-6.6x", 0) == "000000" +string.format("%0-6.6x", 1) == "000001" +string.format("%0-6.6x", 2) == "000002" +string.format("%0-6.6x", 3) == "000003" +string.format("%0-6.6x", 100) == "000064" +string.format("%0-6.6x", 10000) == "002710" +string.format("%0-6.6x", 100000) == "0186a0" +string.format("%0-6.6x", 1000000) == "0f4240" +string.format("%0-20x", 0) == "0 " +string.format("%0-20x", 1) == "1 " +string.format("%0-20x", -1) == "ffffffffffffffff " +string.format("%0-20x", 2) == "2 " +string.format("%0-20x", -2) == "fffffffffffffffe " +string.format("%0-20x", 3) == "3 " +string.format("%0-20x", -3) == "fffffffffffffffd " +string.format("%0-20x", 100) == "64 " +string.format("%0-20x", 10000) == "2710 " +string.format("%0-20x", 100000) == "186a0 " +string.format("%0-20x", 1000000) == "f4240 " +string.format("%0-20x", 10000000) == "989680 " +string.format("%0-20.0x", 0) == " " +string.format("%0-20.0x", 1) == "1 " +string.format("%0-20.0x", -1) == "ffffffffffffffff " +string.format("%0-20.0x", 2) == "2 " +string.format("%0-20.0x", -2) == "fffffffffffffffe " +string.format("%0-20.0x", 3) == "3 " +string.format("%0-20.0x", -3) == "fffffffffffffffd " +string.format("%0-20.0x", 100) == "64 " +string.format("%0-20.0x", 10000) == "2710 " +string.format("%0-20.0x", 100000) == "186a0 " +string.format("%0-20.0x", 1000000) == "f4240 " +string.format("%0-20.0x", 10000000) == "989680 " +string.format("%0-20.1x", 0) == "0 " +string.format("%0-20.1x", 1) == "1 " +string.format("%0-20.1x", -1) == "ffffffffffffffff " +string.format("%0-20.1x", 2) == "2 " +string.format("%0-20.1x", -2) == "fffffffffffffffe " +string.format("%0-20.1x", 3) == "3 " +string.format("%0-20.1x", -3) == "fffffffffffffffd " +string.format("%0-20.1x", 100) == "64 " +string.format("%0-20.1x", 10000) == "2710 " +string.format("%0-20.1x", 100000) == "186a0 " +string.format("%0-20.1x", 1000000) == "f4240 " +string.format("%0-20.1x", 10000000) == "989680 " +string.format("%0-20.6x", 0) == "000000 " +string.format("%0-20.6x", 1) == "000001 " +string.format("%0-20.6x", -1) == "ffffffffffffffff " +string.format("%0-20.6x", 2) == "000002 " +string.format("%0-20.6x", -2) == "fffffffffffffffe " +string.format("%0-20.6x", 3) == "000003 " +string.format("%0-20.6x", -3) == "fffffffffffffffd " +string.format("%0-20.6x", 100) == "000064 " +string.format("%0-20.6x", 10000) == "002710 " +string.format("%0-20.6x", 100000) == "0186a0 " +string.format("%0-20.6x", 1000000) == "0f4240 " +string.format("%0-20.6x", 10000000) == "989680 " +string.format("%0-+x", 0) == "0" +string.format("%0-+x", 1) == "1" +string.format("%0-+x", -1) == "ffffffffffffffff" +string.format("%0-+x", 2) == "2" +string.format("%0-+x", -2) == "fffffffffffffffe" +string.format("%0-+x", 3) == "3" +string.format("%0-+x", -3) == "fffffffffffffffd" +string.format("%0-+x", 100) == "64" +string.format("%0-+x", 10000) == "2710" +string.format("%0-+x", 100000) == "186a0" +string.format("%0-+x", 1000000) == "f4240" +string.format("%0-+x", 10000000) == "989680" +string.format("%0-+.0x", 0) == "" +string.format("%0-+.6x", 0) == "000000" +string.format("%0-+.6x", 1) == "000001" +string.format("%0-+.6x", 2) == "000002" +string.format("%0-+.6x", 3) == "000003" +string.format("%0-+.6x", 100) == "000064" +string.format("%0-+.6x", 10000) == "002710" +string.format("%0-+.6x", 100000) == "0186a0" +string.format("%0-+.6x", 1000000) == "0f4240" +string.format("%0-+1.0x", 0) == " " +string.format("%0-+1.6x", 0) == "000000" +string.format("%0-+1.6x", 1) == "000001" +string.format("%0-+1.6x", 2) == "000002" +string.format("%0-+1.6x", 3) == "000003" +string.format("%0-+1.6x", 100) == "000064" +string.format("%0-+1.6x", 10000) == "002710" +string.format("%0-+1.6x", 100000) == "0186a0" +string.format("%0-+1.6x", 1000000) == "0f4240" +string.format("%0-+2x", 0) == "0 " +string.format("%0-+2x", 1) == "1 " +string.format("%0-+2x", 2) == "2 " +string.format("%0-+2x", 3) == "3 " +string.format("%0-+2.0x", 0) == " " +string.format("%0-+2.0x", 1) == "1 " +string.format("%0-+2.0x", 2) == "2 " +string.format("%0-+2.0x", 3) == "3 " +string.format("%0-+2.1x", 0) == "0 " +string.format("%0-+2.1x", 1) == "1 " +string.format("%0-+2.1x", 2) == "2 " +string.format("%0-+2.1x", 3) == "3 " +string.format("%0-+2.6x", 0) == "000000" +string.format("%0-+2.6x", 1) == "000001" +string.format("%0-+2.6x", 2) == "000002" +string.format("%0-+2.6x", 3) == "000003" +string.format("%0-+2.6x", 100) == "000064" +string.format("%0-+2.6x", 10000) == "002710" +string.format("%0-+2.6x", 100000) == "0186a0" +string.format("%0-+2.6x", 1000000) == "0f4240" +string.format("%0-+6x", 0) == "0 " +string.format("%0-+6x", 1) == "1 " +string.format("%0-+6x", 2) == "2 " +string.format("%0-+6x", 3) == "3 " +string.format("%0-+6x", 100) == "64 " +string.format("%0-+6x", 10000) == "2710 " +string.format("%0-+6x", 100000) == "186a0 " +string.format("%0-+6x", 1000000) == "f4240 " +string.format("%0-+6.0x", 0) == " " +string.format("%0-+6.0x", 1) == "1 " +string.format("%0-+6.0x", 2) == "2 " +string.format("%0-+6.0x", 3) == "3 " +string.format("%0-+6.0x", 100) == "64 " +string.format("%0-+6.0x", 10000) == "2710 " +string.format("%0-+6.0x", 100000) == "186a0 " +string.format("%0-+6.0x", 1000000) == "f4240 " +string.format("%0-+6.1x", 0) == "0 " +string.format("%0-+6.1x", 1) == "1 " +string.format("%0-+6.1x", 2) == "2 " +string.format("%0-+6.1x", 3) == "3 " +string.format("%0-+6.1x", 100) == "64 " +string.format("%0-+6.1x", 10000) == "2710 " +string.format("%0-+6.1x", 100000) == "186a0 " +string.format("%0-+6.1x", 1000000) == "f4240 " +string.format("%0-+6.6x", 0) == "000000" +string.format("%0-+6.6x", 1) == "000001" +string.format("%0-+6.6x", 2) == "000002" +string.format("%0-+6.6x", 3) == "000003" +string.format("%0-+6.6x", 100) == "000064" +string.format("%0-+6.6x", 10000) == "002710" +string.format("%0-+6.6x", 100000) == "0186a0" +string.format("%0-+6.6x", 1000000) == "0f4240" +string.format("%0-+20x", 0) == "0 " +string.format("%0-+20x", 1) == "1 " +string.format("%0-+20x", -1) == "ffffffffffffffff " +string.format("%0-+20x", 2) == "2 " +string.format("%0-+20x", -2) == "fffffffffffffffe " +string.format("%0-+20x", 3) == "3 " +string.format("%0-+20x", -3) == "fffffffffffffffd " +string.format("%0-+20x", 100) == "64 " +string.format("%0-+20x", 10000) == "2710 " +string.format("%0-+20x", 100000) == "186a0 " +string.format("%0-+20x", 1000000) == "f4240 " +string.format("%0-+20x", 10000000) == "989680 " +string.format("%0-+20.0x", 0) == " " +string.format("%0-+20.0x", 1) == "1 " +string.format("%0-+20.0x", -1) == "ffffffffffffffff " +string.format("%0-+20.0x", 2) == "2 " +string.format("%0-+20.0x", -2) == "fffffffffffffffe " +string.format("%0-+20.0x", 3) == "3 " +string.format("%0-+20.0x", -3) == "fffffffffffffffd " +string.format("%0-+20.0x", 100) == "64 " +string.format("%0-+20.0x", 10000) == "2710 " +string.format("%0-+20.0x", 100000) == "186a0 " +string.format("%0-+20.0x", 1000000) == "f4240 " +string.format("%0-+20.0x", 10000000) == "989680 " +string.format("%0-+20.1x", 0) == "0 " +string.format("%0-+20.1x", 1) == "1 " +string.format("%0-+20.1x", -1) == "ffffffffffffffff " +string.format("%0-+20.1x", 2) == "2 " +string.format("%0-+20.1x", -2) == "fffffffffffffffe " +string.format("%0-+20.1x", 3) == "3 " +string.format("%0-+20.1x", -3) == "fffffffffffffffd " +string.format("%0-+20.1x", 100) == "64 " +string.format("%0-+20.1x", 10000) == "2710 " +string.format("%0-+20.1x", 100000) == "186a0 " +string.format("%0-+20.1x", 1000000) == "f4240 " +string.format("%0-+20.1x", 10000000) == "989680 " +string.format("%0-+20.6x", 0) == "000000 " +string.format("%0-+20.6x", 1) == "000001 " +string.format("%0-+20.6x", -1) == "ffffffffffffffff " +string.format("%0-+20.6x", 2) == "000002 " +string.format("%0-+20.6x", -2) == "fffffffffffffffe " +string.format("%0-+20.6x", 3) == "000003 " +string.format("%0-+20.6x", -3) == "fffffffffffffffd " +string.format("%0-+20.6x", 100) == "000064 " +string.format("%0-+20.6x", 10000) == "002710 " +string.format("%0-+20.6x", 100000) == "0186a0 " +string.format("%0-+20.6x", 1000000) == "0f4240 " +string.format("%0-+20.6x", 10000000) == "989680 " +string.format("%0 x", 0) == "0" +string.format("%0 x", 1) == "1" +string.format("%0 x", -1) == "ffffffffffffffff" +string.format("%0 x", 2) == "2" +string.format("%0 x", -2) == "fffffffffffffffe" +string.format("%0 x", 3) == "3" +string.format("%0 x", -3) == "fffffffffffffffd" +string.format("%0 x", 100) == "64" +string.format("%0 x", 10000) == "2710" +string.format("%0 x", 100000) == "186a0" +string.format("%0 x", 1000000) == "f4240" +string.format("%0 x", 10000000) == "989680" +string.format("%0 .0x", 0) == "" +string.format("%0 .6x", 0) == "000000" +string.format("%0 .6x", 1) == "000001" +string.format("%0 .6x", 2) == "000002" +string.format("%0 .6x", 3) == "000003" +string.format("%0 .6x", 100) == "000064" +string.format("%0 .6x", 10000) == "002710" +string.format("%0 .6x", 100000) == "0186a0" +string.format("%0 .6x", 1000000) == "0f4240" +string.format("%0 1.0x", 0) == " " +string.format("%0 1.6x", 0) == "000000" +string.format("%0 1.6x", 1) == "000001" +string.format("%0 1.6x", 2) == "000002" +string.format("%0 1.6x", 3) == "000003" +string.format("%0 1.6x", 100) == "000064" +string.format("%0 1.6x", 10000) == "002710" +string.format("%0 1.6x", 100000) == "0186a0" +string.format("%0 1.6x", 1000000) == "0f4240" +string.format("%0 2x", 0) == "00" +string.format("%0 2x", 1) == "01" +string.format("%0 2x", 2) == "02" +string.format("%0 2x", 3) == "03" +string.format("%0 2.0x", 0) == " " +string.format("%0 2.0x", 1) == " 1" +string.format("%0 2.0x", 2) == " 2" +string.format("%0 2.0x", 3) == " 3" +string.format("%0 2.1x", 0) == " 0" +string.format("%0 2.1x", 1) == " 1" +string.format("%0 2.1x", 2) == " 2" +string.format("%0 2.1x", 3) == " 3" +string.format("%0 2.6x", 0) == "000000" +string.format("%0 2.6x", 1) == "000001" +string.format("%0 2.6x", 2) == "000002" +string.format("%0 2.6x", 3) == "000003" +string.format("%0 2.6x", 100) == "000064" +string.format("%0 2.6x", 10000) == "002710" +string.format("%0 2.6x", 100000) == "0186a0" +string.format("%0 2.6x", 1000000) == "0f4240" +string.format("%0 6x", 0) == "000000" +string.format("%0 6x", 1) == "000001" +string.format("%0 6x", 2) == "000002" +string.format("%0 6x", 3) == "000003" +string.format("%0 6x", 100) == "000064" +string.format("%0 6x", 10000) == "002710" +string.format("%0 6x", 100000) == "0186a0" +string.format("%0 6x", 1000000) == "0f4240" +string.format("%0 6.0x", 0) == " " +string.format("%0 6.0x", 1) == " 1" +string.format("%0 6.0x", 2) == " 2" +string.format("%0 6.0x", 3) == " 3" +string.format("%0 6.0x", 100) == " 64" +string.format("%0 6.0x", 10000) == " 2710" +string.format("%0 6.0x", 100000) == " 186a0" +string.format("%0 6.0x", 1000000) == " f4240" +string.format("%0 6.1x", 0) == " 0" +string.format("%0 6.1x", 1) == " 1" +string.format("%0 6.1x", 2) == " 2" +string.format("%0 6.1x", 3) == " 3" +string.format("%0 6.1x", 100) == " 64" +string.format("%0 6.1x", 10000) == " 2710" +string.format("%0 6.1x", 100000) == " 186a0" +string.format("%0 6.1x", 1000000) == " f4240" +string.format("%0 6.6x", 0) == "000000" +string.format("%0 6.6x", 1) == "000001" +string.format("%0 6.6x", 2) == "000002" +string.format("%0 6.6x", 3) == "000003" +string.format("%0 6.6x", 100) == "000064" +string.format("%0 6.6x", 10000) == "002710" +string.format("%0 6.6x", 100000) == "0186a0" +string.format("%0 6.6x", 1000000) == "0f4240" +string.format("%0 20x", 0) == "00000000000000000000" +string.format("%0 20x", 1) == "00000000000000000001" +string.format("%0 20x", -1) == "0000ffffffffffffffff" +string.format("%0 20x", 2) == "00000000000000000002" +string.format("%0 20x", -2) == "0000fffffffffffffffe" +string.format("%0 20x", 3) == "00000000000000000003" +string.format("%0 20x", -3) == "0000fffffffffffffffd" +string.format("%0 20x", 100) == "00000000000000000064" +string.format("%0 20x", 10000) == "00000000000000002710" +string.format("%0 20x", 100000) == "000000000000000186a0" +string.format("%0 20x", 1000000) == "000000000000000f4240" +string.format("%0 20x", 10000000) == "00000000000000989680" +string.format("%0 20.0x", 0) == " " +string.format("%0 20.0x", 1) == " 1" +string.format("%0 20.0x", -1) == " ffffffffffffffff" +string.format("%0 20.0x", 2) == " 2" +string.format("%0 20.0x", -2) == " fffffffffffffffe" +string.format("%0 20.0x", 3) == " 3" +string.format("%0 20.0x", -3) == " fffffffffffffffd" +string.format("%0 20.0x", 100) == " 64" +string.format("%0 20.0x", 10000) == " 2710" +string.format("%0 20.0x", 100000) == " 186a0" +string.format("%0 20.0x", 1000000) == " f4240" +string.format("%0 20.0x", 10000000) == " 989680" +string.format("%0 20.1x", 0) == " 0" +string.format("%0 20.1x", 1) == " 1" +string.format("%0 20.1x", -1) == " ffffffffffffffff" +string.format("%0 20.1x", 2) == " 2" +string.format("%0 20.1x", -2) == " fffffffffffffffe" +string.format("%0 20.1x", 3) == " 3" +string.format("%0 20.1x", -3) == " fffffffffffffffd" +string.format("%0 20.1x", 100) == " 64" +string.format("%0 20.1x", 10000) == " 2710" +string.format("%0 20.1x", 100000) == " 186a0" +string.format("%0 20.1x", 1000000) == " f4240" +string.format("%0 20.1x", 10000000) == " 989680" +string.format("%0 20.6x", 0) == " 000000" +string.format("%0 20.6x", 1) == " 000001" +string.format("%0 20.6x", -1) == " ffffffffffffffff" +string.format("%0 20.6x", 2) == " 000002" +string.format("%0 20.6x", -2) == " fffffffffffffffe" +string.format("%0 20.6x", 3) == " 000003" +string.format("%0 20.6x", -3) == " fffffffffffffffd" +string.format("%0 20.6x", 100) == " 000064" +string.format("%0 20.6x", 10000) == " 002710" +string.format("%0 20.6x", 100000) == " 0186a0" +string.format("%0 20.6x", 1000000) == " 0f4240" +string.format("%0 20.6x", 10000000) == " 989680" +string.format("%0 +x", 0) == "0" +string.format("%0 +x", 1) == "1" +string.format("%0 +x", -1) == "ffffffffffffffff" +string.format("%0 +x", 2) == "2" +string.format("%0 +x", -2) == "fffffffffffffffe" +string.format("%0 +x", 3) == "3" +string.format("%0 +x", -3) == "fffffffffffffffd" +string.format("%0 +x", 100) == "64" +string.format("%0 +x", 10000) == "2710" +string.format("%0 +x", 100000) == "186a0" +string.format("%0 +x", 1000000) == "f4240" +string.format("%0 +x", 10000000) == "989680" +string.format("%0 +.0x", 0) == "" +string.format("%0 +.6x", 0) == "000000" +string.format("%0 +.6x", 1) == "000001" +string.format("%0 +.6x", 2) == "000002" +string.format("%0 +.6x", 3) == "000003" +string.format("%0 +.6x", 100) == "000064" +string.format("%0 +.6x", 10000) == "002710" +string.format("%0 +.6x", 100000) == "0186a0" +string.format("%0 +.6x", 1000000) == "0f4240" +string.format("%0 +1.0x", 0) == " " +string.format("%0 +1.6x", 0) == "000000" +string.format("%0 +1.6x", 1) == "000001" +string.format("%0 +1.6x", 2) == "000002" +string.format("%0 +1.6x", 3) == "000003" +string.format("%0 +1.6x", 100) == "000064" +string.format("%0 +1.6x", 10000) == "002710" +string.format("%0 +1.6x", 100000) == "0186a0" +string.format("%0 +1.6x", 1000000) == "0f4240" +string.format("%0 +2x", 0) == "00" +string.format("%0 +2x", 1) == "01" +string.format("%0 +2x", 2) == "02" +string.format("%0 +2x", 3) == "03" +string.format("%0 +2.0x", 0) == " " +string.format("%0 +2.0x", 1) == " 1" +string.format("%0 +2.0x", 2) == " 2" +string.format("%0 +2.0x", 3) == " 3" +string.format("%0 +2.1x", 0) == " 0" +string.format("%0 +2.1x", 1) == " 1" +string.format("%0 +2.1x", 2) == " 2" +string.format("%0 +2.1x", 3) == " 3" +string.format("%0 +2.6x", 0) == "000000" +string.format("%0 +2.6x", 1) == "000001" +string.format("%0 +2.6x", 2) == "000002" +string.format("%0 +2.6x", 3) == "000003" +string.format("%0 +2.6x", 100) == "000064" +string.format("%0 +2.6x", 10000) == "002710" +string.format("%0 +2.6x", 100000) == "0186a0" +string.format("%0 +2.6x", 1000000) == "0f4240" +string.format("%0 +6x", 0) == "000000" +string.format("%0 +6x", 1) == "000001" +string.format("%0 +6x", 2) == "000002" +string.format("%0 +6x", 3) == "000003" +string.format("%0 +6x", 100) == "000064" +string.format("%0 +6x", 10000) == "002710" +string.format("%0 +6x", 100000) == "0186a0" +string.format("%0 +6x", 1000000) == "0f4240" +string.format("%0 +6.0x", 0) == " " +string.format("%0 +6.0x", 1) == " 1" +string.format("%0 +6.0x", 2) == " 2" +string.format("%0 +6.0x", 3) == " 3" +string.format("%0 +6.0x", 100) == " 64" +string.format("%0 +6.0x", 10000) == " 2710" +string.format("%0 +6.0x", 100000) == " 186a0" +string.format("%0 +6.0x", 1000000) == " f4240" +string.format("%0 +6.1x", 0) == " 0" +string.format("%0 +6.1x", 1) == " 1" +string.format("%0 +6.1x", 2) == " 2" +string.format("%0 +6.1x", 3) == " 3" +string.format("%0 +6.1x", 100) == " 64" +string.format("%0 +6.1x", 10000) == " 2710" +string.format("%0 +6.1x", 100000) == " 186a0" +string.format("%0 +6.1x", 1000000) == " f4240" +string.format("%0 +6.6x", 0) == "000000" +string.format("%0 +6.6x", 1) == "000001" +string.format("%0 +6.6x", 2) == "000002" +string.format("%0 +6.6x", 3) == "000003" +string.format("%0 +6.6x", 100) == "000064" +string.format("%0 +6.6x", 10000) == "002710" +string.format("%0 +6.6x", 100000) == "0186a0" +string.format("%0 +6.6x", 1000000) == "0f4240" +string.format("%0 +20x", 0) == "00000000000000000000" +string.format("%0 +20x", 1) == "00000000000000000001" +string.format("%0 +20x", -1) == "0000ffffffffffffffff" +string.format("%0 +20x", 2) == "00000000000000000002" +string.format("%0 +20x", -2) == "0000fffffffffffffffe" +string.format("%0 +20x", 3) == "00000000000000000003" +string.format("%0 +20x", -3) == "0000fffffffffffffffd" +string.format("%0 +20x", 100) == "00000000000000000064" +string.format("%0 +20x", 10000) == "00000000000000002710" +string.format("%0 +20x", 100000) == "000000000000000186a0" +string.format("%0 +20x", 1000000) == "000000000000000f4240" +string.format("%0 +20x", 10000000) == "00000000000000989680" +string.format("%0 +20.0x", 0) == " " +string.format("%0 +20.0x", 1) == " 1" +string.format("%0 +20.0x", -1) == " ffffffffffffffff" +string.format("%0 +20.0x", 2) == " 2" +string.format("%0 +20.0x", -2) == " fffffffffffffffe" +string.format("%0 +20.0x", 3) == " 3" +string.format("%0 +20.0x", -3) == " fffffffffffffffd" +string.format("%0 +20.0x", 100) == " 64" +string.format("%0 +20.0x", 10000) == " 2710" +string.format("%0 +20.0x", 100000) == " 186a0" +string.format("%0 +20.0x", 1000000) == " f4240" +string.format("%0 +20.0x", 10000000) == " 989680" +string.format("%0 +20.1x", 0) == " 0" +string.format("%0 +20.1x", 1) == " 1" +string.format("%0 +20.1x", -1) == " ffffffffffffffff" +string.format("%0 +20.1x", 2) == " 2" +string.format("%0 +20.1x", -2) == " fffffffffffffffe" +string.format("%0 +20.1x", 3) == " 3" +string.format("%0 +20.1x", -3) == " fffffffffffffffd" +string.format("%0 +20.1x", 100) == " 64" +string.format("%0 +20.1x", 10000) == " 2710" +string.format("%0 +20.1x", 100000) == " 186a0" +string.format("%0 +20.1x", 1000000) == " f4240" +string.format("%0 +20.1x", 10000000) == " 989680" +string.format("%0 +20.6x", 0) == " 000000" +string.format("%0 +20.6x", 1) == " 000001" +string.format("%0 +20.6x", -1) == " ffffffffffffffff" +string.format("%0 +20.6x", 2) == " 000002" +string.format("%0 +20.6x", -2) == " fffffffffffffffe" +string.format("%0 +20.6x", 3) == " 000003" +string.format("%0 +20.6x", -3) == " fffffffffffffffd" +string.format("%0 +20.6x", 100) == " 000064" +string.format("%0 +20.6x", 10000) == " 002710" +string.format("%0 +20.6x", 100000) == " 0186a0" +string.format("%0 +20.6x", 1000000) == " 0f4240" +string.format("%0 +20.6x", 10000000) == " 989680" +string.format("%0 -x", 0) == "0" +string.format("%0 -x", 1) == "1" +string.format("%0 -x", -1) == "ffffffffffffffff" +string.format("%0 -x", 2) == "2" +string.format("%0 -x", -2) == "fffffffffffffffe" +string.format("%0 -x", 3) == "3" +string.format("%0 -x", -3) == "fffffffffffffffd" +string.format("%0 -x", 100) == "64" +string.format("%0 -x", 10000) == "2710" +string.format("%0 -x", 100000) == "186a0" +string.format("%0 -x", 1000000) == "f4240" +string.format("%0 -x", 10000000) == "989680" +string.format("%0 -.0x", 0) == "" +string.format("%0 -.6x", 0) == "000000" +string.format("%0 -.6x", 1) == "000001" +string.format("%0 -.6x", 2) == "000002" +string.format("%0 -.6x", 3) == "000003" +string.format("%0 -.6x", 100) == "000064" +string.format("%0 -.6x", 10000) == "002710" +string.format("%0 -.6x", 100000) == "0186a0" +string.format("%0 -.6x", 1000000) == "0f4240" +string.format("%0 -1.0x", 0) == " " +string.format("%0 -1.6x", 0) == "000000" +string.format("%0 -1.6x", 1) == "000001" +string.format("%0 -1.6x", 2) == "000002" +string.format("%0 -1.6x", 3) == "000003" +string.format("%0 -1.6x", 100) == "000064" +string.format("%0 -1.6x", 10000) == "002710" +string.format("%0 -1.6x", 100000) == "0186a0" +string.format("%0 -1.6x", 1000000) == "0f4240" +string.format("%0 -2x", 0) == "0 " +string.format("%0 -2x", 1) == "1 " +string.format("%0 -2x", 2) == "2 " +string.format("%0 -2x", 3) == "3 " +string.format("%0 -2.0x", 0) == " " +string.format("%0 -2.0x", 1) == "1 " +string.format("%0 -2.0x", 2) == "2 " +string.format("%0 -2.0x", 3) == "3 " +string.format("%0 -2.1x", 0) == "0 " +string.format("%0 -2.1x", 1) == "1 " +string.format("%0 -2.1x", 2) == "2 " +string.format("%0 -2.1x", 3) == "3 " +string.format("%0 -2.6x", 0) == "000000" +string.format("%0 -2.6x", 1) == "000001" +string.format("%0 -2.6x", 2) == "000002" +string.format("%0 -2.6x", 3) == "000003" +string.format("%0 -2.6x", 100) == "000064" +string.format("%0 -2.6x", 10000) == "002710" +string.format("%0 -2.6x", 100000) == "0186a0" +string.format("%0 -2.6x", 1000000) == "0f4240" +string.format("%0 -6x", 0) == "0 " +string.format("%0 -6x", 1) == "1 " +string.format("%0 -6x", 2) == "2 " +string.format("%0 -6x", 3) == "3 " +string.format("%0 -6x", 100) == "64 " +string.format("%0 -6x", 10000) == "2710 " +string.format("%0 -6x", 100000) == "186a0 " +string.format("%0 -6x", 1000000) == "f4240 " +string.format("%0 -6.0x", 0) == " " +string.format("%0 -6.0x", 1) == "1 " +string.format("%0 -6.0x", 2) == "2 " +string.format("%0 -6.0x", 3) == "3 " +string.format("%0 -6.0x", 100) == "64 " +string.format("%0 -6.0x", 10000) == "2710 " +string.format("%0 -6.0x", 100000) == "186a0 " +string.format("%0 -6.0x", 1000000) == "f4240 " +string.format("%0 -6.1x", 0) == "0 " +string.format("%0 -6.1x", 1) == "1 " +string.format("%0 -6.1x", 2) == "2 " +string.format("%0 -6.1x", 3) == "3 " +string.format("%0 -6.1x", 100) == "64 " +string.format("%0 -6.1x", 10000) == "2710 " +string.format("%0 -6.1x", 100000) == "186a0 " +string.format("%0 -6.1x", 1000000) == "f4240 " +string.format("%0 -6.6x", 0) == "000000" +string.format("%0 -6.6x", 1) == "000001" +string.format("%0 -6.6x", 2) == "000002" +string.format("%0 -6.6x", 3) == "000003" +string.format("%0 -6.6x", 100) == "000064" +string.format("%0 -6.6x", 10000) == "002710" +string.format("%0 -6.6x", 100000) == "0186a0" +string.format("%0 -6.6x", 1000000) == "0f4240" +string.format("%0 -20x", 0) == "0 " +string.format("%0 -20x", 1) == "1 " +string.format("%0 -20x", -1) == "ffffffffffffffff " +string.format("%0 -20x", 2) == "2 " +string.format("%0 -20x", -2) == "fffffffffffffffe " +string.format("%0 -20x", 3) == "3 " +string.format("%0 -20x", -3) == "fffffffffffffffd " +string.format("%0 -20x", 100) == "64 " +string.format("%0 -20x", 10000) == "2710 " +string.format("%0 -20x", 100000) == "186a0 " +string.format("%0 -20x", 1000000) == "f4240 " +string.format("%0 -20x", 10000000) == "989680 " +string.format("%0 -20.0x", 0) == " " +string.format("%0 -20.0x", 1) == "1 " +string.format("%0 -20.0x", -1) == "ffffffffffffffff " +string.format("%0 -20.0x", 2) == "2 " +string.format("%0 -20.0x", -2) == "fffffffffffffffe " +string.format("%0 -20.0x", 3) == "3 " +string.format("%0 -20.0x", -3) == "fffffffffffffffd " +string.format("%0 -20.0x", 100) == "64 " +string.format("%0 -20.0x", 10000) == "2710 " +string.format("%0 -20.0x", 100000) == "186a0 " +string.format("%0 -20.0x", 1000000) == "f4240 " +string.format("%0 -20.0x", 10000000) == "989680 " +string.format("%0 -20.1x", 0) == "0 " +string.format("%0 -20.1x", 1) == "1 " +string.format("%0 -20.1x", -1) == "ffffffffffffffff " +string.format("%0 -20.1x", 2) == "2 " +string.format("%0 -20.1x", -2) == "fffffffffffffffe " +string.format("%0 -20.1x", 3) == "3 " +string.format("%0 -20.1x", -3) == "fffffffffffffffd " +string.format("%0 -20.1x", 100) == "64 " +string.format("%0 -20.1x", 10000) == "2710 " +string.format("%0 -20.1x", 100000) == "186a0 " +string.format("%0 -20.1x", 1000000) == "f4240 " +string.format("%0 -20.1x", 10000000) == "989680 " +string.format("%0 -20.6x", 0) == "000000 " +string.format("%0 -20.6x", 1) == "000001 " +string.format("%0 -20.6x", -1) == "ffffffffffffffff " +string.format("%0 -20.6x", 2) == "000002 " +string.format("%0 -20.6x", -2) == "fffffffffffffffe " +string.format("%0 -20.6x", 3) == "000003 " +string.format("%0 -20.6x", -3) == "fffffffffffffffd " +string.format("%0 -20.6x", 100) == "000064 " +string.format("%0 -20.6x", 10000) == "002710 " +string.format("%0 -20.6x", 100000) == "0186a0 " +string.format("%0 -20.6x", 1000000) == "0f4240 " +string.format("%0 -20.6x", 10000000) == "989680 " +string.format("%0 -+x", 0) == "0" +string.format("%0 -+x", 1) == "1" +string.format("%0 -+x", -1) == "ffffffffffffffff" +string.format("%0 -+x", 2) == "2" +string.format("%0 -+x", -2) == "fffffffffffffffe" +string.format("%0 -+x", 3) == "3" +string.format("%0 -+x", -3) == "fffffffffffffffd" +string.format("%0 -+x", 100) == "64" +string.format("%0 -+x", 10000) == "2710" +string.format("%0 -+x", 100000) == "186a0" +string.format("%0 -+x", 1000000) == "f4240" +string.format("%0 -+x", 10000000) == "989680" +string.format("%0 -+.0x", 0) == "" +string.format("%0 -+.6x", 0) == "000000" +string.format("%0 -+.6x", 1) == "000001" +string.format("%0 -+.6x", 2) == "000002" +string.format("%0 -+.6x", 3) == "000003" +string.format("%0 -+.6x", 100) == "000064" +string.format("%0 -+.6x", 10000) == "002710" +string.format("%0 -+.6x", 100000) == "0186a0" +string.format("%0 -+.6x", 1000000) == "0f4240" +string.format("%0 -+1.0x", 0) == " " +string.format("%0 -+1.6x", 0) == "000000" +string.format("%0 -+1.6x", 1) == "000001" +string.format("%0 -+1.6x", 2) == "000002" +string.format("%0 -+1.6x", 3) == "000003" +string.format("%0 -+1.6x", 100) == "000064" +string.format("%0 -+1.6x", 10000) == "002710" +string.format("%0 -+1.6x", 100000) == "0186a0" +string.format("%0 -+1.6x", 1000000) == "0f4240" +string.format("%0 -+2x", 0) == "0 " +string.format("%0 -+2x", 1) == "1 " +string.format("%0 -+2x", 2) == "2 " +string.format("%0 -+2x", 3) == "3 " +string.format("%0 -+2.0x", 0) == " " +string.format("%0 -+2.0x", 1) == "1 " +string.format("%0 -+2.0x", 2) == "2 " +string.format("%0 -+2.0x", 3) == "3 " +string.format("%0 -+2.1x", 0) == "0 " +string.format("%0 -+2.1x", 1) == "1 " +string.format("%0 -+2.1x", 2) == "2 " +string.format("%0 -+2.1x", 3) == "3 " +string.format("%0 -+2.6x", 0) == "000000" +string.format("%0 -+2.6x", 1) == "000001" +string.format("%0 -+2.6x", 2) == "000002" +string.format("%0 -+2.6x", 3) == "000003" +string.format("%0 -+2.6x", 100) == "000064" +string.format("%0 -+2.6x", 10000) == "002710" +string.format("%0 -+2.6x", 100000) == "0186a0" +string.format("%0 -+2.6x", 1000000) == "0f4240" +string.format("%0 -+6x", 0) == "0 " +string.format("%0 -+6x", 1) == "1 " +string.format("%0 -+6x", 2) == "2 " +string.format("%0 -+6x", 3) == "3 " +string.format("%0 -+6x", 100) == "64 " +string.format("%0 -+6x", 10000) == "2710 " +string.format("%0 -+6x", 100000) == "186a0 " +string.format("%0 -+6x", 1000000) == "f4240 " +string.format("%0 -+6.0x", 0) == " " +string.format("%0 -+6.0x", 1) == "1 " +string.format("%0 -+6.0x", 2) == "2 " +string.format("%0 -+6.0x", 3) == "3 " +string.format("%0 -+6.0x", 100) == "64 " +string.format("%0 -+6.0x", 10000) == "2710 " +string.format("%0 -+6.0x", 100000) == "186a0 " +string.format("%0 -+6.0x", 1000000) == "f4240 " +string.format("%0 -+6.1x", 0) == "0 " +string.format("%0 -+6.1x", 1) == "1 " +string.format("%0 -+6.1x", 2) == "2 " +string.format("%0 -+6.1x", 3) == "3 " +string.format("%0 -+6.1x", 100) == "64 " +string.format("%0 -+6.1x", 10000) == "2710 " +string.format("%0 -+6.1x", 100000) == "186a0 " +string.format("%0 -+6.1x", 1000000) == "f4240 " +string.format("%0 -+6.6x", 0) == "000000" +string.format("%0 -+6.6x", 1) == "000001" +string.format("%0 -+6.6x", 2) == "000002" +string.format("%0 -+6.6x", 3) == "000003" +string.format("%0 -+6.6x", 100) == "000064" +string.format("%0 -+6.6x", 10000) == "002710" +string.format("%0 -+6.6x", 100000) == "0186a0" +string.format("%0 -+6.6x", 1000000) == "0f4240" +string.format("%0 -+20x", 0) == "0 " +string.format("%0 -+20x", 1) == "1 " +string.format("%0 -+20x", -1) == "ffffffffffffffff " +string.format("%0 -+20x", 2) == "2 " +string.format("%0 -+20x", -2) == "fffffffffffffffe " +string.format("%0 -+20x", 3) == "3 " +string.format("%0 -+20x", -3) == "fffffffffffffffd " +string.format("%0 -+20x", 100) == "64 " +string.format("%0 -+20x", 10000) == "2710 " +string.format("%0 -+20x", 100000) == "186a0 " +string.format("%0 -+20x", 1000000) == "f4240 " +string.format("%0 -+20x", 10000000) == "989680 " +string.format("%0 -+20.0x", 0) == " " +string.format("%0 -+20.0x", 1) == "1 " +string.format("%0 -+20.0x", -1) == "ffffffffffffffff " +string.format("%0 -+20.0x", 2) == "2 " +string.format("%0 -+20.0x", -2) == "fffffffffffffffe " +string.format("%0 -+20.0x", 3) == "3 " +string.format("%0 -+20.0x", -3) == "fffffffffffffffd " +string.format("%0 -+20.0x", 100) == "64 " +string.format("%0 -+20.0x", 10000) == "2710 " +string.format("%0 -+20.0x", 100000) == "186a0 " +string.format("%0 -+20.0x", 1000000) == "f4240 " +string.format("%0 -+20.0x", 10000000) == "989680 " +string.format("%0 -+20.1x", 0) == "0 " +string.format("%0 -+20.1x", 1) == "1 " +string.format("%0 -+20.1x", -1) == "ffffffffffffffff " +string.format("%0 -+20.1x", 2) == "2 " +string.format("%0 -+20.1x", -2) == "fffffffffffffffe " +string.format("%0 -+20.1x", 3) == "3 " +string.format("%0 -+20.1x", -3) == "fffffffffffffffd " +string.format("%0 -+20.1x", 100) == "64 " +string.format("%0 -+20.1x", 10000) == "2710 " +string.format("%0 -+20.1x", 100000) == "186a0 " +string.format("%0 -+20.1x", 1000000) == "f4240 " +string.format("%0 -+20.1x", 10000000) == "989680 " +string.format("%0 -+20.6x", 0) == "000000 " +string.format("%0 -+20.6x", 1) == "000001 " +string.format("%0 -+20.6x", -1) == "ffffffffffffffff " +string.format("%0 -+20.6x", 2) == "000002 " +string.format("%0 -+20.6x", -2) == "fffffffffffffffe " +string.format("%0 -+20.6x", 3) == "000003 " +string.format("%0 -+20.6x", -3) == "fffffffffffffffd " +string.format("%0 -+20.6x", 100) == "000064 " +string.format("%0 -+20.6x", 10000) == "002710 " +string.format("%0 -+20.6x", 100000) == "0186a0 " +string.format("%0 -+20.6x", 1000000) == "0f4240 " +string.format("%0 -+20.6x", 10000000) == "989680 " +string.format("%0#x", 0) == "0" +string.format("%0#x", 1) == "0x1" +string.format("%0#x", -1) == "0xffffffffffffffff" +string.format("%0#x", 2) == "0x2" +string.format("%0#x", -2) == "0xfffffffffffffffe" +string.format("%0#x", 3) == "0x3" +string.format("%0#x", -3) == "0xfffffffffffffffd" +string.format("%0#x", 100) == "0x64" +string.format("%0#x", 10000) == "0x2710" +string.format("%0#x", 100000) == "0x186a0" +string.format("%0#x", 1000000) == "0xf4240" +string.format("%0#x", 10000000) == "0x989680" +string.format("%0#.0x", 0) == "" +string.format("%0#.6x", 0) == "000000" +string.format("%0#.6x", 1) == "0x000001" +string.format("%0#.6x", 2) == "0x000002" +string.format("%0#.6x", 3) == "0x000003" +string.format("%0#.6x", 100) == "0x000064" +string.format("%0#.6x", 10000) == "0x002710" +string.format("%0#.6x", 100000) == "0x0186a0" +string.format("%0#.6x", 1000000) == "0x0f4240" +string.format("%0#1.0x", 0) == " " +string.format("%0#1.6x", 0) == "000000" +string.format("%0#1.6x", 1) == "0x000001" +string.format("%0#1.6x", 2) == "0x000002" +string.format("%0#1.6x", 3) == "0x000003" +string.format("%0#1.6x", 100) == "0x000064" +string.format("%0#1.6x", 10000) == "0x002710" +string.format("%0#1.6x", 100000) == "0x0186a0" +string.format("%0#1.6x", 1000000) == "0x0f4240" +string.format("%0#2x", 0) == "00" +string.format("%0#2.0x", 0) == " " +string.format("%0#2.1x", 0) == " 0" +string.format("%0#2.6x", 0) == "000000" +string.format("%0#2.6x", 1) == "0x000001" +string.format("%0#2.6x", 2) == "0x000002" +string.format("%0#2.6x", 3) == "0x000003" +string.format("%0#2.6x", 100) == "0x000064" +string.format("%0#2.6x", 10000) == "0x002710" +string.format("%0#2.6x", 100000) == "0x0186a0" +string.format("%0#2.6x", 1000000) == "0x0f4240" +string.format("%0#6x", 0) == "000000" +string.format("%0#6x", 1) == "0x0001" +string.format("%0#6x", 2) == "0x0002" +string.format("%0#6x", 3) == "0x0003" +string.format("%0#6x", 100) == "0x0064" +string.format("%0#6.0x", 0) == " " +string.format("%0#6.0x", 1) == " 0x1" +string.format("%0#6.0x", 2) == " 0x2" +string.format("%0#6.0x", 3) == " 0x3" +string.format("%0#6.0x", 100) == " 0x64" +string.format("%0#6.1x", 0) == " 0" +string.format("%0#6.1x", 1) == " 0x1" +string.format("%0#6.1x", 2) == " 0x2" +string.format("%0#6.1x", 3) == " 0x3" +string.format("%0#6.1x", 100) == " 0x64" +string.format("%0#6.6x", 0) == "000000" +string.format("%0#6.6x", 1) == "0x000001" +string.format("%0#6.6x", 2) == "0x000002" +string.format("%0#6.6x", 3) == "0x000003" +string.format("%0#6.6x", 100) == "0x000064" +string.format("%0#6.6x", 10000) == "0x002710" +string.format("%0#6.6x", 100000) == "0x0186a0" +string.format("%0#6.6x", 1000000) == "0x0f4240" +string.format("%0#20x", 0) == "00000000000000000000" +string.format("%0#20x", 1) == "0x000000000000000001" +string.format("%0#20x", -1) == "0x00ffffffffffffffff" +string.format("%0#20x", 2) == "0x000000000000000002" +string.format("%0#20x", -2) == "0x00fffffffffffffffe" +string.format("%0#20x", 3) == "0x000000000000000003" +string.format("%0#20x", -3) == "0x00fffffffffffffffd" +string.format("%0#20x", 100) == "0x000000000000000064" +string.format("%0#20x", 10000) == "0x000000000000002710" +string.format("%0#20x", 100000) == "0x0000000000000186a0" +string.format("%0#20x", 1000000) == "0x0000000000000f4240" +string.format("%0#20x", 10000000) == "0x000000000000989680" +string.format("%0#20.0x", 0) == " " +string.format("%0#20.0x", 1) == " 0x1" +string.format("%0#20.0x", -1) == " 0xffffffffffffffff" +string.format("%0#20.0x", 2) == " 0x2" +string.format("%0#20.0x", -2) == " 0xfffffffffffffffe" +string.format("%0#20.0x", 3) == " 0x3" +string.format("%0#20.0x", -3) == " 0xfffffffffffffffd" +string.format("%0#20.0x", 100) == " 0x64" +string.format("%0#20.0x", 10000) == " 0x2710" +string.format("%0#20.0x", 100000) == " 0x186a0" +string.format("%0#20.0x", 1000000) == " 0xf4240" +string.format("%0#20.0x", 10000000) == " 0x989680" +string.format("%0#20.1x", 0) == " 0" +string.format("%0#20.1x", 1) == " 0x1" +string.format("%0#20.1x", -1) == " 0xffffffffffffffff" +string.format("%0#20.1x", 2) == " 0x2" +string.format("%0#20.1x", -2) == " 0xfffffffffffffffe" +string.format("%0#20.1x", 3) == " 0x3" +string.format("%0#20.1x", -3) == " 0xfffffffffffffffd" +string.format("%0#20.1x", 100) == " 0x64" +string.format("%0#20.1x", 10000) == " 0x2710" +string.format("%0#20.1x", 100000) == " 0x186a0" +string.format("%0#20.1x", 1000000) == " 0xf4240" +string.format("%0#20.1x", 10000000) == " 0x989680" +string.format("%0#20.6x", 0) == " 000000" +string.format("%0#20.6x", 1) == " 0x000001" +string.format("%0#20.6x", -1) == " 0xffffffffffffffff" +string.format("%0#20.6x", 2) == " 0x000002" +string.format("%0#20.6x", -2) == " 0xfffffffffffffffe" +string.format("%0#20.6x", 3) == " 0x000003" +string.format("%0#20.6x", -3) == " 0xfffffffffffffffd" +string.format("%0#20.6x", 100) == " 0x000064" +string.format("%0#20.6x", 10000) == " 0x002710" +string.format("%0#20.6x", 100000) == " 0x0186a0" +string.format("%0#20.6x", 1000000) == " 0x0f4240" +string.format("%0#20.6x", 10000000) == " 0x989680" +string.format("%0#+x", 0) == "0" +string.format("%0#+x", 1) == "0x1" +string.format("%0#+x", -1) == "0xffffffffffffffff" +string.format("%0#+x", 2) == "0x2" +string.format("%0#+x", -2) == "0xfffffffffffffffe" +string.format("%0#+x", 3) == "0x3" +string.format("%0#+x", -3) == "0xfffffffffffffffd" +string.format("%0#+x", 100) == "0x64" +string.format("%0#+x", 10000) == "0x2710" +string.format("%0#+x", 100000) == "0x186a0" +string.format("%0#+x", 1000000) == "0xf4240" +string.format("%0#+x", 10000000) == "0x989680" +string.format("%0#+.0x", 0) == "" +string.format("%0#+.6x", 0) == "000000" +string.format("%0#+.6x", 1) == "0x000001" +string.format("%0#+.6x", 2) == "0x000002" +string.format("%0#+.6x", 3) == "0x000003" +string.format("%0#+.6x", 100) == "0x000064" +string.format("%0#+.6x", 10000) == "0x002710" +string.format("%0#+.6x", 100000) == "0x0186a0" +string.format("%0#+.6x", 1000000) == "0x0f4240" +string.format("%0#+1.0x", 0) == " " +string.format("%0#+1.6x", 0) == "000000" +string.format("%0#+1.6x", 1) == "0x000001" +string.format("%0#+1.6x", 2) == "0x000002" +string.format("%0#+1.6x", 3) == "0x000003" +string.format("%0#+1.6x", 100) == "0x000064" +string.format("%0#+1.6x", 10000) == "0x002710" +string.format("%0#+1.6x", 100000) == "0x0186a0" +string.format("%0#+1.6x", 1000000) == "0x0f4240" +string.format("%0#+2x", 0) == "00" +string.format("%0#+2.0x", 0) == " " +string.format("%0#+2.1x", 0) == " 0" +string.format("%0#+2.6x", 0) == "000000" +string.format("%0#+2.6x", 1) == "0x000001" +string.format("%0#+2.6x", 2) == "0x000002" +string.format("%0#+2.6x", 3) == "0x000003" +string.format("%0#+2.6x", 100) == "0x000064" +string.format("%0#+2.6x", 10000) == "0x002710" +string.format("%0#+2.6x", 100000) == "0x0186a0" +string.format("%0#+2.6x", 1000000) == "0x0f4240" +string.format("%0#+6x", 0) == "000000" +string.format("%0#+6x", 1) == "0x0001" +string.format("%0#+6x", 2) == "0x0002" +string.format("%0#+6x", 3) == "0x0003" +string.format("%0#+6x", 100) == "0x0064" +string.format("%0#+6.0x", 0) == " " +string.format("%0#+6.0x", 1) == " 0x1" +string.format("%0#+6.0x", 2) == " 0x2" +string.format("%0#+6.0x", 3) == " 0x3" +string.format("%0#+6.0x", 100) == " 0x64" +string.format("%0#+6.1x", 0) == " 0" +string.format("%0#+6.1x", 1) == " 0x1" +string.format("%0#+6.1x", 2) == " 0x2" +string.format("%0#+6.1x", 3) == " 0x3" +string.format("%0#+6.1x", 100) == " 0x64" +string.format("%0#+6.6x", 0) == "000000" +string.format("%0#+6.6x", 1) == "0x000001" +string.format("%0#+6.6x", 2) == "0x000002" +string.format("%0#+6.6x", 3) == "0x000003" +string.format("%0#+6.6x", 100) == "0x000064" +string.format("%0#+6.6x", 10000) == "0x002710" +string.format("%0#+6.6x", 100000) == "0x0186a0" +string.format("%0#+6.6x", 1000000) == "0x0f4240" +string.format("%0#+20x", 0) == "00000000000000000000" +string.format("%0#+20x", 1) == "0x000000000000000001" +string.format("%0#+20x", -1) == "0x00ffffffffffffffff" +string.format("%0#+20x", 2) == "0x000000000000000002" +string.format("%0#+20x", -2) == "0x00fffffffffffffffe" +string.format("%0#+20x", 3) == "0x000000000000000003" +string.format("%0#+20x", -3) == "0x00fffffffffffffffd" +string.format("%0#+20x", 100) == "0x000000000000000064" +string.format("%0#+20x", 10000) == "0x000000000000002710" +string.format("%0#+20x", 100000) == "0x0000000000000186a0" +string.format("%0#+20x", 1000000) == "0x0000000000000f4240" +string.format("%0#+20x", 10000000) == "0x000000000000989680" +string.format("%0#+20.0x", 0) == " " +string.format("%0#+20.0x", 1) == " 0x1" +string.format("%0#+20.0x", -1) == " 0xffffffffffffffff" +string.format("%0#+20.0x", 2) == " 0x2" +string.format("%0#+20.0x", -2) == " 0xfffffffffffffffe" +string.format("%0#+20.0x", 3) == " 0x3" +string.format("%0#+20.0x", -3) == " 0xfffffffffffffffd" +string.format("%0#+20.0x", 100) == " 0x64" +string.format("%0#+20.0x", 10000) == " 0x2710" +string.format("%0#+20.0x", 100000) == " 0x186a0" +string.format("%0#+20.0x", 1000000) == " 0xf4240" +string.format("%0#+20.0x", 10000000) == " 0x989680" +string.format("%0#+20.1x", 0) == " 0" +string.format("%0#+20.1x", 1) == " 0x1" +string.format("%0#+20.1x", -1) == " 0xffffffffffffffff" +string.format("%0#+20.1x", 2) == " 0x2" +string.format("%0#+20.1x", -2) == " 0xfffffffffffffffe" +string.format("%0#+20.1x", 3) == " 0x3" +string.format("%0#+20.1x", -3) == " 0xfffffffffffffffd" +string.format("%0#+20.1x", 100) == " 0x64" +string.format("%0#+20.1x", 10000) == " 0x2710" +string.format("%0#+20.1x", 100000) == " 0x186a0" +string.format("%0#+20.1x", 1000000) == " 0xf4240" +string.format("%0#+20.1x", 10000000) == " 0x989680" +string.format("%0#+20.6x", 0) == " 000000" +string.format("%0#+20.6x", 1) == " 0x000001" +string.format("%0#+20.6x", -1) == " 0xffffffffffffffff" +string.format("%0#+20.6x", 2) == " 0x000002" +string.format("%0#+20.6x", -2) == " 0xfffffffffffffffe" +string.format("%0#+20.6x", 3) == " 0x000003" +string.format("%0#+20.6x", -3) == " 0xfffffffffffffffd" +string.format("%0#+20.6x", 100) == " 0x000064" +string.format("%0#+20.6x", 10000) == " 0x002710" +string.format("%0#+20.6x", 100000) == " 0x0186a0" +string.format("%0#+20.6x", 1000000) == " 0x0f4240" +string.format("%0#+20.6x", 10000000) == " 0x989680" +string.format("%0#-x", 0) == "0" +string.format("%0#-x", 1) == "0x1" +string.format("%0#-x", -1) == "0xffffffffffffffff" +string.format("%0#-x", 2) == "0x2" +string.format("%0#-x", -2) == "0xfffffffffffffffe" +string.format("%0#-x", 3) == "0x3" +string.format("%0#-x", -3) == "0xfffffffffffffffd" +string.format("%0#-x", 100) == "0x64" +string.format("%0#-x", 10000) == "0x2710" +string.format("%0#-x", 100000) == "0x186a0" +string.format("%0#-x", 1000000) == "0xf4240" +string.format("%0#-x", 10000000) == "0x989680" +string.format("%0#-.0x", 0) == "" +string.format("%0#-.6x", 0) == "000000" +string.format("%0#-.6x", 1) == "0x000001" +string.format("%0#-.6x", 2) == "0x000002" +string.format("%0#-.6x", 3) == "0x000003" +string.format("%0#-.6x", 100) == "0x000064" +string.format("%0#-.6x", 10000) == "0x002710" +string.format("%0#-.6x", 100000) == "0x0186a0" +string.format("%0#-.6x", 1000000) == "0x0f4240" +string.format("%0#-1.0x", 0) == " " +string.format("%0#-1.6x", 0) == "000000" +string.format("%0#-1.6x", 1) == "0x000001" +string.format("%0#-1.6x", 2) == "0x000002" +string.format("%0#-1.6x", 3) == "0x000003" +string.format("%0#-1.6x", 100) == "0x000064" +string.format("%0#-1.6x", 10000) == "0x002710" +string.format("%0#-1.6x", 100000) == "0x0186a0" +string.format("%0#-1.6x", 1000000) == "0x0f4240" +string.format("%0#-2x", 0) == "0 " +string.format("%0#-2.0x", 0) == " " +string.format("%0#-2.1x", 0) == "0 " +string.format("%0#-2.6x", 0) == "000000" +string.format("%0#-2.6x", 1) == "0x000001" +string.format("%0#-2.6x", 2) == "0x000002" +string.format("%0#-2.6x", 3) == "0x000003" +string.format("%0#-2.6x", 100) == "0x000064" +string.format("%0#-2.6x", 10000) == "0x002710" +string.format("%0#-2.6x", 100000) == "0x0186a0" +string.format("%0#-2.6x", 1000000) == "0x0f4240" +string.format("%0#-6x", 0) == "0 " +string.format("%0#-6x", 1) == "0x1 " +string.format("%0#-6x", 2) == "0x2 " +string.format("%0#-6x", 3) == "0x3 " +string.format("%0#-6x", 100) == "0x64 " +string.format("%0#-6.0x", 0) == " " +string.format("%0#-6.0x", 1) == "0x1 " +string.format("%0#-6.0x", 2) == "0x2 " +string.format("%0#-6.0x", 3) == "0x3 " +string.format("%0#-6.0x", 100) == "0x64 " +string.format("%0#-6.1x", 0) == "0 " +string.format("%0#-6.1x", 1) == "0x1 " +string.format("%0#-6.1x", 2) == "0x2 " +string.format("%0#-6.1x", 3) == "0x3 " +string.format("%0#-6.1x", 100) == "0x64 " +string.format("%0#-6.6x", 0) == "000000" +string.format("%0#-6.6x", 1) == "0x000001" +string.format("%0#-6.6x", 2) == "0x000002" +string.format("%0#-6.6x", 3) == "0x000003" +string.format("%0#-6.6x", 100) == "0x000064" +string.format("%0#-6.6x", 10000) == "0x002710" +string.format("%0#-6.6x", 100000) == "0x0186a0" +string.format("%0#-6.6x", 1000000) == "0x0f4240" +string.format("%0#-20x", 0) == "0 " +string.format("%0#-20x", 1) == "0x1 " +string.format("%0#-20x", -1) == "0xffffffffffffffff " +string.format("%0#-20x", 2) == "0x2 " +string.format("%0#-20x", -2) == "0xfffffffffffffffe " +string.format("%0#-20x", 3) == "0x3 " +string.format("%0#-20x", -3) == "0xfffffffffffffffd " +string.format("%0#-20x", 100) == "0x64 " +string.format("%0#-20x", 10000) == "0x2710 " +string.format("%0#-20x", 100000) == "0x186a0 " +string.format("%0#-20x", 1000000) == "0xf4240 " +string.format("%0#-20x", 10000000) == "0x989680 " +string.format("%0#-20.0x", 0) == " " +string.format("%0#-20.0x", 1) == "0x1 " +string.format("%0#-20.0x", -1) == "0xffffffffffffffff " +string.format("%0#-20.0x", 2) == "0x2 " +string.format("%0#-20.0x", -2) == "0xfffffffffffffffe " +string.format("%0#-20.0x", 3) == "0x3 " +string.format("%0#-20.0x", -3) == "0xfffffffffffffffd " +string.format("%0#-20.0x", 100) == "0x64 " +string.format("%0#-20.0x", 10000) == "0x2710 " +string.format("%0#-20.0x", 100000) == "0x186a0 " +string.format("%0#-20.0x", 1000000) == "0xf4240 " +string.format("%0#-20.0x", 10000000) == "0x989680 " +string.format("%0#-20.1x", 0) == "0 " +string.format("%0#-20.1x", 1) == "0x1 " +string.format("%0#-20.1x", -1) == "0xffffffffffffffff " +string.format("%0#-20.1x", 2) == "0x2 " +string.format("%0#-20.1x", -2) == "0xfffffffffffffffe " +string.format("%0#-20.1x", 3) == "0x3 " +string.format("%0#-20.1x", -3) == "0xfffffffffffffffd " +string.format("%0#-20.1x", 100) == "0x64 " +string.format("%0#-20.1x", 10000) == "0x2710 " +string.format("%0#-20.1x", 100000) == "0x186a0 " +string.format("%0#-20.1x", 1000000) == "0xf4240 " +string.format("%0#-20.1x", 10000000) == "0x989680 " +string.format("%0#-20.6x", 0) == "000000 " +string.format("%0#-20.6x", 1) == "0x000001 " +string.format("%0#-20.6x", -1) == "0xffffffffffffffff " +string.format("%0#-20.6x", 2) == "0x000002 " +string.format("%0#-20.6x", -2) == "0xfffffffffffffffe " +string.format("%0#-20.6x", 3) == "0x000003 " +string.format("%0#-20.6x", -3) == "0xfffffffffffffffd " +string.format("%0#-20.6x", 100) == "0x000064 " +string.format("%0#-20.6x", 10000) == "0x002710 " +string.format("%0#-20.6x", 100000) == "0x0186a0 " +string.format("%0#-20.6x", 1000000) == "0x0f4240 " +string.format("%0#-20.6x", 10000000) == "0x989680 " +string.format("%0#-+x", 0) == "0" +string.format("%0#-+x", 1) == "0x1" +string.format("%0#-+x", -1) == "0xffffffffffffffff" +string.format("%0#-+x", 2) == "0x2" +string.format("%0#-+x", -2) == "0xfffffffffffffffe" +string.format("%0#-+x", 3) == "0x3" +string.format("%0#-+x", -3) == "0xfffffffffffffffd" +string.format("%0#-+x", 100) == "0x64" +string.format("%0#-+x", 10000) == "0x2710" +string.format("%0#-+x", 100000) == "0x186a0" +string.format("%0#-+x", 1000000) == "0xf4240" +string.format("%0#-+x", 10000000) == "0x989680" +string.format("%0#-+.0x", 0) == "" +string.format("%0#-+.6x", 0) == "000000" +string.format("%0#-+.6x", 1) == "0x000001" +string.format("%0#-+.6x", 2) == "0x000002" +string.format("%0#-+.6x", 3) == "0x000003" +string.format("%0#-+.6x", 100) == "0x000064" +string.format("%0#-+.6x", 10000) == "0x002710" +string.format("%0#-+.6x", 100000) == "0x0186a0" +string.format("%0#-+.6x", 1000000) == "0x0f4240" +string.format("%0#-+1.0x", 0) == " " +string.format("%0#-+1.6x", 0) == "000000" +string.format("%0#-+1.6x", 1) == "0x000001" +string.format("%0#-+1.6x", 2) == "0x000002" +string.format("%0#-+1.6x", 3) == "0x000003" +string.format("%0#-+1.6x", 100) == "0x000064" +string.format("%0#-+1.6x", 10000) == "0x002710" +string.format("%0#-+1.6x", 100000) == "0x0186a0" +string.format("%0#-+1.6x", 1000000) == "0x0f4240" +string.format("%0#-+2x", 0) == "0 " +string.format("%0#-+2.0x", 0) == " " +string.format("%0#-+2.1x", 0) == "0 " +string.format("%0#-+2.6x", 0) == "000000" +string.format("%0#-+2.6x", 1) == "0x000001" +string.format("%0#-+2.6x", 2) == "0x000002" +string.format("%0#-+2.6x", 3) == "0x000003" +string.format("%0#-+2.6x", 100) == "0x000064" +string.format("%0#-+2.6x", 10000) == "0x002710" +string.format("%0#-+2.6x", 100000) == "0x0186a0" +string.format("%0#-+2.6x", 1000000) == "0x0f4240" +string.format("%0#-+6x", 0) == "0 " +string.format("%0#-+6x", 1) == "0x1 " +string.format("%0#-+6x", 2) == "0x2 " +string.format("%0#-+6x", 3) == "0x3 " +string.format("%0#-+6x", 100) == "0x64 " +string.format("%0#-+6.0x", 0) == " " +string.format("%0#-+6.0x", 1) == "0x1 " +string.format("%0#-+6.0x", 2) == "0x2 " +string.format("%0#-+6.0x", 3) == "0x3 " +string.format("%0#-+6.0x", 100) == "0x64 " +string.format("%0#-+6.1x", 0) == "0 " +string.format("%0#-+6.1x", 1) == "0x1 " +string.format("%0#-+6.1x", 2) == "0x2 " +string.format("%0#-+6.1x", 3) == "0x3 " +string.format("%0#-+6.1x", 100) == "0x64 " +string.format("%0#-+6.6x", 0) == "000000" +string.format("%0#-+6.6x", 1) == "0x000001" +string.format("%0#-+6.6x", 2) == "0x000002" +string.format("%0#-+6.6x", 3) == "0x000003" +string.format("%0#-+6.6x", 100) == "0x000064" +string.format("%0#-+6.6x", 10000) == "0x002710" +string.format("%0#-+6.6x", 100000) == "0x0186a0" +string.format("%0#-+6.6x", 1000000) == "0x0f4240" +string.format("%0#-+20x", 0) == "0 " +string.format("%0#-+20x", 1) == "0x1 " +string.format("%0#-+20x", -1) == "0xffffffffffffffff " +string.format("%0#-+20x", 2) == "0x2 " +string.format("%0#-+20x", -2) == "0xfffffffffffffffe " +string.format("%0#-+20x", 3) == "0x3 " +string.format("%0#-+20x", -3) == "0xfffffffffffffffd " +string.format("%0#-+20x", 100) == "0x64 " +string.format("%0#-+20x", 10000) == "0x2710 " +string.format("%0#-+20x", 100000) == "0x186a0 " +string.format("%0#-+20x", 1000000) == "0xf4240 " +string.format("%0#-+20x", 10000000) == "0x989680 " +string.format("%0#-+20.0x", 0) == " " +string.format("%0#-+20.0x", 1) == "0x1 " +string.format("%0#-+20.0x", -1) == "0xffffffffffffffff " +string.format("%0#-+20.0x", 2) == "0x2 " +string.format("%0#-+20.0x", -2) == "0xfffffffffffffffe " +string.format("%0#-+20.0x", 3) == "0x3 " +string.format("%0#-+20.0x", -3) == "0xfffffffffffffffd " +string.format("%0#-+20.0x", 100) == "0x64 " +string.format("%0#-+20.0x", 10000) == "0x2710 " +string.format("%0#-+20.0x", 100000) == "0x186a0 " +string.format("%0#-+20.0x", 1000000) == "0xf4240 " +string.format("%0#-+20.0x", 10000000) == "0x989680 " +string.format("%0#-+20.1x", 0) == "0 " +string.format("%0#-+20.1x", 1) == "0x1 " +string.format("%0#-+20.1x", -1) == "0xffffffffffffffff " +string.format("%0#-+20.1x", 2) == "0x2 " +string.format("%0#-+20.1x", -2) == "0xfffffffffffffffe " +string.format("%0#-+20.1x", 3) == "0x3 " +string.format("%0#-+20.1x", -3) == "0xfffffffffffffffd " +string.format("%0#-+20.1x", 100) == "0x64 " +string.format("%0#-+20.1x", 10000) == "0x2710 " +string.format("%0#-+20.1x", 100000) == "0x186a0 " +string.format("%0#-+20.1x", 1000000) == "0xf4240 " +string.format("%0#-+20.1x", 10000000) == "0x989680 " +string.format("%0#-+20.6x", 0) == "000000 " +string.format("%0#-+20.6x", 1) == "0x000001 " +string.format("%0#-+20.6x", -1) == "0xffffffffffffffff " +string.format("%0#-+20.6x", 2) == "0x000002 " +string.format("%0#-+20.6x", -2) == "0xfffffffffffffffe " +string.format("%0#-+20.6x", 3) == "0x000003 " +string.format("%0#-+20.6x", -3) == "0xfffffffffffffffd " +string.format("%0#-+20.6x", 100) == "0x000064 " +string.format("%0#-+20.6x", 10000) == "0x002710 " +string.format("%0#-+20.6x", 100000) == "0x0186a0 " +string.format("%0#-+20.6x", 1000000) == "0x0f4240 " +string.format("%0#-+20.6x", 10000000) == "0x989680 " +string.format("%0# x", 0) == "0" +string.format("%0# x", 1) == "0x1" +string.format("%0# x", -1) == "0xffffffffffffffff" +string.format("%0# x", 2) == "0x2" +string.format("%0# x", -2) == "0xfffffffffffffffe" +string.format("%0# x", 3) == "0x3" +string.format("%0# x", -3) == "0xfffffffffffffffd" +string.format("%0# x", 100) == "0x64" +string.format("%0# x", 10000) == "0x2710" +string.format("%0# x", 100000) == "0x186a0" +string.format("%0# x", 1000000) == "0xf4240" +string.format("%0# x", 10000000) == "0x989680" +string.format("%0# .0x", 0) == "" +string.format("%0# .6x", 0) == "000000" +string.format("%0# .6x", 1) == "0x000001" +string.format("%0# .6x", 2) == "0x000002" +string.format("%0# .6x", 3) == "0x000003" +string.format("%0# .6x", 100) == "0x000064" +string.format("%0# .6x", 10000) == "0x002710" +string.format("%0# .6x", 100000) == "0x0186a0" +string.format("%0# .6x", 1000000) == "0x0f4240" +string.format("%0# 1.0x", 0) == " " +string.format("%0# 1.6x", 0) == "000000" +string.format("%0# 1.6x", 1) == "0x000001" +string.format("%0# 1.6x", 2) == "0x000002" +string.format("%0# 1.6x", 3) == "0x000003" +string.format("%0# 1.6x", 100) == "0x000064" +string.format("%0# 1.6x", 10000) == "0x002710" +string.format("%0# 1.6x", 100000) == "0x0186a0" +string.format("%0# 1.6x", 1000000) == "0x0f4240" +string.format("%0# 2x", 0) == "00" +string.format("%0# 2.0x", 0) == " " +string.format("%0# 2.1x", 0) == " 0" +string.format("%0# 2.6x", 0) == "000000" +string.format("%0# 2.6x", 1) == "0x000001" +string.format("%0# 2.6x", 2) == "0x000002" +string.format("%0# 2.6x", 3) == "0x000003" +string.format("%0# 2.6x", 100) == "0x000064" +string.format("%0# 2.6x", 10000) == "0x002710" +string.format("%0# 2.6x", 100000) == "0x0186a0" +string.format("%0# 2.6x", 1000000) == "0x0f4240" +string.format("%0# 6x", 0) == "000000" +string.format("%0# 6x", 1) == "0x0001" +string.format("%0# 6x", 2) == "0x0002" +string.format("%0# 6x", 3) == "0x0003" +string.format("%0# 6x", 100) == "0x0064" +string.format("%0# 6.0x", 0) == " " +string.format("%0# 6.0x", 1) == " 0x1" +string.format("%0# 6.0x", 2) == " 0x2" +string.format("%0# 6.0x", 3) == " 0x3" +string.format("%0# 6.0x", 100) == " 0x64" +string.format("%0# 6.1x", 0) == " 0" +string.format("%0# 6.1x", 1) == " 0x1" +string.format("%0# 6.1x", 2) == " 0x2" +string.format("%0# 6.1x", 3) == " 0x3" +string.format("%0# 6.1x", 100) == " 0x64" +string.format("%0# 6.6x", 0) == "000000" +string.format("%0# 6.6x", 1) == "0x000001" +string.format("%0# 6.6x", 2) == "0x000002" +string.format("%0# 6.6x", 3) == "0x000003" +string.format("%0# 6.6x", 100) == "0x000064" +string.format("%0# 6.6x", 10000) == "0x002710" +string.format("%0# 6.6x", 100000) == "0x0186a0" +string.format("%0# 6.6x", 1000000) == "0x0f4240" +string.format("%0# 20x", 0) == "00000000000000000000" +string.format("%0# 20x", 1) == "0x000000000000000001" +string.format("%0# 20x", -1) == "0x00ffffffffffffffff" +string.format("%0# 20x", 2) == "0x000000000000000002" +string.format("%0# 20x", -2) == "0x00fffffffffffffffe" +string.format("%0# 20x", 3) == "0x000000000000000003" +string.format("%0# 20x", -3) == "0x00fffffffffffffffd" +string.format("%0# 20x", 100) == "0x000000000000000064" +string.format("%0# 20x", 10000) == "0x000000000000002710" +string.format("%0# 20x", 100000) == "0x0000000000000186a0" +string.format("%0# 20x", 1000000) == "0x0000000000000f4240" +string.format("%0# 20x", 10000000) == "0x000000000000989680" +string.format("%0# 20.0x", 0) == " " +string.format("%0# 20.0x", 1) == " 0x1" +string.format("%0# 20.0x", -1) == " 0xffffffffffffffff" +string.format("%0# 20.0x", 2) == " 0x2" +string.format("%0# 20.0x", -2) == " 0xfffffffffffffffe" +string.format("%0# 20.0x", 3) == " 0x3" +string.format("%0# 20.0x", -3) == " 0xfffffffffffffffd" +string.format("%0# 20.0x", 100) == " 0x64" +string.format("%0# 20.0x", 10000) == " 0x2710" +string.format("%0# 20.0x", 100000) == " 0x186a0" +string.format("%0# 20.0x", 1000000) == " 0xf4240" +string.format("%0# 20.0x", 10000000) == " 0x989680" +string.format("%0# 20.1x", 0) == " 0" +string.format("%0# 20.1x", 1) == " 0x1" +string.format("%0# 20.1x", -1) == " 0xffffffffffffffff" +string.format("%0# 20.1x", 2) == " 0x2" +string.format("%0# 20.1x", -2) == " 0xfffffffffffffffe" +string.format("%0# 20.1x", 3) == " 0x3" +string.format("%0# 20.1x", -3) == " 0xfffffffffffffffd" +string.format("%0# 20.1x", 100) == " 0x64" +string.format("%0# 20.1x", 10000) == " 0x2710" +string.format("%0# 20.1x", 100000) == " 0x186a0" +string.format("%0# 20.1x", 1000000) == " 0xf4240" +string.format("%0# 20.1x", 10000000) == " 0x989680" +string.format("%0# 20.6x", 0) == " 000000" +string.format("%0# 20.6x", 1) == " 0x000001" +string.format("%0# 20.6x", -1) == " 0xffffffffffffffff" +string.format("%0# 20.6x", 2) == " 0x000002" +string.format("%0# 20.6x", -2) == " 0xfffffffffffffffe" +string.format("%0# 20.6x", 3) == " 0x000003" +string.format("%0# 20.6x", -3) == " 0xfffffffffffffffd" +string.format("%0# 20.6x", 100) == " 0x000064" +string.format("%0# 20.6x", 10000) == " 0x002710" +string.format("%0# 20.6x", 100000) == " 0x0186a0" +string.format("%0# 20.6x", 1000000) == " 0x0f4240" +string.format("%0# 20.6x", 10000000) == " 0x989680" +string.format("%0# +x", 0) == "0" +string.format("%0# +x", 1) == "0x1" +string.format("%0# +x", -1) == "0xffffffffffffffff" +string.format("%0# +x", 2) == "0x2" +string.format("%0# +x", -2) == "0xfffffffffffffffe" +string.format("%0# +x", 3) == "0x3" +string.format("%0# +x", -3) == "0xfffffffffffffffd" +string.format("%0# +x", 100) == "0x64" +string.format("%0# +x", 10000) == "0x2710" +string.format("%0# +x", 100000) == "0x186a0" +string.format("%0# +x", 1000000) == "0xf4240" +string.format("%0# +x", 10000000) == "0x989680" +string.format("%0# +.0x", 0) == "" +string.format("%0# +.6x", 0) == "000000" +string.format("%0# +.6x", 1) == "0x000001" +string.format("%0# +.6x", 2) == "0x000002" +string.format("%0# +.6x", 3) == "0x000003" +string.format("%0# +.6x", 100) == "0x000064" +string.format("%0# +.6x", 10000) == "0x002710" +string.format("%0# +.6x", 100000) == "0x0186a0" +string.format("%0# +.6x", 1000000) == "0x0f4240" +string.format("%0# +1.0x", 0) == " " +string.format("%0# +1.6x", 0) == "000000" +string.format("%0# +1.6x", 1) == "0x000001" +string.format("%0# +1.6x", 2) == "0x000002" +string.format("%0# +1.6x", 3) == "0x000003" +string.format("%0# +1.6x", 100) == "0x000064" +string.format("%0# +1.6x", 10000) == "0x002710" +string.format("%0# +1.6x", 100000) == "0x0186a0" +string.format("%0# +1.6x", 1000000) == "0x0f4240" +string.format("%0# +2x", 0) == "00" +string.format("%0# +2.0x", 0) == " " +string.format("%0# +2.1x", 0) == " 0" +string.format("%0# +2.6x", 0) == "000000" +string.format("%0# +2.6x", 1) == "0x000001" +string.format("%0# +2.6x", 2) == "0x000002" +string.format("%0# +2.6x", 3) == "0x000003" +string.format("%0# +2.6x", 100) == "0x000064" +string.format("%0# +2.6x", 10000) == "0x002710" +string.format("%0# +2.6x", 100000) == "0x0186a0" +string.format("%0# +2.6x", 1000000) == "0x0f4240" +string.format("%0# +6x", 0) == "000000" +string.format("%0# +6x", 1) == "0x0001" +string.format("%0# +6x", 2) == "0x0002" +string.format("%0# +6x", 3) == "0x0003" +string.format("%0# +6x", 100) == "0x0064" +string.format("%0# +6.0x", 0) == " " +string.format("%0# +6.0x", 1) == " 0x1" +string.format("%0# +6.0x", 2) == " 0x2" +string.format("%0# +6.0x", 3) == " 0x3" +string.format("%0# +6.0x", 100) == " 0x64" +string.format("%0# +6.1x", 0) == " 0" +string.format("%0# +6.1x", 1) == " 0x1" +string.format("%0# +6.1x", 2) == " 0x2" +string.format("%0# +6.1x", 3) == " 0x3" +string.format("%0# +6.1x", 100) == " 0x64" +string.format("%0# +6.6x", 0) == "000000" +string.format("%0# +6.6x", 1) == "0x000001" +string.format("%0# +6.6x", 2) == "0x000002" +string.format("%0# +6.6x", 3) == "0x000003" +string.format("%0# +6.6x", 100) == "0x000064" +string.format("%0# +6.6x", 10000) == "0x002710" +string.format("%0# +6.6x", 100000) == "0x0186a0" +string.format("%0# +6.6x", 1000000) == "0x0f4240" +string.format("%0# +20x", 0) == "00000000000000000000" +string.format("%0# +20x", 1) == "0x000000000000000001" +string.format("%0# +20x", -1) == "0x00ffffffffffffffff" +string.format("%0# +20x", 2) == "0x000000000000000002" +string.format("%0# +20x", -2) == "0x00fffffffffffffffe" +string.format("%0# +20x", 3) == "0x000000000000000003" +string.format("%0# +20x", -3) == "0x00fffffffffffffffd" +string.format("%0# +20x", 100) == "0x000000000000000064" +string.format("%0# +20x", 10000) == "0x000000000000002710" +string.format("%0# +20x", 100000) == "0x0000000000000186a0" +string.format("%0# +20x", 1000000) == "0x0000000000000f4240" +string.format("%0# +20x", 10000000) == "0x000000000000989680" +string.format("%0# +20.0x", 0) == " " +string.format("%0# +20.0x", 1) == " 0x1" +string.format("%0# +20.0x", -1) == " 0xffffffffffffffff" +string.format("%0# +20.0x", 2) == " 0x2" +string.format("%0# +20.0x", -2) == " 0xfffffffffffffffe" +string.format("%0# +20.0x", 3) == " 0x3" +string.format("%0# +20.0x", -3) == " 0xfffffffffffffffd" +string.format("%0# +20.0x", 100) == " 0x64" +string.format("%0# +20.0x", 10000) == " 0x2710" +string.format("%0# +20.0x", 100000) == " 0x186a0" +string.format("%0# +20.0x", 1000000) == " 0xf4240" +string.format("%0# +20.0x", 10000000) == " 0x989680" +string.format("%0# +20.1x", 0) == " 0" +string.format("%0# +20.1x", 1) == " 0x1" +string.format("%0# +20.1x", -1) == " 0xffffffffffffffff" +string.format("%0# +20.1x", 2) == " 0x2" +string.format("%0# +20.1x", -2) == " 0xfffffffffffffffe" +string.format("%0# +20.1x", 3) == " 0x3" +string.format("%0# +20.1x", -3) == " 0xfffffffffffffffd" +string.format("%0# +20.1x", 100) == " 0x64" +string.format("%0# +20.1x", 10000) == " 0x2710" +string.format("%0# +20.1x", 100000) == " 0x186a0" +string.format("%0# +20.1x", 1000000) == " 0xf4240" +string.format("%0# +20.1x", 10000000) == " 0x989680" +string.format("%0# +20.6x", 0) == " 000000" +string.format("%0# +20.6x", 1) == " 0x000001" +string.format("%0# +20.6x", -1) == " 0xffffffffffffffff" +string.format("%0# +20.6x", 2) == " 0x000002" +string.format("%0# +20.6x", -2) == " 0xfffffffffffffffe" +string.format("%0# +20.6x", 3) == " 0x000003" +string.format("%0# +20.6x", -3) == " 0xfffffffffffffffd" +string.format("%0# +20.6x", 100) == " 0x000064" +string.format("%0# +20.6x", 10000) == " 0x002710" +string.format("%0# +20.6x", 100000) == " 0x0186a0" +string.format("%0# +20.6x", 1000000) == " 0x0f4240" +string.format("%0# +20.6x", 10000000) == " 0x989680" +string.format("%0# -x", 0) == "0" +string.format("%0# -x", 1) == "0x1" +string.format("%0# -x", -1) == "0xffffffffffffffff" +string.format("%0# -x", 2) == "0x2" +string.format("%0# -x", -2) == "0xfffffffffffffffe" +string.format("%0# -x", 3) == "0x3" +string.format("%0# -x", -3) == "0xfffffffffffffffd" +string.format("%0# -x", 100) == "0x64" +string.format("%0# -x", 10000) == "0x2710" +string.format("%0# -x", 100000) == "0x186a0" +string.format("%0# -x", 1000000) == "0xf4240" +string.format("%0# -x", 10000000) == "0x989680" +string.format("%0# -.0x", 0) == "" +string.format("%0# -.6x", 0) == "000000" +string.format("%0# -.6x", 1) == "0x000001" +string.format("%0# -.6x", 2) == "0x000002" +string.format("%0# -.6x", 3) == "0x000003" +string.format("%0# -.6x", 100) == "0x000064" +string.format("%0# -.6x", 10000) == "0x002710" +string.format("%0# -.6x", 100000) == "0x0186a0" +string.format("%0# -.6x", 1000000) == "0x0f4240" +string.format("%0# -1.0x", 0) == " " +string.format("%0# -1.6x", 0) == "000000" +string.format("%0# -1.6x", 1) == "0x000001" +string.format("%0# -1.6x", 2) == "0x000002" +string.format("%0# -1.6x", 3) == "0x000003" +string.format("%0# -1.6x", 100) == "0x000064" +string.format("%0# -1.6x", 10000) == "0x002710" +string.format("%0# -1.6x", 100000) == "0x0186a0" +string.format("%0# -1.6x", 1000000) == "0x0f4240" +string.format("%0# -2x", 0) == "0 " +string.format("%0# -2.0x", 0) == " " +string.format("%0# -2.1x", 0) == "0 " +string.format("%0# -2.6x", 0) == "000000" +string.format("%0# -2.6x", 1) == "0x000001" +string.format("%0# -2.6x", 2) == "0x000002" +string.format("%0# -2.6x", 3) == "0x000003" +string.format("%0# -2.6x", 100) == "0x000064" +string.format("%0# -2.6x", 10000) == "0x002710" +string.format("%0# -2.6x", 100000) == "0x0186a0" +string.format("%0# -2.6x", 1000000) == "0x0f4240" +string.format("%0# -6x", 0) == "0 " +string.format("%0# -6x", 1) == "0x1 " +string.format("%0# -6x", 2) == "0x2 " +string.format("%0# -6x", 3) == "0x3 " +string.format("%0# -6x", 100) == "0x64 " +string.format("%0# -6.0x", 0) == " " +string.format("%0# -6.0x", 1) == "0x1 " +string.format("%0# -6.0x", 2) == "0x2 " +string.format("%0# -6.0x", 3) == "0x3 " +string.format("%0# -6.0x", 100) == "0x64 " +string.format("%0# -6.1x", 0) == "0 " +string.format("%0# -6.1x", 1) == "0x1 " +string.format("%0# -6.1x", 2) == "0x2 " +string.format("%0# -6.1x", 3) == "0x3 " +string.format("%0# -6.1x", 100) == "0x64 " +string.format("%0# -6.6x", 0) == "000000" +string.format("%0# -6.6x", 1) == "0x000001" +string.format("%0# -6.6x", 2) == "0x000002" +string.format("%0# -6.6x", 3) == "0x000003" +string.format("%0# -6.6x", 100) == "0x000064" +string.format("%0# -6.6x", 10000) == "0x002710" +string.format("%0# -6.6x", 100000) == "0x0186a0" +string.format("%0# -6.6x", 1000000) == "0x0f4240" +string.format("%0# -20x", 0) == "0 " +string.format("%0# -20x", 1) == "0x1 " +string.format("%0# -20x", -1) == "0xffffffffffffffff " +string.format("%0# -20x", 2) == "0x2 " +string.format("%0# -20x", -2) == "0xfffffffffffffffe " +string.format("%0# -20x", 3) == "0x3 " +string.format("%0# -20x", -3) == "0xfffffffffffffffd " +string.format("%0# -20x", 100) == "0x64 " +string.format("%0# -20x", 10000) == "0x2710 " +string.format("%0# -20x", 100000) == "0x186a0 " +string.format("%0# -20x", 1000000) == "0xf4240 " +string.format("%0# -20x", 10000000) == "0x989680 " +string.format("%0# -20.0x", 0) == " " +string.format("%0# -20.0x", 1) == "0x1 " +string.format("%0# -20.0x", -1) == "0xffffffffffffffff " +string.format("%0# -20.0x", 2) == "0x2 " +string.format("%0# -20.0x", -2) == "0xfffffffffffffffe " +string.format("%0# -20.0x", 3) == "0x3 " +string.format("%0# -20.0x", -3) == "0xfffffffffffffffd " +string.format("%0# -20.0x", 100) == "0x64 " +string.format("%0# -20.0x", 10000) == "0x2710 " +string.format("%0# -20.0x", 100000) == "0x186a0 " +string.format("%0# -20.0x", 1000000) == "0xf4240 " +string.format("%0# -20.0x", 10000000) == "0x989680 " +string.format("%0# -20.1x", 0) == "0 " +string.format("%0# -20.1x", 1) == "0x1 " +string.format("%0# -20.1x", -1) == "0xffffffffffffffff " +string.format("%0# -20.1x", 2) == "0x2 " +string.format("%0# -20.1x", -2) == "0xfffffffffffffffe " +string.format("%0# -20.1x", 3) == "0x3 " +string.format("%0# -20.1x", -3) == "0xfffffffffffffffd " +string.format("%0# -20.1x", 100) == "0x64 " +string.format("%0# -20.1x", 10000) == "0x2710 " +string.format("%0# -20.1x", 100000) == "0x186a0 " +string.format("%0# -20.1x", 1000000) == "0xf4240 " +string.format("%0# -20.1x", 10000000) == "0x989680 " +string.format("%0# -20.6x", 0) == "000000 " +string.format("%0# -20.6x", 1) == "0x000001 " +string.format("%0# -20.6x", -1) == "0xffffffffffffffff " +string.format("%0# -20.6x", 2) == "0x000002 " +string.format("%0# -20.6x", -2) == "0xfffffffffffffffe " +string.format("%0# -20.6x", 3) == "0x000003 " +string.format("%0# -20.6x", -3) == "0xfffffffffffffffd " +string.format("%0# -20.6x", 100) == "0x000064 " +string.format("%0# -20.6x", 10000) == "0x002710 " +string.format("%0# -20.6x", 100000) == "0x0186a0 " +string.format("%0# -20.6x", 1000000) == "0x0f4240 " +string.format("%0# -20.6x", 10000000) == "0x989680 " +string.format("%0# -+x", 0) == "0" +string.format("%0# -+x", 1) == "0x1" +string.format("%0# -+x", -1) == "0xffffffffffffffff" +string.format("%0# -+x", 2) == "0x2" +string.format("%0# -+x", -2) == "0xfffffffffffffffe" +string.format("%0# -+x", 3) == "0x3" +string.format("%0# -+x", -3) == "0xfffffffffffffffd" +string.format("%0# -+x", 100) == "0x64" +string.format("%0# -+x", 10000) == "0x2710" +string.format("%0# -+x", 100000) == "0x186a0" +string.format("%0# -+x", 1000000) == "0xf4240" +string.format("%0# -+x", 10000000) == "0x989680" +string.format("%0# -+.0x", 0) == "" +string.format("%0# -+.6x", 0) == "000000" +string.format("%0# -+.6x", 1) == "0x000001" +string.format("%0# -+.6x", 2) == "0x000002" +string.format("%0# -+.6x", 3) == "0x000003" +string.format("%0# -+.6x", 100) == "0x000064" +string.format("%0# -+.6x", 10000) == "0x002710" +string.format("%0# -+.6x", 100000) == "0x0186a0" +string.format("%0# -+.6x", 1000000) == "0x0f4240" +string.format("%0# -+1.0x", 0) == " " +string.format("%0# -+1.6x", 0) == "000000" +string.format("%0# -+1.6x", 1) == "0x000001" +string.format("%0# -+1.6x", 2) == "0x000002" +string.format("%0# -+1.6x", 3) == "0x000003" +string.format("%0# -+1.6x", 100) == "0x000064" +string.format("%0# -+1.6x", 10000) == "0x002710" +string.format("%0# -+1.6x", 100000) == "0x0186a0" +string.format("%0# -+1.6x", 1000000) == "0x0f4240" +string.format("%0# -+2x", 0) == "0 " +string.format("%0# -+2.0x", 0) == " " +string.format("%0# -+2.1x", 0) == "0 " +string.format("%0# -+2.6x", 0) == "000000" +string.format("%0# -+2.6x", 1) == "0x000001" +string.format("%0# -+2.6x", 2) == "0x000002" +string.format("%0# -+2.6x", 3) == "0x000003" +string.format("%0# -+2.6x", 100) == "0x000064" +string.format("%0# -+2.6x", 10000) == "0x002710" +string.format("%0# -+2.6x", 100000) == "0x0186a0" +string.format("%0# -+2.6x", 1000000) == "0x0f4240" +string.format("%0# -+6x", 0) == "0 " +string.format("%0# -+6x", 1) == "0x1 " +string.format("%0# -+6x", 2) == "0x2 " +string.format("%0# -+6x", 3) == "0x3 " +string.format("%0# -+6x", 100) == "0x64 " +string.format("%0# -+6.0x", 0) == " " +string.format("%0# -+6.0x", 1) == "0x1 " +string.format("%0# -+6.0x", 2) == "0x2 " +string.format("%0# -+6.0x", 3) == "0x3 " +string.format("%0# -+6.0x", 100) == "0x64 " +string.format("%0# -+6.1x", 0) == "0 " +string.format("%0# -+6.1x", 1) == "0x1 " +string.format("%0# -+6.1x", 2) == "0x2 " +string.format("%0# -+6.1x", 3) == "0x3 " +string.format("%0# -+6.1x", 100) == "0x64 " +string.format("%0# -+6.6x", 0) == "000000" +string.format("%0# -+6.6x", 1) == "0x000001" +string.format("%0# -+6.6x", 2) == "0x000002" +string.format("%0# -+6.6x", 3) == "0x000003" +string.format("%0# -+6.6x", 100) == "0x000064" +string.format("%0# -+6.6x", 10000) == "0x002710" +string.format("%0# -+6.6x", 100000) == "0x0186a0" +string.format("%0# -+6.6x", 1000000) == "0x0f4240" +string.format("%0# -+20x", 0) == "0 " +string.format("%0# -+20x", 1) == "0x1 " +string.format("%0# -+20x", -1) == "0xffffffffffffffff " +string.format("%0# -+20x", 2) == "0x2 " +string.format("%0# -+20x", -2) == "0xfffffffffffffffe " +string.format("%0# -+20x", 3) == "0x3 " +string.format("%0# -+20x", -3) == "0xfffffffffffffffd " +string.format("%0# -+20x", 100) == "0x64 " +string.format("%0# -+20x", 10000) == "0x2710 " +string.format("%0# -+20x", 100000) == "0x186a0 " +string.format("%0# -+20x", 1000000) == "0xf4240 " +string.format("%0# -+20x", 10000000) == "0x989680 " +string.format("%0# -+20.0x", 0) == " " +string.format("%0# -+20.0x", 1) == "0x1 " +string.format("%0# -+20.0x", -1) == "0xffffffffffffffff " +string.format("%0# -+20.0x", 2) == "0x2 " +string.format("%0# -+20.0x", -2) == "0xfffffffffffffffe " +string.format("%0# -+20.0x", 3) == "0x3 " +string.format("%0# -+20.0x", -3) == "0xfffffffffffffffd " +string.format("%0# -+20.0x", 100) == "0x64 " +string.format("%0# -+20.0x", 10000) == "0x2710 " +string.format("%0# -+20.0x", 100000) == "0x186a0 " +string.format("%0# -+20.0x", 1000000) == "0xf4240 " +string.format("%0# -+20.0x", 10000000) == "0x989680 " +string.format("%0# -+20.1x", 0) == "0 " +string.format("%0# -+20.1x", 1) == "0x1 " +string.format("%0# -+20.1x", -1) == "0xffffffffffffffff " +string.format("%0# -+20.1x", 2) == "0x2 " +string.format("%0# -+20.1x", -2) == "0xfffffffffffffffe " +string.format("%0# -+20.1x", 3) == "0x3 " +string.format("%0# -+20.1x", -3) == "0xfffffffffffffffd " +string.format("%0# -+20.1x", 100) == "0x64 " +string.format("%0# -+20.1x", 10000) == "0x2710 " +string.format("%0# -+20.1x", 100000) == "0x186a0 " +string.format("%0# -+20.1x", 1000000) == "0xf4240 " +string.format("%0# -+20.1x", 10000000) == "0x989680 " +string.format("%0# -+20.6x", 0) == "000000 " +string.format("%0# -+20.6x", 1) == "0x000001 " +string.format("%0# -+20.6x", -1) == "0xffffffffffffffff " +string.format("%0# -+20.6x", 2) == "0x000002 " +string.format("%0# -+20.6x", -2) == "0xfffffffffffffffe " +string.format("%0# -+20.6x", 3) == "0x000003 " +string.format("%0# -+20.6x", -3) == "0xfffffffffffffffd " +string.format("%0# -+20.6x", 100) == "0x000064 " +string.format("%0# -+20.6x", 10000) == "0x002710 " +string.format("%0# -+20.6x", 100000) == "0x0186a0 " +string.format("%0# -+20.6x", 1000000) == "0x0f4240 " +string.format("%0# -+20.6x", 10000000) == "0x989680 " += X = +string.format("%X", 0) == "0" +string.format("%X", 1) == "1" +string.format("%X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%X", 2) == "2" +string.format("%X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%X", 3) == "3" +string.format("%X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%X", 100) == "64" +string.format("%X", 10000) == "2710" +string.format("%X", 100000) == "186A0" +string.format("%X", 1000000) == "F4240" +string.format("%X", 10000000) == "989680" +string.format("%.0X", 0) == "" +string.format("%.6X", 0) == "000000" +string.format("%.6X", 1) == "000001" +string.format("%.6X", 2) == "000002" +string.format("%.6X", 3) == "000003" +string.format("%.6X", 100) == "000064" +string.format("%.6X", 10000) == "002710" +string.format("%.6X", 100000) == "0186A0" +string.format("%.6X", 1000000) == "0F4240" +string.format("%1.0X", 0) == " " +string.format("%1.6X", 0) == "000000" +string.format("%1.6X", 1) == "000001" +string.format("%1.6X", 2) == "000002" +string.format("%1.6X", 3) == "000003" +string.format("%1.6X", 100) == "000064" +string.format("%1.6X", 10000) == "002710" +string.format("%1.6X", 100000) == "0186A0" +string.format("%1.6X", 1000000) == "0F4240" +string.format("%2X", 0) == " 0" +string.format("%2X", 1) == " 1" +string.format("%2X", 2) == " 2" +string.format("%2X", 3) == " 3" +string.format("%2.0X", 0) == " " +string.format("%2.0X", 1) == " 1" +string.format("%2.0X", 2) == " 2" +string.format("%2.0X", 3) == " 3" +string.format("%2.1X", 0) == " 0" +string.format("%2.1X", 1) == " 1" +string.format("%2.1X", 2) == " 2" +string.format("%2.1X", 3) == " 3" +string.format("%2.6X", 0) == "000000" +string.format("%2.6X", 1) == "000001" +string.format("%2.6X", 2) == "000002" +string.format("%2.6X", 3) == "000003" +string.format("%2.6X", 100) == "000064" +string.format("%2.6X", 10000) == "002710" +string.format("%2.6X", 100000) == "0186A0" +string.format("%2.6X", 1000000) == "0F4240" +string.format("%6X", 0) == " 0" +string.format("%6X", 1) == " 1" +string.format("%6X", 2) == " 2" +string.format("%6X", 3) == " 3" +string.format("%6X", 100) == " 64" +string.format("%6X", 10000) == " 2710" +string.format("%6X", 100000) == " 186A0" +string.format("%6X", 1000000) == " F4240" +string.format("%6.0X", 0) == " " +string.format("%6.0X", 1) == " 1" +string.format("%6.0X", 2) == " 2" +string.format("%6.0X", 3) == " 3" +string.format("%6.0X", 100) == " 64" +string.format("%6.0X", 10000) == " 2710" +string.format("%6.0X", 100000) == " 186A0" +string.format("%6.0X", 1000000) == " F4240" +string.format("%6.1X", 0) == " 0" +string.format("%6.1X", 1) == " 1" +string.format("%6.1X", 2) == " 2" +string.format("%6.1X", 3) == " 3" +string.format("%6.1X", 100) == " 64" +string.format("%6.1X", 10000) == " 2710" +string.format("%6.1X", 100000) == " 186A0" +string.format("%6.1X", 1000000) == " F4240" +string.format("%6.6X", 0) == "000000" +string.format("%6.6X", 1) == "000001" +string.format("%6.6X", 2) == "000002" +string.format("%6.6X", 3) == "000003" +string.format("%6.6X", 100) == "000064" +string.format("%6.6X", 10000) == "002710" +string.format("%6.6X", 100000) == "0186A0" +string.format("%6.6X", 1000000) == "0F4240" +string.format("%20X", 0) == " 0" +string.format("%20X", 1) == " 1" +string.format("%20X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%20X", 2) == " 2" +string.format("%20X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%20X", 3) == " 3" +string.format("%20X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%20X", 100) == " 64" +string.format("%20X", 10000) == " 2710" +string.format("%20X", 100000) == " 186A0" +string.format("%20X", 1000000) == " F4240" +string.format("%20X", 10000000) == " 989680" +string.format("%20.0X", 0) == " " +string.format("%20.0X", 1) == " 1" +string.format("%20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%20.0X", 2) == " 2" +string.format("%20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%20.0X", 3) == " 3" +string.format("%20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%20.0X", 100) == " 64" +string.format("%20.0X", 10000) == " 2710" +string.format("%20.0X", 100000) == " 186A0" +string.format("%20.0X", 1000000) == " F4240" +string.format("%20.0X", 10000000) == " 989680" +string.format("%20.1X", 0) == " 0" +string.format("%20.1X", 1) == " 1" +string.format("%20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%20.1X", 2) == " 2" +string.format("%20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%20.1X", 3) == " 3" +string.format("%20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%20.1X", 100) == " 64" +string.format("%20.1X", 10000) == " 2710" +string.format("%20.1X", 100000) == " 186A0" +string.format("%20.1X", 1000000) == " F4240" +string.format("%20.1X", 10000000) == " 989680" +string.format("%20.6X", 0) == " 000000" +string.format("%20.6X", 1) == " 000001" +string.format("%20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%20.6X", 2) == " 000002" +string.format("%20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%20.6X", 3) == " 000003" +string.format("%20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%20.6X", 100) == " 000064" +string.format("%20.6X", 10000) == " 002710" +string.format("%20.6X", 100000) == " 0186A0" +string.format("%20.6X", 1000000) == " 0F4240" +string.format("%20.6X", 10000000) == " 989680" +string.format("%+X", 0) == "0" +string.format("%+X", 1) == "1" +string.format("%+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%+X", 2) == "2" +string.format("%+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%+X", 3) == "3" +string.format("%+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%+X", 100) == "64" +string.format("%+X", 10000) == "2710" +string.format("%+X", 100000) == "186A0" +string.format("%+X", 1000000) == "F4240" +string.format("%+X", 10000000) == "989680" +string.format("%+.0X", 0) == "" +string.format("%+.6X", 0) == "000000" +string.format("%+.6X", 1) == "000001" +string.format("%+.6X", 2) == "000002" +string.format("%+.6X", 3) == "000003" +string.format("%+.6X", 100) == "000064" +string.format("%+.6X", 10000) == "002710" +string.format("%+.6X", 100000) == "0186A0" +string.format("%+.6X", 1000000) == "0F4240" +string.format("%+1.0X", 0) == " " +string.format("%+1.6X", 0) == "000000" +string.format("%+1.6X", 1) == "000001" +string.format("%+1.6X", 2) == "000002" +string.format("%+1.6X", 3) == "000003" +string.format("%+1.6X", 100) == "000064" +string.format("%+1.6X", 10000) == "002710" +string.format("%+1.6X", 100000) == "0186A0" +string.format("%+1.6X", 1000000) == "0F4240" +string.format("%+2X", 0) == " 0" +string.format("%+2X", 1) == " 1" +string.format("%+2X", 2) == " 2" +string.format("%+2X", 3) == " 3" +string.format("%+2.0X", 0) == " " +string.format("%+2.0X", 1) == " 1" +string.format("%+2.0X", 2) == " 2" +string.format("%+2.0X", 3) == " 3" +string.format("%+2.1X", 0) == " 0" +string.format("%+2.1X", 1) == " 1" +string.format("%+2.1X", 2) == " 2" +string.format("%+2.1X", 3) == " 3" +string.format("%+2.6X", 0) == "000000" +string.format("%+2.6X", 1) == "000001" +string.format("%+2.6X", 2) == "000002" +string.format("%+2.6X", 3) == "000003" +string.format("%+2.6X", 100) == "000064" +string.format("%+2.6X", 10000) == "002710" +string.format("%+2.6X", 100000) == "0186A0" +string.format("%+2.6X", 1000000) == "0F4240" +string.format("%+6X", 0) == " 0" +string.format("%+6X", 1) == " 1" +string.format("%+6X", 2) == " 2" +string.format("%+6X", 3) == " 3" +string.format("%+6X", 100) == " 64" +string.format("%+6X", 10000) == " 2710" +string.format("%+6X", 100000) == " 186A0" +string.format("%+6X", 1000000) == " F4240" +string.format("%+6.0X", 0) == " " +string.format("%+6.0X", 1) == " 1" +string.format("%+6.0X", 2) == " 2" +string.format("%+6.0X", 3) == " 3" +string.format("%+6.0X", 100) == " 64" +string.format("%+6.0X", 10000) == " 2710" +string.format("%+6.0X", 100000) == " 186A0" +string.format("%+6.0X", 1000000) == " F4240" +string.format("%+6.1X", 0) == " 0" +string.format("%+6.1X", 1) == " 1" +string.format("%+6.1X", 2) == " 2" +string.format("%+6.1X", 3) == " 3" +string.format("%+6.1X", 100) == " 64" +string.format("%+6.1X", 10000) == " 2710" +string.format("%+6.1X", 100000) == " 186A0" +string.format("%+6.1X", 1000000) == " F4240" +string.format("%+6.6X", 0) == "000000" +string.format("%+6.6X", 1) == "000001" +string.format("%+6.6X", 2) == "000002" +string.format("%+6.6X", 3) == "000003" +string.format("%+6.6X", 100) == "000064" +string.format("%+6.6X", 10000) == "002710" +string.format("%+6.6X", 100000) == "0186A0" +string.format("%+6.6X", 1000000) == "0F4240" +string.format("%+20X", 0) == " 0" +string.format("%+20X", 1) == " 1" +string.format("%+20X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%+20X", 2) == " 2" +string.format("%+20X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%+20X", 3) == " 3" +string.format("%+20X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%+20X", 100) == " 64" +string.format("%+20X", 10000) == " 2710" +string.format("%+20X", 100000) == " 186A0" +string.format("%+20X", 1000000) == " F4240" +string.format("%+20X", 10000000) == " 989680" +string.format("%+20.0X", 0) == " " +string.format("%+20.0X", 1) == " 1" +string.format("%+20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%+20.0X", 2) == " 2" +string.format("%+20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%+20.0X", 3) == " 3" +string.format("%+20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%+20.0X", 100) == " 64" +string.format("%+20.0X", 10000) == " 2710" +string.format("%+20.0X", 100000) == " 186A0" +string.format("%+20.0X", 1000000) == " F4240" +string.format("%+20.0X", 10000000) == " 989680" +string.format("%+20.1X", 0) == " 0" +string.format("%+20.1X", 1) == " 1" +string.format("%+20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%+20.1X", 2) == " 2" +string.format("%+20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%+20.1X", 3) == " 3" +string.format("%+20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%+20.1X", 100) == " 64" +string.format("%+20.1X", 10000) == " 2710" +string.format("%+20.1X", 100000) == " 186A0" +string.format("%+20.1X", 1000000) == " F4240" +string.format("%+20.1X", 10000000) == " 989680" +string.format("%+20.6X", 0) == " 000000" +string.format("%+20.6X", 1) == " 000001" +string.format("%+20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%+20.6X", 2) == " 000002" +string.format("%+20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%+20.6X", 3) == " 000003" +string.format("%+20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%+20.6X", 100) == " 000064" +string.format("%+20.6X", 10000) == " 002710" +string.format("%+20.6X", 100000) == " 0186A0" +string.format("%+20.6X", 1000000) == " 0F4240" +string.format("%+20.6X", 10000000) == " 989680" +string.format("%-X", 0) == "0" +string.format("%-X", 1) == "1" +string.format("%-X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%-X", 2) == "2" +string.format("%-X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%-X", 3) == "3" +string.format("%-X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%-X", 100) == "64" +string.format("%-X", 10000) == "2710" +string.format("%-X", 100000) == "186A0" +string.format("%-X", 1000000) == "F4240" +string.format("%-X", 10000000) == "989680" +string.format("%-.0X", 0) == "" +string.format("%-.6X", 0) == "000000" +string.format("%-.6X", 1) == "000001" +string.format("%-.6X", 2) == "000002" +string.format("%-.6X", 3) == "000003" +string.format("%-.6X", 100) == "000064" +string.format("%-.6X", 10000) == "002710" +string.format("%-.6X", 100000) == "0186A0" +string.format("%-.6X", 1000000) == "0F4240" +string.format("%-1.0X", 0) == " " +string.format("%-1.6X", 0) == "000000" +string.format("%-1.6X", 1) == "000001" +string.format("%-1.6X", 2) == "000002" +string.format("%-1.6X", 3) == "000003" +string.format("%-1.6X", 100) == "000064" +string.format("%-1.6X", 10000) == "002710" +string.format("%-1.6X", 100000) == "0186A0" +string.format("%-1.6X", 1000000) == "0F4240" +string.format("%-2X", 0) == "0 " +string.format("%-2X", 1) == "1 " +string.format("%-2X", 2) == "2 " +string.format("%-2X", 3) == "3 " +string.format("%-2.0X", 0) == " " +string.format("%-2.0X", 1) == "1 " +string.format("%-2.0X", 2) == "2 " +string.format("%-2.0X", 3) == "3 " +string.format("%-2.1X", 0) == "0 " +string.format("%-2.1X", 1) == "1 " +string.format("%-2.1X", 2) == "2 " +string.format("%-2.1X", 3) == "3 " +string.format("%-2.6X", 0) == "000000" +string.format("%-2.6X", 1) == "000001" +string.format("%-2.6X", 2) == "000002" +string.format("%-2.6X", 3) == "000003" +string.format("%-2.6X", 100) == "000064" +string.format("%-2.6X", 10000) == "002710" +string.format("%-2.6X", 100000) == "0186A0" +string.format("%-2.6X", 1000000) == "0F4240" +string.format("%-6X", 0) == "0 " +string.format("%-6X", 1) == "1 " +string.format("%-6X", 2) == "2 " +string.format("%-6X", 3) == "3 " +string.format("%-6X", 100) == "64 " +string.format("%-6X", 10000) == "2710 " +string.format("%-6X", 100000) == "186A0 " +string.format("%-6X", 1000000) == "F4240 " +string.format("%-6.0X", 0) == " " +string.format("%-6.0X", 1) == "1 " +string.format("%-6.0X", 2) == "2 " +string.format("%-6.0X", 3) == "3 " +string.format("%-6.0X", 100) == "64 " +string.format("%-6.0X", 10000) == "2710 " +string.format("%-6.0X", 100000) == "186A0 " +string.format("%-6.0X", 1000000) == "F4240 " +string.format("%-6.1X", 0) == "0 " +string.format("%-6.1X", 1) == "1 " +string.format("%-6.1X", 2) == "2 " +string.format("%-6.1X", 3) == "3 " +string.format("%-6.1X", 100) == "64 " +string.format("%-6.1X", 10000) == "2710 " +string.format("%-6.1X", 100000) == "186A0 " +string.format("%-6.1X", 1000000) == "F4240 " +string.format("%-6.6X", 0) == "000000" +string.format("%-6.6X", 1) == "000001" +string.format("%-6.6X", 2) == "000002" +string.format("%-6.6X", 3) == "000003" +string.format("%-6.6X", 100) == "000064" +string.format("%-6.6X", 10000) == "002710" +string.format("%-6.6X", 100000) == "0186A0" +string.format("%-6.6X", 1000000) == "0F4240" +string.format("%-20X", 0) == "0 " +string.format("%-20X", 1) == "1 " +string.format("%-20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-20X", 2) == "2 " +string.format("%-20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-20X", 3) == "3 " +string.format("%-20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-20X", 100) == "64 " +string.format("%-20X", 10000) == "2710 " +string.format("%-20X", 100000) == "186A0 " +string.format("%-20X", 1000000) == "F4240 " +string.format("%-20X", 10000000) == "989680 " +string.format("%-20.0X", 0) == " " +string.format("%-20.0X", 1) == "1 " +string.format("%-20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-20.0X", 2) == "2 " +string.format("%-20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-20.0X", 3) == "3 " +string.format("%-20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-20.0X", 100) == "64 " +string.format("%-20.0X", 10000) == "2710 " +string.format("%-20.0X", 100000) == "186A0 " +string.format("%-20.0X", 1000000) == "F4240 " +string.format("%-20.0X", 10000000) == "989680 " +string.format("%-20.1X", 0) == "0 " +string.format("%-20.1X", 1) == "1 " +string.format("%-20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-20.1X", 2) == "2 " +string.format("%-20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-20.1X", 3) == "3 " +string.format("%-20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-20.1X", 100) == "64 " +string.format("%-20.1X", 10000) == "2710 " +string.format("%-20.1X", 100000) == "186A0 " +string.format("%-20.1X", 1000000) == "F4240 " +string.format("%-20.1X", 10000000) == "989680 " +string.format("%-20.6X", 0) == "000000 " +string.format("%-20.6X", 1) == "000001 " +string.format("%-20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-20.6X", 2) == "000002 " +string.format("%-20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-20.6X", 3) == "000003 " +string.format("%-20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-20.6X", 100) == "000064 " +string.format("%-20.6X", 10000) == "002710 " +string.format("%-20.6X", 100000) == "0186A0 " +string.format("%-20.6X", 1000000) == "0F4240 " +string.format("%-20.6X", 10000000) == "989680 " +string.format("%-+X", 0) == "0" +string.format("%-+X", 1) == "1" +string.format("%-+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%-+X", 2) == "2" +string.format("%-+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%-+X", 3) == "3" +string.format("%-+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%-+X", 100) == "64" +string.format("%-+X", 10000) == "2710" +string.format("%-+X", 100000) == "186A0" +string.format("%-+X", 1000000) == "F4240" +string.format("%-+X", 10000000) == "989680" +string.format("%-+.0X", 0) == "" +string.format("%-+.6X", 0) == "000000" +string.format("%-+.6X", 1) == "000001" +string.format("%-+.6X", 2) == "000002" +string.format("%-+.6X", 3) == "000003" +string.format("%-+.6X", 100) == "000064" +string.format("%-+.6X", 10000) == "002710" +string.format("%-+.6X", 100000) == "0186A0" +string.format("%-+.6X", 1000000) == "0F4240" +string.format("%-+1.0X", 0) == " " +string.format("%-+1.6X", 0) == "000000" +string.format("%-+1.6X", 1) == "000001" +string.format("%-+1.6X", 2) == "000002" +string.format("%-+1.6X", 3) == "000003" +string.format("%-+1.6X", 100) == "000064" +string.format("%-+1.6X", 10000) == "002710" +string.format("%-+1.6X", 100000) == "0186A0" +string.format("%-+1.6X", 1000000) == "0F4240" +string.format("%-+2X", 0) == "0 " +string.format("%-+2X", 1) == "1 " +string.format("%-+2X", 2) == "2 " +string.format("%-+2X", 3) == "3 " +string.format("%-+2.0X", 0) == " " +string.format("%-+2.0X", 1) == "1 " +string.format("%-+2.0X", 2) == "2 " +string.format("%-+2.0X", 3) == "3 " +string.format("%-+2.1X", 0) == "0 " +string.format("%-+2.1X", 1) == "1 " +string.format("%-+2.1X", 2) == "2 " +string.format("%-+2.1X", 3) == "3 " +string.format("%-+2.6X", 0) == "000000" +string.format("%-+2.6X", 1) == "000001" +string.format("%-+2.6X", 2) == "000002" +string.format("%-+2.6X", 3) == "000003" +string.format("%-+2.6X", 100) == "000064" +string.format("%-+2.6X", 10000) == "002710" +string.format("%-+2.6X", 100000) == "0186A0" +string.format("%-+2.6X", 1000000) == "0F4240" +string.format("%-+6X", 0) == "0 " +string.format("%-+6X", 1) == "1 " +string.format("%-+6X", 2) == "2 " +string.format("%-+6X", 3) == "3 " +string.format("%-+6X", 100) == "64 " +string.format("%-+6X", 10000) == "2710 " +string.format("%-+6X", 100000) == "186A0 " +string.format("%-+6X", 1000000) == "F4240 " +string.format("%-+6.0X", 0) == " " +string.format("%-+6.0X", 1) == "1 " +string.format("%-+6.0X", 2) == "2 " +string.format("%-+6.0X", 3) == "3 " +string.format("%-+6.0X", 100) == "64 " +string.format("%-+6.0X", 10000) == "2710 " +string.format("%-+6.0X", 100000) == "186A0 " +string.format("%-+6.0X", 1000000) == "F4240 " +string.format("%-+6.1X", 0) == "0 " +string.format("%-+6.1X", 1) == "1 " +string.format("%-+6.1X", 2) == "2 " +string.format("%-+6.1X", 3) == "3 " +string.format("%-+6.1X", 100) == "64 " +string.format("%-+6.1X", 10000) == "2710 " +string.format("%-+6.1X", 100000) == "186A0 " +string.format("%-+6.1X", 1000000) == "F4240 " +string.format("%-+6.6X", 0) == "000000" +string.format("%-+6.6X", 1) == "000001" +string.format("%-+6.6X", 2) == "000002" +string.format("%-+6.6X", 3) == "000003" +string.format("%-+6.6X", 100) == "000064" +string.format("%-+6.6X", 10000) == "002710" +string.format("%-+6.6X", 100000) == "0186A0" +string.format("%-+6.6X", 1000000) == "0F4240" +string.format("%-+20X", 0) == "0 " +string.format("%-+20X", 1) == "1 " +string.format("%-+20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-+20X", 2) == "2 " +string.format("%-+20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-+20X", 3) == "3 " +string.format("%-+20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-+20X", 100) == "64 " +string.format("%-+20X", 10000) == "2710 " +string.format("%-+20X", 100000) == "186A0 " +string.format("%-+20X", 1000000) == "F4240 " +string.format("%-+20X", 10000000) == "989680 " +string.format("%-+20.0X", 0) == " " +string.format("%-+20.0X", 1) == "1 " +string.format("%-+20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-+20.0X", 2) == "2 " +string.format("%-+20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-+20.0X", 3) == "3 " +string.format("%-+20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-+20.0X", 100) == "64 " +string.format("%-+20.0X", 10000) == "2710 " +string.format("%-+20.0X", 100000) == "186A0 " +string.format("%-+20.0X", 1000000) == "F4240 " +string.format("%-+20.0X", 10000000) == "989680 " +string.format("%-+20.1X", 0) == "0 " +string.format("%-+20.1X", 1) == "1 " +string.format("%-+20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-+20.1X", 2) == "2 " +string.format("%-+20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-+20.1X", 3) == "3 " +string.format("%-+20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-+20.1X", 100) == "64 " +string.format("%-+20.1X", 10000) == "2710 " +string.format("%-+20.1X", 100000) == "186A0 " +string.format("%-+20.1X", 1000000) == "F4240 " +string.format("%-+20.1X", 10000000) == "989680 " +string.format("%-+20.6X", 0) == "000000 " +string.format("%-+20.6X", 1) == "000001 " +string.format("%-+20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%-+20.6X", 2) == "000002 " +string.format("%-+20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%-+20.6X", 3) == "000003 " +string.format("%-+20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%-+20.6X", 100) == "000064 " +string.format("%-+20.6X", 10000) == "002710 " +string.format("%-+20.6X", 100000) == "0186A0 " +string.format("%-+20.6X", 1000000) == "0F4240 " +string.format("%-+20.6X", 10000000) == "989680 " +string.format("% X", 0) == "0" +string.format("% X", 1) == "1" +string.format("% X", -1) == "FFFFFFFFFFFFFFFF" +string.format("% X", 2) == "2" +string.format("% X", -2) == "FFFFFFFFFFFFFFFE" +string.format("% X", 3) == "3" +string.format("% X", -3) == "FFFFFFFFFFFFFFFD" +string.format("% X", 100) == "64" +string.format("% X", 10000) == "2710" +string.format("% X", 100000) == "186A0" +string.format("% X", 1000000) == "F4240" +string.format("% X", 10000000) == "989680" +string.format("% .0X", 0) == "" +string.format("% .6X", 0) == "000000" +string.format("% .6X", 1) == "000001" +string.format("% .6X", 2) == "000002" +string.format("% .6X", 3) == "000003" +string.format("% .6X", 100) == "000064" +string.format("% .6X", 10000) == "002710" +string.format("% .6X", 100000) == "0186A0" +string.format("% .6X", 1000000) == "0F4240" +string.format("% 1.0X", 0) == " " +string.format("% 1.6X", 0) == "000000" +string.format("% 1.6X", 1) == "000001" +string.format("% 1.6X", 2) == "000002" +string.format("% 1.6X", 3) == "000003" +string.format("% 1.6X", 100) == "000064" +string.format("% 1.6X", 10000) == "002710" +string.format("% 1.6X", 100000) == "0186A0" +string.format("% 1.6X", 1000000) == "0F4240" +string.format("% 2X", 0) == " 0" +string.format("% 2X", 1) == " 1" +string.format("% 2X", 2) == " 2" +string.format("% 2X", 3) == " 3" +string.format("% 2.0X", 0) == " " +string.format("% 2.0X", 1) == " 1" +string.format("% 2.0X", 2) == " 2" +string.format("% 2.0X", 3) == " 3" +string.format("% 2.1X", 0) == " 0" +string.format("% 2.1X", 1) == " 1" +string.format("% 2.1X", 2) == " 2" +string.format("% 2.1X", 3) == " 3" +string.format("% 2.6X", 0) == "000000" +string.format("% 2.6X", 1) == "000001" +string.format("% 2.6X", 2) == "000002" +string.format("% 2.6X", 3) == "000003" +string.format("% 2.6X", 100) == "000064" +string.format("% 2.6X", 10000) == "002710" +string.format("% 2.6X", 100000) == "0186A0" +string.format("% 2.6X", 1000000) == "0F4240" +string.format("% 6X", 0) == " 0" +string.format("% 6X", 1) == " 1" +string.format("% 6X", 2) == " 2" +string.format("% 6X", 3) == " 3" +string.format("% 6X", 100) == " 64" +string.format("% 6X", 10000) == " 2710" +string.format("% 6X", 100000) == " 186A0" +string.format("% 6X", 1000000) == " F4240" +string.format("% 6.0X", 0) == " " +string.format("% 6.0X", 1) == " 1" +string.format("% 6.0X", 2) == " 2" +string.format("% 6.0X", 3) == " 3" +string.format("% 6.0X", 100) == " 64" +string.format("% 6.0X", 10000) == " 2710" +string.format("% 6.0X", 100000) == " 186A0" +string.format("% 6.0X", 1000000) == " F4240" +string.format("% 6.1X", 0) == " 0" +string.format("% 6.1X", 1) == " 1" +string.format("% 6.1X", 2) == " 2" +string.format("% 6.1X", 3) == " 3" +string.format("% 6.1X", 100) == " 64" +string.format("% 6.1X", 10000) == " 2710" +string.format("% 6.1X", 100000) == " 186A0" +string.format("% 6.1X", 1000000) == " F4240" +string.format("% 6.6X", 0) == "000000" +string.format("% 6.6X", 1) == "000001" +string.format("% 6.6X", 2) == "000002" +string.format("% 6.6X", 3) == "000003" +string.format("% 6.6X", 100) == "000064" +string.format("% 6.6X", 10000) == "002710" +string.format("% 6.6X", 100000) == "0186A0" +string.format("% 6.6X", 1000000) == "0F4240" +string.format("% 20X", 0) == " 0" +string.format("% 20X", 1) == " 1" +string.format("% 20X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% 20X", 2) == " 2" +string.format("% 20X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% 20X", 3) == " 3" +string.format("% 20X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% 20X", 100) == " 64" +string.format("% 20X", 10000) == " 2710" +string.format("% 20X", 100000) == " 186A0" +string.format("% 20X", 1000000) == " F4240" +string.format("% 20X", 10000000) == " 989680" +string.format("% 20.0X", 0) == " " +string.format("% 20.0X", 1) == " 1" +string.format("% 20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% 20.0X", 2) == " 2" +string.format("% 20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% 20.0X", 3) == " 3" +string.format("% 20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% 20.0X", 100) == " 64" +string.format("% 20.0X", 10000) == " 2710" +string.format("% 20.0X", 100000) == " 186A0" +string.format("% 20.0X", 1000000) == " F4240" +string.format("% 20.0X", 10000000) == " 989680" +string.format("% 20.1X", 0) == " 0" +string.format("% 20.1X", 1) == " 1" +string.format("% 20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% 20.1X", 2) == " 2" +string.format("% 20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% 20.1X", 3) == " 3" +string.format("% 20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% 20.1X", 100) == " 64" +string.format("% 20.1X", 10000) == " 2710" +string.format("% 20.1X", 100000) == " 186A0" +string.format("% 20.1X", 1000000) == " F4240" +string.format("% 20.1X", 10000000) == " 989680" +string.format("% 20.6X", 0) == " 000000" +string.format("% 20.6X", 1) == " 000001" +string.format("% 20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% 20.6X", 2) == " 000002" +string.format("% 20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% 20.6X", 3) == " 000003" +string.format("% 20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% 20.6X", 100) == " 000064" +string.format("% 20.6X", 10000) == " 002710" +string.format("% 20.6X", 100000) == " 0186A0" +string.format("% 20.6X", 1000000) == " 0F4240" +string.format("% 20.6X", 10000000) == " 989680" +string.format("% +X", 0) == "0" +string.format("% +X", 1) == "1" +string.format("% +X", -1) == "FFFFFFFFFFFFFFFF" +string.format("% +X", 2) == "2" +string.format("% +X", -2) == "FFFFFFFFFFFFFFFE" +string.format("% +X", 3) == "3" +string.format("% +X", -3) == "FFFFFFFFFFFFFFFD" +string.format("% +X", 100) == "64" +string.format("% +X", 10000) == "2710" +string.format("% +X", 100000) == "186A0" +string.format("% +X", 1000000) == "F4240" +string.format("% +X", 10000000) == "989680" +string.format("% +.0X", 0) == "" +string.format("% +.6X", 0) == "000000" +string.format("% +.6X", 1) == "000001" +string.format("% +.6X", 2) == "000002" +string.format("% +.6X", 3) == "000003" +string.format("% +.6X", 100) == "000064" +string.format("% +.6X", 10000) == "002710" +string.format("% +.6X", 100000) == "0186A0" +string.format("% +.6X", 1000000) == "0F4240" +string.format("% +1.0X", 0) == " " +string.format("% +1.6X", 0) == "000000" +string.format("% +1.6X", 1) == "000001" +string.format("% +1.6X", 2) == "000002" +string.format("% +1.6X", 3) == "000003" +string.format("% +1.6X", 100) == "000064" +string.format("% +1.6X", 10000) == "002710" +string.format("% +1.6X", 100000) == "0186A0" +string.format("% +1.6X", 1000000) == "0F4240" +string.format("% +2X", 0) == " 0" +string.format("% +2X", 1) == " 1" +string.format("% +2X", 2) == " 2" +string.format("% +2X", 3) == " 3" +string.format("% +2.0X", 0) == " " +string.format("% +2.0X", 1) == " 1" +string.format("% +2.0X", 2) == " 2" +string.format("% +2.0X", 3) == " 3" +string.format("% +2.1X", 0) == " 0" +string.format("% +2.1X", 1) == " 1" +string.format("% +2.1X", 2) == " 2" +string.format("% +2.1X", 3) == " 3" +string.format("% +2.6X", 0) == "000000" +string.format("% +2.6X", 1) == "000001" +string.format("% +2.6X", 2) == "000002" +string.format("% +2.6X", 3) == "000003" +string.format("% +2.6X", 100) == "000064" +string.format("% +2.6X", 10000) == "002710" +string.format("% +2.6X", 100000) == "0186A0" +string.format("% +2.6X", 1000000) == "0F4240" +string.format("% +6X", 0) == " 0" +string.format("% +6X", 1) == " 1" +string.format("% +6X", 2) == " 2" +string.format("% +6X", 3) == " 3" +string.format("% +6X", 100) == " 64" +string.format("% +6X", 10000) == " 2710" +string.format("% +6X", 100000) == " 186A0" +string.format("% +6X", 1000000) == " F4240" +string.format("% +6.0X", 0) == " " +string.format("% +6.0X", 1) == " 1" +string.format("% +6.0X", 2) == " 2" +string.format("% +6.0X", 3) == " 3" +string.format("% +6.0X", 100) == " 64" +string.format("% +6.0X", 10000) == " 2710" +string.format("% +6.0X", 100000) == " 186A0" +string.format("% +6.0X", 1000000) == " F4240" +string.format("% +6.1X", 0) == " 0" +string.format("% +6.1X", 1) == " 1" +string.format("% +6.1X", 2) == " 2" +string.format("% +6.1X", 3) == " 3" +string.format("% +6.1X", 100) == " 64" +string.format("% +6.1X", 10000) == " 2710" +string.format("% +6.1X", 100000) == " 186A0" +string.format("% +6.1X", 1000000) == " F4240" +string.format("% +6.6X", 0) == "000000" +string.format("% +6.6X", 1) == "000001" +string.format("% +6.6X", 2) == "000002" +string.format("% +6.6X", 3) == "000003" +string.format("% +6.6X", 100) == "000064" +string.format("% +6.6X", 10000) == "002710" +string.format("% +6.6X", 100000) == "0186A0" +string.format("% +6.6X", 1000000) == "0F4240" +string.format("% +20X", 0) == " 0" +string.format("% +20X", 1) == " 1" +string.format("% +20X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% +20X", 2) == " 2" +string.format("% +20X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% +20X", 3) == " 3" +string.format("% +20X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% +20X", 100) == " 64" +string.format("% +20X", 10000) == " 2710" +string.format("% +20X", 100000) == " 186A0" +string.format("% +20X", 1000000) == " F4240" +string.format("% +20X", 10000000) == " 989680" +string.format("% +20.0X", 0) == " " +string.format("% +20.0X", 1) == " 1" +string.format("% +20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% +20.0X", 2) == " 2" +string.format("% +20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% +20.0X", 3) == " 3" +string.format("% +20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% +20.0X", 100) == " 64" +string.format("% +20.0X", 10000) == " 2710" +string.format("% +20.0X", 100000) == " 186A0" +string.format("% +20.0X", 1000000) == " F4240" +string.format("% +20.0X", 10000000) == " 989680" +string.format("% +20.1X", 0) == " 0" +string.format("% +20.1X", 1) == " 1" +string.format("% +20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% +20.1X", 2) == " 2" +string.format("% +20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% +20.1X", 3) == " 3" +string.format("% +20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% +20.1X", 100) == " 64" +string.format("% +20.1X", 10000) == " 2710" +string.format("% +20.1X", 100000) == " 186A0" +string.format("% +20.1X", 1000000) == " F4240" +string.format("% +20.1X", 10000000) == " 989680" +string.format("% +20.6X", 0) == " 000000" +string.format("% +20.6X", 1) == " 000001" +string.format("% +20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("% +20.6X", 2) == " 000002" +string.format("% +20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("% +20.6X", 3) == " 000003" +string.format("% +20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("% +20.6X", 100) == " 000064" +string.format("% +20.6X", 10000) == " 002710" +string.format("% +20.6X", 100000) == " 0186A0" +string.format("% +20.6X", 1000000) == " 0F4240" +string.format("% +20.6X", 10000000) == " 989680" +string.format("% -X", 0) == "0" +string.format("% -X", 1) == "1" +string.format("% -X", -1) == "FFFFFFFFFFFFFFFF" +string.format("% -X", 2) == "2" +string.format("% -X", -2) == "FFFFFFFFFFFFFFFE" +string.format("% -X", 3) == "3" +string.format("% -X", -3) == "FFFFFFFFFFFFFFFD" +string.format("% -X", 100) == "64" +string.format("% -X", 10000) == "2710" +string.format("% -X", 100000) == "186A0" +string.format("% -X", 1000000) == "F4240" +string.format("% -X", 10000000) == "989680" +string.format("% -.0X", 0) == "" +string.format("% -.6X", 0) == "000000" +string.format("% -.6X", 1) == "000001" +string.format("% -.6X", 2) == "000002" +string.format("% -.6X", 3) == "000003" +string.format("% -.6X", 100) == "000064" +string.format("% -.6X", 10000) == "002710" +string.format("% -.6X", 100000) == "0186A0" +string.format("% -.6X", 1000000) == "0F4240" +string.format("% -1.0X", 0) == " " +string.format("% -1.6X", 0) == "000000" +string.format("% -1.6X", 1) == "000001" +string.format("% -1.6X", 2) == "000002" +string.format("% -1.6X", 3) == "000003" +string.format("% -1.6X", 100) == "000064" +string.format("% -1.6X", 10000) == "002710" +string.format("% -1.6X", 100000) == "0186A0" +string.format("% -1.6X", 1000000) == "0F4240" +string.format("% -2X", 0) == "0 " +string.format("% -2X", 1) == "1 " +string.format("% -2X", 2) == "2 " +string.format("% -2X", 3) == "3 " +string.format("% -2.0X", 0) == " " +string.format("% -2.0X", 1) == "1 " +string.format("% -2.0X", 2) == "2 " +string.format("% -2.0X", 3) == "3 " +string.format("% -2.1X", 0) == "0 " +string.format("% -2.1X", 1) == "1 " +string.format("% -2.1X", 2) == "2 " +string.format("% -2.1X", 3) == "3 " +string.format("% -2.6X", 0) == "000000" +string.format("% -2.6X", 1) == "000001" +string.format("% -2.6X", 2) == "000002" +string.format("% -2.6X", 3) == "000003" +string.format("% -2.6X", 100) == "000064" +string.format("% -2.6X", 10000) == "002710" +string.format("% -2.6X", 100000) == "0186A0" +string.format("% -2.6X", 1000000) == "0F4240" +string.format("% -6X", 0) == "0 " +string.format("% -6X", 1) == "1 " +string.format("% -6X", 2) == "2 " +string.format("% -6X", 3) == "3 " +string.format("% -6X", 100) == "64 " +string.format("% -6X", 10000) == "2710 " +string.format("% -6X", 100000) == "186A0 " +string.format("% -6X", 1000000) == "F4240 " +string.format("% -6.0X", 0) == " " +string.format("% -6.0X", 1) == "1 " +string.format("% -6.0X", 2) == "2 " +string.format("% -6.0X", 3) == "3 " +string.format("% -6.0X", 100) == "64 " +string.format("% -6.0X", 10000) == "2710 " +string.format("% -6.0X", 100000) == "186A0 " +string.format("% -6.0X", 1000000) == "F4240 " +string.format("% -6.1X", 0) == "0 " +string.format("% -6.1X", 1) == "1 " +string.format("% -6.1X", 2) == "2 " +string.format("% -6.1X", 3) == "3 " +string.format("% -6.1X", 100) == "64 " +string.format("% -6.1X", 10000) == "2710 " +string.format("% -6.1X", 100000) == "186A0 " +string.format("% -6.1X", 1000000) == "F4240 " +string.format("% -6.6X", 0) == "000000" +string.format("% -6.6X", 1) == "000001" +string.format("% -6.6X", 2) == "000002" +string.format("% -6.6X", 3) == "000003" +string.format("% -6.6X", 100) == "000064" +string.format("% -6.6X", 10000) == "002710" +string.format("% -6.6X", 100000) == "0186A0" +string.format("% -6.6X", 1000000) == "0F4240" +string.format("% -20X", 0) == "0 " +string.format("% -20X", 1) == "1 " +string.format("% -20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -20X", 2) == "2 " +string.format("% -20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -20X", 3) == "3 " +string.format("% -20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -20X", 100) == "64 " +string.format("% -20X", 10000) == "2710 " +string.format("% -20X", 100000) == "186A0 " +string.format("% -20X", 1000000) == "F4240 " +string.format("% -20X", 10000000) == "989680 " +string.format("% -20.0X", 0) == " " +string.format("% -20.0X", 1) == "1 " +string.format("% -20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -20.0X", 2) == "2 " +string.format("% -20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -20.0X", 3) == "3 " +string.format("% -20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -20.0X", 100) == "64 " +string.format("% -20.0X", 10000) == "2710 " +string.format("% -20.0X", 100000) == "186A0 " +string.format("% -20.0X", 1000000) == "F4240 " +string.format("% -20.0X", 10000000) == "989680 " +string.format("% -20.1X", 0) == "0 " +string.format("% -20.1X", 1) == "1 " +string.format("% -20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -20.1X", 2) == "2 " +string.format("% -20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -20.1X", 3) == "3 " +string.format("% -20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -20.1X", 100) == "64 " +string.format("% -20.1X", 10000) == "2710 " +string.format("% -20.1X", 100000) == "186A0 " +string.format("% -20.1X", 1000000) == "F4240 " +string.format("% -20.1X", 10000000) == "989680 " +string.format("% -20.6X", 0) == "000000 " +string.format("% -20.6X", 1) == "000001 " +string.format("% -20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -20.6X", 2) == "000002 " +string.format("% -20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -20.6X", 3) == "000003 " +string.format("% -20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -20.6X", 100) == "000064 " +string.format("% -20.6X", 10000) == "002710 " +string.format("% -20.6X", 100000) == "0186A0 " +string.format("% -20.6X", 1000000) == "0F4240 " +string.format("% -20.6X", 10000000) == "989680 " +string.format("% -+X", 0) == "0" +string.format("% -+X", 1) == "1" +string.format("% -+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("% -+X", 2) == "2" +string.format("% -+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("% -+X", 3) == "3" +string.format("% -+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("% -+X", 100) == "64" +string.format("% -+X", 10000) == "2710" +string.format("% -+X", 100000) == "186A0" +string.format("% -+X", 1000000) == "F4240" +string.format("% -+X", 10000000) == "989680" +string.format("% -+.0X", 0) == "" +string.format("% -+.6X", 0) == "000000" +string.format("% -+.6X", 1) == "000001" +string.format("% -+.6X", 2) == "000002" +string.format("% -+.6X", 3) == "000003" +string.format("% -+.6X", 100) == "000064" +string.format("% -+.6X", 10000) == "002710" +string.format("% -+.6X", 100000) == "0186A0" +string.format("% -+.6X", 1000000) == "0F4240" +string.format("% -+1.0X", 0) == " " +string.format("% -+1.6X", 0) == "000000" +string.format("% -+1.6X", 1) == "000001" +string.format("% -+1.6X", 2) == "000002" +string.format("% -+1.6X", 3) == "000003" +string.format("% -+1.6X", 100) == "000064" +string.format("% -+1.6X", 10000) == "002710" +string.format("% -+1.6X", 100000) == "0186A0" +string.format("% -+1.6X", 1000000) == "0F4240" +string.format("% -+2X", 0) == "0 " +string.format("% -+2X", 1) == "1 " +string.format("% -+2X", 2) == "2 " +string.format("% -+2X", 3) == "3 " +string.format("% -+2.0X", 0) == " " +string.format("% -+2.0X", 1) == "1 " +string.format("% -+2.0X", 2) == "2 " +string.format("% -+2.0X", 3) == "3 " +string.format("% -+2.1X", 0) == "0 " +string.format("% -+2.1X", 1) == "1 " +string.format("% -+2.1X", 2) == "2 " +string.format("% -+2.1X", 3) == "3 " +string.format("% -+2.6X", 0) == "000000" +string.format("% -+2.6X", 1) == "000001" +string.format("% -+2.6X", 2) == "000002" +string.format("% -+2.6X", 3) == "000003" +string.format("% -+2.6X", 100) == "000064" +string.format("% -+2.6X", 10000) == "002710" +string.format("% -+2.6X", 100000) == "0186A0" +string.format("% -+2.6X", 1000000) == "0F4240" +string.format("% -+6X", 0) == "0 " +string.format("% -+6X", 1) == "1 " +string.format("% -+6X", 2) == "2 " +string.format("% -+6X", 3) == "3 " +string.format("% -+6X", 100) == "64 " +string.format("% -+6X", 10000) == "2710 " +string.format("% -+6X", 100000) == "186A0 " +string.format("% -+6X", 1000000) == "F4240 " +string.format("% -+6.0X", 0) == " " +string.format("% -+6.0X", 1) == "1 " +string.format("% -+6.0X", 2) == "2 " +string.format("% -+6.0X", 3) == "3 " +string.format("% -+6.0X", 100) == "64 " +string.format("% -+6.0X", 10000) == "2710 " +string.format("% -+6.0X", 100000) == "186A0 " +string.format("% -+6.0X", 1000000) == "F4240 " +string.format("% -+6.1X", 0) == "0 " +string.format("% -+6.1X", 1) == "1 " +string.format("% -+6.1X", 2) == "2 " +string.format("% -+6.1X", 3) == "3 " +string.format("% -+6.1X", 100) == "64 " +string.format("% -+6.1X", 10000) == "2710 " +string.format("% -+6.1X", 100000) == "186A0 " +string.format("% -+6.1X", 1000000) == "F4240 " +string.format("% -+6.6X", 0) == "000000" +string.format("% -+6.6X", 1) == "000001" +string.format("% -+6.6X", 2) == "000002" +string.format("% -+6.6X", 3) == "000003" +string.format("% -+6.6X", 100) == "000064" +string.format("% -+6.6X", 10000) == "002710" +string.format("% -+6.6X", 100000) == "0186A0" +string.format("% -+6.6X", 1000000) == "0F4240" +string.format("% -+20X", 0) == "0 " +string.format("% -+20X", 1) == "1 " +string.format("% -+20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -+20X", 2) == "2 " +string.format("% -+20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -+20X", 3) == "3 " +string.format("% -+20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -+20X", 100) == "64 " +string.format("% -+20X", 10000) == "2710 " +string.format("% -+20X", 100000) == "186A0 " +string.format("% -+20X", 1000000) == "F4240 " +string.format("% -+20X", 10000000) == "989680 " +string.format("% -+20.0X", 0) == " " +string.format("% -+20.0X", 1) == "1 " +string.format("% -+20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -+20.0X", 2) == "2 " +string.format("% -+20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -+20.0X", 3) == "3 " +string.format("% -+20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -+20.0X", 100) == "64 " +string.format("% -+20.0X", 10000) == "2710 " +string.format("% -+20.0X", 100000) == "186A0 " +string.format("% -+20.0X", 1000000) == "F4240 " +string.format("% -+20.0X", 10000000) == "989680 " +string.format("% -+20.1X", 0) == "0 " +string.format("% -+20.1X", 1) == "1 " +string.format("% -+20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -+20.1X", 2) == "2 " +string.format("% -+20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -+20.1X", 3) == "3 " +string.format("% -+20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -+20.1X", 100) == "64 " +string.format("% -+20.1X", 10000) == "2710 " +string.format("% -+20.1X", 100000) == "186A0 " +string.format("% -+20.1X", 1000000) == "F4240 " +string.format("% -+20.1X", 10000000) == "989680 " +string.format("% -+20.6X", 0) == "000000 " +string.format("% -+20.6X", 1) == "000001 " +string.format("% -+20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("% -+20.6X", 2) == "000002 " +string.format("% -+20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("% -+20.6X", 3) == "000003 " +string.format("% -+20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("% -+20.6X", 100) == "000064 " +string.format("% -+20.6X", 10000) == "002710 " +string.format("% -+20.6X", 100000) == "0186A0 " +string.format("% -+20.6X", 1000000) == "0F4240 " +string.format("% -+20.6X", 10000000) == "989680 " +string.format("%#X", 0) == "0" +string.format("%#X", 1) == "0X1" +string.format("%#X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%#X", 2) == "0X2" +string.format("%#X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%#X", 3) == "0X3" +string.format("%#X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%#X", 100) == "0X64" +string.format("%#X", 10000) == "0X2710" +string.format("%#X", 100000) == "0X186A0" +string.format("%#X", 1000000) == "0XF4240" +string.format("%#X", 10000000) == "0X989680" +string.format("%#.0X", 0) == "" +string.format("%#.6X", 0) == "000000" +string.format("%#.6X", 1) == "0X000001" +string.format("%#.6X", 2) == "0X000002" +string.format("%#.6X", 3) == "0X000003" +string.format("%#.6X", 100) == "0X000064" +string.format("%#.6X", 10000) == "0X002710" +string.format("%#.6X", 100000) == "0X0186A0" +string.format("%#.6X", 1000000) == "0X0F4240" +string.format("%#1.0X", 0) == " " +string.format("%#1.6X", 0) == "000000" +string.format("%#1.6X", 1) == "0X000001" +string.format("%#1.6X", 2) == "0X000002" +string.format("%#1.6X", 3) == "0X000003" +string.format("%#1.6X", 100) == "0X000064" +string.format("%#1.6X", 10000) == "0X002710" +string.format("%#1.6X", 100000) == "0X0186A0" +string.format("%#1.6X", 1000000) == "0X0F4240" +string.format("%#2X", 0) == " 0" +string.format("%#2.0X", 0) == " " +string.format("%#2.1X", 0) == " 0" +string.format("%#2.6X", 0) == "000000" +string.format("%#2.6X", 1) == "0X000001" +string.format("%#2.6X", 2) == "0X000002" +string.format("%#2.6X", 3) == "0X000003" +string.format("%#2.6X", 100) == "0X000064" +string.format("%#2.6X", 10000) == "0X002710" +string.format("%#2.6X", 100000) == "0X0186A0" +string.format("%#2.6X", 1000000) == "0X0F4240" +string.format("%#6X", 0) == " 0" +string.format("%#6X", 1) == " 0X1" +string.format("%#6X", 2) == " 0X2" +string.format("%#6X", 3) == " 0X3" +string.format("%#6X", 100) == " 0X64" +string.format("%#6.0X", 0) == " " +string.format("%#6.0X", 1) == " 0X1" +string.format("%#6.0X", 2) == " 0X2" +string.format("%#6.0X", 3) == " 0X3" +string.format("%#6.0X", 100) == " 0X64" +string.format("%#6.1X", 0) == " 0" +string.format("%#6.1X", 1) == " 0X1" +string.format("%#6.1X", 2) == " 0X2" +string.format("%#6.1X", 3) == " 0X3" +string.format("%#6.1X", 100) == " 0X64" +string.format("%#6.6X", 0) == "000000" +string.format("%#6.6X", 1) == "0X000001" +string.format("%#6.6X", 2) == "0X000002" +string.format("%#6.6X", 3) == "0X000003" +string.format("%#6.6X", 100) == "0X000064" +string.format("%#6.6X", 10000) == "0X002710" +string.format("%#6.6X", 100000) == "0X0186A0" +string.format("%#6.6X", 1000000) == "0X0F4240" +string.format("%#20X", 0) == " 0" +string.format("%#20X", 1) == " 0X1" +string.format("%#20X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#20X", 2) == " 0X2" +string.format("%#20X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#20X", 3) == " 0X3" +string.format("%#20X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#20X", 100) == " 0X64" +string.format("%#20X", 10000) == " 0X2710" +string.format("%#20X", 100000) == " 0X186A0" +string.format("%#20X", 1000000) == " 0XF4240" +string.format("%#20X", 10000000) == " 0X989680" +string.format("%#20.0X", 0) == " " +string.format("%#20.0X", 1) == " 0X1" +string.format("%#20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#20.0X", 2) == " 0X2" +string.format("%#20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#20.0X", 3) == " 0X3" +string.format("%#20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#20.0X", 100) == " 0X64" +string.format("%#20.0X", 10000) == " 0X2710" +string.format("%#20.0X", 100000) == " 0X186A0" +string.format("%#20.0X", 1000000) == " 0XF4240" +string.format("%#20.0X", 10000000) == " 0X989680" +string.format("%#20.1X", 0) == " 0" +string.format("%#20.1X", 1) == " 0X1" +string.format("%#20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#20.1X", 2) == " 0X2" +string.format("%#20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#20.1X", 3) == " 0X3" +string.format("%#20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#20.1X", 100) == " 0X64" +string.format("%#20.1X", 10000) == " 0X2710" +string.format("%#20.1X", 100000) == " 0X186A0" +string.format("%#20.1X", 1000000) == " 0XF4240" +string.format("%#20.1X", 10000000) == " 0X989680" +string.format("%#20.6X", 0) == " 000000" +string.format("%#20.6X", 1) == " 0X000001" +string.format("%#20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#20.6X", 2) == " 0X000002" +string.format("%#20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#20.6X", 3) == " 0X000003" +string.format("%#20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#20.6X", 100) == " 0X000064" +string.format("%#20.6X", 10000) == " 0X002710" +string.format("%#20.6X", 100000) == " 0X0186A0" +string.format("%#20.6X", 1000000) == " 0X0F4240" +string.format("%#20.6X", 10000000) == " 0X989680" +string.format("%#+X", 0) == "0" +string.format("%#+X", 1) == "0X1" +string.format("%#+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%#+X", 2) == "0X2" +string.format("%#+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%#+X", 3) == "0X3" +string.format("%#+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%#+X", 100) == "0X64" +string.format("%#+X", 10000) == "0X2710" +string.format("%#+X", 100000) == "0X186A0" +string.format("%#+X", 1000000) == "0XF4240" +string.format("%#+X", 10000000) == "0X989680" +string.format("%#+.0X", 0) == "" +string.format("%#+.6X", 0) == "000000" +string.format("%#+.6X", 1) == "0X000001" +string.format("%#+.6X", 2) == "0X000002" +string.format("%#+.6X", 3) == "0X000003" +string.format("%#+.6X", 100) == "0X000064" +string.format("%#+.6X", 10000) == "0X002710" +string.format("%#+.6X", 100000) == "0X0186A0" +string.format("%#+.6X", 1000000) == "0X0F4240" +string.format("%#+1.0X", 0) == " " +string.format("%#+1.6X", 0) == "000000" +string.format("%#+1.6X", 1) == "0X000001" +string.format("%#+1.6X", 2) == "0X000002" +string.format("%#+1.6X", 3) == "0X000003" +string.format("%#+1.6X", 100) == "0X000064" +string.format("%#+1.6X", 10000) == "0X002710" +string.format("%#+1.6X", 100000) == "0X0186A0" +string.format("%#+1.6X", 1000000) == "0X0F4240" +string.format("%#+2X", 0) == " 0" +string.format("%#+2.0X", 0) == " " +string.format("%#+2.1X", 0) == " 0" +string.format("%#+2.6X", 0) == "000000" +string.format("%#+2.6X", 1) == "0X000001" +string.format("%#+2.6X", 2) == "0X000002" +string.format("%#+2.6X", 3) == "0X000003" +string.format("%#+2.6X", 100) == "0X000064" +string.format("%#+2.6X", 10000) == "0X002710" +string.format("%#+2.6X", 100000) == "0X0186A0" +string.format("%#+2.6X", 1000000) == "0X0F4240" +string.format("%#+6X", 0) == " 0" +string.format("%#+6X", 1) == " 0X1" +string.format("%#+6X", 2) == " 0X2" +string.format("%#+6X", 3) == " 0X3" +string.format("%#+6X", 100) == " 0X64" +string.format("%#+6.0X", 0) == " " +string.format("%#+6.0X", 1) == " 0X1" +string.format("%#+6.0X", 2) == " 0X2" +string.format("%#+6.0X", 3) == " 0X3" +string.format("%#+6.0X", 100) == " 0X64" +string.format("%#+6.1X", 0) == " 0" +string.format("%#+6.1X", 1) == " 0X1" +string.format("%#+6.1X", 2) == " 0X2" +string.format("%#+6.1X", 3) == " 0X3" +string.format("%#+6.1X", 100) == " 0X64" +string.format("%#+6.6X", 0) == "000000" +string.format("%#+6.6X", 1) == "0X000001" +string.format("%#+6.6X", 2) == "0X000002" +string.format("%#+6.6X", 3) == "0X000003" +string.format("%#+6.6X", 100) == "0X000064" +string.format("%#+6.6X", 10000) == "0X002710" +string.format("%#+6.6X", 100000) == "0X0186A0" +string.format("%#+6.6X", 1000000) == "0X0F4240" +string.format("%#+20X", 0) == " 0" +string.format("%#+20X", 1) == " 0X1" +string.format("%#+20X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#+20X", 2) == " 0X2" +string.format("%#+20X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#+20X", 3) == " 0X3" +string.format("%#+20X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#+20X", 100) == " 0X64" +string.format("%#+20X", 10000) == " 0X2710" +string.format("%#+20X", 100000) == " 0X186A0" +string.format("%#+20X", 1000000) == " 0XF4240" +string.format("%#+20X", 10000000) == " 0X989680" +string.format("%#+20.0X", 0) == " " +string.format("%#+20.0X", 1) == " 0X1" +string.format("%#+20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#+20.0X", 2) == " 0X2" +string.format("%#+20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#+20.0X", 3) == " 0X3" +string.format("%#+20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#+20.0X", 100) == " 0X64" +string.format("%#+20.0X", 10000) == " 0X2710" +string.format("%#+20.0X", 100000) == " 0X186A0" +string.format("%#+20.0X", 1000000) == " 0XF4240" +string.format("%#+20.0X", 10000000) == " 0X989680" +string.format("%#+20.1X", 0) == " 0" +string.format("%#+20.1X", 1) == " 0X1" +string.format("%#+20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#+20.1X", 2) == " 0X2" +string.format("%#+20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#+20.1X", 3) == " 0X3" +string.format("%#+20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#+20.1X", 100) == " 0X64" +string.format("%#+20.1X", 10000) == " 0X2710" +string.format("%#+20.1X", 100000) == " 0X186A0" +string.format("%#+20.1X", 1000000) == " 0XF4240" +string.format("%#+20.1X", 10000000) == " 0X989680" +string.format("%#+20.6X", 0) == " 000000" +string.format("%#+20.6X", 1) == " 0X000001" +string.format("%#+20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%#+20.6X", 2) == " 0X000002" +string.format("%#+20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%#+20.6X", 3) == " 0X000003" +string.format("%#+20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%#+20.6X", 100) == " 0X000064" +string.format("%#+20.6X", 10000) == " 0X002710" +string.format("%#+20.6X", 100000) == " 0X0186A0" +string.format("%#+20.6X", 1000000) == " 0X0F4240" +string.format("%#+20.6X", 10000000) == " 0X989680" +string.format("%#-X", 0) == "0" +string.format("%#-X", 1) == "0X1" +string.format("%#-X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%#-X", 2) == "0X2" +string.format("%#-X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%#-X", 3) == "0X3" +string.format("%#-X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%#-X", 100) == "0X64" +string.format("%#-X", 10000) == "0X2710" +string.format("%#-X", 100000) == "0X186A0" +string.format("%#-X", 1000000) == "0XF4240" +string.format("%#-X", 10000000) == "0X989680" +string.format("%#-.0X", 0) == "" +string.format("%#-.6X", 0) == "000000" +string.format("%#-.6X", 1) == "0X000001" +string.format("%#-.6X", 2) == "0X000002" +string.format("%#-.6X", 3) == "0X000003" +string.format("%#-.6X", 100) == "0X000064" +string.format("%#-.6X", 10000) == "0X002710" +string.format("%#-.6X", 100000) == "0X0186A0" +string.format("%#-.6X", 1000000) == "0X0F4240" +string.format("%#-1.0X", 0) == " " +string.format("%#-1.6X", 0) == "000000" +string.format("%#-1.6X", 1) == "0X000001" +string.format("%#-1.6X", 2) == "0X000002" +string.format("%#-1.6X", 3) == "0X000003" +string.format("%#-1.6X", 100) == "0X000064" +string.format("%#-1.6X", 10000) == "0X002710" +string.format("%#-1.6X", 100000) == "0X0186A0" +string.format("%#-1.6X", 1000000) == "0X0F4240" +string.format("%#-2X", 0) == "0 " +string.format("%#-2.0X", 0) == " " +string.format("%#-2.1X", 0) == "0 " +string.format("%#-2.6X", 0) == "000000" +string.format("%#-2.6X", 1) == "0X000001" +string.format("%#-2.6X", 2) == "0X000002" +string.format("%#-2.6X", 3) == "0X000003" +string.format("%#-2.6X", 100) == "0X000064" +string.format("%#-2.6X", 10000) == "0X002710" +string.format("%#-2.6X", 100000) == "0X0186A0" +string.format("%#-2.6X", 1000000) == "0X0F4240" +string.format("%#-6X", 0) == "0 " +string.format("%#-6X", 1) == "0X1 " +string.format("%#-6X", 2) == "0X2 " +string.format("%#-6X", 3) == "0X3 " +string.format("%#-6X", 100) == "0X64 " +string.format("%#-6.0X", 0) == " " +string.format("%#-6.0X", 1) == "0X1 " +string.format("%#-6.0X", 2) == "0X2 " +string.format("%#-6.0X", 3) == "0X3 " +string.format("%#-6.0X", 100) == "0X64 " +string.format("%#-6.1X", 0) == "0 " +string.format("%#-6.1X", 1) == "0X1 " +string.format("%#-6.1X", 2) == "0X2 " +string.format("%#-6.1X", 3) == "0X3 " +string.format("%#-6.1X", 100) == "0X64 " +string.format("%#-6.6X", 0) == "000000" +string.format("%#-6.6X", 1) == "0X000001" +string.format("%#-6.6X", 2) == "0X000002" +string.format("%#-6.6X", 3) == "0X000003" +string.format("%#-6.6X", 100) == "0X000064" +string.format("%#-6.6X", 10000) == "0X002710" +string.format("%#-6.6X", 100000) == "0X0186A0" +string.format("%#-6.6X", 1000000) == "0X0F4240" +string.format("%#-20X", 0) == "0 " +string.format("%#-20X", 1) == "0X1 " +string.format("%#-20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-20X", 2) == "0X2 " +string.format("%#-20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-20X", 3) == "0X3 " +string.format("%#-20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-20X", 100) == "0X64 " +string.format("%#-20X", 10000) == "0X2710 " +string.format("%#-20X", 100000) == "0X186A0 " +string.format("%#-20X", 1000000) == "0XF4240 " +string.format("%#-20X", 10000000) == "0X989680 " +string.format("%#-20.0X", 0) == " " +string.format("%#-20.0X", 1) == "0X1 " +string.format("%#-20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-20.0X", 2) == "0X2 " +string.format("%#-20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-20.0X", 3) == "0X3 " +string.format("%#-20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-20.0X", 100) == "0X64 " +string.format("%#-20.0X", 10000) == "0X2710 " +string.format("%#-20.0X", 100000) == "0X186A0 " +string.format("%#-20.0X", 1000000) == "0XF4240 " +string.format("%#-20.0X", 10000000) == "0X989680 " +string.format("%#-20.1X", 0) == "0 " +string.format("%#-20.1X", 1) == "0X1 " +string.format("%#-20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-20.1X", 2) == "0X2 " +string.format("%#-20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-20.1X", 3) == "0X3 " +string.format("%#-20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-20.1X", 100) == "0X64 " +string.format("%#-20.1X", 10000) == "0X2710 " +string.format("%#-20.1X", 100000) == "0X186A0 " +string.format("%#-20.1X", 1000000) == "0XF4240 " +string.format("%#-20.1X", 10000000) == "0X989680 " +string.format("%#-20.6X", 0) == "000000 " +string.format("%#-20.6X", 1) == "0X000001 " +string.format("%#-20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-20.6X", 2) == "0X000002 " +string.format("%#-20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-20.6X", 3) == "0X000003 " +string.format("%#-20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-20.6X", 100) == "0X000064 " +string.format("%#-20.6X", 10000) == "0X002710 " +string.format("%#-20.6X", 100000) == "0X0186A0 " +string.format("%#-20.6X", 1000000) == "0X0F4240 " +string.format("%#-20.6X", 10000000) == "0X989680 " +string.format("%#-+X", 0) == "0" +string.format("%#-+X", 1) == "0X1" +string.format("%#-+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%#-+X", 2) == "0X2" +string.format("%#-+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%#-+X", 3) == "0X3" +string.format("%#-+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%#-+X", 100) == "0X64" +string.format("%#-+X", 10000) == "0X2710" +string.format("%#-+X", 100000) == "0X186A0" +string.format("%#-+X", 1000000) == "0XF4240" +string.format("%#-+X", 10000000) == "0X989680" +string.format("%#-+.0X", 0) == "" +string.format("%#-+.6X", 0) == "000000" +string.format("%#-+.6X", 1) == "0X000001" +string.format("%#-+.6X", 2) == "0X000002" +string.format("%#-+.6X", 3) == "0X000003" +string.format("%#-+.6X", 100) == "0X000064" +string.format("%#-+.6X", 10000) == "0X002710" +string.format("%#-+.6X", 100000) == "0X0186A0" +string.format("%#-+.6X", 1000000) == "0X0F4240" +string.format("%#-+1.0X", 0) == " " +string.format("%#-+1.6X", 0) == "000000" +string.format("%#-+1.6X", 1) == "0X000001" +string.format("%#-+1.6X", 2) == "0X000002" +string.format("%#-+1.6X", 3) == "0X000003" +string.format("%#-+1.6X", 100) == "0X000064" +string.format("%#-+1.6X", 10000) == "0X002710" +string.format("%#-+1.6X", 100000) == "0X0186A0" +string.format("%#-+1.6X", 1000000) == "0X0F4240" +string.format("%#-+2X", 0) == "0 " +string.format("%#-+2.0X", 0) == " " +string.format("%#-+2.1X", 0) == "0 " +string.format("%#-+2.6X", 0) == "000000" +string.format("%#-+2.6X", 1) == "0X000001" +string.format("%#-+2.6X", 2) == "0X000002" +string.format("%#-+2.6X", 3) == "0X000003" +string.format("%#-+2.6X", 100) == "0X000064" +string.format("%#-+2.6X", 10000) == "0X002710" +string.format("%#-+2.6X", 100000) == "0X0186A0" +string.format("%#-+2.6X", 1000000) == "0X0F4240" +string.format("%#-+6X", 0) == "0 " +string.format("%#-+6X", 1) == "0X1 " +string.format("%#-+6X", 2) == "0X2 " +string.format("%#-+6X", 3) == "0X3 " +string.format("%#-+6X", 100) == "0X64 " +string.format("%#-+6.0X", 0) == " " +string.format("%#-+6.0X", 1) == "0X1 " +string.format("%#-+6.0X", 2) == "0X2 " +string.format("%#-+6.0X", 3) == "0X3 " +string.format("%#-+6.0X", 100) == "0X64 " +string.format("%#-+6.1X", 0) == "0 " +string.format("%#-+6.1X", 1) == "0X1 " +string.format("%#-+6.1X", 2) == "0X2 " +string.format("%#-+6.1X", 3) == "0X3 " +string.format("%#-+6.1X", 100) == "0X64 " +string.format("%#-+6.6X", 0) == "000000" +string.format("%#-+6.6X", 1) == "0X000001" +string.format("%#-+6.6X", 2) == "0X000002" +string.format("%#-+6.6X", 3) == "0X000003" +string.format("%#-+6.6X", 100) == "0X000064" +string.format("%#-+6.6X", 10000) == "0X002710" +string.format("%#-+6.6X", 100000) == "0X0186A0" +string.format("%#-+6.6X", 1000000) == "0X0F4240" +string.format("%#-+20X", 0) == "0 " +string.format("%#-+20X", 1) == "0X1 " +string.format("%#-+20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-+20X", 2) == "0X2 " +string.format("%#-+20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-+20X", 3) == "0X3 " +string.format("%#-+20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-+20X", 100) == "0X64 " +string.format("%#-+20X", 10000) == "0X2710 " +string.format("%#-+20X", 100000) == "0X186A0 " +string.format("%#-+20X", 1000000) == "0XF4240 " +string.format("%#-+20X", 10000000) == "0X989680 " +string.format("%#-+20.0X", 0) == " " +string.format("%#-+20.0X", 1) == "0X1 " +string.format("%#-+20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-+20.0X", 2) == "0X2 " +string.format("%#-+20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-+20.0X", 3) == "0X3 " +string.format("%#-+20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-+20.0X", 100) == "0X64 " +string.format("%#-+20.0X", 10000) == "0X2710 " +string.format("%#-+20.0X", 100000) == "0X186A0 " +string.format("%#-+20.0X", 1000000) == "0XF4240 " +string.format("%#-+20.0X", 10000000) == "0X989680 " +string.format("%#-+20.1X", 0) == "0 " +string.format("%#-+20.1X", 1) == "0X1 " +string.format("%#-+20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-+20.1X", 2) == "0X2 " +string.format("%#-+20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-+20.1X", 3) == "0X3 " +string.format("%#-+20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-+20.1X", 100) == "0X64 " +string.format("%#-+20.1X", 10000) == "0X2710 " +string.format("%#-+20.1X", 100000) == "0X186A0 " +string.format("%#-+20.1X", 1000000) == "0XF4240 " +string.format("%#-+20.1X", 10000000) == "0X989680 " +string.format("%#-+20.6X", 0) == "000000 " +string.format("%#-+20.6X", 1) == "0X000001 " +string.format("%#-+20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%#-+20.6X", 2) == "0X000002 " +string.format("%#-+20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%#-+20.6X", 3) == "0X000003 " +string.format("%#-+20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%#-+20.6X", 100) == "0X000064 " +string.format("%#-+20.6X", 10000) == "0X002710 " +string.format("%#-+20.6X", 100000) == "0X0186A0 " +string.format("%#-+20.6X", 1000000) == "0X0F4240 " +string.format("%#-+20.6X", 10000000) == "0X989680 " +string.format("%# X", 0) == "0" +string.format("%# X", 1) == "0X1" +string.format("%# X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%# X", 2) == "0X2" +string.format("%# X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%# X", 3) == "0X3" +string.format("%# X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%# X", 100) == "0X64" +string.format("%# X", 10000) == "0X2710" +string.format("%# X", 100000) == "0X186A0" +string.format("%# X", 1000000) == "0XF4240" +string.format("%# X", 10000000) == "0X989680" +string.format("%# .0X", 0) == "" +string.format("%# .6X", 0) == "000000" +string.format("%# .6X", 1) == "0X000001" +string.format("%# .6X", 2) == "0X000002" +string.format("%# .6X", 3) == "0X000003" +string.format("%# .6X", 100) == "0X000064" +string.format("%# .6X", 10000) == "0X002710" +string.format("%# .6X", 100000) == "0X0186A0" +string.format("%# .6X", 1000000) == "0X0F4240" +string.format("%# 1.0X", 0) == " " +string.format("%# 1.6X", 0) == "000000" +string.format("%# 1.6X", 1) == "0X000001" +string.format("%# 1.6X", 2) == "0X000002" +string.format("%# 1.6X", 3) == "0X000003" +string.format("%# 1.6X", 100) == "0X000064" +string.format("%# 1.6X", 10000) == "0X002710" +string.format("%# 1.6X", 100000) == "0X0186A0" +string.format("%# 1.6X", 1000000) == "0X0F4240" +string.format("%# 2X", 0) == " 0" +string.format("%# 2.0X", 0) == " " +string.format("%# 2.1X", 0) == " 0" +string.format("%# 2.6X", 0) == "000000" +string.format("%# 2.6X", 1) == "0X000001" +string.format("%# 2.6X", 2) == "0X000002" +string.format("%# 2.6X", 3) == "0X000003" +string.format("%# 2.6X", 100) == "0X000064" +string.format("%# 2.6X", 10000) == "0X002710" +string.format("%# 2.6X", 100000) == "0X0186A0" +string.format("%# 2.6X", 1000000) == "0X0F4240" +string.format("%# 6X", 0) == " 0" +string.format("%# 6X", 1) == " 0X1" +string.format("%# 6X", 2) == " 0X2" +string.format("%# 6X", 3) == " 0X3" +string.format("%# 6X", 100) == " 0X64" +string.format("%# 6.0X", 0) == " " +string.format("%# 6.0X", 1) == " 0X1" +string.format("%# 6.0X", 2) == " 0X2" +string.format("%# 6.0X", 3) == " 0X3" +string.format("%# 6.0X", 100) == " 0X64" +string.format("%# 6.1X", 0) == " 0" +string.format("%# 6.1X", 1) == " 0X1" +string.format("%# 6.1X", 2) == " 0X2" +string.format("%# 6.1X", 3) == " 0X3" +string.format("%# 6.1X", 100) == " 0X64" +string.format("%# 6.6X", 0) == "000000" +string.format("%# 6.6X", 1) == "0X000001" +string.format("%# 6.6X", 2) == "0X000002" +string.format("%# 6.6X", 3) == "0X000003" +string.format("%# 6.6X", 100) == "0X000064" +string.format("%# 6.6X", 10000) == "0X002710" +string.format("%# 6.6X", 100000) == "0X0186A0" +string.format("%# 6.6X", 1000000) == "0X0F4240" +string.format("%# 20X", 0) == " 0" +string.format("%# 20X", 1) == " 0X1" +string.format("%# 20X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# 20X", 2) == " 0X2" +string.format("%# 20X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# 20X", 3) == " 0X3" +string.format("%# 20X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# 20X", 100) == " 0X64" +string.format("%# 20X", 10000) == " 0X2710" +string.format("%# 20X", 100000) == " 0X186A0" +string.format("%# 20X", 1000000) == " 0XF4240" +string.format("%# 20X", 10000000) == " 0X989680" +string.format("%# 20.0X", 0) == " " +string.format("%# 20.0X", 1) == " 0X1" +string.format("%# 20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# 20.0X", 2) == " 0X2" +string.format("%# 20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# 20.0X", 3) == " 0X3" +string.format("%# 20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# 20.0X", 100) == " 0X64" +string.format("%# 20.0X", 10000) == " 0X2710" +string.format("%# 20.0X", 100000) == " 0X186A0" +string.format("%# 20.0X", 1000000) == " 0XF4240" +string.format("%# 20.0X", 10000000) == " 0X989680" +string.format("%# 20.1X", 0) == " 0" +string.format("%# 20.1X", 1) == " 0X1" +string.format("%# 20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# 20.1X", 2) == " 0X2" +string.format("%# 20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# 20.1X", 3) == " 0X3" +string.format("%# 20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# 20.1X", 100) == " 0X64" +string.format("%# 20.1X", 10000) == " 0X2710" +string.format("%# 20.1X", 100000) == " 0X186A0" +string.format("%# 20.1X", 1000000) == " 0XF4240" +string.format("%# 20.1X", 10000000) == " 0X989680" +string.format("%# 20.6X", 0) == " 000000" +string.format("%# 20.6X", 1) == " 0X000001" +string.format("%# 20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# 20.6X", 2) == " 0X000002" +string.format("%# 20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# 20.6X", 3) == " 0X000003" +string.format("%# 20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# 20.6X", 100) == " 0X000064" +string.format("%# 20.6X", 10000) == " 0X002710" +string.format("%# 20.6X", 100000) == " 0X0186A0" +string.format("%# 20.6X", 1000000) == " 0X0F4240" +string.format("%# 20.6X", 10000000) == " 0X989680" +string.format("%# +X", 0) == "0" +string.format("%# +X", 1) == "0X1" +string.format("%# +X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%# +X", 2) == "0X2" +string.format("%# +X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%# +X", 3) == "0X3" +string.format("%# +X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%# +X", 100) == "0X64" +string.format("%# +X", 10000) == "0X2710" +string.format("%# +X", 100000) == "0X186A0" +string.format("%# +X", 1000000) == "0XF4240" +string.format("%# +X", 10000000) == "0X989680" +string.format("%# +.0X", 0) == "" +string.format("%# +.6X", 0) == "000000" +string.format("%# +.6X", 1) == "0X000001" +string.format("%# +.6X", 2) == "0X000002" +string.format("%# +.6X", 3) == "0X000003" +string.format("%# +.6X", 100) == "0X000064" +string.format("%# +.6X", 10000) == "0X002710" +string.format("%# +.6X", 100000) == "0X0186A0" +string.format("%# +.6X", 1000000) == "0X0F4240" +string.format("%# +1.0X", 0) == " " +string.format("%# +1.6X", 0) == "000000" +string.format("%# +1.6X", 1) == "0X000001" +string.format("%# +1.6X", 2) == "0X000002" +string.format("%# +1.6X", 3) == "0X000003" +string.format("%# +1.6X", 100) == "0X000064" +string.format("%# +1.6X", 10000) == "0X002710" +string.format("%# +1.6X", 100000) == "0X0186A0" +string.format("%# +1.6X", 1000000) == "0X0F4240" +string.format("%# +2X", 0) == " 0" +string.format("%# +2.0X", 0) == " " +string.format("%# +2.1X", 0) == " 0" +string.format("%# +2.6X", 0) == "000000" +string.format("%# +2.6X", 1) == "0X000001" +string.format("%# +2.6X", 2) == "0X000002" +string.format("%# +2.6X", 3) == "0X000003" +string.format("%# +2.6X", 100) == "0X000064" +string.format("%# +2.6X", 10000) == "0X002710" +string.format("%# +2.6X", 100000) == "0X0186A0" +string.format("%# +2.6X", 1000000) == "0X0F4240" +string.format("%# +6X", 0) == " 0" +string.format("%# +6X", 1) == " 0X1" +string.format("%# +6X", 2) == " 0X2" +string.format("%# +6X", 3) == " 0X3" +string.format("%# +6X", 100) == " 0X64" +string.format("%# +6.0X", 0) == " " +string.format("%# +6.0X", 1) == " 0X1" +string.format("%# +6.0X", 2) == " 0X2" +string.format("%# +6.0X", 3) == " 0X3" +string.format("%# +6.0X", 100) == " 0X64" +string.format("%# +6.1X", 0) == " 0" +string.format("%# +6.1X", 1) == " 0X1" +string.format("%# +6.1X", 2) == " 0X2" +string.format("%# +6.1X", 3) == " 0X3" +string.format("%# +6.1X", 100) == " 0X64" +string.format("%# +6.6X", 0) == "000000" +string.format("%# +6.6X", 1) == "0X000001" +string.format("%# +6.6X", 2) == "0X000002" +string.format("%# +6.6X", 3) == "0X000003" +string.format("%# +6.6X", 100) == "0X000064" +string.format("%# +6.6X", 10000) == "0X002710" +string.format("%# +6.6X", 100000) == "0X0186A0" +string.format("%# +6.6X", 1000000) == "0X0F4240" +string.format("%# +20X", 0) == " 0" +string.format("%# +20X", 1) == " 0X1" +string.format("%# +20X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# +20X", 2) == " 0X2" +string.format("%# +20X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# +20X", 3) == " 0X3" +string.format("%# +20X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# +20X", 100) == " 0X64" +string.format("%# +20X", 10000) == " 0X2710" +string.format("%# +20X", 100000) == " 0X186A0" +string.format("%# +20X", 1000000) == " 0XF4240" +string.format("%# +20X", 10000000) == " 0X989680" +string.format("%# +20.0X", 0) == " " +string.format("%# +20.0X", 1) == " 0X1" +string.format("%# +20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# +20.0X", 2) == " 0X2" +string.format("%# +20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# +20.0X", 3) == " 0X3" +string.format("%# +20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# +20.0X", 100) == " 0X64" +string.format("%# +20.0X", 10000) == " 0X2710" +string.format("%# +20.0X", 100000) == " 0X186A0" +string.format("%# +20.0X", 1000000) == " 0XF4240" +string.format("%# +20.0X", 10000000) == " 0X989680" +string.format("%# +20.1X", 0) == " 0" +string.format("%# +20.1X", 1) == " 0X1" +string.format("%# +20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# +20.1X", 2) == " 0X2" +string.format("%# +20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# +20.1X", 3) == " 0X3" +string.format("%# +20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# +20.1X", 100) == " 0X64" +string.format("%# +20.1X", 10000) == " 0X2710" +string.format("%# +20.1X", 100000) == " 0X186A0" +string.format("%# +20.1X", 1000000) == " 0XF4240" +string.format("%# +20.1X", 10000000) == " 0X989680" +string.format("%# +20.6X", 0) == " 000000" +string.format("%# +20.6X", 1) == " 0X000001" +string.format("%# +20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%# +20.6X", 2) == " 0X000002" +string.format("%# +20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%# +20.6X", 3) == " 0X000003" +string.format("%# +20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%# +20.6X", 100) == " 0X000064" +string.format("%# +20.6X", 10000) == " 0X002710" +string.format("%# +20.6X", 100000) == " 0X0186A0" +string.format("%# +20.6X", 1000000) == " 0X0F4240" +string.format("%# +20.6X", 10000000) == " 0X989680" +string.format("%# -X", 0) == "0" +string.format("%# -X", 1) == "0X1" +string.format("%# -X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%# -X", 2) == "0X2" +string.format("%# -X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%# -X", 3) == "0X3" +string.format("%# -X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%# -X", 100) == "0X64" +string.format("%# -X", 10000) == "0X2710" +string.format("%# -X", 100000) == "0X186A0" +string.format("%# -X", 1000000) == "0XF4240" +string.format("%# -X", 10000000) == "0X989680" +string.format("%# -.0X", 0) == "" +string.format("%# -.6X", 0) == "000000" +string.format("%# -.6X", 1) == "0X000001" +string.format("%# -.6X", 2) == "0X000002" +string.format("%# -.6X", 3) == "0X000003" +string.format("%# -.6X", 100) == "0X000064" +string.format("%# -.6X", 10000) == "0X002710" +string.format("%# -.6X", 100000) == "0X0186A0" +string.format("%# -.6X", 1000000) == "0X0F4240" +string.format("%# -1.0X", 0) == " " +string.format("%# -1.6X", 0) == "000000" +string.format("%# -1.6X", 1) == "0X000001" +string.format("%# -1.6X", 2) == "0X000002" +string.format("%# -1.6X", 3) == "0X000003" +string.format("%# -1.6X", 100) == "0X000064" +string.format("%# -1.6X", 10000) == "0X002710" +string.format("%# -1.6X", 100000) == "0X0186A0" +string.format("%# -1.6X", 1000000) == "0X0F4240" +string.format("%# -2X", 0) == "0 " +string.format("%# -2.0X", 0) == " " +string.format("%# -2.1X", 0) == "0 " +string.format("%# -2.6X", 0) == "000000" +string.format("%# -2.6X", 1) == "0X000001" +string.format("%# -2.6X", 2) == "0X000002" +string.format("%# -2.6X", 3) == "0X000003" +string.format("%# -2.6X", 100) == "0X000064" +string.format("%# -2.6X", 10000) == "0X002710" +string.format("%# -2.6X", 100000) == "0X0186A0" +string.format("%# -2.6X", 1000000) == "0X0F4240" +string.format("%# -6X", 0) == "0 " +string.format("%# -6X", 1) == "0X1 " +string.format("%# -6X", 2) == "0X2 " +string.format("%# -6X", 3) == "0X3 " +string.format("%# -6X", 100) == "0X64 " +string.format("%# -6.0X", 0) == " " +string.format("%# -6.0X", 1) == "0X1 " +string.format("%# -6.0X", 2) == "0X2 " +string.format("%# -6.0X", 3) == "0X3 " +string.format("%# -6.0X", 100) == "0X64 " +string.format("%# -6.1X", 0) == "0 " +string.format("%# -6.1X", 1) == "0X1 " +string.format("%# -6.1X", 2) == "0X2 " +string.format("%# -6.1X", 3) == "0X3 " +string.format("%# -6.1X", 100) == "0X64 " +string.format("%# -6.6X", 0) == "000000" +string.format("%# -6.6X", 1) == "0X000001" +string.format("%# -6.6X", 2) == "0X000002" +string.format("%# -6.6X", 3) == "0X000003" +string.format("%# -6.6X", 100) == "0X000064" +string.format("%# -6.6X", 10000) == "0X002710" +string.format("%# -6.6X", 100000) == "0X0186A0" +string.format("%# -6.6X", 1000000) == "0X0F4240" +string.format("%# -20X", 0) == "0 " +string.format("%# -20X", 1) == "0X1 " +string.format("%# -20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -20X", 2) == "0X2 " +string.format("%# -20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -20X", 3) == "0X3 " +string.format("%# -20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -20X", 100) == "0X64 " +string.format("%# -20X", 10000) == "0X2710 " +string.format("%# -20X", 100000) == "0X186A0 " +string.format("%# -20X", 1000000) == "0XF4240 " +string.format("%# -20X", 10000000) == "0X989680 " +string.format("%# -20.0X", 0) == " " +string.format("%# -20.0X", 1) == "0X1 " +string.format("%# -20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -20.0X", 2) == "0X2 " +string.format("%# -20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -20.0X", 3) == "0X3 " +string.format("%# -20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -20.0X", 100) == "0X64 " +string.format("%# -20.0X", 10000) == "0X2710 " +string.format("%# -20.0X", 100000) == "0X186A0 " +string.format("%# -20.0X", 1000000) == "0XF4240 " +string.format("%# -20.0X", 10000000) == "0X989680 " +string.format("%# -20.1X", 0) == "0 " +string.format("%# -20.1X", 1) == "0X1 " +string.format("%# -20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -20.1X", 2) == "0X2 " +string.format("%# -20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -20.1X", 3) == "0X3 " +string.format("%# -20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -20.1X", 100) == "0X64 " +string.format("%# -20.1X", 10000) == "0X2710 " +string.format("%# -20.1X", 100000) == "0X186A0 " +string.format("%# -20.1X", 1000000) == "0XF4240 " +string.format("%# -20.1X", 10000000) == "0X989680 " +string.format("%# -20.6X", 0) == "000000 " +string.format("%# -20.6X", 1) == "0X000001 " +string.format("%# -20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -20.6X", 2) == "0X000002 " +string.format("%# -20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -20.6X", 3) == "0X000003 " +string.format("%# -20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -20.6X", 100) == "0X000064 " +string.format("%# -20.6X", 10000) == "0X002710 " +string.format("%# -20.6X", 100000) == "0X0186A0 " +string.format("%# -20.6X", 1000000) == "0X0F4240 " +string.format("%# -20.6X", 10000000) == "0X989680 " +string.format("%# -+X", 0) == "0" +string.format("%# -+X", 1) == "0X1" +string.format("%# -+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%# -+X", 2) == "0X2" +string.format("%# -+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%# -+X", 3) == "0X3" +string.format("%# -+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%# -+X", 100) == "0X64" +string.format("%# -+X", 10000) == "0X2710" +string.format("%# -+X", 100000) == "0X186A0" +string.format("%# -+X", 1000000) == "0XF4240" +string.format("%# -+X", 10000000) == "0X989680" +string.format("%# -+.0X", 0) == "" +string.format("%# -+.6X", 0) == "000000" +string.format("%# -+.6X", 1) == "0X000001" +string.format("%# -+.6X", 2) == "0X000002" +string.format("%# -+.6X", 3) == "0X000003" +string.format("%# -+.6X", 100) == "0X000064" +string.format("%# -+.6X", 10000) == "0X002710" +string.format("%# -+.6X", 100000) == "0X0186A0" +string.format("%# -+.6X", 1000000) == "0X0F4240" +string.format("%# -+1.0X", 0) == " " +string.format("%# -+1.6X", 0) == "000000" +string.format("%# -+1.6X", 1) == "0X000001" +string.format("%# -+1.6X", 2) == "0X000002" +string.format("%# -+1.6X", 3) == "0X000003" +string.format("%# -+1.6X", 100) == "0X000064" +string.format("%# -+1.6X", 10000) == "0X002710" +string.format("%# -+1.6X", 100000) == "0X0186A0" +string.format("%# -+1.6X", 1000000) == "0X0F4240" +string.format("%# -+2X", 0) == "0 " +string.format("%# -+2.0X", 0) == " " +string.format("%# -+2.1X", 0) == "0 " +string.format("%# -+2.6X", 0) == "000000" +string.format("%# -+2.6X", 1) == "0X000001" +string.format("%# -+2.6X", 2) == "0X000002" +string.format("%# -+2.6X", 3) == "0X000003" +string.format("%# -+2.6X", 100) == "0X000064" +string.format("%# -+2.6X", 10000) == "0X002710" +string.format("%# -+2.6X", 100000) == "0X0186A0" +string.format("%# -+2.6X", 1000000) == "0X0F4240" +string.format("%# -+6X", 0) == "0 " +string.format("%# -+6X", 1) == "0X1 " +string.format("%# -+6X", 2) == "0X2 " +string.format("%# -+6X", 3) == "0X3 " +string.format("%# -+6X", 100) == "0X64 " +string.format("%# -+6.0X", 0) == " " +string.format("%# -+6.0X", 1) == "0X1 " +string.format("%# -+6.0X", 2) == "0X2 " +string.format("%# -+6.0X", 3) == "0X3 " +string.format("%# -+6.0X", 100) == "0X64 " +string.format("%# -+6.1X", 0) == "0 " +string.format("%# -+6.1X", 1) == "0X1 " +string.format("%# -+6.1X", 2) == "0X2 " +string.format("%# -+6.1X", 3) == "0X3 " +string.format("%# -+6.1X", 100) == "0X64 " +string.format("%# -+6.6X", 0) == "000000" +string.format("%# -+6.6X", 1) == "0X000001" +string.format("%# -+6.6X", 2) == "0X000002" +string.format("%# -+6.6X", 3) == "0X000003" +string.format("%# -+6.6X", 100) == "0X000064" +string.format("%# -+6.6X", 10000) == "0X002710" +string.format("%# -+6.6X", 100000) == "0X0186A0" +string.format("%# -+6.6X", 1000000) == "0X0F4240" +string.format("%# -+20X", 0) == "0 " +string.format("%# -+20X", 1) == "0X1 " +string.format("%# -+20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -+20X", 2) == "0X2 " +string.format("%# -+20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -+20X", 3) == "0X3 " +string.format("%# -+20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -+20X", 100) == "0X64 " +string.format("%# -+20X", 10000) == "0X2710 " +string.format("%# -+20X", 100000) == "0X186A0 " +string.format("%# -+20X", 1000000) == "0XF4240 " +string.format("%# -+20X", 10000000) == "0X989680 " +string.format("%# -+20.0X", 0) == " " +string.format("%# -+20.0X", 1) == "0X1 " +string.format("%# -+20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -+20.0X", 2) == "0X2 " +string.format("%# -+20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -+20.0X", 3) == "0X3 " +string.format("%# -+20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -+20.0X", 100) == "0X64 " +string.format("%# -+20.0X", 10000) == "0X2710 " +string.format("%# -+20.0X", 100000) == "0X186A0 " +string.format("%# -+20.0X", 1000000) == "0XF4240 " +string.format("%# -+20.0X", 10000000) == "0X989680 " +string.format("%# -+20.1X", 0) == "0 " +string.format("%# -+20.1X", 1) == "0X1 " +string.format("%# -+20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -+20.1X", 2) == "0X2 " +string.format("%# -+20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -+20.1X", 3) == "0X3 " +string.format("%# -+20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -+20.1X", 100) == "0X64 " +string.format("%# -+20.1X", 10000) == "0X2710 " +string.format("%# -+20.1X", 100000) == "0X186A0 " +string.format("%# -+20.1X", 1000000) == "0XF4240 " +string.format("%# -+20.1X", 10000000) == "0X989680 " +string.format("%# -+20.6X", 0) == "000000 " +string.format("%# -+20.6X", 1) == "0X000001 " +string.format("%# -+20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%# -+20.6X", 2) == "0X000002 " +string.format("%# -+20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%# -+20.6X", 3) == "0X000003 " +string.format("%# -+20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%# -+20.6X", 100) == "0X000064 " +string.format("%# -+20.6X", 10000) == "0X002710 " +string.format("%# -+20.6X", 100000) == "0X0186A0 " +string.format("%# -+20.6X", 1000000) == "0X0F4240 " +string.format("%# -+20.6X", 10000000) == "0X989680 " +string.format("%0X", 0) == "0" +string.format("%0X", 1) == "1" +string.format("%0X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0X", 2) == "2" +string.format("%0X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0X", 3) == "3" +string.format("%0X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0X", 100) == "64" +string.format("%0X", 10000) == "2710" +string.format("%0X", 100000) == "186A0" +string.format("%0X", 1000000) == "F4240" +string.format("%0X", 10000000) == "989680" +string.format("%0.0X", 0) == "" +string.format("%0.6X", 0) == "000000" +string.format("%0.6X", 1) == "000001" +string.format("%0.6X", 2) == "000002" +string.format("%0.6X", 3) == "000003" +string.format("%0.6X", 100) == "000064" +string.format("%0.6X", 10000) == "002710" +string.format("%0.6X", 100000) == "0186A0" +string.format("%0.6X", 1000000) == "0F4240" +string.format("%01.0X", 0) == " " +string.format("%01.6X", 0) == "000000" +string.format("%01.6X", 1) == "000001" +string.format("%01.6X", 2) == "000002" +string.format("%01.6X", 3) == "000003" +string.format("%01.6X", 100) == "000064" +string.format("%01.6X", 10000) == "002710" +string.format("%01.6X", 100000) == "0186A0" +string.format("%01.6X", 1000000) == "0F4240" +string.format("%02X", 0) == "00" +string.format("%02X", 1) == "01" +string.format("%02X", 2) == "02" +string.format("%02X", 3) == "03" +string.format("%02.0X", 0) == " " +string.format("%02.0X", 1) == " 1" +string.format("%02.0X", 2) == " 2" +string.format("%02.0X", 3) == " 3" +string.format("%02.1X", 0) == " 0" +string.format("%02.1X", 1) == " 1" +string.format("%02.1X", 2) == " 2" +string.format("%02.1X", 3) == " 3" +string.format("%02.6X", 0) == "000000" +string.format("%02.6X", 1) == "000001" +string.format("%02.6X", 2) == "000002" +string.format("%02.6X", 3) == "000003" +string.format("%02.6X", 100) == "000064" +string.format("%02.6X", 10000) == "002710" +string.format("%02.6X", 100000) == "0186A0" +string.format("%02.6X", 1000000) == "0F4240" +string.format("%06X", 0) == "000000" +string.format("%06X", 1) == "000001" +string.format("%06X", 2) == "000002" +string.format("%06X", 3) == "000003" +string.format("%06X", 100) == "000064" +string.format("%06X", 10000) == "002710" +string.format("%06X", 100000) == "0186A0" +string.format("%06X", 1000000) == "0F4240" +string.format("%06.0X", 0) == " " +string.format("%06.0X", 1) == " 1" +string.format("%06.0X", 2) == " 2" +string.format("%06.0X", 3) == " 3" +string.format("%06.0X", 100) == " 64" +string.format("%06.0X", 10000) == " 2710" +string.format("%06.0X", 100000) == " 186A0" +string.format("%06.0X", 1000000) == " F4240" +string.format("%06.1X", 0) == " 0" +string.format("%06.1X", 1) == " 1" +string.format("%06.1X", 2) == " 2" +string.format("%06.1X", 3) == " 3" +string.format("%06.1X", 100) == " 64" +string.format("%06.1X", 10000) == " 2710" +string.format("%06.1X", 100000) == " 186A0" +string.format("%06.1X", 1000000) == " F4240" +string.format("%06.6X", 0) == "000000" +string.format("%06.6X", 1) == "000001" +string.format("%06.6X", 2) == "000002" +string.format("%06.6X", 3) == "000003" +string.format("%06.6X", 100) == "000064" +string.format("%06.6X", 10000) == "002710" +string.format("%06.6X", 100000) == "0186A0" +string.format("%06.6X", 1000000) == "0F4240" +string.format("%020X", 0) == "00000000000000000000" +string.format("%020X", 1) == "00000000000000000001" +string.format("%020X", -1) == "0000FFFFFFFFFFFFFFFF" +string.format("%020X", 2) == "00000000000000000002" +string.format("%020X", -2) == "0000FFFFFFFFFFFFFFFE" +string.format("%020X", 3) == "00000000000000000003" +string.format("%020X", -3) == "0000FFFFFFFFFFFFFFFD" +string.format("%020X", 100) == "00000000000000000064" +string.format("%020X", 10000) == "00000000000000002710" +string.format("%020X", 100000) == "000000000000000186A0" +string.format("%020X", 1000000) == "000000000000000F4240" +string.format("%020X", 10000000) == "00000000000000989680" +string.format("%020.0X", 0) == " " +string.format("%020.0X", 1) == " 1" +string.format("%020.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%020.0X", 2) == " 2" +string.format("%020.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%020.0X", 3) == " 3" +string.format("%020.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%020.0X", 100) == " 64" +string.format("%020.0X", 10000) == " 2710" +string.format("%020.0X", 100000) == " 186A0" +string.format("%020.0X", 1000000) == " F4240" +string.format("%020.0X", 10000000) == " 989680" +string.format("%020.1X", 0) == " 0" +string.format("%020.1X", 1) == " 1" +string.format("%020.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%020.1X", 2) == " 2" +string.format("%020.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%020.1X", 3) == " 3" +string.format("%020.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%020.1X", 100) == " 64" +string.format("%020.1X", 10000) == " 2710" +string.format("%020.1X", 100000) == " 186A0" +string.format("%020.1X", 1000000) == " F4240" +string.format("%020.1X", 10000000) == " 989680" +string.format("%020.6X", 0) == " 000000" +string.format("%020.6X", 1) == " 000001" +string.format("%020.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%020.6X", 2) == " 000002" +string.format("%020.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%020.6X", 3) == " 000003" +string.format("%020.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%020.6X", 100) == " 000064" +string.format("%020.6X", 10000) == " 002710" +string.format("%020.6X", 100000) == " 0186A0" +string.format("%020.6X", 1000000) == " 0F4240" +string.format("%020.6X", 10000000) == " 989680" +string.format("%0+X", 0) == "0" +string.format("%0+X", 1) == "1" +string.format("%0+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0+X", 2) == "2" +string.format("%0+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0+X", 3) == "3" +string.format("%0+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0+X", 100) == "64" +string.format("%0+X", 10000) == "2710" +string.format("%0+X", 100000) == "186A0" +string.format("%0+X", 1000000) == "F4240" +string.format("%0+X", 10000000) == "989680" +string.format("%0+.0X", 0) == "" +string.format("%0+.6X", 0) == "000000" +string.format("%0+.6X", 1) == "000001" +string.format("%0+.6X", 2) == "000002" +string.format("%0+.6X", 3) == "000003" +string.format("%0+.6X", 100) == "000064" +string.format("%0+.6X", 10000) == "002710" +string.format("%0+.6X", 100000) == "0186A0" +string.format("%0+.6X", 1000000) == "0F4240" +string.format("%0+1.0X", 0) == " " +string.format("%0+1.6X", 0) == "000000" +string.format("%0+1.6X", 1) == "000001" +string.format("%0+1.6X", 2) == "000002" +string.format("%0+1.6X", 3) == "000003" +string.format("%0+1.6X", 100) == "000064" +string.format("%0+1.6X", 10000) == "002710" +string.format("%0+1.6X", 100000) == "0186A0" +string.format("%0+1.6X", 1000000) == "0F4240" +string.format("%0+2X", 0) == "00" +string.format("%0+2X", 1) == "01" +string.format("%0+2X", 2) == "02" +string.format("%0+2X", 3) == "03" +string.format("%0+2.0X", 0) == " " +string.format("%0+2.0X", 1) == " 1" +string.format("%0+2.0X", 2) == " 2" +string.format("%0+2.0X", 3) == " 3" +string.format("%0+2.1X", 0) == " 0" +string.format("%0+2.1X", 1) == " 1" +string.format("%0+2.1X", 2) == " 2" +string.format("%0+2.1X", 3) == " 3" +string.format("%0+2.6X", 0) == "000000" +string.format("%0+2.6X", 1) == "000001" +string.format("%0+2.6X", 2) == "000002" +string.format("%0+2.6X", 3) == "000003" +string.format("%0+2.6X", 100) == "000064" +string.format("%0+2.6X", 10000) == "002710" +string.format("%0+2.6X", 100000) == "0186A0" +string.format("%0+2.6X", 1000000) == "0F4240" +string.format("%0+6X", 0) == "000000" +string.format("%0+6X", 1) == "000001" +string.format("%0+6X", 2) == "000002" +string.format("%0+6X", 3) == "000003" +string.format("%0+6X", 100) == "000064" +string.format("%0+6X", 10000) == "002710" +string.format("%0+6X", 100000) == "0186A0" +string.format("%0+6X", 1000000) == "0F4240" +string.format("%0+6.0X", 0) == " " +string.format("%0+6.0X", 1) == " 1" +string.format("%0+6.0X", 2) == " 2" +string.format("%0+6.0X", 3) == " 3" +string.format("%0+6.0X", 100) == " 64" +string.format("%0+6.0X", 10000) == " 2710" +string.format("%0+6.0X", 100000) == " 186A0" +string.format("%0+6.0X", 1000000) == " F4240" +string.format("%0+6.1X", 0) == " 0" +string.format("%0+6.1X", 1) == " 1" +string.format("%0+6.1X", 2) == " 2" +string.format("%0+6.1X", 3) == " 3" +string.format("%0+6.1X", 100) == " 64" +string.format("%0+6.1X", 10000) == " 2710" +string.format("%0+6.1X", 100000) == " 186A0" +string.format("%0+6.1X", 1000000) == " F4240" +string.format("%0+6.6X", 0) == "000000" +string.format("%0+6.6X", 1) == "000001" +string.format("%0+6.6X", 2) == "000002" +string.format("%0+6.6X", 3) == "000003" +string.format("%0+6.6X", 100) == "000064" +string.format("%0+6.6X", 10000) == "002710" +string.format("%0+6.6X", 100000) == "0186A0" +string.format("%0+6.6X", 1000000) == "0F4240" +string.format("%0+20X", 0) == "00000000000000000000" +string.format("%0+20X", 1) == "00000000000000000001" +string.format("%0+20X", -1) == "0000FFFFFFFFFFFFFFFF" +string.format("%0+20X", 2) == "00000000000000000002" +string.format("%0+20X", -2) == "0000FFFFFFFFFFFFFFFE" +string.format("%0+20X", 3) == "00000000000000000003" +string.format("%0+20X", -3) == "0000FFFFFFFFFFFFFFFD" +string.format("%0+20X", 100) == "00000000000000000064" +string.format("%0+20X", 10000) == "00000000000000002710" +string.format("%0+20X", 100000) == "000000000000000186A0" +string.format("%0+20X", 1000000) == "000000000000000F4240" +string.format("%0+20X", 10000000) == "00000000000000989680" +string.format("%0+20.0X", 0) == " " +string.format("%0+20.0X", 1) == " 1" +string.format("%0+20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0+20.0X", 2) == " 2" +string.format("%0+20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0+20.0X", 3) == " 3" +string.format("%0+20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0+20.0X", 100) == " 64" +string.format("%0+20.0X", 10000) == " 2710" +string.format("%0+20.0X", 100000) == " 186A0" +string.format("%0+20.0X", 1000000) == " F4240" +string.format("%0+20.0X", 10000000) == " 989680" +string.format("%0+20.1X", 0) == " 0" +string.format("%0+20.1X", 1) == " 1" +string.format("%0+20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0+20.1X", 2) == " 2" +string.format("%0+20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0+20.1X", 3) == " 3" +string.format("%0+20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0+20.1X", 100) == " 64" +string.format("%0+20.1X", 10000) == " 2710" +string.format("%0+20.1X", 100000) == " 186A0" +string.format("%0+20.1X", 1000000) == " F4240" +string.format("%0+20.1X", 10000000) == " 989680" +string.format("%0+20.6X", 0) == " 000000" +string.format("%0+20.6X", 1) == " 000001" +string.format("%0+20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0+20.6X", 2) == " 000002" +string.format("%0+20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0+20.6X", 3) == " 000003" +string.format("%0+20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0+20.6X", 100) == " 000064" +string.format("%0+20.6X", 10000) == " 002710" +string.format("%0+20.6X", 100000) == " 0186A0" +string.format("%0+20.6X", 1000000) == " 0F4240" +string.format("%0+20.6X", 10000000) == " 989680" +string.format("%0-X", 0) == "0" +string.format("%0-X", 1) == "1" +string.format("%0-X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0-X", 2) == "2" +string.format("%0-X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0-X", 3) == "3" +string.format("%0-X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0-X", 100) == "64" +string.format("%0-X", 10000) == "2710" +string.format("%0-X", 100000) == "186A0" +string.format("%0-X", 1000000) == "F4240" +string.format("%0-X", 10000000) == "989680" +string.format("%0-.0X", 0) == "" +string.format("%0-.6X", 0) == "000000" +string.format("%0-.6X", 1) == "000001" +string.format("%0-.6X", 2) == "000002" +string.format("%0-.6X", 3) == "000003" +string.format("%0-.6X", 100) == "000064" +string.format("%0-.6X", 10000) == "002710" +string.format("%0-.6X", 100000) == "0186A0" +string.format("%0-.6X", 1000000) == "0F4240" +string.format("%0-1.0X", 0) == " " +string.format("%0-1.6X", 0) == "000000" +string.format("%0-1.6X", 1) == "000001" +string.format("%0-1.6X", 2) == "000002" +string.format("%0-1.6X", 3) == "000003" +string.format("%0-1.6X", 100) == "000064" +string.format("%0-1.6X", 10000) == "002710" +string.format("%0-1.6X", 100000) == "0186A0" +string.format("%0-1.6X", 1000000) == "0F4240" +string.format("%0-2X", 0) == "0 " +string.format("%0-2X", 1) == "1 " +string.format("%0-2X", 2) == "2 " +string.format("%0-2X", 3) == "3 " +string.format("%0-2.0X", 0) == " " +string.format("%0-2.0X", 1) == "1 " +string.format("%0-2.0X", 2) == "2 " +string.format("%0-2.0X", 3) == "3 " +string.format("%0-2.1X", 0) == "0 " +string.format("%0-2.1X", 1) == "1 " +string.format("%0-2.1X", 2) == "2 " +string.format("%0-2.1X", 3) == "3 " +string.format("%0-2.6X", 0) == "000000" +string.format("%0-2.6X", 1) == "000001" +string.format("%0-2.6X", 2) == "000002" +string.format("%0-2.6X", 3) == "000003" +string.format("%0-2.6X", 100) == "000064" +string.format("%0-2.6X", 10000) == "002710" +string.format("%0-2.6X", 100000) == "0186A0" +string.format("%0-2.6X", 1000000) == "0F4240" +string.format("%0-6X", 0) == "0 " +string.format("%0-6X", 1) == "1 " +string.format("%0-6X", 2) == "2 " +string.format("%0-6X", 3) == "3 " +string.format("%0-6X", 100) == "64 " +string.format("%0-6X", 10000) == "2710 " +string.format("%0-6X", 100000) == "186A0 " +string.format("%0-6X", 1000000) == "F4240 " +string.format("%0-6.0X", 0) == " " +string.format("%0-6.0X", 1) == "1 " +string.format("%0-6.0X", 2) == "2 " +string.format("%0-6.0X", 3) == "3 " +string.format("%0-6.0X", 100) == "64 " +string.format("%0-6.0X", 10000) == "2710 " +string.format("%0-6.0X", 100000) == "186A0 " +string.format("%0-6.0X", 1000000) == "F4240 " +string.format("%0-6.1X", 0) == "0 " +string.format("%0-6.1X", 1) == "1 " +string.format("%0-6.1X", 2) == "2 " +string.format("%0-6.1X", 3) == "3 " +string.format("%0-6.1X", 100) == "64 " +string.format("%0-6.1X", 10000) == "2710 " +string.format("%0-6.1X", 100000) == "186A0 " +string.format("%0-6.1X", 1000000) == "F4240 " +string.format("%0-6.6X", 0) == "000000" +string.format("%0-6.6X", 1) == "000001" +string.format("%0-6.6X", 2) == "000002" +string.format("%0-6.6X", 3) == "000003" +string.format("%0-6.6X", 100) == "000064" +string.format("%0-6.6X", 10000) == "002710" +string.format("%0-6.6X", 100000) == "0186A0" +string.format("%0-6.6X", 1000000) == "0F4240" +string.format("%0-20X", 0) == "0 " +string.format("%0-20X", 1) == "1 " +string.format("%0-20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-20X", 2) == "2 " +string.format("%0-20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-20X", 3) == "3 " +string.format("%0-20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-20X", 100) == "64 " +string.format("%0-20X", 10000) == "2710 " +string.format("%0-20X", 100000) == "186A0 " +string.format("%0-20X", 1000000) == "F4240 " +string.format("%0-20X", 10000000) == "989680 " +string.format("%0-20.0X", 0) == " " +string.format("%0-20.0X", 1) == "1 " +string.format("%0-20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-20.0X", 2) == "2 " +string.format("%0-20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-20.0X", 3) == "3 " +string.format("%0-20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-20.0X", 100) == "64 " +string.format("%0-20.0X", 10000) == "2710 " +string.format("%0-20.0X", 100000) == "186A0 " +string.format("%0-20.0X", 1000000) == "F4240 " +string.format("%0-20.0X", 10000000) == "989680 " +string.format("%0-20.1X", 0) == "0 " +string.format("%0-20.1X", 1) == "1 " +string.format("%0-20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-20.1X", 2) == "2 " +string.format("%0-20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-20.1X", 3) == "3 " +string.format("%0-20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-20.1X", 100) == "64 " +string.format("%0-20.1X", 10000) == "2710 " +string.format("%0-20.1X", 100000) == "186A0 " +string.format("%0-20.1X", 1000000) == "F4240 " +string.format("%0-20.1X", 10000000) == "989680 " +string.format("%0-20.6X", 0) == "000000 " +string.format("%0-20.6X", 1) == "000001 " +string.format("%0-20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-20.6X", 2) == "000002 " +string.format("%0-20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-20.6X", 3) == "000003 " +string.format("%0-20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-20.6X", 100) == "000064 " +string.format("%0-20.6X", 10000) == "002710 " +string.format("%0-20.6X", 100000) == "0186A0 " +string.format("%0-20.6X", 1000000) == "0F4240 " +string.format("%0-20.6X", 10000000) == "989680 " +string.format("%0-+X", 0) == "0" +string.format("%0-+X", 1) == "1" +string.format("%0-+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0-+X", 2) == "2" +string.format("%0-+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0-+X", 3) == "3" +string.format("%0-+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0-+X", 100) == "64" +string.format("%0-+X", 10000) == "2710" +string.format("%0-+X", 100000) == "186A0" +string.format("%0-+X", 1000000) == "F4240" +string.format("%0-+X", 10000000) == "989680" +string.format("%0-+.0X", 0) == "" +string.format("%0-+.6X", 0) == "000000" +string.format("%0-+.6X", 1) == "000001" +string.format("%0-+.6X", 2) == "000002" +string.format("%0-+.6X", 3) == "000003" +string.format("%0-+.6X", 100) == "000064" +string.format("%0-+.6X", 10000) == "002710" +string.format("%0-+.6X", 100000) == "0186A0" +string.format("%0-+.6X", 1000000) == "0F4240" +string.format("%0-+1.0X", 0) == " " +string.format("%0-+1.6X", 0) == "000000" +string.format("%0-+1.6X", 1) == "000001" +string.format("%0-+1.6X", 2) == "000002" +string.format("%0-+1.6X", 3) == "000003" +string.format("%0-+1.6X", 100) == "000064" +string.format("%0-+1.6X", 10000) == "002710" +string.format("%0-+1.6X", 100000) == "0186A0" +string.format("%0-+1.6X", 1000000) == "0F4240" +string.format("%0-+2X", 0) == "0 " +string.format("%0-+2X", 1) == "1 " +string.format("%0-+2X", 2) == "2 " +string.format("%0-+2X", 3) == "3 " +string.format("%0-+2.0X", 0) == " " +string.format("%0-+2.0X", 1) == "1 " +string.format("%0-+2.0X", 2) == "2 " +string.format("%0-+2.0X", 3) == "3 " +string.format("%0-+2.1X", 0) == "0 " +string.format("%0-+2.1X", 1) == "1 " +string.format("%0-+2.1X", 2) == "2 " +string.format("%0-+2.1X", 3) == "3 " +string.format("%0-+2.6X", 0) == "000000" +string.format("%0-+2.6X", 1) == "000001" +string.format("%0-+2.6X", 2) == "000002" +string.format("%0-+2.6X", 3) == "000003" +string.format("%0-+2.6X", 100) == "000064" +string.format("%0-+2.6X", 10000) == "002710" +string.format("%0-+2.6X", 100000) == "0186A0" +string.format("%0-+2.6X", 1000000) == "0F4240" +string.format("%0-+6X", 0) == "0 " +string.format("%0-+6X", 1) == "1 " +string.format("%0-+6X", 2) == "2 " +string.format("%0-+6X", 3) == "3 " +string.format("%0-+6X", 100) == "64 " +string.format("%0-+6X", 10000) == "2710 " +string.format("%0-+6X", 100000) == "186A0 " +string.format("%0-+6X", 1000000) == "F4240 " +string.format("%0-+6.0X", 0) == " " +string.format("%0-+6.0X", 1) == "1 " +string.format("%0-+6.0X", 2) == "2 " +string.format("%0-+6.0X", 3) == "3 " +string.format("%0-+6.0X", 100) == "64 " +string.format("%0-+6.0X", 10000) == "2710 " +string.format("%0-+6.0X", 100000) == "186A0 " +string.format("%0-+6.0X", 1000000) == "F4240 " +string.format("%0-+6.1X", 0) == "0 " +string.format("%0-+6.1X", 1) == "1 " +string.format("%0-+6.1X", 2) == "2 " +string.format("%0-+6.1X", 3) == "3 " +string.format("%0-+6.1X", 100) == "64 " +string.format("%0-+6.1X", 10000) == "2710 " +string.format("%0-+6.1X", 100000) == "186A0 " +string.format("%0-+6.1X", 1000000) == "F4240 " +string.format("%0-+6.6X", 0) == "000000" +string.format("%0-+6.6X", 1) == "000001" +string.format("%0-+6.6X", 2) == "000002" +string.format("%0-+6.6X", 3) == "000003" +string.format("%0-+6.6X", 100) == "000064" +string.format("%0-+6.6X", 10000) == "002710" +string.format("%0-+6.6X", 100000) == "0186A0" +string.format("%0-+6.6X", 1000000) == "0F4240" +string.format("%0-+20X", 0) == "0 " +string.format("%0-+20X", 1) == "1 " +string.format("%0-+20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-+20X", 2) == "2 " +string.format("%0-+20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-+20X", 3) == "3 " +string.format("%0-+20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-+20X", 100) == "64 " +string.format("%0-+20X", 10000) == "2710 " +string.format("%0-+20X", 100000) == "186A0 " +string.format("%0-+20X", 1000000) == "F4240 " +string.format("%0-+20X", 10000000) == "989680 " +string.format("%0-+20.0X", 0) == " " +string.format("%0-+20.0X", 1) == "1 " +string.format("%0-+20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-+20.0X", 2) == "2 " +string.format("%0-+20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-+20.0X", 3) == "3 " +string.format("%0-+20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-+20.0X", 100) == "64 " +string.format("%0-+20.0X", 10000) == "2710 " +string.format("%0-+20.0X", 100000) == "186A0 " +string.format("%0-+20.0X", 1000000) == "F4240 " +string.format("%0-+20.0X", 10000000) == "989680 " +string.format("%0-+20.1X", 0) == "0 " +string.format("%0-+20.1X", 1) == "1 " +string.format("%0-+20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-+20.1X", 2) == "2 " +string.format("%0-+20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-+20.1X", 3) == "3 " +string.format("%0-+20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-+20.1X", 100) == "64 " +string.format("%0-+20.1X", 10000) == "2710 " +string.format("%0-+20.1X", 100000) == "186A0 " +string.format("%0-+20.1X", 1000000) == "F4240 " +string.format("%0-+20.1X", 10000000) == "989680 " +string.format("%0-+20.6X", 0) == "000000 " +string.format("%0-+20.6X", 1) == "000001 " +string.format("%0-+20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0-+20.6X", 2) == "000002 " +string.format("%0-+20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0-+20.6X", 3) == "000003 " +string.format("%0-+20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0-+20.6X", 100) == "000064 " +string.format("%0-+20.6X", 10000) == "002710 " +string.format("%0-+20.6X", 100000) == "0186A0 " +string.format("%0-+20.6X", 1000000) == "0F4240 " +string.format("%0-+20.6X", 10000000) == "989680 " +string.format("%0 X", 0) == "0" +string.format("%0 X", 1) == "1" +string.format("%0 X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0 X", 2) == "2" +string.format("%0 X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0 X", 3) == "3" +string.format("%0 X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0 X", 100) == "64" +string.format("%0 X", 10000) == "2710" +string.format("%0 X", 100000) == "186A0" +string.format("%0 X", 1000000) == "F4240" +string.format("%0 X", 10000000) == "989680" +string.format("%0 .0X", 0) == "" +string.format("%0 .6X", 0) == "000000" +string.format("%0 .6X", 1) == "000001" +string.format("%0 .6X", 2) == "000002" +string.format("%0 .6X", 3) == "000003" +string.format("%0 .6X", 100) == "000064" +string.format("%0 .6X", 10000) == "002710" +string.format("%0 .6X", 100000) == "0186A0" +string.format("%0 .6X", 1000000) == "0F4240" +string.format("%0 1.0X", 0) == " " +string.format("%0 1.6X", 0) == "000000" +string.format("%0 1.6X", 1) == "000001" +string.format("%0 1.6X", 2) == "000002" +string.format("%0 1.6X", 3) == "000003" +string.format("%0 1.6X", 100) == "000064" +string.format("%0 1.6X", 10000) == "002710" +string.format("%0 1.6X", 100000) == "0186A0" +string.format("%0 1.6X", 1000000) == "0F4240" +string.format("%0 2X", 0) == "00" +string.format("%0 2X", 1) == "01" +string.format("%0 2X", 2) == "02" +string.format("%0 2X", 3) == "03" +string.format("%0 2.0X", 0) == " " +string.format("%0 2.0X", 1) == " 1" +string.format("%0 2.0X", 2) == " 2" +string.format("%0 2.0X", 3) == " 3" +string.format("%0 2.1X", 0) == " 0" +string.format("%0 2.1X", 1) == " 1" +string.format("%0 2.1X", 2) == " 2" +string.format("%0 2.1X", 3) == " 3" +string.format("%0 2.6X", 0) == "000000" +string.format("%0 2.6X", 1) == "000001" +string.format("%0 2.6X", 2) == "000002" +string.format("%0 2.6X", 3) == "000003" +string.format("%0 2.6X", 100) == "000064" +string.format("%0 2.6X", 10000) == "002710" +string.format("%0 2.6X", 100000) == "0186A0" +string.format("%0 2.6X", 1000000) == "0F4240" +string.format("%0 6X", 0) == "000000" +string.format("%0 6X", 1) == "000001" +string.format("%0 6X", 2) == "000002" +string.format("%0 6X", 3) == "000003" +string.format("%0 6X", 100) == "000064" +string.format("%0 6X", 10000) == "002710" +string.format("%0 6X", 100000) == "0186A0" +string.format("%0 6X", 1000000) == "0F4240" +string.format("%0 6.0X", 0) == " " +string.format("%0 6.0X", 1) == " 1" +string.format("%0 6.0X", 2) == " 2" +string.format("%0 6.0X", 3) == " 3" +string.format("%0 6.0X", 100) == " 64" +string.format("%0 6.0X", 10000) == " 2710" +string.format("%0 6.0X", 100000) == " 186A0" +string.format("%0 6.0X", 1000000) == " F4240" +string.format("%0 6.1X", 0) == " 0" +string.format("%0 6.1X", 1) == " 1" +string.format("%0 6.1X", 2) == " 2" +string.format("%0 6.1X", 3) == " 3" +string.format("%0 6.1X", 100) == " 64" +string.format("%0 6.1X", 10000) == " 2710" +string.format("%0 6.1X", 100000) == " 186A0" +string.format("%0 6.1X", 1000000) == " F4240" +string.format("%0 6.6X", 0) == "000000" +string.format("%0 6.6X", 1) == "000001" +string.format("%0 6.6X", 2) == "000002" +string.format("%0 6.6X", 3) == "000003" +string.format("%0 6.6X", 100) == "000064" +string.format("%0 6.6X", 10000) == "002710" +string.format("%0 6.6X", 100000) == "0186A0" +string.format("%0 6.6X", 1000000) == "0F4240" +string.format("%0 20X", 0) == "00000000000000000000" +string.format("%0 20X", 1) == "00000000000000000001" +string.format("%0 20X", -1) == "0000FFFFFFFFFFFFFFFF" +string.format("%0 20X", 2) == "00000000000000000002" +string.format("%0 20X", -2) == "0000FFFFFFFFFFFFFFFE" +string.format("%0 20X", 3) == "00000000000000000003" +string.format("%0 20X", -3) == "0000FFFFFFFFFFFFFFFD" +string.format("%0 20X", 100) == "00000000000000000064" +string.format("%0 20X", 10000) == "00000000000000002710" +string.format("%0 20X", 100000) == "000000000000000186A0" +string.format("%0 20X", 1000000) == "000000000000000F4240" +string.format("%0 20X", 10000000) == "00000000000000989680" +string.format("%0 20.0X", 0) == " " +string.format("%0 20.0X", 1) == " 1" +string.format("%0 20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 20.0X", 2) == " 2" +string.format("%0 20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 20.0X", 3) == " 3" +string.format("%0 20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 20.0X", 100) == " 64" +string.format("%0 20.0X", 10000) == " 2710" +string.format("%0 20.0X", 100000) == " 186A0" +string.format("%0 20.0X", 1000000) == " F4240" +string.format("%0 20.0X", 10000000) == " 989680" +string.format("%0 20.1X", 0) == " 0" +string.format("%0 20.1X", 1) == " 1" +string.format("%0 20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 20.1X", 2) == " 2" +string.format("%0 20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 20.1X", 3) == " 3" +string.format("%0 20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 20.1X", 100) == " 64" +string.format("%0 20.1X", 10000) == " 2710" +string.format("%0 20.1X", 100000) == " 186A0" +string.format("%0 20.1X", 1000000) == " F4240" +string.format("%0 20.1X", 10000000) == " 989680" +string.format("%0 20.6X", 0) == " 000000" +string.format("%0 20.6X", 1) == " 000001" +string.format("%0 20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 20.6X", 2) == " 000002" +string.format("%0 20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 20.6X", 3) == " 000003" +string.format("%0 20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 20.6X", 100) == " 000064" +string.format("%0 20.6X", 10000) == " 002710" +string.format("%0 20.6X", 100000) == " 0186A0" +string.format("%0 20.6X", 1000000) == " 0F4240" +string.format("%0 20.6X", 10000000) == " 989680" +string.format("%0 +X", 0) == "0" +string.format("%0 +X", 1) == "1" +string.format("%0 +X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0 +X", 2) == "2" +string.format("%0 +X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0 +X", 3) == "3" +string.format("%0 +X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0 +X", 100) == "64" +string.format("%0 +X", 10000) == "2710" +string.format("%0 +X", 100000) == "186A0" +string.format("%0 +X", 1000000) == "F4240" +string.format("%0 +X", 10000000) == "989680" +string.format("%0 +.0X", 0) == "" +string.format("%0 +.6X", 0) == "000000" +string.format("%0 +.6X", 1) == "000001" +string.format("%0 +.6X", 2) == "000002" +string.format("%0 +.6X", 3) == "000003" +string.format("%0 +.6X", 100) == "000064" +string.format("%0 +.6X", 10000) == "002710" +string.format("%0 +.6X", 100000) == "0186A0" +string.format("%0 +.6X", 1000000) == "0F4240" +string.format("%0 +1.0X", 0) == " " +string.format("%0 +1.6X", 0) == "000000" +string.format("%0 +1.6X", 1) == "000001" +string.format("%0 +1.6X", 2) == "000002" +string.format("%0 +1.6X", 3) == "000003" +string.format("%0 +1.6X", 100) == "000064" +string.format("%0 +1.6X", 10000) == "002710" +string.format("%0 +1.6X", 100000) == "0186A0" +string.format("%0 +1.6X", 1000000) == "0F4240" +string.format("%0 +2X", 0) == "00" +string.format("%0 +2X", 1) == "01" +string.format("%0 +2X", 2) == "02" +string.format("%0 +2X", 3) == "03" +string.format("%0 +2.0X", 0) == " " +string.format("%0 +2.0X", 1) == " 1" +string.format("%0 +2.0X", 2) == " 2" +string.format("%0 +2.0X", 3) == " 3" +string.format("%0 +2.1X", 0) == " 0" +string.format("%0 +2.1X", 1) == " 1" +string.format("%0 +2.1X", 2) == " 2" +string.format("%0 +2.1X", 3) == " 3" +string.format("%0 +2.6X", 0) == "000000" +string.format("%0 +2.6X", 1) == "000001" +string.format("%0 +2.6X", 2) == "000002" +string.format("%0 +2.6X", 3) == "000003" +string.format("%0 +2.6X", 100) == "000064" +string.format("%0 +2.6X", 10000) == "002710" +string.format("%0 +2.6X", 100000) == "0186A0" +string.format("%0 +2.6X", 1000000) == "0F4240" +string.format("%0 +6X", 0) == "000000" +string.format("%0 +6X", 1) == "000001" +string.format("%0 +6X", 2) == "000002" +string.format("%0 +6X", 3) == "000003" +string.format("%0 +6X", 100) == "000064" +string.format("%0 +6X", 10000) == "002710" +string.format("%0 +6X", 100000) == "0186A0" +string.format("%0 +6X", 1000000) == "0F4240" +string.format("%0 +6.0X", 0) == " " +string.format("%0 +6.0X", 1) == " 1" +string.format("%0 +6.0X", 2) == " 2" +string.format("%0 +6.0X", 3) == " 3" +string.format("%0 +6.0X", 100) == " 64" +string.format("%0 +6.0X", 10000) == " 2710" +string.format("%0 +6.0X", 100000) == " 186A0" +string.format("%0 +6.0X", 1000000) == " F4240" +string.format("%0 +6.1X", 0) == " 0" +string.format("%0 +6.1X", 1) == " 1" +string.format("%0 +6.1X", 2) == " 2" +string.format("%0 +6.1X", 3) == " 3" +string.format("%0 +6.1X", 100) == " 64" +string.format("%0 +6.1X", 10000) == " 2710" +string.format("%0 +6.1X", 100000) == " 186A0" +string.format("%0 +6.1X", 1000000) == " F4240" +string.format("%0 +6.6X", 0) == "000000" +string.format("%0 +6.6X", 1) == "000001" +string.format("%0 +6.6X", 2) == "000002" +string.format("%0 +6.6X", 3) == "000003" +string.format("%0 +6.6X", 100) == "000064" +string.format("%0 +6.6X", 10000) == "002710" +string.format("%0 +6.6X", 100000) == "0186A0" +string.format("%0 +6.6X", 1000000) == "0F4240" +string.format("%0 +20X", 0) == "00000000000000000000" +string.format("%0 +20X", 1) == "00000000000000000001" +string.format("%0 +20X", -1) == "0000FFFFFFFFFFFFFFFF" +string.format("%0 +20X", 2) == "00000000000000000002" +string.format("%0 +20X", -2) == "0000FFFFFFFFFFFFFFFE" +string.format("%0 +20X", 3) == "00000000000000000003" +string.format("%0 +20X", -3) == "0000FFFFFFFFFFFFFFFD" +string.format("%0 +20X", 100) == "00000000000000000064" +string.format("%0 +20X", 10000) == "00000000000000002710" +string.format("%0 +20X", 100000) == "000000000000000186A0" +string.format("%0 +20X", 1000000) == "000000000000000F4240" +string.format("%0 +20X", 10000000) == "00000000000000989680" +string.format("%0 +20.0X", 0) == " " +string.format("%0 +20.0X", 1) == " 1" +string.format("%0 +20.0X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 +20.0X", 2) == " 2" +string.format("%0 +20.0X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 +20.0X", 3) == " 3" +string.format("%0 +20.0X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 +20.0X", 100) == " 64" +string.format("%0 +20.0X", 10000) == " 2710" +string.format("%0 +20.0X", 100000) == " 186A0" +string.format("%0 +20.0X", 1000000) == " F4240" +string.format("%0 +20.0X", 10000000) == " 989680" +string.format("%0 +20.1X", 0) == " 0" +string.format("%0 +20.1X", 1) == " 1" +string.format("%0 +20.1X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 +20.1X", 2) == " 2" +string.format("%0 +20.1X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 +20.1X", 3) == " 3" +string.format("%0 +20.1X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 +20.1X", 100) == " 64" +string.format("%0 +20.1X", 10000) == " 2710" +string.format("%0 +20.1X", 100000) == " 186A0" +string.format("%0 +20.1X", 1000000) == " F4240" +string.format("%0 +20.1X", 10000000) == " 989680" +string.format("%0 +20.6X", 0) == " 000000" +string.format("%0 +20.6X", 1) == " 000001" +string.format("%0 +20.6X", -1) == " FFFFFFFFFFFFFFFF" +string.format("%0 +20.6X", 2) == " 000002" +string.format("%0 +20.6X", -2) == " FFFFFFFFFFFFFFFE" +string.format("%0 +20.6X", 3) == " 000003" +string.format("%0 +20.6X", -3) == " FFFFFFFFFFFFFFFD" +string.format("%0 +20.6X", 100) == " 000064" +string.format("%0 +20.6X", 10000) == " 002710" +string.format("%0 +20.6X", 100000) == " 0186A0" +string.format("%0 +20.6X", 1000000) == " 0F4240" +string.format("%0 +20.6X", 10000000) == " 989680" +string.format("%0 -X", 0) == "0" +string.format("%0 -X", 1) == "1" +string.format("%0 -X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0 -X", 2) == "2" +string.format("%0 -X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0 -X", 3) == "3" +string.format("%0 -X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0 -X", 100) == "64" +string.format("%0 -X", 10000) == "2710" +string.format("%0 -X", 100000) == "186A0" +string.format("%0 -X", 1000000) == "F4240" +string.format("%0 -X", 10000000) == "989680" +string.format("%0 -.0X", 0) == "" +string.format("%0 -.6X", 0) == "000000" +string.format("%0 -.6X", 1) == "000001" +string.format("%0 -.6X", 2) == "000002" +string.format("%0 -.6X", 3) == "000003" +string.format("%0 -.6X", 100) == "000064" +string.format("%0 -.6X", 10000) == "002710" +string.format("%0 -.6X", 100000) == "0186A0" +string.format("%0 -.6X", 1000000) == "0F4240" +string.format("%0 -1.0X", 0) == " " +string.format("%0 -1.6X", 0) == "000000" +string.format("%0 -1.6X", 1) == "000001" +string.format("%0 -1.6X", 2) == "000002" +string.format("%0 -1.6X", 3) == "000003" +string.format("%0 -1.6X", 100) == "000064" +string.format("%0 -1.6X", 10000) == "002710" +string.format("%0 -1.6X", 100000) == "0186A0" +string.format("%0 -1.6X", 1000000) == "0F4240" +string.format("%0 -2X", 0) == "0 " +string.format("%0 -2X", 1) == "1 " +string.format("%0 -2X", 2) == "2 " +string.format("%0 -2X", 3) == "3 " +string.format("%0 -2.0X", 0) == " " +string.format("%0 -2.0X", 1) == "1 " +string.format("%0 -2.0X", 2) == "2 " +string.format("%0 -2.0X", 3) == "3 " +string.format("%0 -2.1X", 0) == "0 " +string.format("%0 -2.1X", 1) == "1 " +string.format("%0 -2.1X", 2) == "2 " +string.format("%0 -2.1X", 3) == "3 " +string.format("%0 -2.6X", 0) == "000000" +string.format("%0 -2.6X", 1) == "000001" +string.format("%0 -2.6X", 2) == "000002" +string.format("%0 -2.6X", 3) == "000003" +string.format("%0 -2.6X", 100) == "000064" +string.format("%0 -2.6X", 10000) == "002710" +string.format("%0 -2.6X", 100000) == "0186A0" +string.format("%0 -2.6X", 1000000) == "0F4240" +string.format("%0 -6X", 0) == "0 " +string.format("%0 -6X", 1) == "1 " +string.format("%0 -6X", 2) == "2 " +string.format("%0 -6X", 3) == "3 " +string.format("%0 -6X", 100) == "64 " +string.format("%0 -6X", 10000) == "2710 " +string.format("%0 -6X", 100000) == "186A0 " +string.format("%0 -6X", 1000000) == "F4240 " +string.format("%0 -6.0X", 0) == " " +string.format("%0 -6.0X", 1) == "1 " +string.format("%0 -6.0X", 2) == "2 " +string.format("%0 -6.0X", 3) == "3 " +string.format("%0 -6.0X", 100) == "64 " +string.format("%0 -6.0X", 10000) == "2710 " +string.format("%0 -6.0X", 100000) == "186A0 " +string.format("%0 -6.0X", 1000000) == "F4240 " +string.format("%0 -6.1X", 0) == "0 " +string.format("%0 -6.1X", 1) == "1 " +string.format("%0 -6.1X", 2) == "2 " +string.format("%0 -6.1X", 3) == "3 " +string.format("%0 -6.1X", 100) == "64 " +string.format("%0 -6.1X", 10000) == "2710 " +string.format("%0 -6.1X", 100000) == "186A0 " +string.format("%0 -6.1X", 1000000) == "F4240 " +string.format("%0 -6.6X", 0) == "000000" +string.format("%0 -6.6X", 1) == "000001" +string.format("%0 -6.6X", 2) == "000002" +string.format("%0 -6.6X", 3) == "000003" +string.format("%0 -6.6X", 100) == "000064" +string.format("%0 -6.6X", 10000) == "002710" +string.format("%0 -6.6X", 100000) == "0186A0" +string.format("%0 -6.6X", 1000000) == "0F4240" +string.format("%0 -20X", 0) == "0 " +string.format("%0 -20X", 1) == "1 " +string.format("%0 -20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -20X", 2) == "2 " +string.format("%0 -20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -20X", 3) == "3 " +string.format("%0 -20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -20X", 100) == "64 " +string.format("%0 -20X", 10000) == "2710 " +string.format("%0 -20X", 100000) == "186A0 " +string.format("%0 -20X", 1000000) == "F4240 " +string.format("%0 -20X", 10000000) == "989680 " +string.format("%0 -20.0X", 0) == " " +string.format("%0 -20.0X", 1) == "1 " +string.format("%0 -20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -20.0X", 2) == "2 " +string.format("%0 -20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -20.0X", 3) == "3 " +string.format("%0 -20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -20.0X", 100) == "64 " +string.format("%0 -20.0X", 10000) == "2710 " +string.format("%0 -20.0X", 100000) == "186A0 " +string.format("%0 -20.0X", 1000000) == "F4240 " +string.format("%0 -20.0X", 10000000) == "989680 " +string.format("%0 -20.1X", 0) == "0 " +string.format("%0 -20.1X", 1) == "1 " +string.format("%0 -20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -20.1X", 2) == "2 " +string.format("%0 -20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -20.1X", 3) == "3 " +string.format("%0 -20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -20.1X", 100) == "64 " +string.format("%0 -20.1X", 10000) == "2710 " +string.format("%0 -20.1X", 100000) == "186A0 " +string.format("%0 -20.1X", 1000000) == "F4240 " +string.format("%0 -20.1X", 10000000) == "989680 " +string.format("%0 -20.6X", 0) == "000000 " +string.format("%0 -20.6X", 1) == "000001 " +string.format("%0 -20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -20.6X", 2) == "000002 " +string.format("%0 -20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -20.6X", 3) == "000003 " +string.format("%0 -20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -20.6X", 100) == "000064 " +string.format("%0 -20.6X", 10000) == "002710 " +string.format("%0 -20.6X", 100000) == "0186A0 " +string.format("%0 -20.6X", 1000000) == "0F4240 " +string.format("%0 -20.6X", 10000000) == "989680 " +string.format("%0 -+X", 0) == "0" +string.format("%0 -+X", 1) == "1" +string.format("%0 -+X", -1) == "FFFFFFFFFFFFFFFF" +string.format("%0 -+X", 2) == "2" +string.format("%0 -+X", -2) == "FFFFFFFFFFFFFFFE" +string.format("%0 -+X", 3) == "3" +string.format("%0 -+X", -3) == "FFFFFFFFFFFFFFFD" +string.format("%0 -+X", 100) == "64" +string.format("%0 -+X", 10000) == "2710" +string.format("%0 -+X", 100000) == "186A0" +string.format("%0 -+X", 1000000) == "F4240" +string.format("%0 -+X", 10000000) == "989680" +string.format("%0 -+.0X", 0) == "" +string.format("%0 -+.6X", 0) == "000000" +string.format("%0 -+.6X", 1) == "000001" +string.format("%0 -+.6X", 2) == "000002" +string.format("%0 -+.6X", 3) == "000003" +string.format("%0 -+.6X", 100) == "000064" +string.format("%0 -+.6X", 10000) == "002710" +string.format("%0 -+.6X", 100000) == "0186A0" +string.format("%0 -+.6X", 1000000) == "0F4240" +string.format("%0 -+1.0X", 0) == " " +string.format("%0 -+1.6X", 0) == "000000" +string.format("%0 -+1.6X", 1) == "000001" +string.format("%0 -+1.6X", 2) == "000002" +string.format("%0 -+1.6X", 3) == "000003" +string.format("%0 -+1.6X", 100) == "000064" +string.format("%0 -+1.6X", 10000) == "002710" +string.format("%0 -+1.6X", 100000) == "0186A0" +string.format("%0 -+1.6X", 1000000) == "0F4240" +string.format("%0 -+2X", 0) == "0 " +string.format("%0 -+2X", 1) == "1 " +string.format("%0 -+2X", 2) == "2 " +string.format("%0 -+2X", 3) == "3 " +string.format("%0 -+2.0X", 0) == " " +string.format("%0 -+2.0X", 1) == "1 " +string.format("%0 -+2.0X", 2) == "2 " +string.format("%0 -+2.0X", 3) == "3 " +string.format("%0 -+2.1X", 0) == "0 " +string.format("%0 -+2.1X", 1) == "1 " +string.format("%0 -+2.1X", 2) == "2 " +string.format("%0 -+2.1X", 3) == "3 " +string.format("%0 -+2.6X", 0) == "000000" +string.format("%0 -+2.6X", 1) == "000001" +string.format("%0 -+2.6X", 2) == "000002" +string.format("%0 -+2.6X", 3) == "000003" +string.format("%0 -+2.6X", 100) == "000064" +string.format("%0 -+2.6X", 10000) == "002710" +string.format("%0 -+2.6X", 100000) == "0186A0" +string.format("%0 -+2.6X", 1000000) == "0F4240" +string.format("%0 -+6X", 0) == "0 " +string.format("%0 -+6X", 1) == "1 " +string.format("%0 -+6X", 2) == "2 " +string.format("%0 -+6X", 3) == "3 " +string.format("%0 -+6X", 100) == "64 " +string.format("%0 -+6X", 10000) == "2710 " +string.format("%0 -+6X", 100000) == "186A0 " +string.format("%0 -+6X", 1000000) == "F4240 " +string.format("%0 -+6.0X", 0) == " " +string.format("%0 -+6.0X", 1) == "1 " +string.format("%0 -+6.0X", 2) == "2 " +string.format("%0 -+6.0X", 3) == "3 " +string.format("%0 -+6.0X", 100) == "64 " +string.format("%0 -+6.0X", 10000) == "2710 " +string.format("%0 -+6.0X", 100000) == "186A0 " +string.format("%0 -+6.0X", 1000000) == "F4240 " +string.format("%0 -+6.1X", 0) == "0 " +string.format("%0 -+6.1X", 1) == "1 " +string.format("%0 -+6.1X", 2) == "2 " +string.format("%0 -+6.1X", 3) == "3 " +string.format("%0 -+6.1X", 100) == "64 " +string.format("%0 -+6.1X", 10000) == "2710 " +string.format("%0 -+6.1X", 100000) == "186A0 " +string.format("%0 -+6.1X", 1000000) == "F4240 " +string.format("%0 -+6.6X", 0) == "000000" +string.format("%0 -+6.6X", 1) == "000001" +string.format("%0 -+6.6X", 2) == "000002" +string.format("%0 -+6.6X", 3) == "000003" +string.format("%0 -+6.6X", 100) == "000064" +string.format("%0 -+6.6X", 10000) == "002710" +string.format("%0 -+6.6X", 100000) == "0186A0" +string.format("%0 -+6.6X", 1000000) == "0F4240" +string.format("%0 -+20X", 0) == "0 " +string.format("%0 -+20X", 1) == "1 " +string.format("%0 -+20X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -+20X", 2) == "2 " +string.format("%0 -+20X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -+20X", 3) == "3 " +string.format("%0 -+20X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -+20X", 100) == "64 " +string.format("%0 -+20X", 10000) == "2710 " +string.format("%0 -+20X", 100000) == "186A0 " +string.format("%0 -+20X", 1000000) == "F4240 " +string.format("%0 -+20X", 10000000) == "989680 " +string.format("%0 -+20.0X", 0) == " " +string.format("%0 -+20.0X", 1) == "1 " +string.format("%0 -+20.0X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -+20.0X", 2) == "2 " +string.format("%0 -+20.0X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -+20.0X", 3) == "3 " +string.format("%0 -+20.0X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -+20.0X", 100) == "64 " +string.format("%0 -+20.0X", 10000) == "2710 " +string.format("%0 -+20.0X", 100000) == "186A0 " +string.format("%0 -+20.0X", 1000000) == "F4240 " +string.format("%0 -+20.0X", 10000000) == "989680 " +string.format("%0 -+20.1X", 0) == "0 " +string.format("%0 -+20.1X", 1) == "1 " +string.format("%0 -+20.1X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -+20.1X", 2) == "2 " +string.format("%0 -+20.1X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -+20.1X", 3) == "3 " +string.format("%0 -+20.1X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -+20.1X", 100) == "64 " +string.format("%0 -+20.1X", 10000) == "2710 " +string.format("%0 -+20.1X", 100000) == "186A0 " +string.format("%0 -+20.1X", 1000000) == "F4240 " +string.format("%0 -+20.1X", 10000000) == "989680 " +string.format("%0 -+20.6X", 0) == "000000 " +string.format("%0 -+20.6X", 1) == "000001 " +string.format("%0 -+20.6X", -1) == "FFFFFFFFFFFFFFFF " +string.format("%0 -+20.6X", 2) == "000002 " +string.format("%0 -+20.6X", -2) == "FFFFFFFFFFFFFFFE " +string.format("%0 -+20.6X", 3) == "000003 " +string.format("%0 -+20.6X", -3) == "FFFFFFFFFFFFFFFD " +string.format("%0 -+20.6X", 100) == "000064 " +string.format("%0 -+20.6X", 10000) == "002710 " +string.format("%0 -+20.6X", 100000) == "0186A0 " +string.format("%0 -+20.6X", 1000000) == "0F4240 " +string.format("%0 -+20.6X", 10000000) == "989680 " +string.format("%0#X", 0) == "0" +string.format("%0#X", 1) == "0X1" +string.format("%0#X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0#X", 2) == "0X2" +string.format("%0#X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0#X", 3) == "0X3" +string.format("%0#X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0#X", 100) == "0X64" +string.format("%0#X", 10000) == "0X2710" +string.format("%0#X", 100000) == "0X186A0" +string.format("%0#X", 1000000) == "0XF4240" +string.format("%0#X", 10000000) == "0X989680" +string.format("%0#.0X", 0) == "" +string.format("%0#.6X", 0) == "000000" +string.format("%0#.6X", 1) == "0X000001" +string.format("%0#.6X", 2) == "0X000002" +string.format("%0#.6X", 3) == "0X000003" +string.format("%0#.6X", 100) == "0X000064" +string.format("%0#.6X", 10000) == "0X002710" +string.format("%0#.6X", 100000) == "0X0186A0" +string.format("%0#.6X", 1000000) == "0X0F4240" +string.format("%0#1.0X", 0) == " " +string.format("%0#1.6X", 0) == "000000" +string.format("%0#1.6X", 1) == "0X000001" +string.format("%0#1.6X", 2) == "0X000002" +string.format("%0#1.6X", 3) == "0X000003" +string.format("%0#1.6X", 100) == "0X000064" +string.format("%0#1.6X", 10000) == "0X002710" +string.format("%0#1.6X", 100000) == "0X0186A0" +string.format("%0#1.6X", 1000000) == "0X0F4240" +string.format("%0#2X", 0) == "00" +string.format("%0#2.0X", 0) == " " +string.format("%0#2.1X", 0) == " 0" +string.format("%0#2.6X", 0) == "000000" +string.format("%0#2.6X", 1) == "0X000001" +string.format("%0#2.6X", 2) == "0X000002" +string.format("%0#2.6X", 3) == "0X000003" +string.format("%0#2.6X", 100) == "0X000064" +string.format("%0#2.6X", 10000) == "0X002710" +string.format("%0#2.6X", 100000) == "0X0186A0" +string.format("%0#2.6X", 1000000) == "0X0F4240" +string.format("%0#6X", 0) == "000000" +string.format("%0#6X", 1) == "0X0001" +string.format("%0#6X", 2) == "0X0002" +string.format("%0#6X", 3) == "0X0003" +string.format("%0#6X", 100) == "0X0064" +string.format("%0#6.0X", 0) == " " +string.format("%0#6.0X", 1) == " 0X1" +string.format("%0#6.0X", 2) == " 0X2" +string.format("%0#6.0X", 3) == " 0X3" +string.format("%0#6.0X", 100) == " 0X64" +string.format("%0#6.1X", 0) == " 0" +string.format("%0#6.1X", 1) == " 0X1" +string.format("%0#6.1X", 2) == " 0X2" +string.format("%0#6.1X", 3) == " 0X3" +string.format("%0#6.1X", 100) == " 0X64" +string.format("%0#6.6X", 0) == "000000" +string.format("%0#6.6X", 1) == "0X000001" +string.format("%0#6.6X", 2) == "0X000002" +string.format("%0#6.6X", 3) == "0X000003" +string.format("%0#6.6X", 100) == "0X000064" +string.format("%0#6.6X", 10000) == "0X002710" +string.format("%0#6.6X", 100000) == "0X0186A0" +string.format("%0#6.6X", 1000000) == "0X0F4240" +string.format("%0#20X", 0) == "00000000000000000000" +string.format("%0#20X", 1) == "0X000000000000000001" +string.format("%0#20X", -1) == "0X00FFFFFFFFFFFFFFFF" +string.format("%0#20X", 2) == "0X000000000000000002" +string.format("%0#20X", -2) == "0X00FFFFFFFFFFFFFFFE" +string.format("%0#20X", 3) == "0X000000000000000003" +string.format("%0#20X", -3) == "0X00FFFFFFFFFFFFFFFD" +string.format("%0#20X", 100) == "0X000000000000000064" +string.format("%0#20X", 10000) == "0X000000000000002710" +string.format("%0#20X", 100000) == "0X0000000000000186A0" +string.format("%0#20X", 1000000) == "0X0000000000000F4240" +string.format("%0#20X", 10000000) == "0X000000000000989680" +string.format("%0#20.0X", 0) == " " +string.format("%0#20.0X", 1) == " 0X1" +string.format("%0#20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#20.0X", 2) == " 0X2" +string.format("%0#20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#20.0X", 3) == " 0X3" +string.format("%0#20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#20.0X", 100) == " 0X64" +string.format("%0#20.0X", 10000) == " 0X2710" +string.format("%0#20.0X", 100000) == " 0X186A0" +string.format("%0#20.0X", 1000000) == " 0XF4240" +string.format("%0#20.0X", 10000000) == " 0X989680" +string.format("%0#20.1X", 0) == " 0" +string.format("%0#20.1X", 1) == " 0X1" +string.format("%0#20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#20.1X", 2) == " 0X2" +string.format("%0#20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#20.1X", 3) == " 0X3" +string.format("%0#20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#20.1X", 100) == " 0X64" +string.format("%0#20.1X", 10000) == " 0X2710" +string.format("%0#20.1X", 100000) == " 0X186A0" +string.format("%0#20.1X", 1000000) == " 0XF4240" +string.format("%0#20.1X", 10000000) == " 0X989680" +string.format("%0#20.6X", 0) == " 000000" +string.format("%0#20.6X", 1) == " 0X000001" +string.format("%0#20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#20.6X", 2) == " 0X000002" +string.format("%0#20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#20.6X", 3) == " 0X000003" +string.format("%0#20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#20.6X", 100) == " 0X000064" +string.format("%0#20.6X", 10000) == " 0X002710" +string.format("%0#20.6X", 100000) == " 0X0186A0" +string.format("%0#20.6X", 1000000) == " 0X0F4240" +string.format("%0#20.6X", 10000000) == " 0X989680" +string.format("%0#+X", 0) == "0" +string.format("%0#+X", 1) == "0X1" +string.format("%0#+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0#+X", 2) == "0X2" +string.format("%0#+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0#+X", 3) == "0X3" +string.format("%0#+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0#+X", 100) == "0X64" +string.format("%0#+X", 10000) == "0X2710" +string.format("%0#+X", 100000) == "0X186A0" +string.format("%0#+X", 1000000) == "0XF4240" +string.format("%0#+X", 10000000) == "0X989680" +string.format("%0#+.0X", 0) == "" +string.format("%0#+.6X", 0) == "000000" +string.format("%0#+.6X", 1) == "0X000001" +string.format("%0#+.6X", 2) == "0X000002" +string.format("%0#+.6X", 3) == "0X000003" +string.format("%0#+.6X", 100) == "0X000064" +string.format("%0#+.6X", 10000) == "0X002710" +string.format("%0#+.6X", 100000) == "0X0186A0" +string.format("%0#+.6X", 1000000) == "0X0F4240" +string.format("%0#+1.0X", 0) == " " +string.format("%0#+1.6X", 0) == "000000" +string.format("%0#+1.6X", 1) == "0X000001" +string.format("%0#+1.6X", 2) == "0X000002" +string.format("%0#+1.6X", 3) == "0X000003" +string.format("%0#+1.6X", 100) == "0X000064" +string.format("%0#+1.6X", 10000) == "0X002710" +string.format("%0#+1.6X", 100000) == "0X0186A0" +string.format("%0#+1.6X", 1000000) == "0X0F4240" +string.format("%0#+2X", 0) == "00" +string.format("%0#+2.0X", 0) == " " +string.format("%0#+2.1X", 0) == " 0" +string.format("%0#+2.6X", 0) == "000000" +string.format("%0#+2.6X", 1) == "0X000001" +string.format("%0#+2.6X", 2) == "0X000002" +string.format("%0#+2.6X", 3) == "0X000003" +string.format("%0#+2.6X", 100) == "0X000064" +string.format("%0#+2.6X", 10000) == "0X002710" +string.format("%0#+2.6X", 100000) == "0X0186A0" +string.format("%0#+2.6X", 1000000) == "0X0F4240" +string.format("%0#+6X", 0) == "000000" +string.format("%0#+6X", 1) == "0X0001" +string.format("%0#+6X", 2) == "0X0002" +string.format("%0#+6X", 3) == "0X0003" +string.format("%0#+6X", 100) == "0X0064" +string.format("%0#+6.0X", 0) == " " +string.format("%0#+6.0X", 1) == " 0X1" +string.format("%0#+6.0X", 2) == " 0X2" +string.format("%0#+6.0X", 3) == " 0X3" +string.format("%0#+6.0X", 100) == " 0X64" +string.format("%0#+6.1X", 0) == " 0" +string.format("%0#+6.1X", 1) == " 0X1" +string.format("%0#+6.1X", 2) == " 0X2" +string.format("%0#+6.1X", 3) == " 0X3" +string.format("%0#+6.1X", 100) == " 0X64" +string.format("%0#+6.6X", 0) == "000000" +string.format("%0#+6.6X", 1) == "0X000001" +string.format("%0#+6.6X", 2) == "0X000002" +string.format("%0#+6.6X", 3) == "0X000003" +string.format("%0#+6.6X", 100) == "0X000064" +string.format("%0#+6.6X", 10000) == "0X002710" +string.format("%0#+6.6X", 100000) == "0X0186A0" +string.format("%0#+6.6X", 1000000) == "0X0F4240" +string.format("%0#+20X", 0) == "00000000000000000000" +string.format("%0#+20X", 1) == "0X000000000000000001" +string.format("%0#+20X", -1) == "0X00FFFFFFFFFFFFFFFF" +string.format("%0#+20X", 2) == "0X000000000000000002" +string.format("%0#+20X", -2) == "0X00FFFFFFFFFFFFFFFE" +string.format("%0#+20X", 3) == "0X000000000000000003" +string.format("%0#+20X", -3) == "0X00FFFFFFFFFFFFFFFD" +string.format("%0#+20X", 100) == "0X000000000000000064" +string.format("%0#+20X", 10000) == "0X000000000000002710" +string.format("%0#+20X", 100000) == "0X0000000000000186A0" +string.format("%0#+20X", 1000000) == "0X0000000000000F4240" +string.format("%0#+20X", 10000000) == "0X000000000000989680" +string.format("%0#+20.0X", 0) == " " +string.format("%0#+20.0X", 1) == " 0X1" +string.format("%0#+20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#+20.0X", 2) == " 0X2" +string.format("%0#+20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#+20.0X", 3) == " 0X3" +string.format("%0#+20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#+20.0X", 100) == " 0X64" +string.format("%0#+20.0X", 10000) == " 0X2710" +string.format("%0#+20.0X", 100000) == " 0X186A0" +string.format("%0#+20.0X", 1000000) == " 0XF4240" +string.format("%0#+20.0X", 10000000) == " 0X989680" +string.format("%0#+20.1X", 0) == " 0" +string.format("%0#+20.1X", 1) == " 0X1" +string.format("%0#+20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#+20.1X", 2) == " 0X2" +string.format("%0#+20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#+20.1X", 3) == " 0X3" +string.format("%0#+20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#+20.1X", 100) == " 0X64" +string.format("%0#+20.1X", 10000) == " 0X2710" +string.format("%0#+20.1X", 100000) == " 0X186A0" +string.format("%0#+20.1X", 1000000) == " 0XF4240" +string.format("%0#+20.1X", 10000000) == " 0X989680" +string.format("%0#+20.6X", 0) == " 000000" +string.format("%0#+20.6X", 1) == " 0X000001" +string.format("%0#+20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0#+20.6X", 2) == " 0X000002" +string.format("%0#+20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0#+20.6X", 3) == " 0X000003" +string.format("%0#+20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0#+20.6X", 100) == " 0X000064" +string.format("%0#+20.6X", 10000) == " 0X002710" +string.format("%0#+20.6X", 100000) == " 0X0186A0" +string.format("%0#+20.6X", 1000000) == " 0X0F4240" +string.format("%0#+20.6X", 10000000) == " 0X989680" +string.format("%0#-X", 0) == "0" +string.format("%0#-X", 1) == "0X1" +string.format("%0#-X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0#-X", 2) == "0X2" +string.format("%0#-X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0#-X", 3) == "0X3" +string.format("%0#-X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0#-X", 100) == "0X64" +string.format("%0#-X", 10000) == "0X2710" +string.format("%0#-X", 100000) == "0X186A0" +string.format("%0#-X", 1000000) == "0XF4240" +string.format("%0#-X", 10000000) == "0X989680" +string.format("%0#-.0X", 0) == "" +string.format("%0#-.6X", 0) == "000000" +string.format("%0#-.6X", 1) == "0X000001" +string.format("%0#-.6X", 2) == "0X000002" +string.format("%0#-.6X", 3) == "0X000003" +string.format("%0#-.6X", 100) == "0X000064" +string.format("%0#-.6X", 10000) == "0X002710" +string.format("%0#-.6X", 100000) == "0X0186A0" +string.format("%0#-.6X", 1000000) == "0X0F4240" +string.format("%0#-1.0X", 0) == " " +string.format("%0#-1.6X", 0) == "000000" +string.format("%0#-1.6X", 1) == "0X000001" +string.format("%0#-1.6X", 2) == "0X000002" +string.format("%0#-1.6X", 3) == "0X000003" +string.format("%0#-1.6X", 100) == "0X000064" +string.format("%0#-1.6X", 10000) == "0X002710" +string.format("%0#-1.6X", 100000) == "0X0186A0" +string.format("%0#-1.6X", 1000000) == "0X0F4240" +string.format("%0#-2X", 0) == "0 " +string.format("%0#-2.0X", 0) == " " +string.format("%0#-2.1X", 0) == "0 " +string.format("%0#-2.6X", 0) == "000000" +string.format("%0#-2.6X", 1) == "0X000001" +string.format("%0#-2.6X", 2) == "0X000002" +string.format("%0#-2.6X", 3) == "0X000003" +string.format("%0#-2.6X", 100) == "0X000064" +string.format("%0#-2.6X", 10000) == "0X002710" +string.format("%0#-2.6X", 100000) == "0X0186A0" +string.format("%0#-2.6X", 1000000) == "0X0F4240" +string.format("%0#-6X", 0) == "0 " +string.format("%0#-6X", 1) == "0X1 " +string.format("%0#-6X", 2) == "0X2 " +string.format("%0#-6X", 3) == "0X3 " +string.format("%0#-6X", 100) == "0X64 " +string.format("%0#-6.0X", 0) == " " +string.format("%0#-6.0X", 1) == "0X1 " +string.format("%0#-6.0X", 2) == "0X2 " +string.format("%0#-6.0X", 3) == "0X3 " +string.format("%0#-6.0X", 100) == "0X64 " +string.format("%0#-6.1X", 0) == "0 " +string.format("%0#-6.1X", 1) == "0X1 " +string.format("%0#-6.1X", 2) == "0X2 " +string.format("%0#-6.1X", 3) == "0X3 " +string.format("%0#-6.1X", 100) == "0X64 " +string.format("%0#-6.6X", 0) == "000000" +string.format("%0#-6.6X", 1) == "0X000001" +string.format("%0#-6.6X", 2) == "0X000002" +string.format("%0#-6.6X", 3) == "0X000003" +string.format("%0#-6.6X", 100) == "0X000064" +string.format("%0#-6.6X", 10000) == "0X002710" +string.format("%0#-6.6X", 100000) == "0X0186A0" +string.format("%0#-6.6X", 1000000) == "0X0F4240" +string.format("%0#-20X", 0) == "0 " +string.format("%0#-20X", 1) == "0X1 " +string.format("%0#-20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-20X", 2) == "0X2 " +string.format("%0#-20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-20X", 3) == "0X3 " +string.format("%0#-20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-20X", 100) == "0X64 " +string.format("%0#-20X", 10000) == "0X2710 " +string.format("%0#-20X", 100000) == "0X186A0 " +string.format("%0#-20X", 1000000) == "0XF4240 " +string.format("%0#-20X", 10000000) == "0X989680 " +string.format("%0#-20.0X", 0) == " " +string.format("%0#-20.0X", 1) == "0X1 " +string.format("%0#-20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-20.0X", 2) == "0X2 " +string.format("%0#-20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-20.0X", 3) == "0X3 " +string.format("%0#-20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-20.0X", 100) == "0X64 " +string.format("%0#-20.0X", 10000) == "0X2710 " +string.format("%0#-20.0X", 100000) == "0X186A0 " +string.format("%0#-20.0X", 1000000) == "0XF4240 " +string.format("%0#-20.0X", 10000000) == "0X989680 " +string.format("%0#-20.1X", 0) == "0 " +string.format("%0#-20.1X", 1) == "0X1 " +string.format("%0#-20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-20.1X", 2) == "0X2 " +string.format("%0#-20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-20.1X", 3) == "0X3 " +string.format("%0#-20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-20.1X", 100) == "0X64 " +string.format("%0#-20.1X", 10000) == "0X2710 " +string.format("%0#-20.1X", 100000) == "0X186A0 " +string.format("%0#-20.1X", 1000000) == "0XF4240 " +string.format("%0#-20.1X", 10000000) == "0X989680 " +string.format("%0#-20.6X", 0) == "000000 " +string.format("%0#-20.6X", 1) == "0X000001 " +string.format("%0#-20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-20.6X", 2) == "0X000002 " +string.format("%0#-20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-20.6X", 3) == "0X000003 " +string.format("%0#-20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-20.6X", 100) == "0X000064 " +string.format("%0#-20.6X", 10000) == "0X002710 " +string.format("%0#-20.6X", 100000) == "0X0186A0 " +string.format("%0#-20.6X", 1000000) == "0X0F4240 " +string.format("%0#-20.6X", 10000000) == "0X989680 " +string.format("%0#-+X", 0) == "0" +string.format("%0#-+X", 1) == "0X1" +string.format("%0#-+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0#-+X", 2) == "0X2" +string.format("%0#-+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0#-+X", 3) == "0X3" +string.format("%0#-+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0#-+X", 100) == "0X64" +string.format("%0#-+X", 10000) == "0X2710" +string.format("%0#-+X", 100000) == "0X186A0" +string.format("%0#-+X", 1000000) == "0XF4240" +string.format("%0#-+X", 10000000) == "0X989680" +string.format("%0#-+.0X", 0) == "" +string.format("%0#-+.6X", 0) == "000000" +string.format("%0#-+.6X", 1) == "0X000001" +string.format("%0#-+.6X", 2) == "0X000002" +string.format("%0#-+.6X", 3) == "0X000003" +string.format("%0#-+.6X", 100) == "0X000064" +string.format("%0#-+.6X", 10000) == "0X002710" +string.format("%0#-+.6X", 100000) == "0X0186A0" +string.format("%0#-+.6X", 1000000) == "0X0F4240" +string.format("%0#-+1.0X", 0) == " " +string.format("%0#-+1.6X", 0) == "000000" +string.format("%0#-+1.6X", 1) == "0X000001" +string.format("%0#-+1.6X", 2) == "0X000002" +string.format("%0#-+1.6X", 3) == "0X000003" +string.format("%0#-+1.6X", 100) == "0X000064" +string.format("%0#-+1.6X", 10000) == "0X002710" +string.format("%0#-+1.6X", 100000) == "0X0186A0" +string.format("%0#-+1.6X", 1000000) == "0X0F4240" +string.format("%0#-+2X", 0) == "0 " +string.format("%0#-+2.0X", 0) == " " +string.format("%0#-+2.1X", 0) == "0 " +string.format("%0#-+2.6X", 0) == "000000" +string.format("%0#-+2.6X", 1) == "0X000001" +string.format("%0#-+2.6X", 2) == "0X000002" +string.format("%0#-+2.6X", 3) == "0X000003" +string.format("%0#-+2.6X", 100) == "0X000064" +string.format("%0#-+2.6X", 10000) == "0X002710" +string.format("%0#-+2.6X", 100000) == "0X0186A0" +string.format("%0#-+2.6X", 1000000) == "0X0F4240" +string.format("%0#-+6X", 0) == "0 " +string.format("%0#-+6X", 1) == "0X1 " +string.format("%0#-+6X", 2) == "0X2 " +string.format("%0#-+6X", 3) == "0X3 " +string.format("%0#-+6X", 100) == "0X64 " +string.format("%0#-+6.0X", 0) == " " +string.format("%0#-+6.0X", 1) == "0X1 " +string.format("%0#-+6.0X", 2) == "0X2 " +string.format("%0#-+6.0X", 3) == "0X3 " +string.format("%0#-+6.0X", 100) == "0X64 " +string.format("%0#-+6.1X", 0) == "0 " +string.format("%0#-+6.1X", 1) == "0X1 " +string.format("%0#-+6.1X", 2) == "0X2 " +string.format("%0#-+6.1X", 3) == "0X3 " +string.format("%0#-+6.1X", 100) == "0X64 " +string.format("%0#-+6.6X", 0) == "000000" +string.format("%0#-+6.6X", 1) == "0X000001" +string.format("%0#-+6.6X", 2) == "0X000002" +string.format("%0#-+6.6X", 3) == "0X000003" +string.format("%0#-+6.6X", 100) == "0X000064" +string.format("%0#-+6.6X", 10000) == "0X002710" +string.format("%0#-+6.6X", 100000) == "0X0186A0" +string.format("%0#-+6.6X", 1000000) == "0X0F4240" +string.format("%0#-+20X", 0) == "0 " +string.format("%0#-+20X", 1) == "0X1 " +string.format("%0#-+20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-+20X", 2) == "0X2 " +string.format("%0#-+20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-+20X", 3) == "0X3 " +string.format("%0#-+20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-+20X", 100) == "0X64 " +string.format("%0#-+20X", 10000) == "0X2710 " +string.format("%0#-+20X", 100000) == "0X186A0 " +string.format("%0#-+20X", 1000000) == "0XF4240 " +string.format("%0#-+20X", 10000000) == "0X989680 " +string.format("%0#-+20.0X", 0) == " " +string.format("%0#-+20.0X", 1) == "0X1 " +string.format("%0#-+20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-+20.0X", 2) == "0X2 " +string.format("%0#-+20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-+20.0X", 3) == "0X3 " +string.format("%0#-+20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-+20.0X", 100) == "0X64 " +string.format("%0#-+20.0X", 10000) == "0X2710 " +string.format("%0#-+20.0X", 100000) == "0X186A0 " +string.format("%0#-+20.0X", 1000000) == "0XF4240 " +string.format("%0#-+20.0X", 10000000) == "0X989680 " +string.format("%0#-+20.1X", 0) == "0 " +string.format("%0#-+20.1X", 1) == "0X1 " +string.format("%0#-+20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-+20.1X", 2) == "0X2 " +string.format("%0#-+20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-+20.1X", 3) == "0X3 " +string.format("%0#-+20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-+20.1X", 100) == "0X64 " +string.format("%0#-+20.1X", 10000) == "0X2710 " +string.format("%0#-+20.1X", 100000) == "0X186A0 " +string.format("%0#-+20.1X", 1000000) == "0XF4240 " +string.format("%0#-+20.1X", 10000000) == "0X989680 " +string.format("%0#-+20.6X", 0) == "000000 " +string.format("%0#-+20.6X", 1) == "0X000001 " +string.format("%0#-+20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0#-+20.6X", 2) == "0X000002 " +string.format("%0#-+20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0#-+20.6X", 3) == "0X000003 " +string.format("%0#-+20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0#-+20.6X", 100) == "0X000064 " +string.format("%0#-+20.6X", 10000) == "0X002710 " +string.format("%0#-+20.6X", 100000) == "0X0186A0 " +string.format("%0#-+20.6X", 1000000) == "0X0F4240 " +string.format("%0#-+20.6X", 10000000) == "0X989680 " +string.format("%0# X", 0) == "0" +string.format("%0# X", 1) == "0X1" +string.format("%0# X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0# X", 2) == "0X2" +string.format("%0# X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0# X", 3) == "0X3" +string.format("%0# X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0# X", 100) == "0X64" +string.format("%0# X", 10000) == "0X2710" +string.format("%0# X", 100000) == "0X186A0" +string.format("%0# X", 1000000) == "0XF4240" +string.format("%0# X", 10000000) == "0X989680" +string.format("%0# .0X", 0) == "" +string.format("%0# .6X", 0) == "000000" +string.format("%0# .6X", 1) == "0X000001" +string.format("%0# .6X", 2) == "0X000002" +string.format("%0# .6X", 3) == "0X000003" +string.format("%0# .6X", 100) == "0X000064" +string.format("%0# .6X", 10000) == "0X002710" +string.format("%0# .6X", 100000) == "0X0186A0" +string.format("%0# .6X", 1000000) == "0X0F4240" +string.format("%0# 1.0X", 0) == " " +string.format("%0# 1.6X", 0) == "000000" +string.format("%0# 1.6X", 1) == "0X000001" +string.format("%0# 1.6X", 2) == "0X000002" +string.format("%0# 1.6X", 3) == "0X000003" +string.format("%0# 1.6X", 100) == "0X000064" +string.format("%0# 1.6X", 10000) == "0X002710" +string.format("%0# 1.6X", 100000) == "0X0186A0" +string.format("%0# 1.6X", 1000000) == "0X0F4240" +string.format("%0# 2X", 0) == "00" +string.format("%0# 2.0X", 0) == " " +string.format("%0# 2.1X", 0) == " 0" +string.format("%0# 2.6X", 0) == "000000" +string.format("%0# 2.6X", 1) == "0X000001" +string.format("%0# 2.6X", 2) == "0X000002" +string.format("%0# 2.6X", 3) == "0X000003" +string.format("%0# 2.6X", 100) == "0X000064" +string.format("%0# 2.6X", 10000) == "0X002710" +string.format("%0# 2.6X", 100000) == "0X0186A0" +string.format("%0# 2.6X", 1000000) == "0X0F4240" +string.format("%0# 6X", 0) == "000000" +string.format("%0# 6X", 1) == "0X0001" +string.format("%0# 6X", 2) == "0X0002" +string.format("%0# 6X", 3) == "0X0003" +string.format("%0# 6X", 100) == "0X0064" +string.format("%0# 6.0X", 0) == " " +string.format("%0# 6.0X", 1) == " 0X1" +string.format("%0# 6.0X", 2) == " 0X2" +string.format("%0# 6.0X", 3) == " 0X3" +string.format("%0# 6.0X", 100) == " 0X64" +string.format("%0# 6.1X", 0) == " 0" +string.format("%0# 6.1X", 1) == " 0X1" +string.format("%0# 6.1X", 2) == " 0X2" +string.format("%0# 6.1X", 3) == " 0X3" +string.format("%0# 6.1X", 100) == " 0X64" +string.format("%0# 6.6X", 0) == "000000" +string.format("%0# 6.6X", 1) == "0X000001" +string.format("%0# 6.6X", 2) == "0X000002" +string.format("%0# 6.6X", 3) == "0X000003" +string.format("%0# 6.6X", 100) == "0X000064" +string.format("%0# 6.6X", 10000) == "0X002710" +string.format("%0# 6.6X", 100000) == "0X0186A0" +string.format("%0# 6.6X", 1000000) == "0X0F4240" +string.format("%0# 20X", 0) == "00000000000000000000" +string.format("%0# 20X", 1) == "0X000000000000000001" +string.format("%0# 20X", -1) == "0X00FFFFFFFFFFFFFFFF" +string.format("%0# 20X", 2) == "0X000000000000000002" +string.format("%0# 20X", -2) == "0X00FFFFFFFFFFFFFFFE" +string.format("%0# 20X", 3) == "0X000000000000000003" +string.format("%0# 20X", -3) == "0X00FFFFFFFFFFFFFFFD" +string.format("%0# 20X", 100) == "0X000000000000000064" +string.format("%0# 20X", 10000) == "0X000000000000002710" +string.format("%0# 20X", 100000) == "0X0000000000000186A0" +string.format("%0# 20X", 1000000) == "0X0000000000000F4240" +string.format("%0# 20X", 10000000) == "0X000000000000989680" +string.format("%0# 20.0X", 0) == " " +string.format("%0# 20.0X", 1) == " 0X1" +string.format("%0# 20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# 20.0X", 2) == " 0X2" +string.format("%0# 20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# 20.0X", 3) == " 0X3" +string.format("%0# 20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# 20.0X", 100) == " 0X64" +string.format("%0# 20.0X", 10000) == " 0X2710" +string.format("%0# 20.0X", 100000) == " 0X186A0" +string.format("%0# 20.0X", 1000000) == " 0XF4240" +string.format("%0# 20.0X", 10000000) == " 0X989680" +string.format("%0# 20.1X", 0) == " 0" +string.format("%0# 20.1X", 1) == " 0X1" +string.format("%0# 20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# 20.1X", 2) == " 0X2" +string.format("%0# 20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# 20.1X", 3) == " 0X3" +string.format("%0# 20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# 20.1X", 100) == " 0X64" +string.format("%0# 20.1X", 10000) == " 0X2710" +string.format("%0# 20.1X", 100000) == " 0X186A0" +string.format("%0# 20.1X", 1000000) == " 0XF4240" +string.format("%0# 20.1X", 10000000) == " 0X989680" +string.format("%0# 20.6X", 0) == " 000000" +string.format("%0# 20.6X", 1) == " 0X000001" +string.format("%0# 20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# 20.6X", 2) == " 0X000002" +string.format("%0# 20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# 20.6X", 3) == " 0X000003" +string.format("%0# 20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# 20.6X", 100) == " 0X000064" +string.format("%0# 20.6X", 10000) == " 0X002710" +string.format("%0# 20.6X", 100000) == " 0X0186A0" +string.format("%0# 20.6X", 1000000) == " 0X0F4240" +string.format("%0# 20.6X", 10000000) == " 0X989680" +string.format("%0# +X", 0) == "0" +string.format("%0# +X", 1) == "0X1" +string.format("%0# +X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0# +X", 2) == "0X2" +string.format("%0# +X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0# +X", 3) == "0X3" +string.format("%0# +X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0# +X", 100) == "0X64" +string.format("%0# +X", 10000) == "0X2710" +string.format("%0# +X", 100000) == "0X186A0" +string.format("%0# +X", 1000000) == "0XF4240" +string.format("%0# +X", 10000000) == "0X989680" +string.format("%0# +.0X", 0) == "" +string.format("%0# +.6X", 0) == "000000" +string.format("%0# +.6X", 1) == "0X000001" +string.format("%0# +.6X", 2) == "0X000002" +string.format("%0# +.6X", 3) == "0X000003" +string.format("%0# +.6X", 100) == "0X000064" +string.format("%0# +.6X", 10000) == "0X002710" +string.format("%0# +.6X", 100000) == "0X0186A0" +string.format("%0# +.6X", 1000000) == "0X0F4240" +string.format("%0# +1.0X", 0) == " " +string.format("%0# +1.6X", 0) == "000000" +string.format("%0# +1.6X", 1) == "0X000001" +string.format("%0# +1.6X", 2) == "0X000002" +string.format("%0# +1.6X", 3) == "0X000003" +string.format("%0# +1.6X", 100) == "0X000064" +string.format("%0# +1.6X", 10000) == "0X002710" +string.format("%0# +1.6X", 100000) == "0X0186A0" +string.format("%0# +1.6X", 1000000) == "0X0F4240" +string.format("%0# +2X", 0) == "00" +string.format("%0# +2.0X", 0) == " " +string.format("%0# +2.1X", 0) == " 0" +string.format("%0# +2.6X", 0) == "000000" +string.format("%0# +2.6X", 1) == "0X000001" +string.format("%0# +2.6X", 2) == "0X000002" +string.format("%0# +2.6X", 3) == "0X000003" +string.format("%0# +2.6X", 100) == "0X000064" +string.format("%0# +2.6X", 10000) == "0X002710" +string.format("%0# +2.6X", 100000) == "0X0186A0" +string.format("%0# +2.6X", 1000000) == "0X0F4240" +string.format("%0# +6X", 0) == "000000" +string.format("%0# +6X", 1) == "0X0001" +string.format("%0# +6X", 2) == "0X0002" +string.format("%0# +6X", 3) == "0X0003" +string.format("%0# +6X", 100) == "0X0064" +string.format("%0# +6.0X", 0) == " " +string.format("%0# +6.0X", 1) == " 0X1" +string.format("%0# +6.0X", 2) == " 0X2" +string.format("%0# +6.0X", 3) == " 0X3" +string.format("%0# +6.0X", 100) == " 0X64" +string.format("%0# +6.1X", 0) == " 0" +string.format("%0# +6.1X", 1) == " 0X1" +string.format("%0# +6.1X", 2) == " 0X2" +string.format("%0# +6.1X", 3) == " 0X3" +string.format("%0# +6.1X", 100) == " 0X64" +string.format("%0# +6.6X", 0) == "000000" +string.format("%0# +6.6X", 1) == "0X000001" +string.format("%0# +6.6X", 2) == "0X000002" +string.format("%0# +6.6X", 3) == "0X000003" +string.format("%0# +6.6X", 100) == "0X000064" +string.format("%0# +6.6X", 10000) == "0X002710" +string.format("%0# +6.6X", 100000) == "0X0186A0" +string.format("%0# +6.6X", 1000000) == "0X0F4240" +string.format("%0# +20X", 0) == "00000000000000000000" +string.format("%0# +20X", 1) == "0X000000000000000001" +string.format("%0# +20X", -1) == "0X00FFFFFFFFFFFFFFFF" +string.format("%0# +20X", 2) == "0X000000000000000002" +string.format("%0# +20X", -2) == "0X00FFFFFFFFFFFFFFFE" +string.format("%0# +20X", 3) == "0X000000000000000003" +string.format("%0# +20X", -3) == "0X00FFFFFFFFFFFFFFFD" +string.format("%0# +20X", 100) == "0X000000000000000064" +string.format("%0# +20X", 10000) == "0X000000000000002710" +string.format("%0# +20X", 100000) == "0X0000000000000186A0" +string.format("%0# +20X", 1000000) == "0X0000000000000F4240" +string.format("%0# +20X", 10000000) == "0X000000000000989680" +string.format("%0# +20.0X", 0) == " " +string.format("%0# +20.0X", 1) == " 0X1" +string.format("%0# +20.0X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# +20.0X", 2) == " 0X2" +string.format("%0# +20.0X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# +20.0X", 3) == " 0X3" +string.format("%0# +20.0X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# +20.0X", 100) == " 0X64" +string.format("%0# +20.0X", 10000) == " 0X2710" +string.format("%0# +20.0X", 100000) == " 0X186A0" +string.format("%0# +20.0X", 1000000) == " 0XF4240" +string.format("%0# +20.0X", 10000000) == " 0X989680" +string.format("%0# +20.1X", 0) == " 0" +string.format("%0# +20.1X", 1) == " 0X1" +string.format("%0# +20.1X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# +20.1X", 2) == " 0X2" +string.format("%0# +20.1X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# +20.1X", 3) == " 0X3" +string.format("%0# +20.1X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# +20.1X", 100) == " 0X64" +string.format("%0# +20.1X", 10000) == " 0X2710" +string.format("%0# +20.1X", 100000) == " 0X186A0" +string.format("%0# +20.1X", 1000000) == " 0XF4240" +string.format("%0# +20.1X", 10000000) == " 0X989680" +string.format("%0# +20.6X", 0) == " 000000" +string.format("%0# +20.6X", 1) == " 0X000001" +string.format("%0# +20.6X", -1) == " 0XFFFFFFFFFFFFFFFF" +string.format("%0# +20.6X", 2) == " 0X000002" +string.format("%0# +20.6X", -2) == " 0XFFFFFFFFFFFFFFFE" +string.format("%0# +20.6X", 3) == " 0X000003" +string.format("%0# +20.6X", -3) == " 0XFFFFFFFFFFFFFFFD" +string.format("%0# +20.6X", 100) == " 0X000064" +string.format("%0# +20.6X", 10000) == " 0X002710" +string.format("%0# +20.6X", 100000) == " 0X0186A0" +string.format("%0# +20.6X", 1000000) == " 0X0F4240" +string.format("%0# +20.6X", 10000000) == " 0X989680" +string.format("%0# -X", 0) == "0" +string.format("%0# -X", 1) == "0X1" +string.format("%0# -X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0# -X", 2) == "0X2" +string.format("%0# -X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0# -X", 3) == "0X3" +string.format("%0# -X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0# -X", 100) == "0X64" +string.format("%0# -X", 10000) == "0X2710" +string.format("%0# -X", 100000) == "0X186A0" +string.format("%0# -X", 1000000) == "0XF4240" +string.format("%0# -X", 10000000) == "0X989680" +string.format("%0# -.0X", 0) == "" +string.format("%0# -.6X", 0) == "000000" +string.format("%0# -.6X", 1) == "0X000001" +string.format("%0# -.6X", 2) == "0X000002" +string.format("%0# -.6X", 3) == "0X000003" +string.format("%0# -.6X", 100) == "0X000064" +string.format("%0# -.6X", 10000) == "0X002710" +string.format("%0# -.6X", 100000) == "0X0186A0" +string.format("%0# -.6X", 1000000) == "0X0F4240" +string.format("%0# -1.0X", 0) == " " +string.format("%0# -1.6X", 0) == "000000" +string.format("%0# -1.6X", 1) == "0X000001" +string.format("%0# -1.6X", 2) == "0X000002" +string.format("%0# -1.6X", 3) == "0X000003" +string.format("%0# -1.6X", 100) == "0X000064" +string.format("%0# -1.6X", 10000) == "0X002710" +string.format("%0# -1.6X", 100000) == "0X0186A0" +string.format("%0# -1.6X", 1000000) == "0X0F4240" +string.format("%0# -2X", 0) == "0 " +string.format("%0# -2.0X", 0) == " " +string.format("%0# -2.1X", 0) == "0 " +string.format("%0# -2.6X", 0) == "000000" +string.format("%0# -2.6X", 1) == "0X000001" +string.format("%0# -2.6X", 2) == "0X000002" +string.format("%0# -2.6X", 3) == "0X000003" +string.format("%0# -2.6X", 100) == "0X000064" +string.format("%0# -2.6X", 10000) == "0X002710" +string.format("%0# -2.6X", 100000) == "0X0186A0" +string.format("%0# -2.6X", 1000000) == "0X0F4240" +string.format("%0# -6X", 0) == "0 " +string.format("%0# -6X", 1) == "0X1 " +string.format("%0# -6X", 2) == "0X2 " +string.format("%0# -6X", 3) == "0X3 " +string.format("%0# -6X", 100) == "0X64 " +string.format("%0# -6.0X", 0) == " " +string.format("%0# -6.0X", 1) == "0X1 " +string.format("%0# -6.0X", 2) == "0X2 " +string.format("%0# -6.0X", 3) == "0X3 " +string.format("%0# -6.0X", 100) == "0X64 " +string.format("%0# -6.1X", 0) == "0 " +string.format("%0# -6.1X", 1) == "0X1 " +string.format("%0# -6.1X", 2) == "0X2 " +string.format("%0# -6.1X", 3) == "0X3 " +string.format("%0# -6.1X", 100) == "0X64 " +string.format("%0# -6.6X", 0) == "000000" +string.format("%0# -6.6X", 1) == "0X000001" +string.format("%0# -6.6X", 2) == "0X000002" +string.format("%0# -6.6X", 3) == "0X000003" +string.format("%0# -6.6X", 100) == "0X000064" +string.format("%0# -6.6X", 10000) == "0X002710" +string.format("%0# -6.6X", 100000) == "0X0186A0" +string.format("%0# -6.6X", 1000000) == "0X0F4240" +string.format("%0# -20X", 0) == "0 " +string.format("%0# -20X", 1) == "0X1 " +string.format("%0# -20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -20X", 2) == "0X2 " +string.format("%0# -20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -20X", 3) == "0X3 " +string.format("%0# -20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -20X", 100) == "0X64 " +string.format("%0# -20X", 10000) == "0X2710 " +string.format("%0# -20X", 100000) == "0X186A0 " +string.format("%0# -20X", 1000000) == "0XF4240 " +string.format("%0# -20X", 10000000) == "0X989680 " +string.format("%0# -20.0X", 0) == " " +string.format("%0# -20.0X", 1) == "0X1 " +string.format("%0# -20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -20.0X", 2) == "0X2 " +string.format("%0# -20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -20.0X", 3) == "0X3 " +string.format("%0# -20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -20.0X", 100) == "0X64 " +string.format("%0# -20.0X", 10000) == "0X2710 " +string.format("%0# -20.0X", 100000) == "0X186A0 " +string.format("%0# -20.0X", 1000000) == "0XF4240 " +string.format("%0# -20.0X", 10000000) == "0X989680 " +string.format("%0# -20.1X", 0) == "0 " +string.format("%0# -20.1X", 1) == "0X1 " +string.format("%0# -20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -20.1X", 2) == "0X2 " +string.format("%0# -20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -20.1X", 3) == "0X3 " +string.format("%0# -20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -20.1X", 100) == "0X64 " +string.format("%0# -20.1X", 10000) == "0X2710 " +string.format("%0# -20.1X", 100000) == "0X186A0 " +string.format("%0# -20.1X", 1000000) == "0XF4240 " +string.format("%0# -20.1X", 10000000) == "0X989680 " +string.format("%0# -20.6X", 0) == "000000 " +string.format("%0# -20.6X", 1) == "0X000001 " +string.format("%0# -20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -20.6X", 2) == "0X000002 " +string.format("%0# -20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -20.6X", 3) == "0X000003 " +string.format("%0# -20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -20.6X", 100) == "0X000064 " +string.format("%0# -20.6X", 10000) == "0X002710 " +string.format("%0# -20.6X", 100000) == "0X0186A0 " +string.format("%0# -20.6X", 1000000) == "0X0F4240 " +string.format("%0# -20.6X", 10000000) == "0X989680 " +string.format("%0# -+X", 0) == "0" +string.format("%0# -+X", 1) == "0X1" +string.format("%0# -+X", -1) == "0XFFFFFFFFFFFFFFFF" +string.format("%0# -+X", 2) == "0X2" +string.format("%0# -+X", -2) == "0XFFFFFFFFFFFFFFFE" +string.format("%0# -+X", 3) == "0X3" +string.format("%0# -+X", -3) == "0XFFFFFFFFFFFFFFFD" +string.format("%0# -+X", 100) == "0X64" +string.format("%0# -+X", 10000) == "0X2710" +string.format("%0# -+X", 100000) == "0X186A0" +string.format("%0# -+X", 1000000) == "0XF4240" +string.format("%0# -+X", 10000000) == "0X989680" +string.format("%0# -+.0X", 0) == "" +string.format("%0# -+.6X", 0) == "000000" +string.format("%0# -+.6X", 1) == "0X000001" +string.format("%0# -+.6X", 2) == "0X000002" +string.format("%0# -+.6X", 3) == "0X000003" +string.format("%0# -+.6X", 100) == "0X000064" +string.format("%0# -+.6X", 10000) == "0X002710" +string.format("%0# -+.6X", 100000) == "0X0186A0" +string.format("%0# -+.6X", 1000000) == "0X0F4240" +string.format("%0# -+1.0X", 0) == " " +string.format("%0# -+1.6X", 0) == "000000" +string.format("%0# -+1.6X", 1) == "0X000001" +string.format("%0# -+1.6X", 2) == "0X000002" +string.format("%0# -+1.6X", 3) == "0X000003" +string.format("%0# -+1.6X", 100) == "0X000064" +string.format("%0# -+1.6X", 10000) == "0X002710" +string.format("%0# -+1.6X", 100000) == "0X0186A0" +string.format("%0# -+1.6X", 1000000) == "0X0F4240" +string.format("%0# -+2X", 0) == "0 " +string.format("%0# -+2.0X", 0) == " " +string.format("%0# -+2.1X", 0) == "0 " +string.format("%0# -+2.6X", 0) == "000000" +string.format("%0# -+2.6X", 1) == "0X000001" +string.format("%0# -+2.6X", 2) == "0X000002" +string.format("%0# -+2.6X", 3) == "0X000003" +string.format("%0# -+2.6X", 100) == "0X000064" +string.format("%0# -+2.6X", 10000) == "0X002710" +string.format("%0# -+2.6X", 100000) == "0X0186A0" +string.format("%0# -+2.6X", 1000000) == "0X0F4240" +string.format("%0# -+6X", 0) == "0 " +string.format("%0# -+6X", 1) == "0X1 " +string.format("%0# -+6X", 2) == "0X2 " +string.format("%0# -+6X", 3) == "0X3 " +string.format("%0# -+6X", 100) == "0X64 " +string.format("%0# -+6.0X", 0) == " " +string.format("%0# -+6.0X", 1) == "0X1 " +string.format("%0# -+6.0X", 2) == "0X2 " +string.format("%0# -+6.0X", 3) == "0X3 " +string.format("%0# -+6.0X", 100) == "0X64 " +string.format("%0# -+6.1X", 0) == "0 " +string.format("%0# -+6.1X", 1) == "0X1 " +string.format("%0# -+6.1X", 2) == "0X2 " +string.format("%0# -+6.1X", 3) == "0X3 " +string.format("%0# -+6.1X", 100) == "0X64 " +string.format("%0# -+6.6X", 0) == "000000" +string.format("%0# -+6.6X", 1) == "0X000001" +string.format("%0# -+6.6X", 2) == "0X000002" +string.format("%0# -+6.6X", 3) == "0X000003" +string.format("%0# -+6.6X", 100) == "0X000064" +string.format("%0# -+6.6X", 10000) == "0X002710" +string.format("%0# -+6.6X", 100000) == "0X0186A0" +string.format("%0# -+6.6X", 1000000) == "0X0F4240" +string.format("%0# -+20X", 0) == "0 " +string.format("%0# -+20X", 1) == "0X1 " +string.format("%0# -+20X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -+20X", 2) == "0X2 " +string.format("%0# -+20X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -+20X", 3) == "0X3 " +string.format("%0# -+20X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -+20X", 100) == "0X64 " +string.format("%0# -+20X", 10000) == "0X2710 " +string.format("%0# -+20X", 100000) == "0X186A0 " +string.format("%0# -+20X", 1000000) == "0XF4240 " +string.format("%0# -+20X", 10000000) == "0X989680 " +string.format("%0# -+20.0X", 0) == " " +string.format("%0# -+20.0X", 1) == "0X1 " +string.format("%0# -+20.0X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -+20.0X", 2) == "0X2 " +string.format("%0# -+20.0X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -+20.0X", 3) == "0X3 " +string.format("%0# -+20.0X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -+20.0X", 100) == "0X64 " +string.format("%0# -+20.0X", 10000) == "0X2710 " +string.format("%0# -+20.0X", 100000) == "0X186A0 " +string.format("%0# -+20.0X", 1000000) == "0XF4240 " +string.format("%0# -+20.0X", 10000000) == "0X989680 " +string.format("%0# -+20.1X", 0) == "0 " +string.format("%0# -+20.1X", 1) == "0X1 " +string.format("%0# -+20.1X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -+20.1X", 2) == "0X2 " +string.format("%0# -+20.1X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -+20.1X", 3) == "0X3 " +string.format("%0# -+20.1X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -+20.1X", 100) == "0X64 " +string.format("%0# -+20.1X", 10000) == "0X2710 " +string.format("%0# -+20.1X", 100000) == "0X186A0 " +string.format("%0# -+20.1X", 1000000) == "0XF4240 " +string.format("%0# -+20.1X", 10000000) == "0X989680 " +string.format("%0# -+20.6X", 0) == "000000 " +string.format("%0# -+20.6X", 1) == "0X000001 " +string.format("%0# -+20.6X", -1) == "0XFFFFFFFFFFFFFFFF " +string.format("%0# -+20.6X", 2) == "0X000002 " +string.format("%0# -+20.6X", -2) == "0XFFFFFFFFFFFFFFFE " +string.format("%0# -+20.6X", 3) == "0X000003 " +string.format("%0# -+20.6X", -3) == "0XFFFFFFFFFFFFFFFD " +string.format("%0# -+20.6X", 100) == "0X000064 " +string.format("%0# -+20.6X", 10000) == "0X002710 " +string.format("%0# -+20.6X", 100000) == "0X0186A0 " +string.format("%0# -+20.6X", 1000000) == "0X0F4240 " +string.format("%0# -+20.6X", 10000000) == "0X989680 " +== Floats == += e = +string.format("%e", 0) == "0.000000e+00" +string.format("%e", 1) == "1.000000e+00" +string.format("%e", -1) == "-1.000000e+00" +string.format("%e", 2) == "2.000000e+00" +string.format("%e", -2) == "-2.000000e+00" +string.format("%e", 3) == "3.000000e+00" +string.format("%e", -3) == "-3.000000e+00" +string.format("%e", nan) == "nan" +string.format("%e", inf) == "inf" +string.format("%e", -inf) == "-inf" +string.format("%e", 100) == "1.000000e+02" +string.format("%e", 10000) == "1.000000e+04" +string.format("%e", 100000) == "1.000000e+05" +string.format("%e", 1000000) == "1.000000e+06" +string.format("%e", 10000000) == "1.000000e+07" +string.format("%e", 0.01) == "1.000000e-02" +string.format("%e", 0.0001) == "1.000000e-04" +string.format("%e", 1e-05) == "1.000000e-05" +string.format("%e", 1e-06) == "1.000000e-06" +string.format("%e", 1e-07) == "1.000000e-07" +string.format("%e", 123.456) == "1.234560e+02" +string.format("%e", 1234560000) == "1.234560e+09" +string.format("%e", 1.23456e-05) == "1.234560e-05" +string.format("%e", 123.456789123) == "1.234568e+02" +string.format("%e", 1234567891.23) == "1.234568e+09" +string.format("%e", 1.23456789123e-05) == "1.234568e-05" +string.format("%.0e", 0) == "0e+00" +string.format("%.0e", 1) == "1e+00" +string.format("%.0e", -1) == "-1e+00" +string.format("%.0e", 2) == "2e+00" +string.format("%.0e", -2) == "-2e+00" +string.format("%.0e", 3) == "3e+00" +string.format("%.0e", -3) == "-3e+00" +string.format("%.0e", 100) == "1e+02" +string.format("%.0e", 10000) == "1e+04" +string.format("%.0e", 100000) == "1e+05" +string.format("%.0e", 1000000) == "1e+06" +string.format("%.0e", 10000000) == "1e+07" +string.format("%.0e", 0.01) == "1e-02" +string.format("%.0e", 0.0001) == "1e-04" +string.format("%.0e", 1e-05) == "1e-05" +string.format("%.0e", 1e-06) == "1e-06" +string.format("%.0e", 1e-07) == "1e-07" +string.format("%.0e", 123.456) == "1e+02" +string.format("%.0e", 1234560000) == "1e+09" +string.format("%.0e", 1.23456e-05) == "1e-05" +string.format("%.0e", 123.456789123) == "1e+02" +string.format("%.0e", 1234567891.23) == "1e+09" +string.format("%.0e", 1.23456789123e-05) == "1e-05" +string.format("%.1e", 0) == "0.0e+00" +string.format("%.1e", 1) == "1.0e+00" +string.format("%.1e", -1) == "-1.0e+00" +string.format("%.1e", 2) == "2.0e+00" +string.format("%.1e", -2) == "-2.0e+00" +string.format("%.1e", 3) == "3.0e+00" +string.format("%.1e", -3) == "-3.0e+00" +string.format("%.1e", 100) == "1.0e+02" +string.format("%.1e", 10000) == "1.0e+04" +string.format("%.1e", 100000) == "1.0e+05" +string.format("%.1e", 1000000) == "1.0e+06" +string.format("%.1e", 10000000) == "1.0e+07" +string.format("%.1e", 0.01) == "1.0e-02" +string.format("%.1e", 0.0001) == "1.0e-04" +string.format("%.1e", 1e-05) == "1.0e-05" +string.format("%.1e", 1e-06) == "1.0e-06" +string.format("%.1e", 1e-07) == "1.0e-07" +string.format("%.1e", 123.456) == "1.2e+02" +string.format("%.1e", 1234560000) == "1.2e+09" +string.format("%.1e", 1.23456e-05) == "1.2e-05" +string.format("%.1e", 123.456789123) == "1.2e+02" +string.format("%.1e", 1234567891.23) == "1.2e+09" +string.format("%.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%1.0e", 0) == "0e+00" +string.format("%1.0e", 1) == "1e+00" +string.format("%1.0e", -1) == "-1e+00" +string.format("%1.0e", 2) == "2e+00" +string.format("%1.0e", -2) == "-2e+00" +string.format("%1.0e", 3) == "3e+00" +string.format("%1.0e", -3) == "-3e+00" +string.format("%1.0e", 100) == "1e+02" +string.format("%1.0e", 10000) == "1e+04" +string.format("%1.0e", 100000) == "1e+05" +string.format("%1.0e", 1000000) == "1e+06" +string.format("%1.0e", 10000000) == "1e+07" +string.format("%1.0e", 0.01) == "1e-02" +string.format("%1.0e", 0.0001) == "1e-04" +string.format("%1.0e", 1e-05) == "1e-05" +string.format("%1.0e", 1e-06) == "1e-06" +string.format("%1.0e", 1e-07) == "1e-07" +string.format("%1.0e", 123.456) == "1e+02" +string.format("%1.0e", 1234560000) == "1e+09" +string.format("%1.0e", 1.23456e-05) == "1e-05" +string.format("%1.0e", 123.456789123) == "1e+02" +string.format("%1.0e", 1234567891.23) == "1e+09" +string.format("%1.0e", 1.23456789123e-05) == "1e-05" +string.format("%1.1e", 0) == "0.0e+00" +string.format("%1.1e", 1) == "1.0e+00" +string.format("%1.1e", -1) == "-1.0e+00" +string.format("%1.1e", 2) == "2.0e+00" +string.format("%1.1e", -2) == "-2.0e+00" +string.format("%1.1e", 3) == "3.0e+00" +string.format("%1.1e", -3) == "-3.0e+00" +string.format("%1.1e", 100) == "1.0e+02" +string.format("%1.1e", 10000) == "1.0e+04" +string.format("%1.1e", 100000) == "1.0e+05" +string.format("%1.1e", 1000000) == "1.0e+06" +string.format("%1.1e", 10000000) == "1.0e+07" +string.format("%1.1e", 0.01) == "1.0e-02" +string.format("%1.1e", 0.0001) == "1.0e-04" +string.format("%1.1e", 1e-05) == "1.0e-05" +string.format("%1.1e", 1e-06) == "1.0e-06" +string.format("%1.1e", 1e-07) == "1.0e-07" +string.format("%1.1e", 123.456) == "1.2e+02" +string.format("%1.1e", 1234560000) == "1.2e+09" +string.format("%1.1e", 1.23456e-05) == "1.2e-05" +string.format("%1.1e", 123.456789123) == "1.2e+02" +string.format("%1.1e", 1234567891.23) == "1.2e+09" +string.format("%1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%2.0e", 0) == "0e+00" +string.format("%2.0e", 1) == "1e+00" +string.format("%2.0e", -1) == "-1e+00" +string.format("%2.0e", 2) == "2e+00" +string.format("%2.0e", -2) == "-2e+00" +string.format("%2.0e", 3) == "3e+00" +string.format("%2.0e", -3) == "-3e+00" +string.format("%2.0e", 100) == "1e+02" +string.format("%2.0e", 10000) == "1e+04" +string.format("%2.0e", 100000) == "1e+05" +string.format("%2.0e", 1000000) == "1e+06" +string.format("%2.0e", 10000000) == "1e+07" +string.format("%2.0e", 0.01) == "1e-02" +string.format("%2.0e", 0.0001) == "1e-04" +string.format("%2.0e", 1e-05) == "1e-05" +string.format("%2.0e", 1e-06) == "1e-06" +string.format("%2.0e", 1e-07) == "1e-07" +string.format("%2.0e", 123.456) == "1e+02" +string.format("%2.0e", 1234560000) == "1e+09" +string.format("%2.0e", 1.23456e-05) == "1e-05" +string.format("%2.0e", 123.456789123) == "1e+02" +string.format("%2.0e", 1234567891.23) == "1e+09" +string.format("%2.0e", 1.23456789123e-05) == "1e-05" +string.format("%2.1e", 0) == "0.0e+00" +string.format("%2.1e", 1) == "1.0e+00" +string.format("%2.1e", -1) == "-1.0e+00" +string.format("%2.1e", 2) == "2.0e+00" +string.format("%2.1e", -2) == "-2.0e+00" +string.format("%2.1e", 3) == "3.0e+00" +string.format("%2.1e", -3) == "-3.0e+00" +string.format("%2.1e", 100) == "1.0e+02" +string.format("%2.1e", 10000) == "1.0e+04" +string.format("%2.1e", 100000) == "1.0e+05" +string.format("%2.1e", 1000000) == "1.0e+06" +string.format("%2.1e", 10000000) == "1.0e+07" +string.format("%2.1e", 0.01) == "1.0e-02" +string.format("%2.1e", 0.0001) == "1.0e-04" +string.format("%2.1e", 1e-05) == "1.0e-05" +string.format("%2.1e", 1e-06) == "1.0e-06" +string.format("%2.1e", 1e-07) == "1.0e-07" +string.format("%2.1e", 123.456) == "1.2e+02" +string.format("%2.1e", 1234560000) == "1.2e+09" +string.format("%2.1e", 1.23456e-05) == "1.2e-05" +string.format("%2.1e", 123.456789123) == "1.2e+02" +string.format("%2.1e", 1234567891.23) == "1.2e+09" +string.format("%2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%6e", nan) == " nan" +string.format("%6e", inf) == " inf" +string.format("%6e", -inf) == " -inf" +string.format("%6.0e", 0) == " 0e+00" +string.format("%6.0e", 1) == " 1e+00" +string.format("%6.0e", -1) == "-1e+00" +string.format("%6.0e", 2) == " 2e+00" +string.format("%6.0e", -2) == "-2e+00" +string.format("%6.0e", 3) == " 3e+00" +string.format("%6.0e", -3) == "-3e+00" +string.format("%6.0e", nan) == " nan" +string.format("%6.0e", inf) == " inf" +string.format("%6.0e", -inf) == " -inf" +string.format("%6.0e", 100) == " 1e+02" +string.format("%6.0e", 10000) == " 1e+04" +string.format("%6.0e", 100000) == " 1e+05" +string.format("%6.0e", 1000000) == " 1e+06" +string.format("%6.0e", 10000000) == " 1e+07" +string.format("%6.0e", 0.01) == " 1e-02" +string.format("%6.0e", 0.0001) == " 1e-04" +string.format("%6.0e", 1e-05) == " 1e-05" +string.format("%6.0e", 1e-06) == " 1e-06" +string.format("%6.0e", 1e-07) == " 1e-07" +string.format("%6.0e", 123.456) == " 1e+02" +string.format("%6.0e", 1234560000) == " 1e+09" +string.format("%6.0e", 1.23456e-05) == " 1e-05" +string.format("%6.0e", 123.456789123) == " 1e+02" +string.format("%6.0e", 1234567891.23) == " 1e+09" +string.format("%6.0e", 1.23456789123e-05) == " 1e-05" +string.format("%6.1e", 0) == "0.0e+00" +string.format("%6.1e", 1) == "1.0e+00" +string.format("%6.1e", -1) == "-1.0e+00" +string.format("%6.1e", 2) == "2.0e+00" +string.format("%6.1e", -2) == "-2.0e+00" +string.format("%6.1e", 3) == "3.0e+00" +string.format("%6.1e", -3) == "-3.0e+00" +string.format("%6.1e", nan) == " nan" +string.format("%6.1e", inf) == " inf" +string.format("%6.1e", -inf) == " -inf" +string.format("%6.1e", 100) == "1.0e+02" +string.format("%6.1e", 10000) == "1.0e+04" +string.format("%6.1e", 100000) == "1.0e+05" +string.format("%6.1e", 1000000) == "1.0e+06" +string.format("%6.1e", 10000000) == "1.0e+07" +string.format("%6.1e", 0.01) == "1.0e-02" +string.format("%6.1e", 0.0001) == "1.0e-04" +string.format("%6.1e", 1e-05) == "1.0e-05" +string.format("%6.1e", 1e-06) == "1.0e-06" +string.format("%6.1e", 1e-07) == "1.0e-07" +string.format("%6.1e", 123.456) == "1.2e+02" +string.format("%6.1e", 1234560000) == "1.2e+09" +string.format("%6.1e", 1.23456e-05) == "1.2e-05" +string.format("%6.1e", 123.456789123) == "1.2e+02" +string.format("%6.1e", 1234567891.23) == "1.2e+09" +string.format("%6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%6.6e", nan) == " nan" +string.format("%6.6e", inf) == " inf" +string.format("%6.6e", -inf) == " -inf" +string.format("%20e", 0) == " 0.000000e+00" +string.format("%20e", 1) == " 1.000000e+00" +string.format("%20e", -1) == " -1.000000e+00" +string.format("%20e", 2) == " 2.000000e+00" +string.format("%20e", -2) == " -2.000000e+00" +string.format("%20e", 3) == " 3.000000e+00" +string.format("%20e", -3) == " -3.000000e+00" +string.format("%20e", nan) == " nan" +string.format("%20e", inf) == " inf" +string.format("%20e", -inf) == " -inf" +string.format("%20e", 100) == " 1.000000e+02" +string.format("%20e", 10000) == " 1.000000e+04" +string.format("%20e", 100000) == " 1.000000e+05" +string.format("%20e", 1000000) == " 1.000000e+06" +string.format("%20e", 10000000) == " 1.000000e+07" +string.format("%20e", 0.01) == " 1.000000e-02" +string.format("%20e", 0.0001) == " 1.000000e-04" +string.format("%20e", 1e-05) == " 1.000000e-05" +string.format("%20e", 1e-06) == " 1.000000e-06" +string.format("%20e", 1e-07) == " 1.000000e-07" +string.format("%20e", 123.456) == " 1.234560e+02" +string.format("%20e", 1234560000) == " 1.234560e+09" +string.format("%20e", 1.23456e-05) == " 1.234560e-05" +string.format("%20e", 123.456789123) == " 1.234568e+02" +string.format("%20e", 1234567891.23) == " 1.234568e+09" +string.format("%20e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%20.0e", 0) == " 0e+00" +string.format("%20.0e", 1) == " 1e+00" +string.format("%20.0e", -1) == " -1e+00" +string.format("%20.0e", 2) == " 2e+00" +string.format("%20.0e", -2) == " -2e+00" +string.format("%20.0e", 3) == " 3e+00" +string.format("%20.0e", -3) == " -3e+00" +string.format("%20.0e", nan) == " nan" +string.format("%20.0e", inf) == " inf" +string.format("%20.0e", -inf) == " -inf" +string.format("%20.0e", 100) == " 1e+02" +string.format("%20.0e", 10000) == " 1e+04" +string.format("%20.0e", 100000) == " 1e+05" +string.format("%20.0e", 1000000) == " 1e+06" +string.format("%20.0e", 10000000) == " 1e+07" +string.format("%20.0e", 0.01) == " 1e-02" +string.format("%20.0e", 0.0001) == " 1e-04" +string.format("%20.0e", 1e-05) == " 1e-05" +string.format("%20.0e", 1e-06) == " 1e-06" +string.format("%20.0e", 1e-07) == " 1e-07" +string.format("%20.0e", 123.456) == " 1e+02" +string.format("%20.0e", 1234560000) == " 1e+09" +string.format("%20.0e", 1.23456e-05) == " 1e-05" +string.format("%20.0e", 123.456789123) == " 1e+02" +string.format("%20.0e", 1234567891.23) == " 1e+09" +string.format("%20.0e", 1.23456789123e-05) == " 1e-05" +string.format("%20.1e", 0) == " 0.0e+00" +string.format("%20.1e", 1) == " 1.0e+00" +string.format("%20.1e", -1) == " -1.0e+00" +string.format("%20.1e", 2) == " 2.0e+00" +string.format("%20.1e", -2) == " -2.0e+00" +string.format("%20.1e", 3) == " 3.0e+00" +string.format("%20.1e", -3) == " -3.0e+00" +string.format("%20.1e", nan) == " nan" +string.format("%20.1e", inf) == " inf" +string.format("%20.1e", -inf) == " -inf" +string.format("%20.1e", 100) == " 1.0e+02" +string.format("%20.1e", 10000) == " 1.0e+04" +string.format("%20.1e", 100000) == " 1.0e+05" +string.format("%20.1e", 1000000) == " 1.0e+06" +string.format("%20.1e", 10000000) == " 1.0e+07" +string.format("%20.1e", 0.01) == " 1.0e-02" +string.format("%20.1e", 0.0001) == " 1.0e-04" +string.format("%20.1e", 1e-05) == " 1.0e-05" +string.format("%20.1e", 1e-06) == " 1.0e-06" +string.format("%20.1e", 1e-07) == " 1.0e-07" +string.format("%20.1e", 123.456) == " 1.2e+02" +string.format("%20.1e", 1234560000) == " 1.2e+09" +string.format("%20.1e", 1.23456e-05) == " 1.2e-05" +string.format("%20.1e", 123.456789123) == " 1.2e+02" +string.format("%20.1e", 1234567891.23) == " 1.2e+09" +string.format("%20.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%20.6e", 0) == " 0.000000e+00" +string.format("%20.6e", 1) == " 1.000000e+00" +string.format("%20.6e", -1) == " -1.000000e+00" +string.format("%20.6e", 2) == " 2.000000e+00" +string.format("%20.6e", -2) == " -2.000000e+00" +string.format("%20.6e", 3) == " 3.000000e+00" +string.format("%20.6e", -3) == " -3.000000e+00" +string.format("%20.6e", nan) == " nan" +string.format("%20.6e", inf) == " inf" +string.format("%20.6e", -inf) == " -inf" +string.format("%20.6e", 100) == " 1.000000e+02" +string.format("%20.6e", 10000) == " 1.000000e+04" +string.format("%20.6e", 100000) == " 1.000000e+05" +string.format("%20.6e", 1000000) == " 1.000000e+06" +string.format("%20.6e", 10000000) == " 1.000000e+07" +string.format("%20.6e", 0.01) == " 1.000000e-02" +string.format("%20.6e", 0.0001) == " 1.000000e-04" +string.format("%20.6e", 1e-05) == " 1.000000e-05" +string.format("%20.6e", 1e-06) == " 1.000000e-06" +string.format("%20.6e", 1e-07) == " 1.000000e-07" +string.format("%20.6e", 123.456) == " 1.234560e+02" +string.format("%20.6e", 1234560000) == " 1.234560e+09" +string.format("%20.6e", 1.23456e-05) == " 1.234560e-05" +string.format("%20.6e", 123.456789123) == " 1.234568e+02" +string.format("%20.6e", 1234567891.23) == " 1.234568e+09" +string.format("%20.6e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%+e", 0) == "+0.000000e+00" +string.format("%+e", 1) == "+1.000000e+00" +string.format("%+e", -1) == "-1.000000e+00" +string.format("%+e", 2) == "+2.000000e+00" +string.format("%+e", -2) == "-2.000000e+00" +string.format("%+e", 3) == "+3.000000e+00" +string.format("%+e", -3) == "-3.000000e+00" +string.format("%+e", nan) == "+nan" +string.format("%+e", inf) == "+inf" +string.format("%+e", -inf) == "-inf" +string.format("%+e", 100) == "+1.000000e+02" +string.format("%+e", 10000) == "+1.000000e+04" +string.format("%+e", 100000) == "+1.000000e+05" +string.format("%+e", 1000000) == "+1.000000e+06" +string.format("%+e", 10000000) == "+1.000000e+07" +string.format("%+e", 0.01) == "+1.000000e-02" +string.format("%+e", 0.0001) == "+1.000000e-04" +string.format("%+e", 1e-05) == "+1.000000e-05" +string.format("%+e", 1e-06) == "+1.000000e-06" +string.format("%+e", 1e-07) == "+1.000000e-07" +string.format("%+e", 123.456) == "+1.234560e+02" +string.format("%+e", 1234560000) == "+1.234560e+09" +string.format("%+e", 1.23456e-05) == "+1.234560e-05" +string.format("%+e", 123.456789123) == "+1.234568e+02" +string.format("%+e", 1234567891.23) == "+1.234568e+09" +string.format("%+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%+.0e", 0) == "+0e+00" +string.format("%+.0e", 1) == "+1e+00" +string.format("%+.0e", -1) == "-1e+00" +string.format("%+.0e", 2) == "+2e+00" +string.format("%+.0e", -2) == "-2e+00" +string.format("%+.0e", 3) == "+3e+00" +string.format("%+.0e", -3) == "-3e+00" +string.format("%+.0e", 100) == "+1e+02" +string.format("%+.0e", 10000) == "+1e+04" +string.format("%+.0e", 100000) == "+1e+05" +string.format("%+.0e", 1000000) == "+1e+06" +string.format("%+.0e", 10000000) == "+1e+07" +string.format("%+.0e", 0.01) == "+1e-02" +string.format("%+.0e", 0.0001) == "+1e-04" +string.format("%+.0e", 1e-05) == "+1e-05" +string.format("%+.0e", 1e-06) == "+1e-06" +string.format("%+.0e", 1e-07) == "+1e-07" +string.format("%+.0e", 123.456) == "+1e+02" +string.format("%+.0e", 1234560000) == "+1e+09" +string.format("%+.0e", 1.23456e-05) == "+1e-05" +string.format("%+.0e", 123.456789123) == "+1e+02" +string.format("%+.0e", 1234567891.23) == "+1e+09" +string.format("%+.0e", 1.23456789123e-05) == "+1e-05" +string.format("%+.1e", 0) == "+0.0e+00" +string.format("%+.1e", 1) == "+1.0e+00" +string.format("%+.1e", -1) == "-1.0e+00" +string.format("%+.1e", 2) == "+2.0e+00" +string.format("%+.1e", -2) == "-2.0e+00" +string.format("%+.1e", 3) == "+3.0e+00" +string.format("%+.1e", -3) == "-3.0e+00" +string.format("%+.1e", 100) == "+1.0e+02" +string.format("%+.1e", 10000) == "+1.0e+04" +string.format("%+.1e", 100000) == "+1.0e+05" +string.format("%+.1e", 1000000) == "+1.0e+06" +string.format("%+.1e", 10000000) == "+1.0e+07" +string.format("%+.1e", 0.01) == "+1.0e-02" +string.format("%+.1e", 0.0001) == "+1.0e-04" +string.format("%+.1e", 1e-05) == "+1.0e-05" +string.format("%+.1e", 1e-06) == "+1.0e-06" +string.format("%+.1e", 1e-07) == "+1.0e-07" +string.format("%+.1e", 123.456) == "+1.2e+02" +string.format("%+.1e", 1234560000) == "+1.2e+09" +string.format("%+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%+.1e", 123.456789123) == "+1.2e+02" +string.format("%+.1e", 1234567891.23) == "+1.2e+09" +string.format("%+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%+1.0e", 0) == "+0e+00" +string.format("%+1.0e", 1) == "+1e+00" +string.format("%+1.0e", -1) == "-1e+00" +string.format("%+1.0e", 2) == "+2e+00" +string.format("%+1.0e", -2) == "-2e+00" +string.format("%+1.0e", 3) == "+3e+00" +string.format("%+1.0e", -3) == "-3e+00" +string.format("%+1.0e", 100) == "+1e+02" +string.format("%+1.0e", 10000) == "+1e+04" +string.format("%+1.0e", 100000) == "+1e+05" +string.format("%+1.0e", 1000000) == "+1e+06" +string.format("%+1.0e", 10000000) == "+1e+07" +string.format("%+1.0e", 0.01) == "+1e-02" +string.format("%+1.0e", 0.0001) == "+1e-04" +string.format("%+1.0e", 1e-05) == "+1e-05" +string.format("%+1.0e", 1e-06) == "+1e-06" +string.format("%+1.0e", 1e-07) == "+1e-07" +string.format("%+1.0e", 123.456) == "+1e+02" +string.format("%+1.0e", 1234560000) == "+1e+09" +string.format("%+1.0e", 1.23456e-05) == "+1e-05" +string.format("%+1.0e", 123.456789123) == "+1e+02" +string.format("%+1.0e", 1234567891.23) == "+1e+09" +string.format("%+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%+1.1e", 0) == "+0.0e+00" +string.format("%+1.1e", 1) == "+1.0e+00" +string.format("%+1.1e", -1) == "-1.0e+00" +string.format("%+1.1e", 2) == "+2.0e+00" +string.format("%+1.1e", -2) == "-2.0e+00" +string.format("%+1.1e", 3) == "+3.0e+00" +string.format("%+1.1e", -3) == "-3.0e+00" +string.format("%+1.1e", 100) == "+1.0e+02" +string.format("%+1.1e", 10000) == "+1.0e+04" +string.format("%+1.1e", 100000) == "+1.0e+05" +string.format("%+1.1e", 1000000) == "+1.0e+06" +string.format("%+1.1e", 10000000) == "+1.0e+07" +string.format("%+1.1e", 0.01) == "+1.0e-02" +string.format("%+1.1e", 0.0001) == "+1.0e-04" +string.format("%+1.1e", 1e-05) == "+1.0e-05" +string.format("%+1.1e", 1e-06) == "+1.0e-06" +string.format("%+1.1e", 1e-07) == "+1.0e-07" +string.format("%+1.1e", 123.456) == "+1.2e+02" +string.format("%+1.1e", 1234560000) == "+1.2e+09" +string.format("%+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%+1.1e", 123.456789123) == "+1.2e+02" +string.format("%+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%+2.0e", 0) == "+0e+00" +string.format("%+2.0e", 1) == "+1e+00" +string.format("%+2.0e", -1) == "-1e+00" +string.format("%+2.0e", 2) == "+2e+00" +string.format("%+2.0e", -2) == "-2e+00" +string.format("%+2.0e", 3) == "+3e+00" +string.format("%+2.0e", -3) == "-3e+00" +string.format("%+2.0e", 100) == "+1e+02" +string.format("%+2.0e", 10000) == "+1e+04" +string.format("%+2.0e", 100000) == "+1e+05" +string.format("%+2.0e", 1000000) == "+1e+06" +string.format("%+2.0e", 10000000) == "+1e+07" +string.format("%+2.0e", 0.01) == "+1e-02" +string.format("%+2.0e", 0.0001) == "+1e-04" +string.format("%+2.0e", 1e-05) == "+1e-05" +string.format("%+2.0e", 1e-06) == "+1e-06" +string.format("%+2.0e", 1e-07) == "+1e-07" +string.format("%+2.0e", 123.456) == "+1e+02" +string.format("%+2.0e", 1234560000) == "+1e+09" +string.format("%+2.0e", 1.23456e-05) == "+1e-05" +string.format("%+2.0e", 123.456789123) == "+1e+02" +string.format("%+2.0e", 1234567891.23) == "+1e+09" +string.format("%+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%+2.1e", 0) == "+0.0e+00" +string.format("%+2.1e", 1) == "+1.0e+00" +string.format("%+2.1e", -1) == "-1.0e+00" +string.format("%+2.1e", 2) == "+2.0e+00" +string.format("%+2.1e", -2) == "-2.0e+00" +string.format("%+2.1e", 3) == "+3.0e+00" +string.format("%+2.1e", -3) == "-3.0e+00" +string.format("%+2.1e", 100) == "+1.0e+02" +string.format("%+2.1e", 10000) == "+1.0e+04" +string.format("%+2.1e", 100000) == "+1.0e+05" +string.format("%+2.1e", 1000000) == "+1.0e+06" +string.format("%+2.1e", 10000000) == "+1.0e+07" +string.format("%+2.1e", 0.01) == "+1.0e-02" +string.format("%+2.1e", 0.0001) == "+1.0e-04" +string.format("%+2.1e", 1e-05) == "+1.0e-05" +string.format("%+2.1e", 1e-06) == "+1.0e-06" +string.format("%+2.1e", 1e-07) == "+1.0e-07" +string.format("%+2.1e", 123.456) == "+1.2e+02" +string.format("%+2.1e", 1234560000) == "+1.2e+09" +string.format("%+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%+2.1e", 123.456789123) == "+1.2e+02" +string.format("%+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%+6e", nan) == " +nan" +string.format("%+6e", inf) == " +inf" +string.format("%+6e", -inf) == " -inf" +string.format("%+6.0e", 0) == "+0e+00" +string.format("%+6.0e", 1) == "+1e+00" +string.format("%+6.0e", -1) == "-1e+00" +string.format("%+6.0e", 2) == "+2e+00" +string.format("%+6.0e", -2) == "-2e+00" +string.format("%+6.0e", 3) == "+3e+00" +string.format("%+6.0e", -3) == "-3e+00" +string.format("%+6.0e", nan) == " +nan" +string.format("%+6.0e", inf) == " +inf" +string.format("%+6.0e", -inf) == " -inf" +string.format("%+6.0e", 100) == "+1e+02" +string.format("%+6.0e", 10000) == "+1e+04" +string.format("%+6.0e", 100000) == "+1e+05" +string.format("%+6.0e", 1000000) == "+1e+06" +string.format("%+6.0e", 10000000) == "+1e+07" +string.format("%+6.0e", 0.01) == "+1e-02" +string.format("%+6.0e", 0.0001) == "+1e-04" +string.format("%+6.0e", 1e-05) == "+1e-05" +string.format("%+6.0e", 1e-06) == "+1e-06" +string.format("%+6.0e", 1e-07) == "+1e-07" +string.format("%+6.0e", 123.456) == "+1e+02" +string.format("%+6.0e", 1234560000) == "+1e+09" +string.format("%+6.0e", 1.23456e-05) == "+1e-05" +string.format("%+6.0e", 123.456789123) == "+1e+02" +string.format("%+6.0e", 1234567891.23) == "+1e+09" +string.format("%+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%+6.1e", 0) == "+0.0e+00" +string.format("%+6.1e", 1) == "+1.0e+00" +string.format("%+6.1e", -1) == "-1.0e+00" +string.format("%+6.1e", 2) == "+2.0e+00" +string.format("%+6.1e", -2) == "-2.0e+00" +string.format("%+6.1e", 3) == "+3.0e+00" +string.format("%+6.1e", -3) == "-3.0e+00" +string.format("%+6.1e", nan) == " +nan" +string.format("%+6.1e", inf) == " +inf" +string.format("%+6.1e", -inf) == " -inf" +string.format("%+6.1e", 100) == "+1.0e+02" +string.format("%+6.1e", 10000) == "+1.0e+04" +string.format("%+6.1e", 100000) == "+1.0e+05" +string.format("%+6.1e", 1000000) == "+1.0e+06" +string.format("%+6.1e", 10000000) == "+1.0e+07" +string.format("%+6.1e", 0.01) == "+1.0e-02" +string.format("%+6.1e", 0.0001) == "+1.0e-04" +string.format("%+6.1e", 1e-05) == "+1.0e-05" +string.format("%+6.1e", 1e-06) == "+1.0e-06" +string.format("%+6.1e", 1e-07) == "+1.0e-07" +string.format("%+6.1e", 123.456) == "+1.2e+02" +string.format("%+6.1e", 1234560000) == "+1.2e+09" +string.format("%+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%+6.1e", 123.456789123) == "+1.2e+02" +string.format("%+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%+6.6e", nan) == " +nan" +string.format("%+6.6e", inf) == " +inf" +string.format("%+6.6e", -inf) == " -inf" +string.format("%+20e", 0) == " +0.000000e+00" +string.format("%+20e", 1) == " +1.000000e+00" +string.format("%+20e", -1) == " -1.000000e+00" +string.format("%+20e", 2) == " +2.000000e+00" +string.format("%+20e", -2) == " -2.000000e+00" +string.format("%+20e", 3) == " +3.000000e+00" +string.format("%+20e", -3) == " -3.000000e+00" +string.format("%+20e", nan) == " +nan" +string.format("%+20e", inf) == " +inf" +string.format("%+20e", -inf) == " -inf" +string.format("%+20e", 100) == " +1.000000e+02" +string.format("%+20e", 10000) == " +1.000000e+04" +string.format("%+20e", 100000) == " +1.000000e+05" +string.format("%+20e", 1000000) == " +1.000000e+06" +string.format("%+20e", 10000000) == " +1.000000e+07" +string.format("%+20e", 0.01) == " +1.000000e-02" +string.format("%+20e", 0.0001) == " +1.000000e-04" +string.format("%+20e", 1e-05) == " +1.000000e-05" +string.format("%+20e", 1e-06) == " +1.000000e-06" +string.format("%+20e", 1e-07) == " +1.000000e-07" +string.format("%+20e", 123.456) == " +1.234560e+02" +string.format("%+20e", 1234560000) == " +1.234560e+09" +string.format("%+20e", 1.23456e-05) == " +1.234560e-05" +string.format("%+20e", 123.456789123) == " +1.234568e+02" +string.format("%+20e", 1234567891.23) == " +1.234568e+09" +string.format("%+20e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%+20.0e", 0) == " +0e+00" +string.format("%+20.0e", 1) == " +1e+00" +string.format("%+20.0e", -1) == " -1e+00" +string.format("%+20.0e", 2) == " +2e+00" +string.format("%+20.0e", -2) == " -2e+00" +string.format("%+20.0e", 3) == " +3e+00" +string.format("%+20.0e", -3) == " -3e+00" +string.format("%+20.0e", nan) == " +nan" +string.format("%+20.0e", inf) == " +inf" +string.format("%+20.0e", -inf) == " -inf" +string.format("%+20.0e", 100) == " +1e+02" +string.format("%+20.0e", 10000) == " +1e+04" +string.format("%+20.0e", 100000) == " +1e+05" +string.format("%+20.0e", 1000000) == " +1e+06" +string.format("%+20.0e", 10000000) == " +1e+07" +string.format("%+20.0e", 0.01) == " +1e-02" +string.format("%+20.0e", 0.0001) == " +1e-04" +string.format("%+20.0e", 1e-05) == " +1e-05" +string.format("%+20.0e", 1e-06) == " +1e-06" +string.format("%+20.0e", 1e-07) == " +1e-07" +string.format("%+20.0e", 123.456) == " +1e+02" +string.format("%+20.0e", 1234560000) == " +1e+09" +string.format("%+20.0e", 1.23456e-05) == " +1e-05" +string.format("%+20.0e", 123.456789123) == " +1e+02" +string.format("%+20.0e", 1234567891.23) == " +1e+09" +string.format("%+20.0e", 1.23456789123e-05) == " +1e-05" +string.format("%+20.1e", 0) == " +0.0e+00" +string.format("%+20.1e", 1) == " +1.0e+00" +string.format("%+20.1e", -1) == " -1.0e+00" +string.format("%+20.1e", 2) == " +2.0e+00" +string.format("%+20.1e", -2) == " -2.0e+00" +string.format("%+20.1e", 3) == " +3.0e+00" +string.format("%+20.1e", -3) == " -3.0e+00" +string.format("%+20.1e", nan) == " +nan" +string.format("%+20.1e", inf) == " +inf" +string.format("%+20.1e", -inf) == " -inf" +string.format("%+20.1e", 100) == " +1.0e+02" +string.format("%+20.1e", 10000) == " +1.0e+04" +string.format("%+20.1e", 100000) == " +1.0e+05" +string.format("%+20.1e", 1000000) == " +1.0e+06" +string.format("%+20.1e", 10000000) == " +1.0e+07" +string.format("%+20.1e", 0.01) == " +1.0e-02" +string.format("%+20.1e", 0.0001) == " +1.0e-04" +string.format("%+20.1e", 1e-05) == " +1.0e-05" +string.format("%+20.1e", 1e-06) == " +1.0e-06" +string.format("%+20.1e", 1e-07) == " +1.0e-07" +string.format("%+20.1e", 123.456) == " +1.2e+02" +string.format("%+20.1e", 1234560000) == " +1.2e+09" +string.format("%+20.1e", 1.23456e-05) == " +1.2e-05" +string.format("%+20.1e", 123.456789123) == " +1.2e+02" +string.format("%+20.1e", 1234567891.23) == " +1.2e+09" +string.format("%+20.1e", 1.23456789123e-05) == " +1.2e-05" +string.format("%+20.6e", 0) == " +0.000000e+00" +string.format("%+20.6e", 1) == " +1.000000e+00" +string.format("%+20.6e", -1) == " -1.000000e+00" +string.format("%+20.6e", 2) == " +2.000000e+00" +string.format("%+20.6e", -2) == " -2.000000e+00" +string.format("%+20.6e", 3) == " +3.000000e+00" +string.format("%+20.6e", -3) == " -3.000000e+00" +string.format("%+20.6e", nan) == " +nan" +string.format("%+20.6e", inf) == " +inf" +string.format("%+20.6e", -inf) == " -inf" +string.format("%+20.6e", 100) == " +1.000000e+02" +string.format("%+20.6e", 10000) == " +1.000000e+04" +string.format("%+20.6e", 100000) == " +1.000000e+05" +string.format("%+20.6e", 1000000) == " +1.000000e+06" +string.format("%+20.6e", 10000000) == " +1.000000e+07" +string.format("%+20.6e", 0.01) == " +1.000000e-02" +string.format("%+20.6e", 0.0001) == " +1.000000e-04" +string.format("%+20.6e", 1e-05) == " +1.000000e-05" +string.format("%+20.6e", 1e-06) == " +1.000000e-06" +string.format("%+20.6e", 1e-07) == " +1.000000e-07" +string.format("%+20.6e", 123.456) == " +1.234560e+02" +string.format("%+20.6e", 1234560000) == " +1.234560e+09" +string.format("%+20.6e", 1.23456e-05) == " +1.234560e-05" +string.format("%+20.6e", 123.456789123) == " +1.234568e+02" +string.format("%+20.6e", 1234567891.23) == " +1.234568e+09" +string.format("%+20.6e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%-e", 0) == "0.000000e+00" +string.format("%-e", 1) == "1.000000e+00" +string.format("%-e", -1) == "-1.000000e+00" +string.format("%-e", 2) == "2.000000e+00" +string.format("%-e", -2) == "-2.000000e+00" +string.format("%-e", 3) == "3.000000e+00" +string.format("%-e", -3) == "-3.000000e+00" +string.format("%-e", nan) == "nan" +string.format("%-e", inf) == "inf" +string.format("%-e", -inf) == "-inf" +string.format("%-e", 100) == "1.000000e+02" +string.format("%-e", 10000) == "1.000000e+04" +string.format("%-e", 100000) == "1.000000e+05" +string.format("%-e", 1000000) == "1.000000e+06" +string.format("%-e", 10000000) == "1.000000e+07" +string.format("%-e", 0.01) == "1.000000e-02" +string.format("%-e", 0.0001) == "1.000000e-04" +string.format("%-e", 1e-05) == "1.000000e-05" +string.format("%-e", 1e-06) == "1.000000e-06" +string.format("%-e", 1e-07) == "1.000000e-07" +string.format("%-e", 123.456) == "1.234560e+02" +string.format("%-e", 1234560000) == "1.234560e+09" +string.format("%-e", 1.23456e-05) == "1.234560e-05" +string.format("%-e", 123.456789123) == "1.234568e+02" +string.format("%-e", 1234567891.23) == "1.234568e+09" +string.format("%-e", 1.23456789123e-05) == "1.234568e-05" +string.format("%-.0e", 0) == "0e+00" +string.format("%-.0e", 1) == "1e+00" +string.format("%-.0e", -1) == "-1e+00" +string.format("%-.0e", 2) == "2e+00" +string.format("%-.0e", -2) == "-2e+00" +string.format("%-.0e", 3) == "3e+00" +string.format("%-.0e", -3) == "-3e+00" +string.format("%-.0e", 100) == "1e+02" +string.format("%-.0e", 10000) == "1e+04" +string.format("%-.0e", 100000) == "1e+05" +string.format("%-.0e", 1000000) == "1e+06" +string.format("%-.0e", 10000000) == "1e+07" +string.format("%-.0e", 0.01) == "1e-02" +string.format("%-.0e", 0.0001) == "1e-04" +string.format("%-.0e", 1e-05) == "1e-05" +string.format("%-.0e", 1e-06) == "1e-06" +string.format("%-.0e", 1e-07) == "1e-07" +string.format("%-.0e", 123.456) == "1e+02" +string.format("%-.0e", 1234560000) == "1e+09" +string.format("%-.0e", 1.23456e-05) == "1e-05" +string.format("%-.0e", 123.456789123) == "1e+02" +string.format("%-.0e", 1234567891.23) == "1e+09" +string.format("%-.0e", 1.23456789123e-05) == "1e-05" +string.format("%-.1e", 0) == "0.0e+00" +string.format("%-.1e", 1) == "1.0e+00" +string.format("%-.1e", -1) == "-1.0e+00" +string.format("%-.1e", 2) == "2.0e+00" +string.format("%-.1e", -2) == "-2.0e+00" +string.format("%-.1e", 3) == "3.0e+00" +string.format("%-.1e", -3) == "-3.0e+00" +string.format("%-.1e", 100) == "1.0e+02" +string.format("%-.1e", 10000) == "1.0e+04" +string.format("%-.1e", 100000) == "1.0e+05" +string.format("%-.1e", 1000000) == "1.0e+06" +string.format("%-.1e", 10000000) == "1.0e+07" +string.format("%-.1e", 0.01) == "1.0e-02" +string.format("%-.1e", 0.0001) == "1.0e-04" +string.format("%-.1e", 1e-05) == "1.0e-05" +string.format("%-.1e", 1e-06) == "1.0e-06" +string.format("%-.1e", 1e-07) == "1.0e-07" +string.format("%-.1e", 123.456) == "1.2e+02" +string.format("%-.1e", 1234560000) == "1.2e+09" +string.format("%-.1e", 1.23456e-05) == "1.2e-05" +string.format("%-.1e", 123.456789123) == "1.2e+02" +string.format("%-.1e", 1234567891.23) == "1.2e+09" +string.format("%-.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%-1.0e", 0) == "0e+00" +string.format("%-1.0e", 1) == "1e+00" +string.format("%-1.0e", -1) == "-1e+00" +string.format("%-1.0e", 2) == "2e+00" +string.format("%-1.0e", -2) == "-2e+00" +string.format("%-1.0e", 3) == "3e+00" +string.format("%-1.0e", -3) == "-3e+00" +string.format("%-1.0e", 100) == "1e+02" +string.format("%-1.0e", 10000) == "1e+04" +string.format("%-1.0e", 100000) == "1e+05" +string.format("%-1.0e", 1000000) == "1e+06" +string.format("%-1.0e", 10000000) == "1e+07" +string.format("%-1.0e", 0.01) == "1e-02" +string.format("%-1.0e", 0.0001) == "1e-04" +string.format("%-1.0e", 1e-05) == "1e-05" +string.format("%-1.0e", 1e-06) == "1e-06" +string.format("%-1.0e", 1e-07) == "1e-07" +string.format("%-1.0e", 123.456) == "1e+02" +string.format("%-1.0e", 1234560000) == "1e+09" +string.format("%-1.0e", 1.23456e-05) == "1e-05" +string.format("%-1.0e", 123.456789123) == "1e+02" +string.format("%-1.0e", 1234567891.23) == "1e+09" +string.format("%-1.0e", 1.23456789123e-05) == "1e-05" +string.format("%-1.1e", 0) == "0.0e+00" +string.format("%-1.1e", 1) == "1.0e+00" +string.format("%-1.1e", -1) == "-1.0e+00" +string.format("%-1.1e", 2) == "2.0e+00" +string.format("%-1.1e", -2) == "-2.0e+00" +string.format("%-1.1e", 3) == "3.0e+00" +string.format("%-1.1e", -3) == "-3.0e+00" +string.format("%-1.1e", 100) == "1.0e+02" +string.format("%-1.1e", 10000) == "1.0e+04" +string.format("%-1.1e", 100000) == "1.0e+05" +string.format("%-1.1e", 1000000) == "1.0e+06" +string.format("%-1.1e", 10000000) == "1.0e+07" +string.format("%-1.1e", 0.01) == "1.0e-02" +string.format("%-1.1e", 0.0001) == "1.0e-04" +string.format("%-1.1e", 1e-05) == "1.0e-05" +string.format("%-1.1e", 1e-06) == "1.0e-06" +string.format("%-1.1e", 1e-07) == "1.0e-07" +string.format("%-1.1e", 123.456) == "1.2e+02" +string.format("%-1.1e", 1234560000) == "1.2e+09" +string.format("%-1.1e", 1.23456e-05) == "1.2e-05" +string.format("%-1.1e", 123.456789123) == "1.2e+02" +string.format("%-1.1e", 1234567891.23) == "1.2e+09" +string.format("%-1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%-2.0e", 0) == "0e+00" +string.format("%-2.0e", 1) == "1e+00" +string.format("%-2.0e", -1) == "-1e+00" +string.format("%-2.0e", 2) == "2e+00" +string.format("%-2.0e", -2) == "-2e+00" +string.format("%-2.0e", 3) == "3e+00" +string.format("%-2.0e", -3) == "-3e+00" +string.format("%-2.0e", 100) == "1e+02" +string.format("%-2.0e", 10000) == "1e+04" +string.format("%-2.0e", 100000) == "1e+05" +string.format("%-2.0e", 1000000) == "1e+06" +string.format("%-2.0e", 10000000) == "1e+07" +string.format("%-2.0e", 0.01) == "1e-02" +string.format("%-2.0e", 0.0001) == "1e-04" +string.format("%-2.0e", 1e-05) == "1e-05" +string.format("%-2.0e", 1e-06) == "1e-06" +string.format("%-2.0e", 1e-07) == "1e-07" +string.format("%-2.0e", 123.456) == "1e+02" +string.format("%-2.0e", 1234560000) == "1e+09" +string.format("%-2.0e", 1.23456e-05) == "1e-05" +string.format("%-2.0e", 123.456789123) == "1e+02" +string.format("%-2.0e", 1234567891.23) == "1e+09" +string.format("%-2.0e", 1.23456789123e-05) == "1e-05" +string.format("%-2.1e", 0) == "0.0e+00" +string.format("%-2.1e", 1) == "1.0e+00" +string.format("%-2.1e", -1) == "-1.0e+00" +string.format("%-2.1e", 2) == "2.0e+00" +string.format("%-2.1e", -2) == "-2.0e+00" +string.format("%-2.1e", 3) == "3.0e+00" +string.format("%-2.1e", -3) == "-3.0e+00" +string.format("%-2.1e", 100) == "1.0e+02" +string.format("%-2.1e", 10000) == "1.0e+04" +string.format("%-2.1e", 100000) == "1.0e+05" +string.format("%-2.1e", 1000000) == "1.0e+06" +string.format("%-2.1e", 10000000) == "1.0e+07" +string.format("%-2.1e", 0.01) == "1.0e-02" +string.format("%-2.1e", 0.0001) == "1.0e-04" +string.format("%-2.1e", 1e-05) == "1.0e-05" +string.format("%-2.1e", 1e-06) == "1.0e-06" +string.format("%-2.1e", 1e-07) == "1.0e-07" +string.format("%-2.1e", 123.456) == "1.2e+02" +string.format("%-2.1e", 1234560000) == "1.2e+09" +string.format("%-2.1e", 1.23456e-05) == "1.2e-05" +string.format("%-2.1e", 123.456789123) == "1.2e+02" +string.format("%-2.1e", 1234567891.23) == "1.2e+09" +string.format("%-2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%-6e", nan) == "nan " +string.format("%-6e", inf) == "inf " +string.format("%-6e", -inf) == "-inf " +string.format("%-6.0e", 0) == "0e+00 " +string.format("%-6.0e", 1) == "1e+00 " +string.format("%-6.0e", -1) == "-1e+00" +string.format("%-6.0e", 2) == "2e+00 " +string.format("%-6.0e", -2) == "-2e+00" +string.format("%-6.0e", 3) == "3e+00 " +string.format("%-6.0e", -3) == "-3e+00" +string.format("%-6.0e", nan) == "nan " +string.format("%-6.0e", inf) == "inf " +string.format("%-6.0e", -inf) == "-inf " +string.format("%-6.0e", 100) == "1e+02 " +string.format("%-6.0e", 10000) == "1e+04 " +string.format("%-6.0e", 100000) == "1e+05 " +string.format("%-6.0e", 1000000) == "1e+06 " +string.format("%-6.0e", 10000000) == "1e+07 " +string.format("%-6.0e", 0.01) == "1e-02 " +string.format("%-6.0e", 0.0001) == "1e-04 " +string.format("%-6.0e", 1e-05) == "1e-05 " +string.format("%-6.0e", 1e-06) == "1e-06 " +string.format("%-6.0e", 1e-07) == "1e-07 " +string.format("%-6.0e", 123.456) == "1e+02 " +string.format("%-6.0e", 1234560000) == "1e+09 " +string.format("%-6.0e", 1.23456e-05) == "1e-05 " +string.format("%-6.0e", 123.456789123) == "1e+02 " +string.format("%-6.0e", 1234567891.23) == "1e+09 " +string.format("%-6.0e", 1.23456789123e-05) == "1e-05 " +string.format("%-6.1e", 0) == "0.0e+00" +string.format("%-6.1e", 1) == "1.0e+00" +string.format("%-6.1e", -1) == "-1.0e+00" +string.format("%-6.1e", 2) == "2.0e+00" +string.format("%-6.1e", -2) == "-2.0e+00" +string.format("%-6.1e", 3) == "3.0e+00" +string.format("%-6.1e", -3) == "-3.0e+00" +string.format("%-6.1e", nan) == "nan " +string.format("%-6.1e", inf) == "inf " +string.format("%-6.1e", -inf) == "-inf " +string.format("%-6.1e", 100) == "1.0e+02" +string.format("%-6.1e", 10000) == "1.0e+04" +string.format("%-6.1e", 100000) == "1.0e+05" +string.format("%-6.1e", 1000000) == "1.0e+06" +string.format("%-6.1e", 10000000) == "1.0e+07" +string.format("%-6.1e", 0.01) == "1.0e-02" +string.format("%-6.1e", 0.0001) == "1.0e-04" +string.format("%-6.1e", 1e-05) == "1.0e-05" +string.format("%-6.1e", 1e-06) == "1.0e-06" +string.format("%-6.1e", 1e-07) == "1.0e-07" +string.format("%-6.1e", 123.456) == "1.2e+02" +string.format("%-6.1e", 1234560000) == "1.2e+09" +string.format("%-6.1e", 1.23456e-05) == "1.2e-05" +string.format("%-6.1e", 123.456789123) == "1.2e+02" +string.format("%-6.1e", 1234567891.23) == "1.2e+09" +string.format("%-6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%-6.6e", nan) == "nan " +string.format("%-6.6e", inf) == "inf " +string.format("%-6.6e", -inf) == "-inf " +string.format("%-20e", 0) == "0.000000e+00 " +string.format("%-20e", 1) == "1.000000e+00 " +string.format("%-20e", -1) == "-1.000000e+00 " +string.format("%-20e", 2) == "2.000000e+00 " +string.format("%-20e", -2) == "-2.000000e+00 " +string.format("%-20e", 3) == "3.000000e+00 " +string.format("%-20e", -3) == "-3.000000e+00 " +string.format("%-20e", nan) == "nan " +string.format("%-20e", inf) == "inf " +string.format("%-20e", -inf) == "-inf " +string.format("%-20e", 100) == "1.000000e+02 " +string.format("%-20e", 10000) == "1.000000e+04 " +string.format("%-20e", 100000) == "1.000000e+05 " +string.format("%-20e", 1000000) == "1.000000e+06 " +string.format("%-20e", 10000000) == "1.000000e+07 " +string.format("%-20e", 0.01) == "1.000000e-02 " +string.format("%-20e", 0.0001) == "1.000000e-04 " +string.format("%-20e", 1e-05) == "1.000000e-05 " +string.format("%-20e", 1e-06) == "1.000000e-06 " +string.format("%-20e", 1e-07) == "1.000000e-07 " +string.format("%-20e", 123.456) == "1.234560e+02 " +string.format("%-20e", 1234560000) == "1.234560e+09 " +string.format("%-20e", 1.23456e-05) == "1.234560e-05 " +string.format("%-20e", 123.456789123) == "1.234568e+02 " +string.format("%-20e", 1234567891.23) == "1.234568e+09 " +string.format("%-20e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%-20.0e", 0) == "0e+00 " +string.format("%-20.0e", 1) == "1e+00 " +string.format("%-20.0e", -1) == "-1e+00 " +string.format("%-20.0e", 2) == "2e+00 " +string.format("%-20.0e", -2) == "-2e+00 " +string.format("%-20.0e", 3) == "3e+00 " +string.format("%-20.0e", -3) == "-3e+00 " +string.format("%-20.0e", nan) == "nan " +string.format("%-20.0e", inf) == "inf " +string.format("%-20.0e", -inf) == "-inf " +string.format("%-20.0e", 100) == "1e+02 " +string.format("%-20.0e", 10000) == "1e+04 " +string.format("%-20.0e", 100000) == "1e+05 " +string.format("%-20.0e", 1000000) == "1e+06 " +string.format("%-20.0e", 10000000) == "1e+07 " +string.format("%-20.0e", 0.01) == "1e-02 " +string.format("%-20.0e", 0.0001) == "1e-04 " +string.format("%-20.0e", 1e-05) == "1e-05 " +string.format("%-20.0e", 1e-06) == "1e-06 " +string.format("%-20.0e", 1e-07) == "1e-07 " +string.format("%-20.0e", 123.456) == "1e+02 " +string.format("%-20.0e", 1234560000) == "1e+09 " +string.format("%-20.0e", 1.23456e-05) == "1e-05 " +string.format("%-20.0e", 123.456789123) == "1e+02 " +string.format("%-20.0e", 1234567891.23) == "1e+09 " +string.format("%-20.0e", 1.23456789123e-05) == "1e-05 " +string.format("%-20.1e", 0) == "0.0e+00 " +string.format("%-20.1e", 1) == "1.0e+00 " +string.format("%-20.1e", -1) == "-1.0e+00 " +string.format("%-20.1e", 2) == "2.0e+00 " +string.format("%-20.1e", -2) == "-2.0e+00 " +string.format("%-20.1e", 3) == "3.0e+00 " +string.format("%-20.1e", -3) == "-3.0e+00 " +string.format("%-20.1e", nan) == "nan " +string.format("%-20.1e", inf) == "inf " +string.format("%-20.1e", -inf) == "-inf " +string.format("%-20.1e", 100) == "1.0e+02 " +string.format("%-20.1e", 10000) == "1.0e+04 " +string.format("%-20.1e", 100000) == "1.0e+05 " +string.format("%-20.1e", 1000000) == "1.0e+06 " +string.format("%-20.1e", 10000000) == "1.0e+07 " +string.format("%-20.1e", 0.01) == "1.0e-02 " +string.format("%-20.1e", 0.0001) == "1.0e-04 " +string.format("%-20.1e", 1e-05) == "1.0e-05 " +string.format("%-20.1e", 1e-06) == "1.0e-06 " +string.format("%-20.1e", 1e-07) == "1.0e-07 " +string.format("%-20.1e", 123.456) == "1.2e+02 " +string.format("%-20.1e", 1234560000) == "1.2e+09 " +string.format("%-20.1e", 1.23456e-05) == "1.2e-05 " +string.format("%-20.1e", 123.456789123) == "1.2e+02 " +string.format("%-20.1e", 1234567891.23) == "1.2e+09 " +string.format("%-20.1e", 1.23456789123e-05) == "1.2e-05 " +string.format("%-20.6e", 0) == "0.000000e+00 " +string.format("%-20.6e", 1) == "1.000000e+00 " +string.format("%-20.6e", -1) == "-1.000000e+00 " +string.format("%-20.6e", 2) == "2.000000e+00 " +string.format("%-20.6e", -2) == "-2.000000e+00 " +string.format("%-20.6e", 3) == "3.000000e+00 " +string.format("%-20.6e", -3) == "-3.000000e+00 " +string.format("%-20.6e", nan) == "nan " +string.format("%-20.6e", inf) == "inf " +string.format("%-20.6e", -inf) == "-inf " +string.format("%-20.6e", 100) == "1.000000e+02 " +string.format("%-20.6e", 10000) == "1.000000e+04 " +string.format("%-20.6e", 100000) == "1.000000e+05 " +string.format("%-20.6e", 1000000) == "1.000000e+06 " +string.format("%-20.6e", 10000000) == "1.000000e+07 " +string.format("%-20.6e", 0.01) == "1.000000e-02 " +string.format("%-20.6e", 0.0001) == "1.000000e-04 " +string.format("%-20.6e", 1e-05) == "1.000000e-05 " +string.format("%-20.6e", 1e-06) == "1.000000e-06 " +string.format("%-20.6e", 1e-07) == "1.000000e-07 " +string.format("%-20.6e", 123.456) == "1.234560e+02 " +string.format("%-20.6e", 1234560000) == "1.234560e+09 " +string.format("%-20.6e", 1.23456e-05) == "1.234560e-05 " +string.format("%-20.6e", 123.456789123) == "1.234568e+02 " +string.format("%-20.6e", 1234567891.23) == "1.234568e+09 " +string.format("%-20.6e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%-+e", 0) == "+0.000000e+00" +string.format("%-+e", 1) == "+1.000000e+00" +string.format("%-+e", -1) == "-1.000000e+00" +string.format("%-+e", 2) == "+2.000000e+00" +string.format("%-+e", -2) == "-2.000000e+00" +string.format("%-+e", 3) == "+3.000000e+00" +string.format("%-+e", -3) == "-3.000000e+00" +string.format("%-+e", nan) == "+nan" +string.format("%-+e", inf) == "+inf" +string.format("%-+e", -inf) == "-inf" +string.format("%-+e", 100) == "+1.000000e+02" +string.format("%-+e", 10000) == "+1.000000e+04" +string.format("%-+e", 100000) == "+1.000000e+05" +string.format("%-+e", 1000000) == "+1.000000e+06" +string.format("%-+e", 10000000) == "+1.000000e+07" +string.format("%-+e", 0.01) == "+1.000000e-02" +string.format("%-+e", 0.0001) == "+1.000000e-04" +string.format("%-+e", 1e-05) == "+1.000000e-05" +string.format("%-+e", 1e-06) == "+1.000000e-06" +string.format("%-+e", 1e-07) == "+1.000000e-07" +string.format("%-+e", 123.456) == "+1.234560e+02" +string.format("%-+e", 1234560000) == "+1.234560e+09" +string.format("%-+e", 1.23456e-05) == "+1.234560e-05" +string.format("%-+e", 123.456789123) == "+1.234568e+02" +string.format("%-+e", 1234567891.23) == "+1.234568e+09" +string.format("%-+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%-+.0e", 0) == "+0e+00" +string.format("%-+.0e", 1) == "+1e+00" +string.format("%-+.0e", -1) == "-1e+00" +string.format("%-+.0e", 2) == "+2e+00" +string.format("%-+.0e", -2) == "-2e+00" +string.format("%-+.0e", 3) == "+3e+00" +string.format("%-+.0e", -3) == "-3e+00" +string.format("%-+.0e", 100) == "+1e+02" +string.format("%-+.0e", 10000) == "+1e+04" +string.format("%-+.0e", 100000) == "+1e+05" +string.format("%-+.0e", 1000000) == "+1e+06" +string.format("%-+.0e", 10000000) == "+1e+07" +string.format("%-+.0e", 0.01) == "+1e-02" +string.format("%-+.0e", 0.0001) == "+1e-04" +string.format("%-+.0e", 1e-05) == "+1e-05" +string.format("%-+.0e", 1e-06) == "+1e-06" +string.format("%-+.0e", 1e-07) == "+1e-07" +string.format("%-+.0e", 123.456) == "+1e+02" +string.format("%-+.0e", 1234560000) == "+1e+09" +string.format("%-+.0e", 1.23456e-05) == "+1e-05" +string.format("%-+.0e", 123.456789123) == "+1e+02" +string.format("%-+.0e", 1234567891.23) == "+1e+09" +string.format("%-+.0e", 1.23456789123e-05) == "+1e-05" +string.format("%-+.1e", 0) == "+0.0e+00" +string.format("%-+.1e", 1) == "+1.0e+00" +string.format("%-+.1e", -1) == "-1.0e+00" +string.format("%-+.1e", 2) == "+2.0e+00" +string.format("%-+.1e", -2) == "-2.0e+00" +string.format("%-+.1e", 3) == "+3.0e+00" +string.format("%-+.1e", -3) == "-3.0e+00" +string.format("%-+.1e", 100) == "+1.0e+02" +string.format("%-+.1e", 10000) == "+1.0e+04" +string.format("%-+.1e", 100000) == "+1.0e+05" +string.format("%-+.1e", 1000000) == "+1.0e+06" +string.format("%-+.1e", 10000000) == "+1.0e+07" +string.format("%-+.1e", 0.01) == "+1.0e-02" +string.format("%-+.1e", 0.0001) == "+1.0e-04" +string.format("%-+.1e", 1e-05) == "+1.0e-05" +string.format("%-+.1e", 1e-06) == "+1.0e-06" +string.format("%-+.1e", 1e-07) == "+1.0e-07" +string.format("%-+.1e", 123.456) == "+1.2e+02" +string.format("%-+.1e", 1234560000) == "+1.2e+09" +string.format("%-+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%-+.1e", 123.456789123) == "+1.2e+02" +string.format("%-+.1e", 1234567891.23) == "+1.2e+09" +string.format("%-+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%-+1.0e", 0) == "+0e+00" +string.format("%-+1.0e", 1) == "+1e+00" +string.format("%-+1.0e", -1) == "-1e+00" +string.format("%-+1.0e", 2) == "+2e+00" +string.format("%-+1.0e", -2) == "-2e+00" +string.format("%-+1.0e", 3) == "+3e+00" +string.format("%-+1.0e", -3) == "-3e+00" +string.format("%-+1.0e", 100) == "+1e+02" +string.format("%-+1.0e", 10000) == "+1e+04" +string.format("%-+1.0e", 100000) == "+1e+05" +string.format("%-+1.0e", 1000000) == "+1e+06" +string.format("%-+1.0e", 10000000) == "+1e+07" +string.format("%-+1.0e", 0.01) == "+1e-02" +string.format("%-+1.0e", 0.0001) == "+1e-04" +string.format("%-+1.0e", 1e-05) == "+1e-05" +string.format("%-+1.0e", 1e-06) == "+1e-06" +string.format("%-+1.0e", 1e-07) == "+1e-07" +string.format("%-+1.0e", 123.456) == "+1e+02" +string.format("%-+1.0e", 1234560000) == "+1e+09" +string.format("%-+1.0e", 1.23456e-05) == "+1e-05" +string.format("%-+1.0e", 123.456789123) == "+1e+02" +string.format("%-+1.0e", 1234567891.23) == "+1e+09" +string.format("%-+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%-+1.1e", 0) == "+0.0e+00" +string.format("%-+1.1e", 1) == "+1.0e+00" +string.format("%-+1.1e", -1) == "-1.0e+00" +string.format("%-+1.1e", 2) == "+2.0e+00" +string.format("%-+1.1e", -2) == "-2.0e+00" +string.format("%-+1.1e", 3) == "+3.0e+00" +string.format("%-+1.1e", -3) == "-3.0e+00" +string.format("%-+1.1e", 100) == "+1.0e+02" +string.format("%-+1.1e", 10000) == "+1.0e+04" +string.format("%-+1.1e", 100000) == "+1.0e+05" +string.format("%-+1.1e", 1000000) == "+1.0e+06" +string.format("%-+1.1e", 10000000) == "+1.0e+07" +string.format("%-+1.1e", 0.01) == "+1.0e-02" +string.format("%-+1.1e", 0.0001) == "+1.0e-04" +string.format("%-+1.1e", 1e-05) == "+1.0e-05" +string.format("%-+1.1e", 1e-06) == "+1.0e-06" +string.format("%-+1.1e", 1e-07) == "+1.0e-07" +string.format("%-+1.1e", 123.456) == "+1.2e+02" +string.format("%-+1.1e", 1234560000) == "+1.2e+09" +string.format("%-+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%-+1.1e", 123.456789123) == "+1.2e+02" +string.format("%-+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%-+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%-+2.0e", 0) == "+0e+00" +string.format("%-+2.0e", 1) == "+1e+00" +string.format("%-+2.0e", -1) == "-1e+00" +string.format("%-+2.0e", 2) == "+2e+00" +string.format("%-+2.0e", -2) == "-2e+00" +string.format("%-+2.0e", 3) == "+3e+00" +string.format("%-+2.0e", -3) == "-3e+00" +string.format("%-+2.0e", 100) == "+1e+02" +string.format("%-+2.0e", 10000) == "+1e+04" +string.format("%-+2.0e", 100000) == "+1e+05" +string.format("%-+2.0e", 1000000) == "+1e+06" +string.format("%-+2.0e", 10000000) == "+1e+07" +string.format("%-+2.0e", 0.01) == "+1e-02" +string.format("%-+2.0e", 0.0001) == "+1e-04" +string.format("%-+2.0e", 1e-05) == "+1e-05" +string.format("%-+2.0e", 1e-06) == "+1e-06" +string.format("%-+2.0e", 1e-07) == "+1e-07" +string.format("%-+2.0e", 123.456) == "+1e+02" +string.format("%-+2.0e", 1234560000) == "+1e+09" +string.format("%-+2.0e", 1.23456e-05) == "+1e-05" +string.format("%-+2.0e", 123.456789123) == "+1e+02" +string.format("%-+2.0e", 1234567891.23) == "+1e+09" +string.format("%-+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%-+2.1e", 0) == "+0.0e+00" +string.format("%-+2.1e", 1) == "+1.0e+00" +string.format("%-+2.1e", -1) == "-1.0e+00" +string.format("%-+2.1e", 2) == "+2.0e+00" +string.format("%-+2.1e", -2) == "-2.0e+00" +string.format("%-+2.1e", 3) == "+3.0e+00" +string.format("%-+2.1e", -3) == "-3.0e+00" +string.format("%-+2.1e", 100) == "+1.0e+02" +string.format("%-+2.1e", 10000) == "+1.0e+04" +string.format("%-+2.1e", 100000) == "+1.0e+05" +string.format("%-+2.1e", 1000000) == "+1.0e+06" +string.format("%-+2.1e", 10000000) == "+1.0e+07" +string.format("%-+2.1e", 0.01) == "+1.0e-02" +string.format("%-+2.1e", 0.0001) == "+1.0e-04" +string.format("%-+2.1e", 1e-05) == "+1.0e-05" +string.format("%-+2.1e", 1e-06) == "+1.0e-06" +string.format("%-+2.1e", 1e-07) == "+1.0e-07" +string.format("%-+2.1e", 123.456) == "+1.2e+02" +string.format("%-+2.1e", 1234560000) == "+1.2e+09" +string.format("%-+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%-+2.1e", 123.456789123) == "+1.2e+02" +string.format("%-+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%-+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%-+6e", nan) == "+nan " +string.format("%-+6e", inf) == "+inf " +string.format("%-+6e", -inf) == "-inf " +string.format("%-+6.0e", 0) == "+0e+00" +string.format("%-+6.0e", 1) == "+1e+00" +string.format("%-+6.0e", -1) == "-1e+00" +string.format("%-+6.0e", 2) == "+2e+00" +string.format("%-+6.0e", -2) == "-2e+00" +string.format("%-+6.0e", 3) == "+3e+00" +string.format("%-+6.0e", -3) == "-3e+00" +string.format("%-+6.0e", nan) == "+nan " +string.format("%-+6.0e", inf) == "+inf " +string.format("%-+6.0e", -inf) == "-inf " +string.format("%-+6.0e", 100) == "+1e+02" +string.format("%-+6.0e", 10000) == "+1e+04" +string.format("%-+6.0e", 100000) == "+1e+05" +string.format("%-+6.0e", 1000000) == "+1e+06" +string.format("%-+6.0e", 10000000) == "+1e+07" +string.format("%-+6.0e", 0.01) == "+1e-02" +string.format("%-+6.0e", 0.0001) == "+1e-04" +string.format("%-+6.0e", 1e-05) == "+1e-05" +string.format("%-+6.0e", 1e-06) == "+1e-06" +string.format("%-+6.0e", 1e-07) == "+1e-07" +string.format("%-+6.0e", 123.456) == "+1e+02" +string.format("%-+6.0e", 1234560000) == "+1e+09" +string.format("%-+6.0e", 1.23456e-05) == "+1e-05" +string.format("%-+6.0e", 123.456789123) == "+1e+02" +string.format("%-+6.0e", 1234567891.23) == "+1e+09" +string.format("%-+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%-+6.1e", 0) == "+0.0e+00" +string.format("%-+6.1e", 1) == "+1.0e+00" +string.format("%-+6.1e", -1) == "-1.0e+00" +string.format("%-+6.1e", 2) == "+2.0e+00" +string.format("%-+6.1e", -2) == "-2.0e+00" +string.format("%-+6.1e", 3) == "+3.0e+00" +string.format("%-+6.1e", -3) == "-3.0e+00" +string.format("%-+6.1e", nan) == "+nan " +string.format("%-+6.1e", inf) == "+inf " +string.format("%-+6.1e", -inf) == "-inf " +string.format("%-+6.1e", 100) == "+1.0e+02" +string.format("%-+6.1e", 10000) == "+1.0e+04" +string.format("%-+6.1e", 100000) == "+1.0e+05" +string.format("%-+6.1e", 1000000) == "+1.0e+06" +string.format("%-+6.1e", 10000000) == "+1.0e+07" +string.format("%-+6.1e", 0.01) == "+1.0e-02" +string.format("%-+6.1e", 0.0001) == "+1.0e-04" +string.format("%-+6.1e", 1e-05) == "+1.0e-05" +string.format("%-+6.1e", 1e-06) == "+1.0e-06" +string.format("%-+6.1e", 1e-07) == "+1.0e-07" +string.format("%-+6.1e", 123.456) == "+1.2e+02" +string.format("%-+6.1e", 1234560000) == "+1.2e+09" +string.format("%-+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%-+6.1e", 123.456789123) == "+1.2e+02" +string.format("%-+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%-+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%-+6.6e", nan) == "+nan " +string.format("%-+6.6e", inf) == "+inf " +string.format("%-+6.6e", -inf) == "-inf " +string.format("%-+20e", 0) == "+0.000000e+00 " +string.format("%-+20e", 1) == "+1.000000e+00 " +string.format("%-+20e", -1) == "-1.000000e+00 " +string.format("%-+20e", 2) == "+2.000000e+00 " +string.format("%-+20e", -2) == "-2.000000e+00 " +string.format("%-+20e", 3) == "+3.000000e+00 " +string.format("%-+20e", -3) == "-3.000000e+00 " +string.format("%-+20e", nan) == "+nan " +string.format("%-+20e", inf) == "+inf " +string.format("%-+20e", -inf) == "-inf " +string.format("%-+20e", 100) == "+1.000000e+02 " +string.format("%-+20e", 10000) == "+1.000000e+04 " +string.format("%-+20e", 100000) == "+1.000000e+05 " +string.format("%-+20e", 1000000) == "+1.000000e+06 " +string.format("%-+20e", 10000000) == "+1.000000e+07 " +string.format("%-+20e", 0.01) == "+1.000000e-02 " +string.format("%-+20e", 0.0001) == "+1.000000e-04 " +string.format("%-+20e", 1e-05) == "+1.000000e-05 " +string.format("%-+20e", 1e-06) == "+1.000000e-06 " +string.format("%-+20e", 1e-07) == "+1.000000e-07 " +string.format("%-+20e", 123.456) == "+1.234560e+02 " +string.format("%-+20e", 1234560000) == "+1.234560e+09 " +string.format("%-+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%-+20e", 123.456789123) == "+1.234568e+02 " +string.format("%-+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%-+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%-+20.0e", 0) == "+0e+00 " +string.format("%-+20.0e", 1) == "+1e+00 " +string.format("%-+20.0e", -1) == "-1e+00 " +string.format("%-+20.0e", 2) == "+2e+00 " +string.format("%-+20.0e", -2) == "-2e+00 " +string.format("%-+20.0e", 3) == "+3e+00 " +string.format("%-+20.0e", -3) == "-3e+00 " +string.format("%-+20.0e", nan) == "+nan " +string.format("%-+20.0e", inf) == "+inf " +string.format("%-+20.0e", -inf) == "-inf " +string.format("%-+20.0e", 100) == "+1e+02 " +string.format("%-+20.0e", 10000) == "+1e+04 " +string.format("%-+20.0e", 100000) == "+1e+05 " +string.format("%-+20.0e", 1000000) == "+1e+06 " +string.format("%-+20.0e", 10000000) == "+1e+07 " +string.format("%-+20.0e", 0.01) == "+1e-02 " +string.format("%-+20.0e", 0.0001) == "+1e-04 " +string.format("%-+20.0e", 1e-05) == "+1e-05 " +string.format("%-+20.0e", 1e-06) == "+1e-06 " +string.format("%-+20.0e", 1e-07) == "+1e-07 " +string.format("%-+20.0e", 123.456) == "+1e+02 " +string.format("%-+20.0e", 1234560000) == "+1e+09 " +string.format("%-+20.0e", 1.23456e-05) == "+1e-05 " +string.format("%-+20.0e", 123.456789123) == "+1e+02 " +string.format("%-+20.0e", 1234567891.23) == "+1e+09 " +string.format("%-+20.0e", 1.23456789123e-05) == "+1e-05 " +string.format("%-+20.1e", 0) == "+0.0e+00 " +string.format("%-+20.1e", 1) == "+1.0e+00 " +string.format("%-+20.1e", -1) == "-1.0e+00 " +string.format("%-+20.1e", 2) == "+2.0e+00 " +string.format("%-+20.1e", -2) == "-2.0e+00 " +string.format("%-+20.1e", 3) == "+3.0e+00 " +string.format("%-+20.1e", -3) == "-3.0e+00 " +string.format("%-+20.1e", nan) == "+nan " +string.format("%-+20.1e", inf) == "+inf " +string.format("%-+20.1e", -inf) == "-inf " +string.format("%-+20.1e", 100) == "+1.0e+02 " +string.format("%-+20.1e", 10000) == "+1.0e+04 " +string.format("%-+20.1e", 100000) == "+1.0e+05 " +string.format("%-+20.1e", 1000000) == "+1.0e+06 " +string.format("%-+20.1e", 10000000) == "+1.0e+07 " +string.format("%-+20.1e", 0.01) == "+1.0e-02 " +string.format("%-+20.1e", 0.0001) == "+1.0e-04 " +string.format("%-+20.1e", 1e-05) == "+1.0e-05 " +string.format("%-+20.1e", 1e-06) == "+1.0e-06 " +string.format("%-+20.1e", 1e-07) == "+1.0e-07 " +string.format("%-+20.1e", 123.456) == "+1.2e+02 " +string.format("%-+20.1e", 1234560000) == "+1.2e+09 " +string.format("%-+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%-+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%-+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%-+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%-+20.6e", 0) == "+0.000000e+00 " +string.format("%-+20.6e", 1) == "+1.000000e+00 " +string.format("%-+20.6e", -1) == "-1.000000e+00 " +string.format("%-+20.6e", 2) == "+2.000000e+00 " +string.format("%-+20.6e", -2) == "-2.000000e+00 " +string.format("%-+20.6e", 3) == "+3.000000e+00 " +string.format("%-+20.6e", -3) == "-3.000000e+00 " +string.format("%-+20.6e", nan) == "+nan " +string.format("%-+20.6e", inf) == "+inf " +string.format("%-+20.6e", -inf) == "-inf " +string.format("%-+20.6e", 100) == "+1.000000e+02 " +string.format("%-+20.6e", 10000) == "+1.000000e+04 " +string.format("%-+20.6e", 100000) == "+1.000000e+05 " +string.format("%-+20.6e", 1000000) == "+1.000000e+06 " +string.format("%-+20.6e", 10000000) == "+1.000000e+07 " +string.format("%-+20.6e", 0.01) == "+1.000000e-02 " +string.format("%-+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%-+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%-+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%-+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%-+20.6e", 123.456) == "+1.234560e+02 " +string.format("%-+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%-+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%-+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%-+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%-+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("% e", 0) == " 0.000000e+00" +string.format("% e", 1) == " 1.000000e+00" +string.format("% e", -1) == "-1.000000e+00" +string.format("% e", 2) == " 2.000000e+00" +string.format("% e", -2) == "-2.000000e+00" +string.format("% e", 3) == " 3.000000e+00" +string.format("% e", -3) == "-3.000000e+00" +string.format("% e", nan) == " nan" +string.format("% e", inf) == " inf" +string.format("% e", -inf) == "-inf" +string.format("% e", 100) == " 1.000000e+02" +string.format("% e", 10000) == " 1.000000e+04" +string.format("% e", 100000) == " 1.000000e+05" +string.format("% e", 1000000) == " 1.000000e+06" +string.format("% e", 10000000) == " 1.000000e+07" +string.format("% e", 0.01) == " 1.000000e-02" +string.format("% e", 0.0001) == " 1.000000e-04" +string.format("% e", 1e-05) == " 1.000000e-05" +string.format("% e", 1e-06) == " 1.000000e-06" +string.format("% e", 1e-07) == " 1.000000e-07" +string.format("% e", 123.456) == " 1.234560e+02" +string.format("% e", 1234560000) == " 1.234560e+09" +string.format("% e", 1.23456e-05) == " 1.234560e-05" +string.format("% e", 123.456789123) == " 1.234568e+02" +string.format("% e", 1234567891.23) == " 1.234568e+09" +string.format("% e", 1.23456789123e-05) == " 1.234568e-05" +string.format("% .0e", 0) == " 0e+00" +string.format("% .0e", 1) == " 1e+00" +string.format("% .0e", -1) == "-1e+00" +string.format("% .0e", 2) == " 2e+00" +string.format("% .0e", -2) == "-2e+00" +string.format("% .0e", 3) == " 3e+00" +string.format("% .0e", -3) == "-3e+00" +string.format("% .0e", 100) == " 1e+02" +string.format("% .0e", 10000) == " 1e+04" +string.format("% .0e", 100000) == " 1e+05" +string.format("% .0e", 1000000) == " 1e+06" +string.format("% .0e", 10000000) == " 1e+07" +string.format("% .0e", 0.01) == " 1e-02" +string.format("% .0e", 0.0001) == " 1e-04" +string.format("% .0e", 1e-05) == " 1e-05" +string.format("% .0e", 1e-06) == " 1e-06" +string.format("% .0e", 1e-07) == " 1e-07" +string.format("% .0e", 123.456) == " 1e+02" +string.format("% .0e", 1234560000) == " 1e+09" +string.format("% .0e", 1.23456e-05) == " 1e-05" +string.format("% .0e", 123.456789123) == " 1e+02" +string.format("% .0e", 1234567891.23) == " 1e+09" +string.format("% .0e", 1.23456789123e-05) == " 1e-05" +string.format("% .1e", 0) == " 0.0e+00" +string.format("% .1e", 1) == " 1.0e+00" +string.format("% .1e", -1) == "-1.0e+00" +string.format("% .1e", 2) == " 2.0e+00" +string.format("% .1e", -2) == "-2.0e+00" +string.format("% .1e", 3) == " 3.0e+00" +string.format("% .1e", -3) == "-3.0e+00" +string.format("% .1e", 100) == " 1.0e+02" +string.format("% .1e", 10000) == " 1.0e+04" +string.format("% .1e", 100000) == " 1.0e+05" +string.format("% .1e", 1000000) == " 1.0e+06" +string.format("% .1e", 10000000) == " 1.0e+07" +string.format("% .1e", 0.01) == " 1.0e-02" +string.format("% .1e", 0.0001) == " 1.0e-04" +string.format("% .1e", 1e-05) == " 1.0e-05" +string.format("% .1e", 1e-06) == " 1.0e-06" +string.format("% .1e", 1e-07) == " 1.0e-07" +string.format("% .1e", 123.456) == " 1.2e+02" +string.format("% .1e", 1234560000) == " 1.2e+09" +string.format("% .1e", 1.23456e-05) == " 1.2e-05" +string.format("% .1e", 123.456789123) == " 1.2e+02" +string.format("% .1e", 1234567891.23) == " 1.2e+09" +string.format("% .1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% 1.0e", 0) == " 0e+00" +string.format("% 1.0e", 1) == " 1e+00" +string.format("% 1.0e", -1) == "-1e+00" +string.format("% 1.0e", 2) == " 2e+00" +string.format("% 1.0e", -2) == "-2e+00" +string.format("% 1.0e", 3) == " 3e+00" +string.format("% 1.0e", -3) == "-3e+00" +string.format("% 1.0e", 100) == " 1e+02" +string.format("% 1.0e", 10000) == " 1e+04" +string.format("% 1.0e", 100000) == " 1e+05" +string.format("% 1.0e", 1000000) == " 1e+06" +string.format("% 1.0e", 10000000) == " 1e+07" +string.format("% 1.0e", 0.01) == " 1e-02" +string.format("% 1.0e", 0.0001) == " 1e-04" +string.format("% 1.0e", 1e-05) == " 1e-05" +string.format("% 1.0e", 1e-06) == " 1e-06" +string.format("% 1.0e", 1e-07) == " 1e-07" +string.format("% 1.0e", 123.456) == " 1e+02" +string.format("% 1.0e", 1234560000) == " 1e+09" +string.format("% 1.0e", 1.23456e-05) == " 1e-05" +string.format("% 1.0e", 123.456789123) == " 1e+02" +string.format("% 1.0e", 1234567891.23) == " 1e+09" +string.format("% 1.0e", 1.23456789123e-05) == " 1e-05" +string.format("% 1.1e", 0) == " 0.0e+00" +string.format("% 1.1e", 1) == " 1.0e+00" +string.format("% 1.1e", -1) == "-1.0e+00" +string.format("% 1.1e", 2) == " 2.0e+00" +string.format("% 1.1e", -2) == "-2.0e+00" +string.format("% 1.1e", 3) == " 3.0e+00" +string.format("% 1.1e", -3) == "-3.0e+00" +string.format("% 1.1e", 100) == " 1.0e+02" +string.format("% 1.1e", 10000) == " 1.0e+04" +string.format("% 1.1e", 100000) == " 1.0e+05" +string.format("% 1.1e", 1000000) == " 1.0e+06" +string.format("% 1.1e", 10000000) == " 1.0e+07" +string.format("% 1.1e", 0.01) == " 1.0e-02" +string.format("% 1.1e", 0.0001) == " 1.0e-04" +string.format("% 1.1e", 1e-05) == " 1.0e-05" +string.format("% 1.1e", 1e-06) == " 1.0e-06" +string.format("% 1.1e", 1e-07) == " 1.0e-07" +string.format("% 1.1e", 123.456) == " 1.2e+02" +string.format("% 1.1e", 1234560000) == " 1.2e+09" +string.format("% 1.1e", 1.23456e-05) == " 1.2e-05" +string.format("% 1.1e", 123.456789123) == " 1.2e+02" +string.format("% 1.1e", 1234567891.23) == " 1.2e+09" +string.format("% 1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% 2.0e", 0) == " 0e+00" +string.format("% 2.0e", 1) == " 1e+00" +string.format("% 2.0e", -1) == "-1e+00" +string.format("% 2.0e", 2) == " 2e+00" +string.format("% 2.0e", -2) == "-2e+00" +string.format("% 2.0e", 3) == " 3e+00" +string.format("% 2.0e", -3) == "-3e+00" +string.format("% 2.0e", 100) == " 1e+02" +string.format("% 2.0e", 10000) == " 1e+04" +string.format("% 2.0e", 100000) == " 1e+05" +string.format("% 2.0e", 1000000) == " 1e+06" +string.format("% 2.0e", 10000000) == " 1e+07" +string.format("% 2.0e", 0.01) == " 1e-02" +string.format("% 2.0e", 0.0001) == " 1e-04" +string.format("% 2.0e", 1e-05) == " 1e-05" +string.format("% 2.0e", 1e-06) == " 1e-06" +string.format("% 2.0e", 1e-07) == " 1e-07" +string.format("% 2.0e", 123.456) == " 1e+02" +string.format("% 2.0e", 1234560000) == " 1e+09" +string.format("% 2.0e", 1.23456e-05) == " 1e-05" +string.format("% 2.0e", 123.456789123) == " 1e+02" +string.format("% 2.0e", 1234567891.23) == " 1e+09" +string.format("% 2.0e", 1.23456789123e-05) == " 1e-05" +string.format("% 2.1e", 0) == " 0.0e+00" +string.format("% 2.1e", 1) == " 1.0e+00" +string.format("% 2.1e", -1) == "-1.0e+00" +string.format("% 2.1e", 2) == " 2.0e+00" +string.format("% 2.1e", -2) == "-2.0e+00" +string.format("% 2.1e", 3) == " 3.0e+00" +string.format("% 2.1e", -3) == "-3.0e+00" +string.format("% 2.1e", 100) == " 1.0e+02" +string.format("% 2.1e", 10000) == " 1.0e+04" +string.format("% 2.1e", 100000) == " 1.0e+05" +string.format("% 2.1e", 1000000) == " 1.0e+06" +string.format("% 2.1e", 10000000) == " 1.0e+07" +string.format("% 2.1e", 0.01) == " 1.0e-02" +string.format("% 2.1e", 0.0001) == " 1.0e-04" +string.format("% 2.1e", 1e-05) == " 1.0e-05" +string.format("% 2.1e", 1e-06) == " 1.0e-06" +string.format("% 2.1e", 1e-07) == " 1.0e-07" +string.format("% 2.1e", 123.456) == " 1.2e+02" +string.format("% 2.1e", 1234560000) == " 1.2e+09" +string.format("% 2.1e", 1.23456e-05) == " 1.2e-05" +string.format("% 2.1e", 123.456789123) == " 1.2e+02" +string.format("% 2.1e", 1234567891.23) == " 1.2e+09" +string.format("% 2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% 6e", nan) == " nan" +string.format("% 6e", inf) == " inf" +string.format("% 6e", -inf) == " -inf" +string.format("% 6.0e", 0) == " 0e+00" +string.format("% 6.0e", 1) == " 1e+00" +string.format("% 6.0e", -1) == "-1e+00" +string.format("% 6.0e", 2) == " 2e+00" +string.format("% 6.0e", -2) == "-2e+00" +string.format("% 6.0e", 3) == " 3e+00" +string.format("% 6.0e", -3) == "-3e+00" +string.format("% 6.0e", nan) == " nan" +string.format("% 6.0e", inf) == " inf" +string.format("% 6.0e", -inf) == " -inf" +string.format("% 6.0e", 100) == " 1e+02" +string.format("% 6.0e", 10000) == " 1e+04" +string.format("% 6.0e", 100000) == " 1e+05" +string.format("% 6.0e", 1000000) == " 1e+06" +string.format("% 6.0e", 10000000) == " 1e+07" +string.format("% 6.0e", 0.01) == " 1e-02" +string.format("% 6.0e", 0.0001) == " 1e-04" +string.format("% 6.0e", 1e-05) == " 1e-05" +string.format("% 6.0e", 1e-06) == " 1e-06" +string.format("% 6.0e", 1e-07) == " 1e-07" +string.format("% 6.0e", 123.456) == " 1e+02" +string.format("% 6.0e", 1234560000) == " 1e+09" +string.format("% 6.0e", 1.23456e-05) == " 1e-05" +string.format("% 6.0e", 123.456789123) == " 1e+02" +string.format("% 6.0e", 1234567891.23) == " 1e+09" +string.format("% 6.0e", 1.23456789123e-05) == " 1e-05" +string.format("% 6.1e", 0) == " 0.0e+00" +string.format("% 6.1e", 1) == " 1.0e+00" +string.format("% 6.1e", -1) == "-1.0e+00" +string.format("% 6.1e", 2) == " 2.0e+00" +string.format("% 6.1e", -2) == "-2.0e+00" +string.format("% 6.1e", 3) == " 3.0e+00" +string.format("% 6.1e", -3) == "-3.0e+00" +string.format("% 6.1e", nan) == " nan" +string.format("% 6.1e", inf) == " inf" +string.format("% 6.1e", -inf) == " -inf" +string.format("% 6.1e", 100) == " 1.0e+02" +string.format("% 6.1e", 10000) == " 1.0e+04" +string.format("% 6.1e", 100000) == " 1.0e+05" +string.format("% 6.1e", 1000000) == " 1.0e+06" +string.format("% 6.1e", 10000000) == " 1.0e+07" +string.format("% 6.1e", 0.01) == " 1.0e-02" +string.format("% 6.1e", 0.0001) == " 1.0e-04" +string.format("% 6.1e", 1e-05) == " 1.0e-05" +string.format("% 6.1e", 1e-06) == " 1.0e-06" +string.format("% 6.1e", 1e-07) == " 1.0e-07" +string.format("% 6.1e", 123.456) == " 1.2e+02" +string.format("% 6.1e", 1234560000) == " 1.2e+09" +string.format("% 6.1e", 1.23456e-05) == " 1.2e-05" +string.format("% 6.1e", 123.456789123) == " 1.2e+02" +string.format("% 6.1e", 1234567891.23) == " 1.2e+09" +string.format("% 6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% 6.6e", nan) == " nan" +string.format("% 6.6e", inf) == " inf" +string.format("% 6.6e", -inf) == " -inf" +string.format("% 20e", 0) == " 0.000000e+00" +string.format("% 20e", 1) == " 1.000000e+00" +string.format("% 20e", -1) == " -1.000000e+00" +string.format("% 20e", 2) == " 2.000000e+00" +string.format("% 20e", -2) == " -2.000000e+00" +string.format("% 20e", 3) == " 3.000000e+00" +string.format("% 20e", -3) == " -3.000000e+00" +string.format("% 20e", nan) == " nan" +string.format("% 20e", inf) == " inf" +string.format("% 20e", -inf) == " -inf" +string.format("% 20e", 100) == " 1.000000e+02" +string.format("% 20e", 10000) == " 1.000000e+04" +string.format("% 20e", 100000) == " 1.000000e+05" +string.format("% 20e", 1000000) == " 1.000000e+06" +string.format("% 20e", 10000000) == " 1.000000e+07" +string.format("% 20e", 0.01) == " 1.000000e-02" +string.format("% 20e", 0.0001) == " 1.000000e-04" +string.format("% 20e", 1e-05) == " 1.000000e-05" +string.format("% 20e", 1e-06) == " 1.000000e-06" +string.format("% 20e", 1e-07) == " 1.000000e-07" +string.format("% 20e", 123.456) == " 1.234560e+02" +string.format("% 20e", 1234560000) == " 1.234560e+09" +string.format("% 20e", 1.23456e-05) == " 1.234560e-05" +string.format("% 20e", 123.456789123) == " 1.234568e+02" +string.format("% 20e", 1234567891.23) == " 1.234568e+09" +string.format("% 20e", 1.23456789123e-05) == " 1.234568e-05" +string.format("% 20.0e", 0) == " 0e+00" +string.format("% 20.0e", 1) == " 1e+00" +string.format("% 20.0e", -1) == " -1e+00" +string.format("% 20.0e", 2) == " 2e+00" +string.format("% 20.0e", -2) == " -2e+00" +string.format("% 20.0e", 3) == " 3e+00" +string.format("% 20.0e", -3) == " -3e+00" +string.format("% 20.0e", nan) == " nan" +string.format("% 20.0e", inf) == " inf" +string.format("% 20.0e", -inf) == " -inf" +string.format("% 20.0e", 100) == " 1e+02" +string.format("% 20.0e", 10000) == " 1e+04" +string.format("% 20.0e", 100000) == " 1e+05" +string.format("% 20.0e", 1000000) == " 1e+06" +string.format("% 20.0e", 10000000) == " 1e+07" +string.format("% 20.0e", 0.01) == " 1e-02" +string.format("% 20.0e", 0.0001) == " 1e-04" +string.format("% 20.0e", 1e-05) == " 1e-05" +string.format("% 20.0e", 1e-06) == " 1e-06" +string.format("% 20.0e", 1e-07) == " 1e-07" +string.format("% 20.0e", 123.456) == " 1e+02" +string.format("% 20.0e", 1234560000) == " 1e+09" +string.format("% 20.0e", 1.23456e-05) == " 1e-05" +string.format("% 20.0e", 123.456789123) == " 1e+02" +string.format("% 20.0e", 1234567891.23) == " 1e+09" +string.format("% 20.0e", 1.23456789123e-05) == " 1e-05" +string.format("% 20.1e", 0) == " 0.0e+00" +string.format("% 20.1e", 1) == " 1.0e+00" +string.format("% 20.1e", -1) == " -1.0e+00" +string.format("% 20.1e", 2) == " 2.0e+00" +string.format("% 20.1e", -2) == " -2.0e+00" +string.format("% 20.1e", 3) == " 3.0e+00" +string.format("% 20.1e", -3) == " -3.0e+00" +string.format("% 20.1e", nan) == " nan" +string.format("% 20.1e", inf) == " inf" +string.format("% 20.1e", -inf) == " -inf" +string.format("% 20.1e", 100) == " 1.0e+02" +string.format("% 20.1e", 10000) == " 1.0e+04" +string.format("% 20.1e", 100000) == " 1.0e+05" +string.format("% 20.1e", 1000000) == " 1.0e+06" +string.format("% 20.1e", 10000000) == " 1.0e+07" +string.format("% 20.1e", 0.01) == " 1.0e-02" +string.format("% 20.1e", 0.0001) == " 1.0e-04" +string.format("% 20.1e", 1e-05) == " 1.0e-05" +string.format("% 20.1e", 1e-06) == " 1.0e-06" +string.format("% 20.1e", 1e-07) == " 1.0e-07" +string.format("% 20.1e", 123.456) == " 1.2e+02" +string.format("% 20.1e", 1234560000) == " 1.2e+09" +string.format("% 20.1e", 1.23456e-05) == " 1.2e-05" +string.format("% 20.1e", 123.456789123) == " 1.2e+02" +string.format("% 20.1e", 1234567891.23) == " 1.2e+09" +string.format("% 20.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% 20.6e", 0) == " 0.000000e+00" +string.format("% 20.6e", 1) == " 1.000000e+00" +string.format("% 20.6e", -1) == " -1.000000e+00" +string.format("% 20.6e", 2) == " 2.000000e+00" +string.format("% 20.6e", -2) == " -2.000000e+00" +string.format("% 20.6e", 3) == " 3.000000e+00" +string.format("% 20.6e", -3) == " -3.000000e+00" +string.format("% 20.6e", nan) == " nan" +string.format("% 20.6e", inf) == " inf" +string.format("% 20.6e", -inf) == " -inf" +string.format("% 20.6e", 100) == " 1.000000e+02" +string.format("% 20.6e", 10000) == " 1.000000e+04" +string.format("% 20.6e", 100000) == " 1.000000e+05" +string.format("% 20.6e", 1000000) == " 1.000000e+06" +string.format("% 20.6e", 10000000) == " 1.000000e+07" +string.format("% 20.6e", 0.01) == " 1.000000e-02" +string.format("% 20.6e", 0.0001) == " 1.000000e-04" +string.format("% 20.6e", 1e-05) == " 1.000000e-05" +string.format("% 20.6e", 1e-06) == " 1.000000e-06" +string.format("% 20.6e", 1e-07) == " 1.000000e-07" +string.format("% 20.6e", 123.456) == " 1.234560e+02" +string.format("% 20.6e", 1234560000) == " 1.234560e+09" +string.format("% 20.6e", 1.23456e-05) == " 1.234560e-05" +string.format("% 20.6e", 123.456789123) == " 1.234568e+02" +string.format("% 20.6e", 1234567891.23) == " 1.234568e+09" +string.format("% 20.6e", 1.23456789123e-05) == " 1.234568e-05" +string.format("% +e", 0) == "+0.000000e+00" +string.format("% +e", 1) == "+1.000000e+00" +string.format("% +e", -1) == "-1.000000e+00" +string.format("% +e", 2) == "+2.000000e+00" +string.format("% +e", -2) == "-2.000000e+00" +string.format("% +e", 3) == "+3.000000e+00" +string.format("% +e", -3) == "-3.000000e+00" +string.format("% +e", nan) == "+nan" +string.format("% +e", inf) == "+inf" +string.format("% +e", -inf) == "-inf" +string.format("% +e", 100) == "+1.000000e+02" +string.format("% +e", 10000) == "+1.000000e+04" +string.format("% +e", 100000) == "+1.000000e+05" +string.format("% +e", 1000000) == "+1.000000e+06" +string.format("% +e", 10000000) == "+1.000000e+07" +string.format("% +e", 0.01) == "+1.000000e-02" +string.format("% +e", 0.0001) == "+1.000000e-04" +string.format("% +e", 1e-05) == "+1.000000e-05" +string.format("% +e", 1e-06) == "+1.000000e-06" +string.format("% +e", 1e-07) == "+1.000000e-07" +string.format("% +e", 123.456) == "+1.234560e+02" +string.format("% +e", 1234560000) == "+1.234560e+09" +string.format("% +e", 1.23456e-05) == "+1.234560e-05" +string.format("% +e", 123.456789123) == "+1.234568e+02" +string.format("% +e", 1234567891.23) == "+1.234568e+09" +string.format("% +e", 1.23456789123e-05) == "+1.234568e-05" +string.format("% +.0e", 0) == "+0e+00" +string.format("% +.0e", 1) == "+1e+00" +string.format("% +.0e", -1) == "-1e+00" +string.format("% +.0e", 2) == "+2e+00" +string.format("% +.0e", -2) == "-2e+00" +string.format("% +.0e", 3) == "+3e+00" +string.format("% +.0e", -3) == "-3e+00" +string.format("% +.0e", 100) == "+1e+02" +string.format("% +.0e", 10000) == "+1e+04" +string.format("% +.0e", 100000) == "+1e+05" +string.format("% +.0e", 1000000) == "+1e+06" +string.format("% +.0e", 10000000) == "+1e+07" +string.format("% +.0e", 0.01) == "+1e-02" +string.format("% +.0e", 0.0001) == "+1e-04" +string.format("% +.0e", 1e-05) == "+1e-05" +string.format("% +.0e", 1e-06) == "+1e-06" +string.format("% +.0e", 1e-07) == "+1e-07" +string.format("% +.0e", 123.456) == "+1e+02" +string.format("% +.0e", 1234560000) == "+1e+09" +string.format("% +.0e", 1.23456e-05) == "+1e-05" +string.format("% +.0e", 123.456789123) == "+1e+02" +string.format("% +.0e", 1234567891.23) == "+1e+09" +string.format("% +.0e", 1.23456789123e-05) == "+1e-05" +string.format("% +.1e", 0) == "+0.0e+00" +string.format("% +.1e", 1) == "+1.0e+00" +string.format("% +.1e", -1) == "-1.0e+00" +string.format("% +.1e", 2) == "+2.0e+00" +string.format("% +.1e", -2) == "-2.0e+00" +string.format("% +.1e", 3) == "+3.0e+00" +string.format("% +.1e", -3) == "-3.0e+00" +string.format("% +.1e", 100) == "+1.0e+02" +string.format("% +.1e", 10000) == "+1.0e+04" +string.format("% +.1e", 100000) == "+1.0e+05" +string.format("% +.1e", 1000000) == "+1.0e+06" +string.format("% +.1e", 10000000) == "+1.0e+07" +string.format("% +.1e", 0.01) == "+1.0e-02" +string.format("% +.1e", 0.0001) == "+1.0e-04" +string.format("% +.1e", 1e-05) == "+1.0e-05" +string.format("% +.1e", 1e-06) == "+1.0e-06" +string.format("% +.1e", 1e-07) == "+1.0e-07" +string.format("% +.1e", 123.456) == "+1.2e+02" +string.format("% +.1e", 1234560000) == "+1.2e+09" +string.format("% +.1e", 1.23456e-05) == "+1.2e-05" +string.format("% +.1e", 123.456789123) == "+1.2e+02" +string.format("% +.1e", 1234567891.23) == "+1.2e+09" +string.format("% +.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% +1.0e", 0) == "+0e+00" +string.format("% +1.0e", 1) == "+1e+00" +string.format("% +1.0e", -1) == "-1e+00" +string.format("% +1.0e", 2) == "+2e+00" +string.format("% +1.0e", -2) == "-2e+00" +string.format("% +1.0e", 3) == "+3e+00" +string.format("% +1.0e", -3) == "-3e+00" +string.format("% +1.0e", 100) == "+1e+02" +string.format("% +1.0e", 10000) == "+1e+04" +string.format("% +1.0e", 100000) == "+1e+05" +string.format("% +1.0e", 1000000) == "+1e+06" +string.format("% +1.0e", 10000000) == "+1e+07" +string.format("% +1.0e", 0.01) == "+1e-02" +string.format("% +1.0e", 0.0001) == "+1e-04" +string.format("% +1.0e", 1e-05) == "+1e-05" +string.format("% +1.0e", 1e-06) == "+1e-06" +string.format("% +1.0e", 1e-07) == "+1e-07" +string.format("% +1.0e", 123.456) == "+1e+02" +string.format("% +1.0e", 1234560000) == "+1e+09" +string.format("% +1.0e", 1.23456e-05) == "+1e-05" +string.format("% +1.0e", 123.456789123) == "+1e+02" +string.format("% +1.0e", 1234567891.23) == "+1e+09" +string.format("% +1.0e", 1.23456789123e-05) == "+1e-05" +string.format("% +1.1e", 0) == "+0.0e+00" +string.format("% +1.1e", 1) == "+1.0e+00" +string.format("% +1.1e", -1) == "-1.0e+00" +string.format("% +1.1e", 2) == "+2.0e+00" +string.format("% +1.1e", -2) == "-2.0e+00" +string.format("% +1.1e", 3) == "+3.0e+00" +string.format("% +1.1e", -3) == "-3.0e+00" +string.format("% +1.1e", 100) == "+1.0e+02" +string.format("% +1.1e", 10000) == "+1.0e+04" +string.format("% +1.1e", 100000) == "+1.0e+05" +string.format("% +1.1e", 1000000) == "+1.0e+06" +string.format("% +1.1e", 10000000) == "+1.0e+07" +string.format("% +1.1e", 0.01) == "+1.0e-02" +string.format("% +1.1e", 0.0001) == "+1.0e-04" +string.format("% +1.1e", 1e-05) == "+1.0e-05" +string.format("% +1.1e", 1e-06) == "+1.0e-06" +string.format("% +1.1e", 1e-07) == "+1.0e-07" +string.format("% +1.1e", 123.456) == "+1.2e+02" +string.format("% +1.1e", 1234560000) == "+1.2e+09" +string.format("% +1.1e", 1.23456e-05) == "+1.2e-05" +string.format("% +1.1e", 123.456789123) == "+1.2e+02" +string.format("% +1.1e", 1234567891.23) == "+1.2e+09" +string.format("% +1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% +2.0e", 0) == "+0e+00" +string.format("% +2.0e", 1) == "+1e+00" +string.format("% +2.0e", -1) == "-1e+00" +string.format("% +2.0e", 2) == "+2e+00" +string.format("% +2.0e", -2) == "-2e+00" +string.format("% +2.0e", 3) == "+3e+00" +string.format("% +2.0e", -3) == "-3e+00" +string.format("% +2.0e", 100) == "+1e+02" +string.format("% +2.0e", 10000) == "+1e+04" +string.format("% +2.0e", 100000) == "+1e+05" +string.format("% +2.0e", 1000000) == "+1e+06" +string.format("% +2.0e", 10000000) == "+1e+07" +string.format("% +2.0e", 0.01) == "+1e-02" +string.format("% +2.0e", 0.0001) == "+1e-04" +string.format("% +2.0e", 1e-05) == "+1e-05" +string.format("% +2.0e", 1e-06) == "+1e-06" +string.format("% +2.0e", 1e-07) == "+1e-07" +string.format("% +2.0e", 123.456) == "+1e+02" +string.format("% +2.0e", 1234560000) == "+1e+09" +string.format("% +2.0e", 1.23456e-05) == "+1e-05" +string.format("% +2.0e", 123.456789123) == "+1e+02" +string.format("% +2.0e", 1234567891.23) == "+1e+09" +string.format("% +2.0e", 1.23456789123e-05) == "+1e-05" +string.format("% +2.1e", 0) == "+0.0e+00" +string.format("% +2.1e", 1) == "+1.0e+00" +string.format("% +2.1e", -1) == "-1.0e+00" +string.format("% +2.1e", 2) == "+2.0e+00" +string.format("% +2.1e", -2) == "-2.0e+00" +string.format("% +2.1e", 3) == "+3.0e+00" +string.format("% +2.1e", -3) == "-3.0e+00" +string.format("% +2.1e", 100) == "+1.0e+02" +string.format("% +2.1e", 10000) == "+1.0e+04" +string.format("% +2.1e", 100000) == "+1.0e+05" +string.format("% +2.1e", 1000000) == "+1.0e+06" +string.format("% +2.1e", 10000000) == "+1.0e+07" +string.format("% +2.1e", 0.01) == "+1.0e-02" +string.format("% +2.1e", 0.0001) == "+1.0e-04" +string.format("% +2.1e", 1e-05) == "+1.0e-05" +string.format("% +2.1e", 1e-06) == "+1.0e-06" +string.format("% +2.1e", 1e-07) == "+1.0e-07" +string.format("% +2.1e", 123.456) == "+1.2e+02" +string.format("% +2.1e", 1234560000) == "+1.2e+09" +string.format("% +2.1e", 1.23456e-05) == "+1.2e-05" +string.format("% +2.1e", 123.456789123) == "+1.2e+02" +string.format("% +2.1e", 1234567891.23) == "+1.2e+09" +string.format("% +2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% +6e", nan) == " +nan" +string.format("% +6e", inf) == " +inf" +string.format("% +6e", -inf) == " -inf" +string.format("% +6.0e", 0) == "+0e+00" +string.format("% +6.0e", 1) == "+1e+00" +string.format("% +6.0e", -1) == "-1e+00" +string.format("% +6.0e", 2) == "+2e+00" +string.format("% +6.0e", -2) == "-2e+00" +string.format("% +6.0e", 3) == "+3e+00" +string.format("% +6.0e", -3) == "-3e+00" +string.format("% +6.0e", nan) == " +nan" +string.format("% +6.0e", inf) == " +inf" +string.format("% +6.0e", -inf) == " -inf" +string.format("% +6.0e", 100) == "+1e+02" +string.format("% +6.0e", 10000) == "+1e+04" +string.format("% +6.0e", 100000) == "+1e+05" +string.format("% +6.0e", 1000000) == "+1e+06" +string.format("% +6.0e", 10000000) == "+1e+07" +string.format("% +6.0e", 0.01) == "+1e-02" +string.format("% +6.0e", 0.0001) == "+1e-04" +string.format("% +6.0e", 1e-05) == "+1e-05" +string.format("% +6.0e", 1e-06) == "+1e-06" +string.format("% +6.0e", 1e-07) == "+1e-07" +string.format("% +6.0e", 123.456) == "+1e+02" +string.format("% +6.0e", 1234560000) == "+1e+09" +string.format("% +6.0e", 1.23456e-05) == "+1e-05" +string.format("% +6.0e", 123.456789123) == "+1e+02" +string.format("% +6.0e", 1234567891.23) == "+1e+09" +string.format("% +6.0e", 1.23456789123e-05) == "+1e-05" +string.format("% +6.1e", 0) == "+0.0e+00" +string.format("% +6.1e", 1) == "+1.0e+00" +string.format("% +6.1e", -1) == "-1.0e+00" +string.format("% +6.1e", 2) == "+2.0e+00" +string.format("% +6.1e", -2) == "-2.0e+00" +string.format("% +6.1e", 3) == "+3.0e+00" +string.format("% +6.1e", -3) == "-3.0e+00" +string.format("% +6.1e", nan) == " +nan" +string.format("% +6.1e", inf) == " +inf" +string.format("% +6.1e", -inf) == " -inf" +string.format("% +6.1e", 100) == "+1.0e+02" +string.format("% +6.1e", 10000) == "+1.0e+04" +string.format("% +6.1e", 100000) == "+1.0e+05" +string.format("% +6.1e", 1000000) == "+1.0e+06" +string.format("% +6.1e", 10000000) == "+1.0e+07" +string.format("% +6.1e", 0.01) == "+1.0e-02" +string.format("% +6.1e", 0.0001) == "+1.0e-04" +string.format("% +6.1e", 1e-05) == "+1.0e-05" +string.format("% +6.1e", 1e-06) == "+1.0e-06" +string.format("% +6.1e", 1e-07) == "+1.0e-07" +string.format("% +6.1e", 123.456) == "+1.2e+02" +string.format("% +6.1e", 1234560000) == "+1.2e+09" +string.format("% +6.1e", 1.23456e-05) == "+1.2e-05" +string.format("% +6.1e", 123.456789123) == "+1.2e+02" +string.format("% +6.1e", 1234567891.23) == "+1.2e+09" +string.format("% +6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% +6.6e", nan) == " +nan" +string.format("% +6.6e", inf) == " +inf" +string.format("% +6.6e", -inf) == " -inf" +string.format("% +20e", 0) == " +0.000000e+00" +string.format("% +20e", 1) == " +1.000000e+00" +string.format("% +20e", -1) == " -1.000000e+00" +string.format("% +20e", 2) == " +2.000000e+00" +string.format("% +20e", -2) == " -2.000000e+00" +string.format("% +20e", 3) == " +3.000000e+00" +string.format("% +20e", -3) == " -3.000000e+00" +string.format("% +20e", nan) == " +nan" +string.format("% +20e", inf) == " +inf" +string.format("% +20e", -inf) == " -inf" +string.format("% +20e", 100) == " +1.000000e+02" +string.format("% +20e", 10000) == " +1.000000e+04" +string.format("% +20e", 100000) == " +1.000000e+05" +string.format("% +20e", 1000000) == " +1.000000e+06" +string.format("% +20e", 10000000) == " +1.000000e+07" +string.format("% +20e", 0.01) == " +1.000000e-02" +string.format("% +20e", 0.0001) == " +1.000000e-04" +string.format("% +20e", 1e-05) == " +1.000000e-05" +string.format("% +20e", 1e-06) == " +1.000000e-06" +string.format("% +20e", 1e-07) == " +1.000000e-07" +string.format("% +20e", 123.456) == " +1.234560e+02" +string.format("% +20e", 1234560000) == " +1.234560e+09" +string.format("% +20e", 1.23456e-05) == " +1.234560e-05" +string.format("% +20e", 123.456789123) == " +1.234568e+02" +string.format("% +20e", 1234567891.23) == " +1.234568e+09" +string.format("% +20e", 1.23456789123e-05) == " +1.234568e-05" +string.format("% +20.0e", 0) == " +0e+00" +string.format("% +20.0e", 1) == " +1e+00" +string.format("% +20.0e", -1) == " -1e+00" +string.format("% +20.0e", 2) == " +2e+00" +string.format("% +20.0e", -2) == " -2e+00" +string.format("% +20.0e", 3) == " +3e+00" +string.format("% +20.0e", -3) == " -3e+00" +string.format("% +20.0e", nan) == " +nan" +string.format("% +20.0e", inf) == " +inf" +string.format("% +20.0e", -inf) == " -inf" +string.format("% +20.0e", 100) == " +1e+02" +string.format("% +20.0e", 10000) == " +1e+04" +string.format("% +20.0e", 100000) == " +1e+05" +string.format("% +20.0e", 1000000) == " +1e+06" +string.format("% +20.0e", 10000000) == " +1e+07" +string.format("% +20.0e", 0.01) == " +1e-02" +string.format("% +20.0e", 0.0001) == " +1e-04" +string.format("% +20.0e", 1e-05) == " +1e-05" +string.format("% +20.0e", 1e-06) == " +1e-06" +string.format("% +20.0e", 1e-07) == " +1e-07" +string.format("% +20.0e", 123.456) == " +1e+02" +string.format("% +20.0e", 1234560000) == " +1e+09" +string.format("% +20.0e", 1.23456e-05) == " +1e-05" +string.format("% +20.0e", 123.456789123) == " +1e+02" +string.format("% +20.0e", 1234567891.23) == " +1e+09" +string.format("% +20.0e", 1.23456789123e-05) == " +1e-05" +string.format("% +20.1e", 0) == " +0.0e+00" +string.format("% +20.1e", 1) == " +1.0e+00" +string.format("% +20.1e", -1) == " -1.0e+00" +string.format("% +20.1e", 2) == " +2.0e+00" +string.format("% +20.1e", -2) == " -2.0e+00" +string.format("% +20.1e", 3) == " +3.0e+00" +string.format("% +20.1e", -3) == " -3.0e+00" +string.format("% +20.1e", nan) == " +nan" +string.format("% +20.1e", inf) == " +inf" +string.format("% +20.1e", -inf) == " -inf" +string.format("% +20.1e", 100) == " +1.0e+02" +string.format("% +20.1e", 10000) == " +1.0e+04" +string.format("% +20.1e", 100000) == " +1.0e+05" +string.format("% +20.1e", 1000000) == " +1.0e+06" +string.format("% +20.1e", 10000000) == " +1.0e+07" +string.format("% +20.1e", 0.01) == " +1.0e-02" +string.format("% +20.1e", 0.0001) == " +1.0e-04" +string.format("% +20.1e", 1e-05) == " +1.0e-05" +string.format("% +20.1e", 1e-06) == " +1.0e-06" +string.format("% +20.1e", 1e-07) == " +1.0e-07" +string.format("% +20.1e", 123.456) == " +1.2e+02" +string.format("% +20.1e", 1234560000) == " +1.2e+09" +string.format("% +20.1e", 1.23456e-05) == " +1.2e-05" +string.format("% +20.1e", 123.456789123) == " +1.2e+02" +string.format("% +20.1e", 1234567891.23) == " +1.2e+09" +string.format("% +20.1e", 1.23456789123e-05) == " +1.2e-05" +string.format("% +20.6e", 0) == " +0.000000e+00" +string.format("% +20.6e", 1) == " +1.000000e+00" +string.format("% +20.6e", -1) == " -1.000000e+00" +string.format("% +20.6e", 2) == " +2.000000e+00" +string.format("% +20.6e", -2) == " -2.000000e+00" +string.format("% +20.6e", 3) == " +3.000000e+00" +string.format("% +20.6e", -3) == " -3.000000e+00" +string.format("% +20.6e", nan) == " +nan" +string.format("% +20.6e", inf) == " +inf" +string.format("% +20.6e", -inf) == " -inf" +string.format("% +20.6e", 100) == " +1.000000e+02" +string.format("% +20.6e", 10000) == " +1.000000e+04" +string.format("% +20.6e", 100000) == " +1.000000e+05" +string.format("% +20.6e", 1000000) == " +1.000000e+06" +string.format("% +20.6e", 10000000) == " +1.000000e+07" +string.format("% +20.6e", 0.01) == " +1.000000e-02" +string.format("% +20.6e", 0.0001) == " +1.000000e-04" +string.format("% +20.6e", 1e-05) == " +1.000000e-05" +string.format("% +20.6e", 1e-06) == " +1.000000e-06" +string.format("% +20.6e", 1e-07) == " +1.000000e-07" +string.format("% +20.6e", 123.456) == " +1.234560e+02" +string.format("% +20.6e", 1234560000) == " +1.234560e+09" +string.format("% +20.6e", 1.23456e-05) == " +1.234560e-05" +string.format("% +20.6e", 123.456789123) == " +1.234568e+02" +string.format("% +20.6e", 1234567891.23) == " +1.234568e+09" +string.format("% +20.6e", 1.23456789123e-05) == " +1.234568e-05" +string.format("% -e", 0) == " 0.000000e+00" +string.format("% -e", 1) == " 1.000000e+00" +string.format("% -e", -1) == "-1.000000e+00" +string.format("% -e", 2) == " 2.000000e+00" +string.format("% -e", -2) == "-2.000000e+00" +string.format("% -e", 3) == " 3.000000e+00" +string.format("% -e", -3) == "-3.000000e+00" +string.format("% -e", nan) == " nan" +string.format("% -e", inf) == " inf" +string.format("% -e", -inf) == "-inf" +string.format("% -e", 100) == " 1.000000e+02" +string.format("% -e", 10000) == " 1.000000e+04" +string.format("% -e", 100000) == " 1.000000e+05" +string.format("% -e", 1000000) == " 1.000000e+06" +string.format("% -e", 10000000) == " 1.000000e+07" +string.format("% -e", 0.01) == " 1.000000e-02" +string.format("% -e", 0.0001) == " 1.000000e-04" +string.format("% -e", 1e-05) == " 1.000000e-05" +string.format("% -e", 1e-06) == " 1.000000e-06" +string.format("% -e", 1e-07) == " 1.000000e-07" +string.format("% -e", 123.456) == " 1.234560e+02" +string.format("% -e", 1234560000) == " 1.234560e+09" +string.format("% -e", 1.23456e-05) == " 1.234560e-05" +string.format("% -e", 123.456789123) == " 1.234568e+02" +string.format("% -e", 1234567891.23) == " 1.234568e+09" +string.format("% -e", 1.23456789123e-05) == " 1.234568e-05" +string.format("% -.0e", 0) == " 0e+00" +string.format("% -.0e", 1) == " 1e+00" +string.format("% -.0e", -1) == "-1e+00" +string.format("% -.0e", 2) == " 2e+00" +string.format("% -.0e", -2) == "-2e+00" +string.format("% -.0e", 3) == " 3e+00" +string.format("% -.0e", -3) == "-3e+00" +string.format("% -.0e", 100) == " 1e+02" +string.format("% -.0e", 10000) == " 1e+04" +string.format("% -.0e", 100000) == " 1e+05" +string.format("% -.0e", 1000000) == " 1e+06" +string.format("% -.0e", 10000000) == " 1e+07" +string.format("% -.0e", 0.01) == " 1e-02" +string.format("% -.0e", 0.0001) == " 1e-04" +string.format("% -.0e", 1e-05) == " 1e-05" +string.format("% -.0e", 1e-06) == " 1e-06" +string.format("% -.0e", 1e-07) == " 1e-07" +string.format("% -.0e", 123.456) == " 1e+02" +string.format("% -.0e", 1234560000) == " 1e+09" +string.format("% -.0e", 1.23456e-05) == " 1e-05" +string.format("% -.0e", 123.456789123) == " 1e+02" +string.format("% -.0e", 1234567891.23) == " 1e+09" +string.format("% -.0e", 1.23456789123e-05) == " 1e-05" +string.format("% -.1e", 0) == " 0.0e+00" +string.format("% -.1e", 1) == " 1.0e+00" +string.format("% -.1e", -1) == "-1.0e+00" +string.format("% -.1e", 2) == " 2.0e+00" +string.format("% -.1e", -2) == "-2.0e+00" +string.format("% -.1e", 3) == " 3.0e+00" +string.format("% -.1e", -3) == "-3.0e+00" +string.format("% -.1e", 100) == " 1.0e+02" +string.format("% -.1e", 10000) == " 1.0e+04" +string.format("% -.1e", 100000) == " 1.0e+05" +string.format("% -.1e", 1000000) == " 1.0e+06" +string.format("% -.1e", 10000000) == " 1.0e+07" +string.format("% -.1e", 0.01) == " 1.0e-02" +string.format("% -.1e", 0.0001) == " 1.0e-04" +string.format("% -.1e", 1e-05) == " 1.0e-05" +string.format("% -.1e", 1e-06) == " 1.0e-06" +string.format("% -.1e", 1e-07) == " 1.0e-07" +string.format("% -.1e", 123.456) == " 1.2e+02" +string.format("% -.1e", 1234560000) == " 1.2e+09" +string.format("% -.1e", 1.23456e-05) == " 1.2e-05" +string.format("% -.1e", 123.456789123) == " 1.2e+02" +string.format("% -.1e", 1234567891.23) == " 1.2e+09" +string.format("% -.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% -1.0e", 0) == " 0e+00" +string.format("% -1.0e", 1) == " 1e+00" +string.format("% -1.0e", -1) == "-1e+00" +string.format("% -1.0e", 2) == " 2e+00" +string.format("% -1.0e", -2) == "-2e+00" +string.format("% -1.0e", 3) == " 3e+00" +string.format("% -1.0e", -3) == "-3e+00" +string.format("% -1.0e", 100) == " 1e+02" +string.format("% -1.0e", 10000) == " 1e+04" +string.format("% -1.0e", 100000) == " 1e+05" +string.format("% -1.0e", 1000000) == " 1e+06" +string.format("% -1.0e", 10000000) == " 1e+07" +string.format("% -1.0e", 0.01) == " 1e-02" +string.format("% -1.0e", 0.0001) == " 1e-04" +string.format("% -1.0e", 1e-05) == " 1e-05" +string.format("% -1.0e", 1e-06) == " 1e-06" +string.format("% -1.0e", 1e-07) == " 1e-07" +string.format("% -1.0e", 123.456) == " 1e+02" +string.format("% -1.0e", 1234560000) == " 1e+09" +string.format("% -1.0e", 1.23456e-05) == " 1e-05" +string.format("% -1.0e", 123.456789123) == " 1e+02" +string.format("% -1.0e", 1234567891.23) == " 1e+09" +string.format("% -1.0e", 1.23456789123e-05) == " 1e-05" +string.format("% -1.1e", 0) == " 0.0e+00" +string.format("% -1.1e", 1) == " 1.0e+00" +string.format("% -1.1e", -1) == "-1.0e+00" +string.format("% -1.1e", 2) == " 2.0e+00" +string.format("% -1.1e", -2) == "-2.0e+00" +string.format("% -1.1e", 3) == " 3.0e+00" +string.format("% -1.1e", -3) == "-3.0e+00" +string.format("% -1.1e", 100) == " 1.0e+02" +string.format("% -1.1e", 10000) == " 1.0e+04" +string.format("% -1.1e", 100000) == " 1.0e+05" +string.format("% -1.1e", 1000000) == " 1.0e+06" +string.format("% -1.1e", 10000000) == " 1.0e+07" +string.format("% -1.1e", 0.01) == " 1.0e-02" +string.format("% -1.1e", 0.0001) == " 1.0e-04" +string.format("% -1.1e", 1e-05) == " 1.0e-05" +string.format("% -1.1e", 1e-06) == " 1.0e-06" +string.format("% -1.1e", 1e-07) == " 1.0e-07" +string.format("% -1.1e", 123.456) == " 1.2e+02" +string.format("% -1.1e", 1234560000) == " 1.2e+09" +string.format("% -1.1e", 1.23456e-05) == " 1.2e-05" +string.format("% -1.1e", 123.456789123) == " 1.2e+02" +string.format("% -1.1e", 1234567891.23) == " 1.2e+09" +string.format("% -1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% -2.0e", 0) == " 0e+00" +string.format("% -2.0e", 1) == " 1e+00" +string.format("% -2.0e", -1) == "-1e+00" +string.format("% -2.0e", 2) == " 2e+00" +string.format("% -2.0e", -2) == "-2e+00" +string.format("% -2.0e", 3) == " 3e+00" +string.format("% -2.0e", -3) == "-3e+00" +string.format("% -2.0e", 100) == " 1e+02" +string.format("% -2.0e", 10000) == " 1e+04" +string.format("% -2.0e", 100000) == " 1e+05" +string.format("% -2.0e", 1000000) == " 1e+06" +string.format("% -2.0e", 10000000) == " 1e+07" +string.format("% -2.0e", 0.01) == " 1e-02" +string.format("% -2.0e", 0.0001) == " 1e-04" +string.format("% -2.0e", 1e-05) == " 1e-05" +string.format("% -2.0e", 1e-06) == " 1e-06" +string.format("% -2.0e", 1e-07) == " 1e-07" +string.format("% -2.0e", 123.456) == " 1e+02" +string.format("% -2.0e", 1234560000) == " 1e+09" +string.format("% -2.0e", 1.23456e-05) == " 1e-05" +string.format("% -2.0e", 123.456789123) == " 1e+02" +string.format("% -2.0e", 1234567891.23) == " 1e+09" +string.format("% -2.0e", 1.23456789123e-05) == " 1e-05" +string.format("% -2.1e", 0) == " 0.0e+00" +string.format("% -2.1e", 1) == " 1.0e+00" +string.format("% -2.1e", -1) == "-1.0e+00" +string.format("% -2.1e", 2) == " 2.0e+00" +string.format("% -2.1e", -2) == "-2.0e+00" +string.format("% -2.1e", 3) == " 3.0e+00" +string.format("% -2.1e", -3) == "-3.0e+00" +string.format("% -2.1e", 100) == " 1.0e+02" +string.format("% -2.1e", 10000) == " 1.0e+04" +string.format("% -2.1e", 100000) == " 1.0e+05" +string.format("% -2.1e", 1000000) == " 1.0e+06" +string.format("% -2.1e", 10000000) == " 1.0e+07" +string.format("% -2.1e", 0.01) == " 1.0e-02" +string.format("% -2.1e", 0.0001) == " 1.0e-04" +string.format("% -2.1e", 1e-05) == " 1.0e-05" +string.format("% -2.1e", 1e-06) == " 1.0e-06" +string.format("% -2.1e", 1e-07) == " 1.0e-07" +string.format("% -2.1e", 123.456) == " 1.2e+02" +string.format("% -2.1e", 1234560000) == " 1.2e+09" +string.format("% -2.1e", 1.23456e-05) == " 1.2e-05" +string.format("% -2.1e", 123.456789123) == " 1.2e+02" +string.format("% -2.1e", 1234567891.23) == " 1.2e+09" +string.format("% -2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% -6e", nan) == " nan " +string.format("% -6e", inf) == " inf " +string.format("% -6e", -inf) == "-inf " +string.format("% -6.0e", 0) == " 0e+00" +string.format("% -6.0e", 1) == " 1e+00" +string.format("% -6.0e", -1) == "-1e+00" +string.format("% -6.0e", 2) == " 2e+00" +string.format("% -6.0e", -2) == "-2e+00" +string.format("% -6.0e", 3) == " 3e+00" +string.format("% -6.0e", -3) == "-3e+00" +string.format("% -6.0e", nan) == " nan " +string.format("% -6.0e", inf) == " inf " +string.format("% -6.0e", -inf) == "-inf " +string.format("% -6.0e", 100) == " 1e+02" +string.format("% -6.0e", 10000) == " 1e+04" +string.format("% -6.0e", 100000) == " 1e+05" +string.format("% -6.0e", 1000000) == " 1e+06" +string.format("% -6.0e", 10000000) == " 1e+07" +string.format("% -6.0e", 0.01) == " 1e-02" +string.format("% -6.0e", 0.0001) == " 1e-04" +string.format("% -6.0e", 1e-05) == " 1e-05" +string.format("% -6.0e", 1e-06) == " 1e-06" +string.format("% -6.0e", 1e-07) == " 1e-07" +string.format("% -6.0e", 123.456) == " 1e+02" +string.format("% -6.0e", 1234560000) == " 1e+09" +string.format("% -6.0e", 1.23456e-05) == " 1e-05" +string.format("% -6.0e", 123.456789123) == " 1e+02" +string.format("% -6.0e", 1234567891.23) == " 1e+09" +string.format("% -6.0e", 1.23456789123e-05) == " 1e-05" +string.format("% -6.1e", 0) == " 0.0e+00" +string.format("% -6.1e", 1) == " 1.0e+00" +string.format("% -6.1e", -1) == "-1.0e+00" +string.format("% -6.1e", 2) == " 2.0e+00" +string.format("% -6.1e", -2) == "-2.0e+00" +string.format("% -6.1e", 3) == " 3.0e+00" +string.format("% -6.1e", -3) == "-3.0e+00" +string.format("% -6.1e", nan) == " nan " +string.format("% -6.1e", inf) == " inf " +string.format("% -6.1e", -inf) == "-inf " +string.format("% -6.1e", 100) == " 1.0e+02" +string.format("% -6.1e", 10000) == " 1.0e+04" +string.format("% -6.1e", 100000) == " 1.0e+05" +string.format("% -6.1e", 1000000) == " 1.0e+06" +string.format("% -6.1e", 10000000) == " 1.0e+07" +string.format("% -6.1e", 0.01) == " 1.0e-02" +string.format("% -6.1e", 0.0001) == " 1.0e-04" +string.format("% -6.1e", 1e-05) == " 1.0e-05" +string.format("% -6.1e", 1e-06) == " 1.0e-06" +string.format("% -6.1e", 1e-07) == " 1.0e-07" +string.format("% -6.1e", 123.456) == " 1.2e+02" +string.format("% -6.1e", 1234560000) == " 1.2e+09" +string.format("% -6.1e", 1.23456e-05) == " 1.2e-05" +string.format("% -6.1e", 123.456789123) == " 1.2e+02" +string.format("% -6.1e", 1234567891.23) == " 1.2e+09" +string.format("% -6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("% -6.6e", nan) == " nan " +string.format("% -6.6e", inf) == " inf " +string.format("% -6.6e", -inf) == "-inf " +string.format("% -20e", 0) == " 0.000000e+00 " +string.format("% -20e", 1) == " 1.000000e+00 " +string.format("% -20e", -1) == "-1.000000e+00 " +string.format("% -20e", 2) == " 2.000000e+00 " +string.format("% -20e", -2) == "-2.000000e+00 " +string.format("% -20e", 3) == " 3.000000e+00 " +string.format("% -20e", -3) == "-3.000000e+00 " +string.format("% -20e", nan) == " nan " +string.format("% -20e", inf) == " inf " +string.format("% -20e", -inf) == "-inf " +string.format("% -20e", 100) == " 1.000000e+02 " +string.format("% -20e", 10000) == " 1.000000e+04 " +string.format("% -20e", 100000) == " 1.000000e+05 " +string.format("% -20e", 1000000) == " 1.000000e+06 " +string.format("% -20e", 10000000) == " 1.000000e+07 " +string.format("% -20e", 0.01) == " 1.000000e-02 " +string.format("% -20e", 0.0001) == " 1.000000e-04 " +string.format("% -20e", 1e-05) == " 1.000000e-05 " +string.format("% -20e", 1e-06) == " 1.000000e-06 " +string.format("% -20e", 1e-07) == " 1.000000e-07 " +string.format("% -20e", 123.456) == " 1.234560e+02 " +string.format("% -20e", 1234560000) == " 1.234560e+09 " +string.format("% -20e", 1.23456e-05) == " 1.234560e-05 " +string.format("% -20e", 123.456789123) == " 1.234568e+02 " +string.format("% -20e", 1234567891.23) == " 1.234568e+09 " +string.format("% -20e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("% -20.0e", 0) == " 0e+00 " +string.format("% -20.0e", 1) == " 1e+00 " +string.format("% -20.0e", -1) == "-1e+00 " +string.format("% -20.0e", 2) == " 2e+00 " +string.format("% -20.0e", -2) == "-2e+00 " +string.format("% -20.0e", 3) == " 3e+00 " +string.format("% -20.0e", -3) == "-3e+00 " +string.format("% -20.0e", nan) == " nan " +string.format("% -20.0e", inf) == " inf " +string.format("% -20.0e", -inf) == "-inf " +string.format("% -20.0e", 100) == " 1e+02 " +string.format("% -20.0e", 10000) == " 1e+04 " +string.format("% -20.0e", 100000) == " 1e+05 " +string.format("% -20.0e", 1000000) == " 1e+06 " +string.format("% -20.0e", 10000000) == " 1e+07 " +string.format("% -20.0e", 0.01) == " 1e-02 " +string.format("% -20.0e", 0.0001) == " 1e-04 " +string.format("% -20.0e", 1e-05) == " 1e-05 " +string.format("% -20.0e", 1e-06) == " 1e-06 " +string.format("% -20.0e", 1e-07) == " 1e-07 " +string.format("% -20.0e", 123.456) == " 1e+02 " +string.format("% -20.0e", 1234560000) == " 1e+09 " +string.format("% -20.0e", 1.23456e-05) == " 1e-05 " +string.format("% -20.0e", 123.456789123) == " 1e+02 " +string.format("% -20.0e", 1234567891.23) == " 1e+09 " +string.format("% -20.0e", 1.23456789123e-05) == " 1e-05 " +string.format("% -20.1e", 0) == " 0.0e+00 " +string.format("% -20.1e", 1) == " 1.0e+00 " +string.format("% -20.1e", -1) == "-1.0e+00 " +string.format("% -20.1e", 2) == " 2.0e+00 " +string.format("% -20.1e", -2) == "-2.0e+00 " +string.format("% -20.1e", 3) == " 3.0e+00 " +string.format("% -20.1e", -3) == "-3.0e+00 " +string.format("% -20.1e", nan) == " nan " +string.format("% -20.1e", inf) == " inf " +string.format("% -20.1e", -inf) == "-inf " +string.format("% -20.1e", 100) == " 1.0e+02 " +string.format("% -20.1e", 10000) == " 1.0e+04 " +string.format("% -20.1e", 100000) == " 1.0e+05 " +string.format("% -20.1e", 1000000) == " 1.0e+06 " +string.format("% -20.1e", 10000000) == " 1.0e+07 " +string.format("% -20.1e", 0.01) == " 1.0e-02 " +string.format("% -20.1e", 0.0001) == " 1.0e-04 " +string.format("% -20.1e", 1e-05) == " 1.0e-05 " +string.format("% -20.1e", 1e-06) == " 1.0e-06 " +string.format("% -20.1e", 1e-07) == " 1.0e-07 " +string.format("% -20.1e", 123.456) == " 1.2e+02 " +string.format("% -20.1e", 1234560000) == " 1.2e+09 " +string.format("% -20.1e", 1.23456e-05) == " 1.2e-05 " +string.format("% -20.1e", 123.456789123) == " 1.2e+02 " +string.format("% -20.1e", 1234567891.23) == " 1.2e+09 " +string.format("% -20.1e", 1.23456789123e-05) == " 1.2e-05 " +string.format("% -20.6e", 0) == " 0.000000e+00 " +string.format("% -20.6e", 1) == " 1.000000e+00 " +string.format("% -20.6e", -1) == "-1.000000e+00 " +string.format("% -20.6e", 2) == " 2.000000e+00 " +string.format("% -20.6e", -2) == "-2.000000e+00 " +string.format("% -20.6e", 3) == " 3.000000e+00 " +string.format("% -20.6e", -3) == "-3.000000e+00 " +string.format("% -20.6e", nan) == " nan " +string.format("% -20.6e", inf) == " inf " +string.format("% -20.6e", -inf) == "-inf " +string.format("% -20.6e", 100) == " 1.000000e+02 " +string.format("% -20.6e", 10000) == " 1.000000e+04 " +string.format("% -20.6e", 100000) == " 1.000000e+05 " +string.format("% -20.6e", 1000000) == " 1.000000e+06 " +string.format("% -20.6e", 10000000) == " 1.000000e+07 " +string.format("% -20.6e", 0.01) == " 1.000000e-02 " +string.format("% -20.6e", 0.0001) == " 1.000000e-04 " +string.format("% -20.6e", 1e-05) == " 1.000000e-05 " +string.format("% -20.6e", 1e-06) == " 1.000000e-06 " +string.format("% -20.6e", 1e-07) == " 1.000000e-07 " +string.format("% -20.6e", 123.456) == " 1.234560e+02 " +string.format("% -20.6e", 1234560000) == " 1.234560e+09 " +string.format("% -20.6e", 1.23456e-05) == " 1.234560e-05 " +string.format("% -20.6e", 123.456789123) == " 1.234568e+02 " +string.format("% -20.6e", 1234567891.23) == " 1.234568e+09 " +string.format("% -20.6e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("% -+e", 0) == "+0.000000e+00" +string.format("% -+e", 1) == "+1.000000e+00" +string.format("% -+e", -1) == "-1.000000e+00" +string.format("% -+e", 2) == "+2.000000e+00" +string.format("% -+e", -2) == "-2.000000e+00" +string.format("% -+e", 3) == "+3.000000e+00" +string.format("% -+e", -3) == "-3.000000e+00" +string.format("% -+e", nan) == "+nan" +string.format("% -+e", inf) == "+inf" +string.format("% -+e", -inf) == "-inf" +string.format("% -+e", 100) == "+1.000000e+02" +string.format("% -+e", 10000) == "+1.000000e+04" +string.format("% -+e", 100000) == "+1.000000e+05" +string.format("% -+e", 1000000) == "+1.000000e+06" +string.format("% -+e", 10000000) == "+1.000000e+07" +string.format("% -+e", 0.01) == "+1.000000e-02" +string.format("% -+e", 0.0001) == "+1.000000e-04" +string.format("% -+e", 1e-05) == "+1.000000e-05" +string.format("% -+e", 1e-06) == "+1.000000e-06" +string.format("% -+e", 1e-07) == "+1.000000e-07" +string.format("% -+e", 123.456) == "+1.234560e+02" +string.format("% -+e", 1234560000) == "+1.234560e+09" +string.format("% -+e", 1.23456e-05) == "+1.234560e-05" +string.format("% -+e", 123.456789123) == "+1.234568e+02" +string.format("% -+e", 1234567891.23) == "+1.234568e+09" +string.format("% -+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("% -+.0e", 0) == "+0e+00" +string.format("% -+.0e", 1) == "+1e+00" +string.format("% -+.0e", -1) == "-1e+00" +string.format("% -+.0e", 2) == "+2e+00" +string.format("% -+.0e", -2) == "-2e+00" +string.format("% -+.0e", 3) == "+3e+00" +string.format("% -+.0e", -3) == "-3e+00" +string.format("% -+.0e", 100) == "+1e+02" +string.format("% -+.0e", 10000) == "+1e+04" +string.format("% -+.0e", 100000) == "+1e+05" +string.format("% -+.0e", 1000000) == "+1e+06" +string.format("% -+.0e", 10000000) == "+1e+07" +string.format("% -+.0e", 0.01) == "+1e-02" +string.format("% -+.0e", 0.0001) == "+1e-04" +string.format("% -+.0e", 1e-05) == "+1e-05" +string.format("% -+.0e", 1e-06) == "+1e-06" +string.format("% -+.0e", 1e-07) == "+1e-07" +string.format("% -+.0e", 123.456) == "+1e+02" +string.format("% -+.0e", 1234560000) == "+1e+09" +string.format("% -+.0e", 1.23456e-05) == "+1e-05" +string.format("% -+.0e", 123.456789123) == "+1e+02" +string.format("% -+.0e", 1234567891.23) == "+1e+09" +string.format("% -+.0e", 1.23456789123e-05) == "+1e-05" +string.format("% -+.1e", 0) == "+0.0e+00" +string.format("% -+.1e", 1) == "+1.0e+00" +string.format("% -+.1e", -1) == "-1.0e+00" +string.format("% -+.1e", 2) == "+2.0e+00" +string.format("% -+.1e", -2) == "-2.0e+00" +string.format("% -+.1e", 3) == "+3.0e+00" +string.format("% -+.1e", -3) == "-3.0e+00" +string.format("% -+.1e", 100) == "+1.0e+02" +string.format("% -+.1e", 10000) == "+1.0e+04" +string.format("% -+.1e", 100000) == "+1.0e+05" +string.format("% -+.1e", 1000000) == "+1.0e+06" +string.format("% -+.1e", 10000000) == "+1.0e+07" +string.format("% -+.1e", 0.01) == "+1.0e-02" +string.format("% -+.1e", 0.0001) == "+1.0e-04" +string.format("% -+.1e", 1e-05) == "+1.0e-05" +string.format("% -+.1e", 1e-06) == "+1.0e-06" +string.format("% -+.1e", 1e-07) == "+1.0e-07" +string.format("% -+.1e", 123.456) == "+1.2e+02" +string.format("% -+.1e", 1234560000) == "+1.2e+09" +string.format("% -+.1e", 1.23456e-05) == "+1.2e-05" +string.format("% -+.1e", 123.456789123) == "+1.2e+02" +string.format("% -+.1e", 1234567891.23) == "+1.2e+09" +string.format("% -+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% -+1.0e", 0) == "+0e+00" +string.format("% -+1.0e", 1) == "+1e+00" +string.format("% -+1.0e", -1) == "-1e+00" +string.format("% -+1.0e", 2) == "+2e+00" +string.format("% -+1.0e", -2) == "-2e+00" +string.format("% -+1.0e", 3) == "+3e+00" +string.format("% -+1.0e", -3) == "-3e+00" +string.format("% -+1.0e", 100) == "+1e+02" +string.format("% -+1.0e", 10000) == "+1e+04" +string.format("% -+1.0e", 100000) == "+1e+05" +string.format("% -+1.0e", 1000000) == "+1e+06" +string.format("% -+1.0e", 10000000) == "+1e+07" +string.format("% -+1.0e", 0.01) == "+1e-02" +string.format("% -+1.0e", 0.0001) == "+1e-04" +string.format("% -+1.0e", 1e-05) == "+1e-05" +string.format("% -+1.0e", 1e-06) == "+1e-06" +string.format("% -+1.0e", 1e-07) == "+1e-07" +string.format("% -+1.0e", 123.456) == "+1e+02" +string.format("% -+1.0e", 1234560000) == "+1e+09" +string.format("% -+1.0e", 1.23456e-05) == "+1e-05" +string.format("% -+1.0e", 123.456789123) == "+1e+02" +string.format("% -+1.0e", 1234567891.23) == "+1e+09" +string.format("% -+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("% -+1.1e", 0) == "+0.0e+00" +string.format("% -+1.1e", 1) == "+1.0e+00" +string.format("% -+1.1e", -1) == "-1.0e+00" +string.format("% -+1.1e", 2) == "+2.0e+00" +string.format("% -+1.1e", -2) == "-2.0e+00" +string.format("% -+1.1e", 3) == "+3.0e+00" +string.format("% -+1.1e", -3) == "-3.0e+00" +string.format("% -+1.1e", 100) == "+1.0e+02" +string.format("% -+1.1e", 10000) == "+1.0e+04" +string.format("% -+1.1e", 100000) == "+1.0e+05" +string.format("% -+1.1e", 1000000) == "+1.0e+06" +string.format("% -+1.1e", 10000000) == "+1.0e+07" +string.format("% -+1.1e", 0.01) == "+1.0e-02" +string.format("% -+1.1e", 0.0001) == "+1.0e-04" +string.format("% -+1.1e", 1e-05) == "+1.0e-05" +string.format("% -+1.1e", 1e-06) == "+1.0e-06" +string.format("% -+1.1e", 1e-07) == "+1.0e-07" +string.format("% -+1.1e", 123.456) == "+1.2e+02" +string.format("% -+1.1e", 1234560000) == "+1.2e+09" +string.format("% -+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("% -+1.1e", 123.456789123) == "+1.2e+02" +string.format("% -+1.1e", 1234567891.23) == "+1.2e+09" +string.format("% -+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% -+2.0e", 0) == "+0e+00" +string.format("% -+2.0e", 1) == "+1e+00" +string.format("% -+2.0e", -1) == "-1e+00" +string.format("% -+2.0e", 2) == "+2e+00" +string.format("% -+2.0e", -2) == "-2e+00" +string.format("% -+2.0e", 3) == "+3e+00" +string.format("% -+2.0e", -3) == "-3e+00" +string.format("% -+2.0e", 100) == "+1e+02" +string.format("% -+2.0e", 10000) == "+1e+04" +string.format("% -+2.0e", 100000) == "+1e+05" +string.format("% -+2.0e", 1000000) == "+1e+06" +string.format("% -+2.0e", 10000000) == "+1e+07" +string.format("% -+2.0e", 0.01) == "+1e-02" +string.format("% -+2.0e", 0.0001) == "+1e-04" +string.format("% -+2.0e", 1e-05) == "+1e-05" +string.format("% -+2.0e", 1e-06) == "+1e-06" +string.format("% -+2.0e", 1e-07) == "+1e-07" +string.format("% -+2.0e", 123.456) == "+1e+02" +string.format("% -+2.0e", 1234560000) == "+1e+09" +string.format("% -+2.0e", 1.23456e-05) == "+1e-05" +string.format("% -+2.0e", 123.456789123) == "+1e+02" +string.format("% -+2.0e", 1234567891.23) == "+1e+09" +string.format("% -+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("% -+2.1e", 0) == "+0.0e+00" +string.format("% -+2.1e", 1) == "+1.0e+00" +string.format("% -+2.1e", -1) == "-1.0e+00" +string.format("% -+2.1e", 2) == "+2.0e+00" +string.format("% -+2.1e", -2) == "-2.0e+00" +string.format("% -+2.1e", 3) == "+3.0e+00" +string.format("% -+2.1e", -3) == "-3.0e+00" +string.format("% -+2.1e", 100) == "+1.0e+02" +string.format("% -+2.1e", 10000) == "+1.0e+04" +string.format("% -+2.1e", 100000) == "+1.0e+05" +string.format("% -+2.1e", 1000000) == "+1.0e+06" +string.format("% -+2.1e", 10000000) == "+1.0e+07" +string.format("% -+2.1e", 0.01) == "+1.0e-02" +string.format("% -+2.1e", 0.0001) == "+1.0e-04" +string.format("% -+2.1e", 1e-05) == "+1.0e-05" +string.format("% -+2.1e", 1e-06) == "+1.0e-06" +string.format("% -+2.1e", 1e-07) == "+1.0e-07" +string.format("% -+2.1e", 123.456) == "+1.2e+02" +string.format("% -+2.1e", 1234560000) == "+1.2e+09" +string.format("% -+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("% -+2.1e", 123.456789123) == "+1.2e+02" +string.format("% -+2.1e", 1234567891.23) == "+1.2e+09" +string.format("% -+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% -+6e", nan) == "+nan " +string.format("% -+6e", inf) == "+inf " +string.format("% -+6e", -inf) == "-inf " +string.format("% -+6.0e", 0) == "+0e+00" +string.format("% -+6.0e", 1) == "+1e+00" +string.format("% -+6.0e", -1) == "-1e+00" +string.format("% -+6.0e", 2) == "+2e+00" +string.format("% -+6.0e", -2) == "-2e+00" +string.format("% -+6.0e", 3) == "+3e+00" +string.format("% -+6.0e", -3) == "-3e+00" +string.format("% -+6.0e", nan) == "+nan " +string.format("% -+6.0e", inf) == "+inf " +string.format("% -+6.0e", -inf) == "-inf " +string.format("% -+6.0e", 100) == "+1e+02" +string.format("% -+6.0e", 10000) == "+1e+04" +string.format("% -+6.0e", 100000) == "+1e+05" +string.format("% -+6.0e", 1000000) == "+1e+06" +string.format("% -+6.0e", 10000000) == "+1e+07" +string.format("% -+6.0e", 0.01) == "+1e-02" +string.format("% -+6.0e", 0.0001) == "+1e-04" +string.format("% -+6.0e", 1e-05) == "+1e-05" +string.format("% -+6.0e", 1e-06) == "+1e-06" +string.format("% -+6.0e", 1e-07) == "+1e-07" +string.format("% -+6.0e", 123.456) == "+1e+02" +string.format("% -+6.0e", 1234560000) == "+1e+09" +string.format("% -+6.0e", 1.23456e-05) == "+1e-05" +string.format("% -+6.0e", 123.456789123) == "+1e+02" +string.format("% -+6.0e", 1234567891.23) == "+1e+09" +string.format("% -+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("% -+6.1e", 0) == "+0.0e+00" +string.format("% -+6.1e", 1) == "+1.0e+00" +string.format("% -+6.1e", -1) == "-1.0e+00" +string.format("% -+6.1e", 2) == "+2.0e+00" +string.format("% -+6.1e", -2) == "-2.0e+00" +string.format("% -+6.1e", 3) == "+3.0e+00" +string.format("% -+6.1e", -3) == "-3.0e+00" +string.format("% -+6.1e", nan) == "+nan " +string.format("% -+6.1e", inf) == "+inf " +string.format("% -+6.1e", -inf) == "-inf " +string.format("% -+6.1e", 100) == "+1.0e+02" +string.format("% -+6.1e", 10000) == "+1.0e+04" +string.format("% -+6.1e", 100000) == "+1.0e+05" +string.format("% -+6.1e", 1000000) == "+1.0e+06" +string.format("% -+6.1e", 10000000) == "+1.0e+07" +string.format("% -+6.1e", 0.01) == "+1.0e-02" +string.format("% -+6.1e", 0.0001) == "+1.0e-04" +string.format("% -+6.1e", 1e-05) == "+1.0e-05" +string.format("% -+6.1e", 1e-06) == "+1.0e-06" +string.format("% -+6.1e", 1e-07) == "+1.0e-07" +string.format("% -+6.1e", 123.456) == "+1.2e+02" +string.format("% -+6.1e", 1234560000) == "+1.2e+09" +string.format("% -+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("% -+6.1e", 123.456789123) == "+1.2e+02" +string.format("% -+6.1e", 1234567891.23) == "+1.2e+09" +string.format("% -+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("% -+6.6e", nan) == "+nan " +string.format("% -+6.6e", inf) == "+inf " +string.format("% -+6.6e", -inf) == "-inf " +string.format("% -+20e", 0) == "+0.000000e+00 " +string.format("% -+20e", 1) == "+1.000000e+00 " +string.format("% -+20e", -1) == "-1.000000e+00 " +string.format("% -+20e", 2) == "+2.000000e+00 " +string.format("% -+20e", -2) == "-2.000000e+00 " +string.format("% -+20e", 3) == "+3.000000e+00 " +string.format("% -+20e", -3) == "-3.000000e+00 " +string.format("% -+20e", nan) == "+nan " +string.format("% -+20e", inf) == "+inf " +string.format("% -+20e", -inf) == "-inf " +string.format("% -+20e", 100) == "+1.000000e+02 " +string.format("% -+20e", 10000) == "+1.000000e+04 " +string.format("% -+20e", 100000) == "+1.000000e+05 " +string.format("% -+20e", 1000000) == "+1.000000e+06 " +string.format("% -+20e", 10000000) == "+1.000000e+07 " +string.format("% -+20e", 0.01) == "+1.000000e-02 " +string.format("% -+20e", 0.0001) == "+1.000000e-04 " +string.format("% -+20e", 1e-05) == "+1.000000e-05 " +string.format("% -+20e", 1e-06) == "+1.000000e-06 " +string.format("% -+20e", 1e-07) == "+1.000000e-07 " +string.format("% -+20e", 123.456) == "+1.234560e+02 " +string.format("% -+20e", 1234560000) == "+1.234560e+09 " +string.format("% -+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("% -+20e", 123.456789123) == "+1.234568e+02 " +string.format("% -+20e", 1234567891.23) == "+1.234568e+09 " +string.format("% -+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("% -+20.0e", 0) == "+0e+00 " +string.format("% -+20.0e", 1) == "+1e+00 " +string.format("% -+20.0e", -1) == "-1e+00 " +string.format("% -+20.0e", 2) == "+2e+00 " +string.format("% -+20.0e", -2) == "-2e+00 " +string.format("% -+20.0e", 3) == "+3e+00 " +string.format("% -+20.0e", -3) == "-3e+00 " +string.format("% -+20.0e", nan) == "+nan " +string.format("% -+20.0e", inf) == "+inf " +string.format("% -+20.0e", -inf) == "-inf " +string.format("% -+20.0e", 100) == "+1e+02 " +string.format("% -+20.0e", 10000) == "+1e+04 " +string.format("% -+20.0e", 100000) == "+1e+05 " +string.format("% -+20.0e", 1000000) == "+1e+06 " +string.format("% -+20.0e", 10000000) == "+1e+07 " +string.format("% -+20.0e", 0.01) == "+1e-02 " +string.format("% -+20.0e", 0.0001) == "+1e-04 " +string.format("% -+20.0e", 1e-05) == "+1e-05 " +string.format("% -+20.0e", 1e-06) == "+1e-06 " +string.format("% -+20.0e", 1e-07) == "+1e-07 " +string.format("% -+20.0e", 123.456) == "+1e+02 " +string.format("% -+20.0e", 1234560000) == "+1e+09 " +string.format("% -+20.0e", 1.23456e-05) == "+1e-05 " +string.format("% -+20.0e", 123.456789123) == "+1e+02 " +string.format("% -+20.0e", 1234567891.23) == "+1e+09 " +string.format("% -+20.0e", 1.23456789123e-05) == "+1e-05 " +string.format("% -+20.1e", 0) == "+0.0e+00 " +string.format("% -+20.1e", 1) == "+1.0e+00 " +string.format("% -+20.1e", -1) == "-1.0e+00 " +string.format("% -+20.1e", 2) == "+2.0e+00 " +string.format("% -+20.1e", -2) == "-2.0e+00 " +string.format("% -+20.1e", 3) == "+3.0e+00 " +string.format("% -+20.1e", -3) == "-3.0e+00 " +string.format("% -+20.1e", nan) == "+nan " +string.format("% -+20.1e", inf) == "+inf " +string.format("% -+20.1e", -inf) == "-inf " +string.format("% -+20.1e", 100) == "+1.0e+02 " +string.format("% -+20.1e", 10000) == "+1.0e+04 " +string.format("% -+20.1e", 100000) == "+1.0e+05 " +string.format("% -+20.1e", 1000000) == "+1.0e+06 " +string.format("% -+20.1e", 10000000) == "+1.0e+07 " +string.format("% -+20.1e", 0.01) == "+1.0e-02 " +string.format("% -+20.1e", 0.0001) == "+1.0e-04 " +string.format("% -+20.1e", 1e-05) == "+1.0e-05 " +string.format("% -+20.1e", 1e-06) == "+1.0e-06 " +string.format("% -+20.1e", 1e-07) == "+1.0e-07 " +string.format("% -+20.1e", 123.456) == "+1.2e+02 " +string.format("% -+20.1e", 1234560000) == "+1.2e+09 " +string.format("% -+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("% -+20.1e", 123.456789123) == "+1.2e+02 " +string.format("% -+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("% -+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("% -+20.6e", 0) == "+0.000000e+00 " +string.format("% -+20.6e", 1) == "+1.000000e+00 " +string.format("% -+20.6e", -1) == "-1.000000e+00 " +string.format("% -+20.6e", 2) == "+2.000000e+00 " +string.format("% -+20.6e", -2) == "-2.000000e+00 " +string.format("% -+20.6e", 3) == "+3.000000e+00 " +string.format("% -+20.6e", -3) == "-3.000000e+00 " +string.format("% -+20.6e", nan) == "+nan " +string.format("% -+20.6e", inf) == "+inf " +string.format("% -+20.6e", -inf) == "-inf " +string.format("% -+20.6e", 100) == "+1.000000e+02 " +string.format("% -+20.6e", 10000) == "+1.000000e+04 " +string.format("% -+20.6e", 100000) == "+1.000000e+05 " +string.format("% -+20.6e", 1000000) == "+1.000000e+06 " +string.format("% -+20.6e", 10000000) == "+1.000000e+07 " +string.format("% -+20.6e", 0.01) == "+1.000000e-02 " +string.format("% -+20.6e", 0.0001) == "+1.000000e-04 " +string.format("% -+20.6e", 1e-05) == "+1.000000e-05 " +string.format("% -+20.6e", 1e-06) == "+1.000000e-06 " +string.format("% -+20.6e", 1e-07) == "+1.000000e-07 " +string.format("% -+20.6e", 123.456) == "+1.234560e+02 " +string.format("% -+20.6e", 1234560000) == "+1.234560e+09 " +string.format("% -+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("% -+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("% -+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("% -+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%#e", 0) == "0.000000e+00" +string.format("%#e", 1) == "1.000000e+00" +string.format("%#e", -1) == "-1.000000e+00" +string.format("%#e", 2) == "2.000000e+00" +string.format("%#e", -2) == "-2.000000e+00" +string.format("%#e", 3) == "3.000000e+00" +string.format("%#e", -3) == "-3.000000e+00" +string.format("%#e", nan) == "nan" +string.format("%#e", inf) == "inf" +string.format("%#e", -inf) == "-inf" +string.format("%#e", 100) == "1.000000e+02" +string.format("%#e", 10000) == "1.000000e+04" +string.format("%#e", 100000) == "1.000000e+05" +string.format("%#e", 1000000) == "1.000000e+06" +string.format("%#e", 10000000) == "1.000000e+07" +string.format("%#e", 0.01) == "1.000000e-02" +string.format("%#e", 0.0001) == "1.000000e-04" +string.format("%#e", 1e-05) == "1.000000e-05" +string.format("%#e", 1e-06) == "1.000000e-06" +string.format("%#e", 1e-07) == "1.000000e-07" +string.format("%#e", 123.456) == "1.234560e+02" +string.format("%#e", 1234560000) == "1.234560e+09" +string.format("%#e", 1.23456e-05) == "1.234560e-05" +string.format("%#e", 123.456789123) == "1.234568e+02" +string.format("%#e", 1234567891.23) == "1.234568e+09" +string.format("%#e", 1.23456789123e-05) == "1.234568e-05" +string.format("%#.0e", 0) == "0.e+00" +string.format("%#.0e", 1) == "1.e+00" +string.format("%#.0e", -1) == "-1.e+00" +string.format("%#.0e", 2) == "2.e+00" +string.format("%#.0e", -2) == "-2.e+00" +string.format("%#.0e", 3) == "3.e+00" +string.format("%#.0e", -3) == "-3.e+00" +string.format("%#.0e", 100) == "1.e+02" +string.format("%#.0e", 10000) == "1.e+04" +string.format("%#.0e", 100000) == "1.e+05" +string.format("%#.0e", 1000000) == "1.e+06" +string.format("%#.0e", 10000000) == "1.e+07" +string.format("%#.0e", 0.01) == "1.e-02" +string.format("%#.0e", 0.0001) == "1.e-04" +string.format("%#.0e", 1e-05) == "1.e-05" +string.format("%#.0e", 1e-06) == "1.e-06" +string.format("%#.0e", 1e-07) == "1.e-07" +string.format("%#.0e", 123.456) == "1.e+02" +string.format("%#.0e", 1234560000) == "1.e+09" +string.format("%#.0e", 1.23456e-05) == "1.e-05" +string.format("%#.0e", 123.456789123) == "1.e+02" +string.format("%#.0e", 1234567891.23) == "1.e+09" +string.format("%#.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#.1e", 0) == "0.0e+00" +string.format("%#.1e", 1) == "1.0e+00" +string.format("%#.1e", -1) == "-1.0e+00" +string.format("%#.1e", 2) == "2.0e+00" +string.format("%#.1e", -2) == "-2.0e+00" +string.format("%#.1e", 3) == "3.0e+00" +string.format("%#.1e", -3) == "-3.0e+00" +string.format("%#.1e", 100) == "1.0e+02" +string.format("%#.1e", 10000) == "1.0e+04" +string.format("%#.1e", 100000) == "1.0e+05" +string.format("%#.1e", 1000000) == "1.0e+06" +string.format("%#.1e", 10000000) == "1.0e+07" +string.format("%#.1e", 0.01) == "1.0e-02" +string.format("%#.1e", 0.0001) == "1.0e-04" +string.format("%#.1e", 1e-05) == "1.0e-05" +string.format("%#.1e", 1e-06) == "1.0e-06" +string.format("%#.1e", 1e-07) == "1.0e-07" +string.format("%#.1e", 123.456) == "1.2e+02" +string.format("%#.1e", 1234560000) == "1.2e+09" +string.format("%#.1e", 1.23456e-05) == "1.2e-05" +string.format("%#.1e", 123.456789123) == "1.2e+02" +string.format("%#.1e", 1234567891.23) == "1.2e+09" +string.format("%#.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#1.0e", 0) == "0.e+00" +string.format("%#1.0e", 1) == "1.e+00" +string.format("%#1.0e", -1) == "-1.e+00" +string.format("%#1.0e", 2) == "2.e+00" +string.format("%#1.0e", -2) == "-2.e+00" +string.format("%#1.0e", 3) == "3.e+00" +string.format("%#1.0e", -3) == "-3.e+00" +string.format("%#1.0e", 100) == "1.e+02" +string.format("%#1.0e", 10000) == "1.e+04" +string.format("%#1.0e", 100000) == "1.e+05" +string.format("%#1.0e", 1000000) == "1.e+06" +string.format("%#1.0e", 10000000) == "1.e+07" +string.format("%#1.0e", 0.01) == "1.e-02" +string.format("%#1.0e", 0.0001) == "1.e-04" +string.format("%#1.0e", 1e-05) == "1.e-05" +string.format("%#1.0e", 1e-06) == "1.e-06" +string.format("%#1.0e", 1e-07) == "1.e-07" +string.format("%#1.0e", 123.456) == "1.e+02" +string.format("%#1.0e", 1234560000) == "1.e+09" +string.format("%#1.0e", 1.23456e-05) == "1.e-05" +string.format("%#1.0e", 123.456789123) == "1.e+02" +string.format("%#1.0e", 1234567891.23) == "1.e+09" +string.format("%#1.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#1.1e", 0) == "0.0e+00" +string.format("%#1.1e", 1) == "1.0e+00" +string.format("%#1.1e", -1) == "-1.0e+00" +string.format("%#1.1e", 2) == "2.0e+00" +string.format("%#1.1e", -2) == "-2.0e+00" +string.format("%#1.1e", 3) == "3.0e+00" +string.format("%#1.1e", -3) == "-3.0e+00" +string.format("%#1.1e", 100) == "1.0e+02" +string.format("%#1.1e", 10000) == "1.0e+04" +string.format("%#1.1e", 100000) == "1.0e+05" +string.format("%#1.1e", 1000000) == "1.0e+06" +string.format("%#1.1e", 10000000) == "1.0e+07" +string.format("%#1.1e", 0.01) == "1.0e-02" +string.format("%#1.1e", 0.0001) == "1.0e-04" +string.format("%#1.1e", 1e-05) == "1.0e-05" +string.format("%#1.1e", 1e-06) == "1.0e-06" +string.format("%#1.1e", 1e-07) == "1.0e-07" +string.format("%#1.1e", 123.456) == "1.2e+02" +string.format("%#1.1e", 1234560000) == "1.2e+09" +string.format("%#1.1e", 1.23456e-05) == "1.2e-05" +string.format("%#1.1e", 123.456789123) == "1.2e+02" +string.format("%#1.1e", 1234567891.23) == "1.2e+09" +string.format("%#1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#2.0e", 0) == "0.e+00" +string.format("%#2.0e", 1) == "1.e+00" +string.format("%#2.0e", -1) == "-1.e+00" +string.format("%#2.0e", 2) == "2.e+00" +string.format("%#2.0e", -2) == "-2.e+00" +string.format("%#2.0e", 3) == "3.e+00" +string.format("%#2.0e", -3) == "-3.e+00" +string.format("%#2.0e", 100) == "1.e+02" +string.format("%#2.0e", 10000) == "1.e+04" +string.format("%#2.0e", 100000) == "1.e+05" +string.format("%#2.0e", 1000000) == "1.e+06" +string.format("%#2.0e", 10000000) == "1.e+07" +string.format("%#2.0e", 0.01) == "1.e-02" +string.format("%#2.0e", 0.0001) == "1.e-04" +string.format("%#2.0e", 1e-05) == "1.e-05" +string.format("%#2.0e", 1e-06) == "1.e-06" +string.format("%#2.0e", 1e-07) == "1.e-07" +string.format("%#2.0e", 123.456) == "1.e+02" +string.format("%#2.0e", 1234560000) == "1.e+09" +string.format("%#2.0e", 1.23456e-05) == "1.e-05" +string.format("%#2.0e", 123.456789123) == "1.e+02" +string.format("%#2.0e", 1234567891.23) == "1.e+09" +string.format("%#2.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#2.1e", 0) == "0.0e+00" +string.format("%#2.1e", 1) == "1.0e+00" +string.format("%#2.1e", -1) == "-1.0e+00" +string.format("%#2.1e", 2) == "2.0e+00" +string.format("%#2.1e", -2) == "-2.0e+00" +string.format("%#2.1e", 3) == "3.0e+00" +string.format("%#2.1e", -3) == "-3.0e+00" +string.format("%#2.1e", 100) == "1.0e+02" +string.format("%#2.1e", 10000) == "1.0e+04" +string.format("%#2.1e", 100000) == "1.0e+05" +string.format("%#2.1e", 1000000) == "1.0e+06" +string.format("%#2.1e", 10000000) == "1.0e+07" +string.format("%#2.1e", 0.01) == "1.0e-02" +string.format("%#2.1e", 0.0001) == "1.0e-04" +string.format("%#2.1e", 1e-05) == "1.0e-05" +string.format("%#2.1e", 1e-06) == "1.0e-06" +string.format("%#2.1e", 1e-07) == "1.0e-07" +string.format("%#2.1e", 123.456) == "1.2e+02" +string.format("%#2.1e", 1234560000) == "1.2e+09" +string.format("%#2.1e", 1.23456e-05) == "1.2e-05" +string.format("%#2.1e", 123.456789123) == "1.2e+02" +string.format("%#2.1e", 1234567891.23) == "1.2e+09" +string.format("%#2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#6e", nan) == " nan" +string.format("%#6e", inf) == " inf" +string.format("%#6e", -inf) == " -inf" +string.format("%#6.0e", 0) == "0.e+00" +string.format("%#6.0e", 1) == "1.e+00" +string.format("%#6.0e", -1) == "-1.e+00" +string.format("%#6.0e", 2) == "2.e+00" +string.format("%#6.0e", -2) == "-2.e+00" +string.format("%#6.0e", 3) == "3.e+00" +string.format("%#6.0e", -3) == "-3.e+00" +string.format("%#6.0e", nan) == " nan" +string.format("%#6.0e", inf) == " inf" +string.format("%#6.0e", -inf) == " -inf" +string.format("%#6.0e", 100) == "1.e+02" +string.format("%#6.0e", 10000) == "1.e+04" +string.format("%#6.0e", 100000) == "1.e+05" +string.format("%#6.0e", 1000000) == "1.e+06" +string.format("%#6.0e", 10000000) == "1.e+07" +string.format("%#6.0e", 0.01) == "1.e-02" +string.format("%#6.0e", 0.0001) == "1.e-04" +string.format("%#6.0e", 1e-05) == "1.e-05" +string.format("%#6.0e", 1e-06) == "1.e-06" +string.format("%#6.0e", 1e-07) == "1.e-07" +string.format("%#6.0e", 123.456) == "1.e+02" +string.format("%#6.0e", 1234560000) == "1.e+09" +string.format("%#6.0e", 1.23456e-05) == "1.e-05" +string.format("%#6.0e", 123.456789123) == "1.e+02" +string.format("%#6.0e", 1234567891.23) == "1.e+09" +string.format("%#6.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#6.1e", 0) == "0.0e+00" +string.format("%#6.1e", 1) == "1.0e+00" +string.format("%#6.1e", -1) == "-1.0e+00" +string.format("%#6.1e", 2) == "2.0e+00" +string.format("%#6.1e", -2) == "-2.0e+00" +string.format("%#6.1e", 3) == "3.0e+00" +string.format("%#6.1e", -3) == "-3.0e+00" +string.format("%#6.1e", nan) == " nan" +string.format("%#6.1e", inf) == " inf" +string.format("%#6.1e", -inf) == " -inf" +string.format("%#6.1e", 100) == "1.0e+02" +string.format("%#6.1e", 10000) == "1.0e+04" +string.format("%#6.1e", 100000) == "1.0e+05" +string.format("%#6.1e", 1000000) == "1.0e+06" +string.format("%#6.1e", 10000000) == "1.0e+07" +string.format("%#6.1e", 0.01) == "1.0e-02" +string.format("%#6.1e", 0.0001) == "1.0e-04" +string.format("%#6.1e", 1e-05) == "1.0e-05" +string.format("%#6.1e", 1e-06) == "1.0e-06" +string.format("%#6.1e", 1e-07) == "1.0e-07" +string.format("%#6.1e", 123.456) == "1.2e+02" +string.format("%#6.1e", 1234560000) == "1.2e+09" +string.format("%#6.1e", 1.23456e-05) == "1.2e-05" +string.format("%#6.1e", 123.456789123) == "1.2e+02" +string.format("%#6.1e", 1234567891.23) == "1.2e+09" +string.format("%#6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#6.6e", nan) == " nan" +string.format("%#6.6e", inf) == " inf" +string.format("%#6.6e", -inf) == " -inf" +string.format("%#20e", 0) == " 0.000000e+00" +string.format("%#20e", 1) == " 1.000000e+00" +string.format("%#20e", -1) == " -1.000000e+00" +string.format("%#20e", 2) == " 2.000000e+00" +string.format("%#20e", -2) == " -2.000000e+00" +string.format("%#20e", 3) == " 3.000000e+00" +string.format("%#20e", -3) == " -3.000000e+00" +string.format("%#20e", nan) == " nan" +string.format("%#20e", inf) == " inf" +string.format("%#20e", -inf) == " -inf" +string.format("%#20e", 100) == " 1.000000e+02" +string.format("%#20e", 10000) == " 1.000000e+04" +string.format("%#20e", 100000) == " 1.000000e+05" +string.format("%#20e", 1000000) == " 1.000000e+06" +string.format("%#20e", 10000000) == " 1.000000e+07" +string.format("%#20e", 0.01) == " 1.000000e-02" +string.format("%#20e", 0.0001) == " 1.000000e-04" +string.format("%#20e", 1e-05) == " 1.000000e-05" +string.format("%#20e", 1e-06) == " 1.000000e-06" +string.format("%#20e", 1e-07) == " 1.000000e-07" +string.format("%#20e", 123.456) == " 1.234560e+02" +string.format("%#20e", 1234560000) == " 1.234560e+09" +string.format("%#20e", 1.23456e-05) == " 1.234560e-05" +string.format("%#20e", 123.456789123) == " 1.234568e+02" +string.format("%#20e", 1234567891.23) == " 1.234568e+09" +string.format("%#20e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%#20.0e", 0) == " 0.e+00" +string.format("%#20.0e", 1) == " 1.e+00" +string.format("%#20.0e", -1) == " -1.e+00" +string.format("%#20.0e", 2) == " 2.e+00" +string.format("%#20.0e", -2) == " -2.e+00" +string.format("%#20.0e", 3) == " 3.e+00" +string.format("%#20.0e", -3) == " -3.e+00" +string.format("%#20.0e", nan) == " nan" +string.format("%#20.0e", inf) == " inf" +string.format("%#20.0e", -inf) == " -inf" +string.format("%#20.0e", 100) == " 1.e+02" +string.format("%#20.0e", 10000) == " 1.e+04" +string.format("%#20.0e", 100000) == " 1.e+05" +string.format("%#20.0e", 1000000) == " 1.e+06" +string.format("%#20.0e", 10000000) == " 1.e+07" +string.format("%#20.0e", 0.01) == " 1.e-02" +string.format("%#20.0e", 0.0001) == " 1.e-04" +string.format("%#20.0e", 1e-05) == " 1.e-05" +string.format("%#20.0e", 1e-06) == " 1.e-06" +string.format("%#20.0e", 1e-07) == " 1.e-07" +string.format("%#20.0e", 123.456) == " 1.e+02" +string.format("%#20.0e", 1234560000) == " 1.e+09" +string.format("%#20.0e", 1.23456e-05) == " 1.e-05" +string.format("%#20.0e", 123.456789123) == " 1.e+02" +string.format("%#20.0e", 1234567891.23) == " 1.e+09" +string.format("%#20.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%#20.1e", 0) == " 0.0e+00" +string.format("%#20.1e", 1) == " 1.0e+00" +string.format("%#20.1e", -1) == " -1.0e+00" +string.format("%#20.1e", 2) == " 2.0e+00" +string.format("%#20.1e", -2) == " -2.0e+00" +string.format("%#20.1e", 3) == " 3.0e+00" +string.format("%#20.1e", -3) == " -3.0e+00" +string.format("%#20.1e", nan) == " nan" +string.format("%#20.1e", inf) == " inf" +string.format("%#20.1e", -inf) == " -inf" +string.format("%#20.1e", 100) == " 1.0e+02" +string.format("%#20.1e", 10000) == " 1.0e+04" +string.format("%#20.1e", 100000) == " 1.0e+05" +string.format("%#20.1e", 1000000) == " 1.0e+06" +string.format("%#20.1e", 10000000) == " 1.0e+07" +string.format("%#20.1e", 0.01) == " 1.0e-02" +string.format("%#20.1e", 0.0001) == " 1.0e-04" +string.format("%#20.1e", 1e-05) == " 1.0e-05" +string.format("%#20.1e", 1e-06) == " 1.0e-06" +string.format("%#20.1e", 1e-07) == " 1.0e-07" +string.format("%#20.1e", 123.456) == " 1.2e+02" +string.format("%#20.1e", 1234560000) == " 1.2e+09" +string.format("%#20.1e", 1.23456e-05) == " 1.2e-05" +string.format("%#20.1e", 123.456789123) == " 1.2e+02" +string.format("%#20.1e", 1234567891.23) == " 1.2e+09" +string.format("%#20.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%#20.6e", 0) == " 0.000000e+00" +string.format("%#20.6e", 1) == " 1.000000e+00" +string.format("%#20.6e", -1) == " -1.000000e+00" +string.format("%#20.6e", 2) == " 2.000000e+00" +string.format("%#20.6e", -2) == " -2.000000e+00" +string.format("%#20.6e", 3) == " 3.000000e+00" +string.format("%#20.6e", -3) == " -3.000000e+00" +string.format("%#20.6e", nan) == " nan" +string.format("%#20.6e", inf) == " inf" +string.format("%#20.6e", -inf) == " -inf" +string.format("%#20.6e", 100) == " 1.000000e+02" +string.format("%#20.6e", 10000) == " 1.000000e+04" +string.format("%#20.6e", 100000) == " 1.000000e+05" +string.format("%#20.6e", 1000000) == " 1.000000e+06" +string.format("%#20.6e", 10000000) == " 1.000000e+07" +string.format("%#20.6e", 0.01) == " 1.000000e-02" +string.format("%#20.6e", 0.0001) == " 1.000000e-04" +string.format("%#20.6e", 1e-05) == " 1.000000e-05" +string.format("%#20.6e", 1e-06) == " 1.000000e-06" +string.format("%#20.6e", 1e-07) == " 1.000000e-07" +string.format("%#20.6e", 123.456) == " 1.234560e+02" +string.format("%#20.6e", 1234560000) == " 1.234560e+09" +string.format("%#20.6e", 1.23456e-05) == " 1.234560e-05" +string.format("%#20.6e", 123.456789123) == " 1.234568e+02" +string.format("%#20.6e", 1234567891.23) == " 1.234568e+09" +string.format("%#20.6e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%#+e", 0) == "+0.000000e+00" +string.format("%#+e", 1) == "+1.000000e+00" +string.format("%#+e", -1) == "-1.000000e+00" +string.format("%#+e", 2) == "+2.000000e+00" +string.format("%#+e", -2) == "-2.000000e+00" +string.format("%#+e", 3) == "+3.000000e+00" +string.format("%#+e", -3) == "-3.000000e+00" +string.format("%#+e", nan) == "+nan" +string.format("%#+e", inf) == "+inf" +string.format("%#+e", -inf) == "-inf" +string.format("%#+e", 100) == "+1.000000e+02" +string.format("%#+e", 10000) == "+1.000000e+04" +string.format("%#+e", 100000) == "+1.000000e+05" +string.format("%#+e", 1000000) == "+1.000000e+06" +string.format("%#+e", 10000000) == "+1.000000e+07" +string.format("%#+e", 0.01) == "+1.000000e-02" +string.format("%#+e", 0.0001) == "+1.000000e-04" +string.format("%#+e", 1e-05) == "+1.000000e-05" +string.format("%#+e", 1e-06) == "+1.000000e-06" +string.format("%#+e", 1e-07) == "+1.000000e-07" +string.format("%#+e", 123.456) == "+1.234560e+02" +string.format("%#+e", 1234560000) == "+1.234560e+09" +string.format("%#+e", 1.23456e-05) == "+1.234560e-05" +string.format("%#+e", 123.456789123) == "+1.234568e+02" +string.format("%#+e", 1234567891.23) == "+1.234568e+09" +string.format("%#+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%#+.0e", 0) == "+0.e+00" +string.format("%#+.0e", 1) == "+1.e+00" +string.format("%#+.0e", -1) == "-1.e+00" +string.format("%#+.0e", 2) == "+2.e+00" +string.format("%#+.0e", -2) == "-2.e+00" +string.format("%#+.0e", 3) == "+3.e+00" +string.format("%#+.0e", -3) == "-3.e+00" +string.format("%#+.0e", 100) == "+1.e+02" +string.format("%#+.0e", 10000) == "+1.e+04" +string.format("%#+.0e", 100000) == "+1.e+05" +string.format("%#+.0e", 1000000) == "+1.e+06" +string.format("%#+.0e", 10000000) == "+1.e+07" +string.format("%#+.0e", 0.01) == "+1.e-02" +string.format("%#+.0e", 0.0001) == "+1.e-04" +string.format("%#+.0e", 1e-05) == "+1.e-05" +string.format("%#+.0e", 1e-06) == "+1.e-06" +string.format("%#+.0e", 1e-07) == "+1.e-07" +string.format("%#+.0e", 123.456) == "+1.e+02" +string.format("%#+.0e", 1234560000) == "+1.e+09" +string.format("%#+.0e", 1.23456e-05) == "+1.e-05" +string.format("%#+.0e", 123.456789123) == "+1.e+02" +string.format("%#+.0e", 1234567891.23) == "+1.e+09" +string.format("%#+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#+.1e", 0) == "+0.0e+00" +string.format("%#+.1e", 1) == "+1.0e+00" +string.format("%#+.1e", -1) == "-1.0e+00" +string.format("%#+.1e", 2) == "+2.0e+00" +string.format("%#+.1e", -2) == "-2.0e+00" +string.format("%#+.1e", 3) == "+3.0e+00" +string.format("%#+.1e", -3) == "-3.0e+00" +string.format("%#+.1e", 100) == "+1.0e+02" +string.format("%#+.1e", 10000) == "+1.0e+04" +string.format("%#+.1e", 100000) == "+1.0e+05" +string.format("%#+.1e", 1000000) == "+1.0e+06" +string.format("%#+.1e", 10000000) == "+1.0e+07" +string.format("%#+.1e", 0.01) == "+1.0e-02" +string.format("%#+.1e", 0.0001) == "+1.0e-04" +string.format("%#+.1e", 1e-05) == "+1.0e-05" +string.format("%#+.1e", 1e-06) == "+1.0e-06" +string.format("%#+.1e", 1e-07) == "+1.0e-07" +string.format("%#+.1e", 123.456) == "+1.2e+02" +string.format("%#+.1e", 1234560000) == "+1.2e+09" +string.format("%#+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#+.1e", 123.456789123) == "+1.2e+02" +string.format("%#+.1e", 1234567891.23) == "+1.2e+09" +string.format("%#+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#+1.0e", 0) == "+0.e+00" +string.format("%#+1.0e", 1) == "+1.e+00" +string.format("%#+1.0e", -1) == "-1.e+00" +string.format("%#+1.0e", 2) == "+2.e+00" +string.format("%#+1.0e", -2) == "-2.e+00" +string.format("%#+1.0e", 3) == "+3.e+00" +string.format("%#+1.0e", -3) == "-3.e+00" +string.format("%#+1.0e", 100) == "+1.e+02" +string.format("%#+1.0e", 10000) == "+1.e+04" +string.format("%#+1.0e", 100000) == "+1.e+05" +string.format("%#+1.0e", 1000000) == "+1.e+06" +string.format("%#+1.0e", 10000000) == "+1.e+07" +string.format("%#+1.0e", 0.01) == "+1.e-02" +string.format("%#+1.0e", 0.0001) == "+1.e-04" +string.format("%#+1.0e", 1e-05) == "+1.e-05" +string.format("%#+1.0e", 1e-06) == "+1.e-06" +string.format("%#+1.0e", 1e-07) == "+1.e-07" +string.format("%#+1.0e", 123.456) == "+1.e+02" +string.format("%#+1.0e", 1234560000) == "+1.e+09" +string.format("%#+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%#+1.0e", 123.456789123) == "+1.e+02" +string.format("%#+1.0e", 1234567891.23) == "+1.e+09" +string.format("%#+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#+1.1e", 0) == "+0.0e+00" +string.format("%#+1.1e", 1) == "+1.0e+00" +string.format("%#+1.1e", -1) == "-1.0e+00" +string.format("%#+1.1e", 2) == "+2.0e+00" +string.format("%#+1.1e", -2) == "-2.0e+00" +string.format("%#+1.1e", 3) == "+3.0e+00" +string.format("%#+1.1e", -3) == "-3.0e+00" +string.format("%#+1.1e", 100) == "+1.0e+02" +string.format("%#+1.1e", 10000) == "+1.0e+04" +string.format("%#+1.1e", 100000) == "+1.0e+05" +string.format("%#+1.1e", 1000000) == "+1.0e+06" +string.format("%#+1.1e", 10000000) == "+1.0e+07" +string.format("%#+1.1e", 0.01) == "+1.0e-02" +string.format("%#+1.1e", 0.0001) == "+1.0e-04" +string.format("%#+1.1e", 1e-05) == "+1.0e-05" +string.format("%#+1.1e", 1e-06) == "+1.0e-06" +string.format("%#+1.1e", 1e-07) == "+1.0e-07" +string.format("%#+1.1e", 123.456) == "+1.2e+02" +string.format("%#+1.1e", 1234560000) == "+1.2e+09" +string.format("%#+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#+1.1e", 123.456789123) == "+1.2e+02" +string.format("%#+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%#+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#+2.0e", 0) == "+0.e+00" +string.format("%#+2.0e", 1) == "+1.e+00" +string.format("%#+2.0e", -1) == "-1.e+00" +string.format("%#+2.0e", 2) == "+2.e+00" +string.format("%#+2.0e", -2) == "-2.e+00" +string.format("%#+2.0e", 3) == "+3.e+00" +string.format("%#+2.0e", -3) == "-3.e+00" +string.format("%#+2.0e", 100) == "+1.e+02" +string.format("%#+2.0e", 10000) == "+1.e+04" +string.format("%#+2.0e", 100000) == "+1.e+05" +string.format("%#+2.0e", 1000000) == "+1.e+06" +string.format("%#+2.0e", 10000000) == "+1.e+07" +string.format("%#+2.0e", 0.01) == "+1.e-02" +string.format("%#+2.0e", 0.0001) == "+1.e-04" +string.format("%#+2.0e", 1e-05) == "+1.e-05" +string.format("%#+2.0e", 1e-06) == "+1.e-06" +string.format("%#+2.0e", 1e-07) == "+1.e-07" +string.format("%#+2.0e", 123.456) == "+1.e+02" +string.format("%#+2.0e", 1234560000) == "+1.e+09" +string.format("%#+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%#+2.0e", 123.456789123) == "+1.e+02" +string.format("%#+2.0e", 1234567891.23) == "+1.e+09" +string.format("%#+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#+2.1e", 0) == "+0.0e+00" +string.format("%#+2.1e", 1) == "+1.0e+00" +string.format("%#+2.1e", -1) == "-1.0e+00" +string.format("%#+2.1e", 2) == "+2.0e+00" +string.format("%#+2.1e", -2) == "-2.0e+00" +string.format("%#+2.1e", 3) == "+3.0e+00" +string.format("%#+2.1e", -3) == "-3.0e+00" +string.format("%#+2.1e", 100) == "+1.0e+02" +string.format("%#+2.1e", 10000) == "+1.0e+04" +string.format("%#+2.1e", 100000) == "+1.0e+05" +string.format("%#+2.1e", 1000000) == "+1.0e+06" +string.format("%#+2.1e", 10000000) == "+1.0e+07" +string.format("%#+2.1e", 0.01) == "+1.0e-02" +string.format("%#+2.1e", 0.0001) == "+1.0e-04" +string.format("%#+2.1e", 1e-05) == "+1.0e-05" +string.format("%#+2.1e", 1e-06) == "+1.0e-06" +string.format("%#+2.1e", 1e-07) == "+1.0e-07" +string.format("%#+2.1e", 123.456) == "+1.2e+02" +string.format("%#+2.1e", 1234560000) == "+1.2e+09" +string.format("%#+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#+2.1e", 123.456789123) == "+1.2e+02" +string.format("%#+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%#+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#+6e", nan) == " +nan" +string.format("%#+6e", inf) == " +inf" +string.format("%#+6e", -inf) == " -inf" +string.format("%#+6.0e", 0) == "+0.e+00" +string.format("%#+6.0e", 1) == "+1.e+00" +string.format("%#+6.0e", -1) == "-1.e+00" +string.format("%#+6.0e", 2) == "+2.e+00" +string.format("%#+6.0e", -2) == "-2.e+00" +string.format("%#+6.0e", 3) == "+3.e+00" +string.format("%#+6.0e", -3) == "-3.e+00" +string.format("%#+6.0e", nan) == " +nan" +string.format("%#+6.0e", inf) == " +inf" +string.format("%#+6.0e", -inf) == " -inf" +string.format("%#+6.0e", 100) == "+1.e+02" +string.format("%#+6.0e", 10000) == "+1.e+04" +string.format("%#+6.0e", 100000) == "+1.e+05" +string.format("%#+6.0e", 1000000) == "+1.e+06" +string.format("%#+6.0e", 10000000) == "+1.e+07" +string.format("%#+6.0e", 0.01) == "+1.e-02" +string.format("%#+6.0e", 0.0001) == "+1.e-04" +string.format("%#+6.0e", 1e-05) == "+1.e-05" +string.format("%#+6.0e", 1e-06) == "+1.e-06" +string.format("%#+6.0e", 1e-07) == "+1.e-07" +string.format("%#+6.0e", 123.456) == "+1.e+02" +string.format("%#+6.0e", 1234560000) == "+1.e+09" +string.format("%#+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%#+6.0e", 123.456789123) == "+1.e+02" +string.format("%#+6.0e", 1234567891.23) == "+1.e+09" +string.format("%#+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#+6.1e", 0) == "+0.0e+00" +string.format("%#+6.1e", 1) == "+1.0e+00" +string.format("%#+6.1e", -1) == "-1.0e+00" +string.format("%#+6.1e", 2) == "+2.0e+00" +string.format("%#+6.1e", -2) == "-2.0e+00" +string.format("%#+6.1e", 3) == "+3.0e+00" +string.format("%#+6.1e", -3) == "-3.0e+00" +string.format("%#+6.1e", nan) == " +nan" +string.format("%#+6.1e", inf) == " +inf" +string.format("%#+6.1e", -inf) == " -inf" +string.format("%#+6.1e", 100) == "+1.0e+02" +string.format("%#+6.1e", 10000) == "+1.0e+04" +string.format("%#+6.1e", 100000) == "+1.0e+05" +string.format("%#+6.1e", 1000000) == "+1.0e+06" +string.format("%#+6.1e", 10000000) == "+1.0e+07" +string.format("%#+6.1e", 0.01) == "+1.0e-02" +string.format("%#+6.1e", 0.0001) == "+1.0e-04" +string.format("%#+6.1e", 1e-05) == "+1.0e-05" +string.format("%#+6.1e", 1e-06) == "+1.0e-06" +string.format("%#+6.1e", 1e-07) == "+1.0e-07" +string.format("%#+6.1e", 123.456) == "+1.2e+02" +string.format("%#+6.1e", 1234560000) == "+1.2e+09" +string.format("%#+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#+6.1e", 123.456789123) == "+1.2e+02" +string.format("%#+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%#+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#+6.6e", nan) == " +nan" +string.format("%#+6.6e", inf) == " +inf" +string.format("%#+6.6e", -inf) == " -inf" +string.format("%#+20e", 0) == " +0.000000e+00" +string.format("%#+20e", 1) == " +1.000000e+00" +string.format("%#+20e", -1) == " -1.000000e+00" +string.format("%#+20e", 2) == " +2.000000e+00" +string.format("%#+20e", -2) == " -2.000000e+00" +string.format("%#+20e", 3) == " +3.000000e+00" +string.format("%#+20e", -3) == " -3.000000e+00" +string.format("%#+20e", nan) == " +nan" +string.format("%#+20e", inf) == " +inf" +string.format("%#+20e", -inf) == " -inf" +string.format("%#+20e", 100) == " +1.000000e+02" +string.format("%#+20e", 10000) == " +1.000000e+04" +string.format("%#+20e", 100000) == " +1.000000e+05" +string.format("%#+20e", 1000000) == " +1.000000e+06" +string.format("%#+20e", 10000000) == " +1.000000e+07" +string.format("%#+20e", 0.01) == " +1.000000e-02" +string.format("%#+20e", 0.0001) == " +1.000000e-04" +string.format("%#+20e", 1e-05) == " +1.000000e-05" +string.format("%#+20e", 1e-06) == " +1.000000e-06" +string.format("%#+20e", 1e-07) == " +1.000000e-07" +string.format("%#+20e", 123.456) == " +1.234560e+02" +string.format("%#+20e", 1234560000) == " +1.234560e+09" +string.format("%#+20e", 1.23456e-05) == " +1.234560e-05" +string.format("%#+20e", 123.456789123) == " +1.234568e+02" +string.format("%#+20e", 1234567891.23) == " +1.234568e+09" +string.format("%#+20e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%#+20.0e", 0) == " +0.e+00" +string.format("%#+20.0e", 1) == " +1.e+00" +string.format("%#+20.0e", -1) == " -1.e+00" +string.format("%#+20.0e", 2) == " +2.e+00" +string.format("%#+20.0e", -2) == " -2.e+00" +string.format("%#+20.0e", 3) == " +3.e+00" +string.format("%#+20.0e", -3) == " -3.e+00" +string.format("%#+20.0e", nan) == " +nan" +string.format("%#+20.0e", inf) == " +inf" +string.format("%#+20.0e", -inf) == " -inf" +string.format("%#+20.0e", 100) == " +1.e+02" +string.format("%#+20.0e", 10000) == " +1.e+04" +string.format("%#+20.0e", 100000) == " +1.e+05" +string.format("%#+20.0e", 1000000) == " +1.e+06" +string.format("%#+20.0e", 10000000) == " +1.e+07" +string.format("%#+20.0e", 0.01) == " +1.e-02" +string.format("%#+20.0e", 0.0001) == " +1.e-04" +string.format("%#+20.0e", 1e-05) == " +1.e-05" +string.format("%#+20.0e", 1e-06) == " +1.e-06" +string.format("%#+20.0e", 1e-07) == " +1.e-07" +string.format("%#+20.0e", 123.456) == " +1.e+02" +string.format("%#+20.0e", 1234560000) == " +1.e+09" +string.format("%#+20.0e", 1.23456e-05) == " +1.e-05" +string.format("%#+20.0e", 123.456789123) == " +1.e+02" +string.format("%#+20.0e", 1234567891.23) == " +1.e+09" +string.format("%#+20.0e", 1.23456789123e-05) == " +1.e-05" +string.format("%#+20.1e", 0) == " +0.0e+00" +string.format("%#+20.1e", 1) == " +1.0e+00" +string.format("%#+20.1e", -1) == " -1.0e+00" +string.format("%#+20.1e", 2) == " +2.0e+00" +string.format("%#+20.1e", -2) == " -2.0e+00" +string.format("%#+20.1e", 3) == " +3.0e+00" +string.format("%#+20.1e", -3) == " -3.0e+00" +string.format("%#+20.1e", nan) == " +nan" +string.format("%#+20.1e", inf) == " +inf" +string.format("%#+20.1e", -inf) == " -inf" +string.format("%#+20.1e", 100) == " +1.0e+02" +string.format("%#+20.1e", 10000) == " +1.0e+04" +string.format("%#+20.1e", 100000) == " +1.0e+05" +string.format("%#+20.1e", 1000000) == " +1.0e+06" +string.format("%#+20.1e", 10000000) == " +1.0e+07" +string.format("%#+20.1e", 0.01) == " +1.0e-02" +string.format("%#+20.1e", 0.0001) == " +1.0e-04" +string.format("%#+20.1e", 1e-05) == " +1.0e-05" +string.format("%#+20.1e", 1e-06) == " +1.0e-06" +string.format("%#+20.1e", 1e-07) == " +1.0e-07" +string.format("%#+20.1e", 123.456) == " +1.2e+02" +string.format("%#+20.1e", 1234560000) == " +1.2e+09" +string.format("%#+20.1e", 1.23456e-05) == " +1.2e-05" +string.format("%#+20.1e", 123.456789123) == " +1.2e+02" +string.format("%#+20.1e", 1234567891.23) == " +1.2e+09" +string.format("%#+20.1e", 1.23456789123e-05) == " +1.2e-05" +string.format("%#+20.6e", 0) == " +0.000000e+00" +string.format("%#+20.6e", 1) == " +1.000000e+00" +string.format("%#+20.6e", -1) == " -1.000000e+00" +string.format("%#+20.6e", 2) == " +2.000000e+00" +string.format("%#+20.6e", -2) == " -2.000000e+00" +string.format("%#+20.6e", 3) == " +3.000000e+00" +string.format("%#+20.6e", -3) == " -3.000000e+00" +string.format("%#+20.6e", nan) == " +nan" +string.format("%#+20.6e", inf) == " +inf" +string.format("%#+20.6e", -inf) == " -inf" +string.format("%#+20.6e", 100) == " +1.000000e+02" +string.format("%#+20.6e", 10000) == " +1.000000e+04" +string.format("%#+20.6e", 100000) == " +1.000000e+05" +string.format("%#+20.6e", 1000000) == " +1.000000e+06" +string.format("%#+20.6e", 10000000) == " +1.000000e+07" +string.format("%#+20.6e", 0.01) == " +1.000000e-02" +string.format("%#+20.6e", 0.0001) == " +1.000000e-04" +string.format("%#+20.6e", 1e-05) == " +1.000000e-05" +string.format("%#+20.6e", 1e-06) == " +1.000000e-06" +string.format("%#+20.6e", 1e-07) == " +1.000000e-07" +string.format("%#+20.6e", 123.456) == " +1.234560e+02" +string.format("%#+20.6e", 1234560000) == " +1.234560e+09" +string.format("%#+20.6e", 1.23456e-05) == " +1.234560e-05" +string.format("%#+20.6e", 123.456789123) == " +1.234568e+02" +string.format("%#+20.6e", 1234567891.23) == " +1.234568e+09" +string.format("%#+20.6e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%#-e", 0) == "0.000000e+00" +string.format("%#-e", 1) == "1.000000e+00" +string.format("%#-e", -1) == "-1.000000e+00" +string.format("%#-e", 2) == "2.000000e+00" +string.format("%#-e", -2) == "-2.000000e+00" +string.format("%#-e", 3) == "3.000000e+00" +string.format("%#-e", -3) == "-3.000000e+00" +string.format("%#-e", nan) == "nan" +string.format("%#-e", inf) == "inf" +string.format("%#-e", -inf) == "-inf" +string.format("%#-e", 100) == "1.000000e+02" +string.format("%#-e", 10000) == "1.000000e+04" +string.format("%#-e", 100000) == "1.000000e+05" +string.format("%#-e", 1000000) == "1.000000e+06" +string.format("%#-e", 10000000) == "1.000000e+07" +string.format("%#-e", 0.01) == "1.000000e-02" +string.format("%#-e", 0.0001) == "1.000000e-04" +string.format("%#-e", 1e-05) == "1.000000e-05" +string.format("%#-e", 1e-06) == "1.000000e-06" +string.format("%#-e", 1e-07) == "1.000000e-07" +string.format("%#-e", 123.456) == "1.234560e+02" +string.format("%#-e", 1234560000) == "1.234560e+09" +string.format("%#-e", 1.23456e-05) == "1.234560e-05" +string.format("%#-e", 123.456789123) == "1.234568e+02" +string.format("%#-e", 1234567891.23) == "1.234568e+09" +string.format("%#-e", 1.23456789123e-05) == "1.234568e-05" +string.format("%#-.0e", 0) == "0.e+00" +string.format("%#-.0e", 1) == "1.e+00" +string.format("%#-.0e", -1) == "-1.e+00" +string.format("%#-.0e", 2) == "2.e+00" +string.format("%#-.0e", -2) == "-2.e+00" +string.format("%#-.0e", 3) == "3.e+00" +string.format("%#-.0e", -3) == "-3.e+00" +string.format("%#-.0e", 100) == "1.e+02" +string.format("%#-.0e", 10000) == "1.e+04" +string.format("%#-.0e", 100000) == "1.e+05" +string.format("%#-.0e", 1000000) == "1.e+06" +string.format("%#-.0e", 10000000) == "1.e+07" +string.format("%#-.0e", 0.01) == "1.e-02" +string.format("%#-.0e", 0.0001) == "1.e-04" +string.format("%#-.0e", 1e-05) == "1.e-05" +string.format("%#-.0e", 1e-06) == "1.e-06" +string.format("%#-.0e", 1e-07) == "1.e-07" +string.format("%#-.0e", 123.456) == "1.e+02" +string.format("%#-.0e", 1234560000) == "1.e+09" +string.format("%#-.0e", 1.23456e-05) == "1.e-05" +string.format("%#-.0e", 123.456789123) == "1.e+02" +string.format("%#-.0e", 1234567891.23) == "1.e+09" +string.format("%#-.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#-.1e", 0) == "0.0e+00" +string.format("%#-.1e", 1) == "1.0e+00" +string.format("%#-.1e", -1) == "-1.0e+00" +string.format("%#-.1e", 2) == "2.0e+00" +string.format("%#-.1e", -2) == "-2.0e+00" +string.format("%#-.1e", 3) == "3.0e+00" +string.format("%#-.1e", -3) == "-3.0e+00" +string.format("%#-.1e", 100) == "1.0e+02" +string.format("%#-.1e", 10000) == "1.0e+04" +string.format("%#-.1e", 100000) == "1.0e+05" +string.format("%#-.1e", 1000000) == "1.0e+06" +string.format("%#-.1e", 10000000) == "1.0e+07" +string.format("%#-.1e", 0.01) == "1.0e-02" +string.format("%#-.1e", 0.0001) == "1.0e-04" +string.format("%#-.1e", 1e-05) == "1.0e-05" +string.format("%#-.1e", 1e-06) == "1.0e-06" +string.format("%#-.1e", 1e-07) == "1.0e-07" +string.format("%#-.1e", 123.456) == "1.2e+02" +string.format("%#-.1e", 1234560000) == "1.2e+09" +string.format("%#-.1e", 1.23456e-05) == "1.2e-05" +string.format("%#-.1e", 123.456789123) == "1.2e+02" +string.format("%#-.1e", 1234567891.23) == "1.2e+09" +string.format("%#-.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#-1.0e", 0) == "0.e+00" +string.format("%#-1.0e", 1) == "1.e+00" +string.format("%#-1.0e", -1) == "-1.e+00" +string.format("%#-1.0e", 2) == "2.e+00" +string.format("%#-1.0e", -2) == "-2.e+00" +string.format("%#-1.0e", 3) == "3.e+00" +string.format("%#-1.0e", -3) == "-3.e+00" +string.format("%#-1.0e", 100) == "1.e+02" +string.format("%#-1.0e", 10000) == "1.e+04" +string.format("%#-1.0e", 100000) == "1.e+05" +string.format("%#-1.0e", 1000000) == "1.e+06" +string.format("%#-1.0e", 10000000) == "1.e+07" +string.format("%#-1.0e", 0.01) == "1.e-02" +string.format("%#-1.0e", 0.0001) == "1.e-04" +string.format("%#-1.0e", 1e-05) == "1.e-05" +string.format("%#-1.0e", 1e-06) == "1.e-06" +string.format("%#-1.0e", 1e-07) == "1.e-07" +string.format("%#-1.0e", 123.456) == "1.e+02" +string.format("%#-1.0e", 1234560000) == "1.e+09" +string.format("%#-1.0e", 1.23456e-05) == "1.e-05" +string.format("%#-1.0e", 123.456789123) == "1.e+02" +string.format("%#-1.0e", 1234567891.23) == "1.e+09" +string.format("%#-1.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#-1.1e", 0) == "0.0e+00" +string.format("%#-1.1e", 1) == "1.0e+00" +string.format("%#-1.1e", -1) == "-1.0e+00" +string.format("%#-1.1e", 2) == "2.0e+00" +string.format("%#-1.1e", -2) == "-2.0e+00" +string.format("%#-1.1e", 3) == "3.0e+00" +string.format("%#-1.1e", -3) == "-3.0e+00" +string.format("%#-1.1e", 100) == "1.0e+02" +string.format("%#-1.1e", 10000) == "1.0e+04" +string.format("%#-1.1e", 100000) == "1.0e+05" +string.format("%#-1.1e", 1000000) == "1.0e+06" +string.format("%#-1.1e", 10000000) == "1.0e+07" +string.format("%#-1.1e", 0.01) == "1.0e-02" +string.format("%#-1.1e", 0.0001) == "1.0e-04" +string.format("%#-1.1e", 1e-05) == "1.0e-05" +string.format("%#-1.1e", 1e-06) == "1.0e-06" +string.format("%#-1.1e", 1e-07) == "1.0e-07" +string.format("%#-1.1e", 123.456) == "1.2e+02" +string.format("%#-1.1e", 1234560000) == "1.2e+09" +string.format("%#-1.1e", 1.23456e-05) == "1.2e-05" +string.format("%#-1.1e", 123.456789123) == "1.2e+02" +string.format("%#-1.1e", 1234567891.23) == "1.2e+09" +string.format("%#-1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#-2.0e", 0) == "0.e+00" +string.format("%#-2.0e", 1) == "1.e+00" +string.format("%#-2.0e", -1) == "-1.e+00" +string.format("%#-2.0e", 2) == "2.e+00" +string.format("%#-2.0e", -2) == "-2.e+00" +string.format("%#-2.0e", 3) == "3.e+00" +string.format("%#-2.0e", -3) == "-3.e+00" +string.format("%#-2.0e", 100) == "1.e+02" +string.format("%#-2.0e", 10000) == "1.e+04" +string.format("%#-2.0e", 100000) == "1.e+05" +string.format("%#-2.0e", 1000000) == "1.e+06" +string.format("%#-2.0e", 10000000) == "1.e+07" +string.format("%#-2.0e", 0.01) == "1.e-02" +string.format("%#-2.0e", 0.0001) == "1.e-04" +string.format("%#-2.0e", 1e-05) == "1.e-05" +string.format("%#-2.0e", 1e-06) == "1.e-06" +string.format("%#-2.0e", 1e-07) == "1.e-07" +string.format("%#-2.0e", 123.456) == "1.e+02" +string.format("%#-2.0e", 1234560000) == "1.e+09" +string.format("%#-2.0e", 1.23456e-05) == "1.e-05" +string.format("%#-2.0e", 123.456789123) == "1.e+02" +string.format("%#-2.0e", 1234567891.23) == "1.e+09" +string.format("%#-2.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#-2.1e", 0) == "0.0e+00" +string.format("%#-2.1e", 1) == "1.0e+00" +string.format("%#-2.1e", -1) == "-1.0e+00" +string.format("%#-2.1e", 2) == "2.0e+00" +string.format("%#-2.1e", -2) == "-2.0e+00" +string.format("%#-2.1e", 3) == "3.0e+00" +string.format("%#-2.1e", -3) == "-3.0e+00" +string.format("%#-2.1e", 100) == "1.0e+02" +string.format("%#-2.1e", 10000) == "1.0e+04" +string.format("%#-2.1e", 100000) == "1.0e+05" +string.format("%#-2.1e", 1000000) == "1.0e+06" +string.format("%#-2.1e", 10000000) == "1.0e+07" +string.format("%#-2.1e", 0.01) == "1.0e-02" +string.format("%#-2.1e", 0.0001) == "1.0e-04" +string.format("%#-2.1e", 1e-05) == "1.0e-05" +string.format("%#-2.1e", 1e-06) == "1.0e-06" +string.format("%#-2.1e", 1e-07) == "1.0e-07" +string.format("%#-2.1e", 123.456) == "1.2e+02" +string.format("%#-2.1e", 1234560000) == "1.2e+09" +string.format("%#-2.1e", 1.23456e-05) == "1.2e-05" +string.format("%#-2.1e", 123.456789123) == "1.2e+02" +string.format("%#-2.1e", 1234567891.23) == "1.2e+09" +string.format("%#-2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#-6e", nan) == "nan " +string.format("%#-6e", inf) == "inf " +string.format("%#-6e", -inf) == "-inf " +string.format("%#-6.0e", 0) == "0.e+00" +string.format("%#-6.0e", 1) == "1.e+00" +string.format("%#-6.0e", -1) == "-1.e+00" +string.format("%#-6.0e", 2) == "2.e+00" +string.format("%#-6.0e", -2) == "-2.e+00" +string.format("%#-6.0e", 3) == "3.e+00" +string.format("%#-6.0e", -3) == "-3.e+00" +string.format("%#-6.0e", nan) == "nan " +string.format("%#-6.0e", inf) == "inf " +string.format("%#-6.0e", -inf) == "-inf " +string.format("%#-6.0e", 100) == "1.e+02" +string.format("%#-6.0e", 10000) == "1.e+04" +string.format("%#-6.0e", 100000) == "1.e+05" +string.format("%#-6.0e", 1000000) == "1.e+06" +string.format("%#-6.0e", 10000000) == "1.e+07" +string.format("%#-6.0e", 0.01) == "1.e-02" +string.format("%#-6.0e", 0.0001) == "1.e-04" +string.format("%#-6.0e", 1e-05) == "1.e-05" +string.format("%#-6.0e", 1e-06) == "1.e-06" +string.format("%#-6.0e", 1e-07) == "1.e-07" +string.format("%#-6.0e", 123.456) == "1.e+02" +string.format("%#-6.0e", 1234560000) == "1.e+09" +string.format("%#-6.0e", 1.23456e-05) == "1.e-05" +string.format("%#-6.0e", 123.456789123) == "1.e+02" +string.format("%#-6.0e", 1234567891.23) == "1.e+09" +string.format("%#-6.0e", 1.23456789123e-05) == "1.e-05" +string.format("%#-6.1e", 0) == "0.0e+00" +string.format("%#-6.1e", 1) == "1.0e+00" +string.format("%#-6.1e", -1) == "-1.0e+00" +string.format("%#-6.1e", 2) == "2.0e+00" +string.format("%#-6.1e", -2) == "-2.0e+00" +string.format("%#-6.1e", 3) == "3.0e+00" +string.format("%#-6.1e", -3) == "-3.0e+00" +string.format("%#-6.1e", nan) == "nan " +string.format("%#-6.1e", inf) == "inf " +string.format("%#-6.1e", -inf) == "-inf " +string.format("%#-6.1e", 100) == "1.0e+02" +string.format("%#-6.1e", 10000) == "1.0e+04" +string.format("%#-6.1e", 100000) == "1.0e+05" +string.format("%#-6.1e", 1000000) == "1.0e+06" +string.format("%#-6.1e", 10000000) == "1.0e+07" +string.format("%#-6.1e", 0.01) == "1.0e-02" +string.format("%#-6.1e", 0.0001) == "1.0e-04" +string.format("%#-6.1e", 1e-05) == "1.0e-05" +string.format("%#-6.1e", 1e-06) == "1.0e-06" +string.format("%#-6.1e", 1e-07) == "1.0e-07" +string.format("%#-6.1e", 123.456) == "1.2e+02" +string.format("%#-6.1e", 1234560000) == "1.2e+09" +string.format("%#-6.1e", 1.23456e-05) == "1.2e-05" +string.format("%#-6.1e", 123.456789123) == "1.2e+02" +string.format("%#-6.1e", 1234567891.23) == "1.2e+09" +string.format("%#-6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%#-6.6e", nan) == "nan " +string.format("%#-6.6e", inf) == "inf " +string.format("%#-6.6e", -inf) == "-inf " +string.format("%#-20e", 0) == "0.000000e+00 " +string.format("%#-20e", 1) == "1.000000e+00 " +string.format("%#-20e", -1) == "-1.000000e+00 " +string.format("%#-20e", 2) == "2.000000e+00 " +string.format("%#-20e", -2) == "-2.000000e+00 " +string.format("%#-20e", 3) == "3.000000e+00 " +string.format("%#-20e", -3) == "-3.000000e+00 " +string.format("%#-20e", nan) == "nan " +string.format("%#-20e", inf) == "inf " +string.format("%#-20e", -inf) == "-inf " +string.format("%#-20e", 100) == "1.000000e+02 " +string.format("%#-20e", 10000) == "1.000000e+04 " +string.format("%#-20e", 100000) == "1.000000e+05 " +string.format("%#-20e", 1000000) == "1.000000e+06 " +string.format("%#-20e", 10000000) == "1.000000e+07 " +string.format("%#-20e", 0.01) == "1.000000e-02 " +string.format("%#-20e", 0.0001) == "1.000000e-04 " +string.format("%#-20e", 1e-05) == "1.000000e-05 " +string.format("%#-20e", 1e-06) == "1.000000e-06 " +string.format("%#-20e", 1e-07) == "1.000000e-07 " +string.format("%#-20e", 123.456) == "1.234560e+02 " +string.format("%#-20e", 1234560000) == "1.234560e+09 " +string.format("%#-20e", 1.23456e-05) == "1.234560e-05 " +string.format("%#-20e", 123.456789123) == "1.234568e+02 " +string.format("%#-20e", 1234567891.23) == "1.234568e+09 " +string.format("%#-20e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%#-20.0e", 0) == "0.e+00 " +string.format("%#-20.0e", 1) == "1.e+00 " +string.format("%#-20.0e", -1) == "-1.e+00 " +string.format("%#-20.0e", 2) == "2.e+00 " +string.format("%#-20.0e", -2) == "-2.e+00 " +string.format("%#-20.0e", 3) == "3.e+00 " +string.format("%#-20.0e", -3) == "-3.e+00 " +string.format("%#-20.0e", nan) == "nan " +string.format("%#-20.0e", inf) == "inf " +string.format("%#-20.0e", -inf) == "-inf " +string.format("%#-20.0e", 100) == "1.e+02 " +string.format("%#-20.0e", 10000) == "1.e+04 " +string.format("%#-20.0e", 100000) == "1.e+05 " +string.format("%#-20.0e", 1000000) == "1.e+06 " +string.format("%#-20.0e", 10000000) == "1.e+07 " +string.format("%#-20.0e", 0.01) == "1.e-02 " +string.format("%#-20.0e", 0.0001) == "1.e-04 " +string.format("%#-20.0e", 1e-05) == "1.e-05 " +string.format("%#-20.0e", 1e-06) == "1.e-06 " +string.format("%#-20.0e", 1e-07) == "1.e-07 " +string.format("%#-20.0e", 123.456) == "1.e+02 " +string.format("%#-20.0e", 1234560000) == "1.e+09 " +string.format("%#-20.0e", 1.23456e-05) == "1.e-05 " +string.format("%#-20.0e", 123.456789123) == "1.e+02 " +string.format("%#-20.0e", 1234567891.23) == "1.e+09 " +string.format("%#-20.0e", 1.23456789123e-05) == "1.e-05 " +string.format("%#-20.1e", 0) == "0.0e+00 " +string.format("%#-20.1e", 1) == "1.0e+00 " +string.format("%#-20.1e", -1) == "-1.0e+00 " +string.format("%#-20.1e", 2) == "2.0e+00 " +string.format("%#-20.1e", -2) == "-2.0e+00 " +string.format("%#-20.1e", 3) == "3.0e+00 " +string.format("%#-20.1e", -3) == "-3.0e+00 " +string.format("%#-20.1e", nan) == "nan " +string.format("%#-20.1e", inf) == "inf " +string.format("%#-20.1e", -inf) == "-inf " +string.format("%#-20.1e", 100) == "1.0e+02 " +string.format("%#-20.1e", 10000) == "1.0e+04 " +string.format("%#-20.1e", 100000) == "1.0e+05 " +string.format("%#-20.1e", 1000000) == "1.0e+06 " +string.format("%#-20.1e", 10000000) == "1.0e+07 " +string.format("%#-20.1e", 0.01) == "1.0e-02 " +string.format("%#-20.1e", 0.0001) == "1.0e-04 " +string.format("%#-20.1e", 1e-05) == "1.0e-05 " +string.format("%#-20.1e", 1e-06) == "1.0e-06 " +string.format("%#-20.1e", 1e-07) == "1.0e-07 " +string.format("%#-20.1e", 123.456) == "1.2e+02 " +string.format("%#-20.1e", 1234560000) == "1.2e+09 " +string.format("%#-20.1e", 1.23456e-05) == "1.2e-05 " +string.format("%#-20.1e", 123.456789123) == "1.2e+02 " +string.format("%#-20.1e", 1234567891.23) == "1.2e+09 " +string.format("%#-20.1e", 1.23456789123e-05) == "1.2e-05 " +string.format("%#-20.6e", 0) == "0.000000e+00 " +string.format("%#-20.6e", 1) == "1.000000e+00 " +string.format("%#-20.6e", -1) == "-1.000000e+00 " +string.format("%#-20.6e", 2) == "2.000000e+00 " +string.format("%#-20.6e", -2) == "-2.000000e+00 " +string.format("%#-20.6e", 3) == "3.000000e+00 " +string.format("%#-20.6e", -3) == "-3.000000e+00 " +string.format("%#-20.6e", nan) == "nan " +string.format("%#-20.6e", inf) == "inf " +string.format("%#-20.6e", -inf) == "-inf " +string.format("%#-20.6e", 100) == "1.000000e+02 " +string.format("%#-20.6e", 10000) == "1.000000e+04 " +string.format("%#-20.6e", 100000) == "1.000000e+05 " +string.format("%#-20.6e", 1000000) == "1.000000e+06 " +string.format("%#-20.6e", 10000000) == "1.000000e+07 " +string.format("%#-20.6e", 0.01) == "1.000000e-02 " +string.format("%#-20.6e", 0.0001) == "1.000000e-04 " +string.format("%#-20.6e", 1e-05) == "1.000000e-05 " +string.format("%#-20.6e", 1e-06) == "1.000000e-06 " +string.format("%#-20.6e", 1e-07) == "1.000000e-07 " +string.format("%#-20.6e", 123.456) == "1.234560e+02 " +string.format("%#-20.6e", 1234560000) == "1.234560e+09 " +string.format("%#-20.6e", 1.23456e-05) == "1.234560e-05 " +string.format("%#-20.6e", 123.456789123) == "1.234568e+02 " +string.format("%#-20.6e", 1234567891.23) == "1.234568e+09 " +string.format("%#-20.6e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%#-+e", 0) == "+0.000000e+00" +string.format("%#-+e", 1) == "+1.000000e+00" +string.format("%#-+e", -1) == "-1.000000e+00" +string.format("%#-+e", 2) == "+2.000000e+00" +string.format("%#-+e", -2) == "-2.000000e+00" +string.format("%#-+e", 3) == "+3.000000e+00" +string.format("%#-+e", -3) == "-3.000000e+00" +string.format("%#-+e", nan) == "+nan" +string.format("%#-+e", inf) == "+inf" +string.format("%#-+e", -inf) == "-inf" +string.format("%#-+e", 100) == "+1.000000e+02" +string.format("%#-+e", 10000) == "+1.000000e+04" +string.format("%#-+e", 100000) == "+1.000000e+05" +string.format("%#-+e", 1000000) == "+1.000000e+06" +string.format("%#-+e", 10000000) == "+1.000000e+07" +string.format("%#-+e", 0.01) == "+1.000000e-02" +string.format("%#-+e", 0.0001) == "+1.000000e-04" +string.format("%#-+e", 1e-05) == "+1.000000e-05" +string.format("%#-+e", 1e-06) == "+1.000000e-06" +string.format("%#-+e", 1e-07) == "+1.000000e-07" +string.format("%#-+e", 123.456) == "+1.234560e+02" +string.format("%#-+e", 1234560000) == "+1.234560e+09" +string.format("%#-+e", 1.23456e-05) == "+1.234560e-05" +string.format("%#-+e", 123.456789123) == "+1.234568e+02" +string.format("%#-+e", 1234567891.23) == "+1.234568e+09" +string.format("%#-+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%#-+.0e", 0) == "+0.e+00" +string.format("%#-+.0e", 1) == "+1.e+00" +string.format("%#-+.0e", -1) == "-1.e+00" +string.format("%#-+.0e", 2) == "+2.e+00" +string.format("%#-+.0e", -2) == "-2.e+00" +string.format("%#-+.0e", 3) == "+3.e+00" +string.format("%#-+.0e", -3) == "-3.e+00" +string.format("%#-+.0e", 100) == "+1.e+02" +string.format("%#-+.0e", 10000) == "+1.e+04" +string.format("%#-+.0e", 100000) == "+1.e+05" +string.format("%#-+.0e", 1000000) == "+1.e+06" +string.format("%#-+.0e", 10000000) == "+1.e+07" +string.format("%#-+.0e", 0.01) == "+1.e-02" +string.format("%#-+.0e", 0.0001) == "+1.e-04" +string.format("%#-+.0e", 1e-05) == "+1.e-05" +string.format("%#-+.0e", 1e-06) == "+1.e-06" +string.format("%#-+.0e", 1e-07) == "+1.e-07" +string.format("%#-+.0e", 123.456) == "+1.e+02" +string.format("%#-+.0e", 1234560000) == "+1.e+09" +string.format("%#-+.0e", 1.23456e-05) == "+1.e-05" +string.format("%#-+.0e", 123.456789123) == "+1.e+02" +string.format("%#-+.0e", 1234567891.23) == "+1.e+09" +string.format("%#-+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+.1e", 0) == "+0.0e+00" +string.format("%#-+.1e", 1) == "+1.0e+00" +string.format("%#-+.1e", -1) == "-1.0e+00" +string.format("%#-+.1e", 2) == "+2.0e+00" +string.format("%#-+.1e", -2) == "-2.0e+00" +string.format("%#-+.1e", 3) == "+3.0e+00" +string.format("%#-+.1e", -3) == "-3.0e+00" +string.format("%#-+.1e", 100) == "+1.0e+02" +string.format("%#-+.1e", 10000) == "+1.0e+04" +string.format("%#-+.1e", 100000) == "+1.0e+05" +string.format("%#-+.1e", 1000000) == "+1.0e+06" +string.format("%#-+.1e", 10000000) == "+1.0e+07" +string.format("%#-+.1e", 0.01) == "+1.0e-02" +string.format("%#-+.1e", 0.0001) == "+1.0e-04" +string.format("%#-+.1e", 1e-05) == "+1.0e-05" +string.format("%#-+.1e", 1e-06) == "+1.0e-06" +string.format("%#-+.1e", 1e-07) == "+1.0e-07" +string.format("%#-+.1e", 123.456) == "+1.2e+02" +string.format("%#-+.1e", 1234560000) == "+1.2e+09" +string.format("%#-+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#-+.1e", 123.456789123) == "+1.2e+02" +string.format("%#-+.1e", 1234567891.23) == "+1.2e+09" +string.format("%#-+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#-+1.0e", 0) == "+0.e+00" +string.format("%#-+1.0e", 1) == "+1.e+00" +string.format("%#-+1.0e", -1) == "-1.e+00" +string.format("%#-+1.0e", 2) == "+2.e+00" +string.format("%#-+1.0e", -2) == "-2.e+00" +string.format("%#-+1.0e", 3) == "+3.e+00" +string.format("%#-+1.0e", -3) == "-3.e+00" +string.format("%#-+1.0e", 100) == "+1.e+02" +string.format("%#-+1.0e", 10000) == "+1.e+04" +string.format("%#-+1.0e", 100000) == "+1.e+05" +string.format("%#-+1.0e", 1000000) == "+1.e+06" +string.format("%#-+1.0e", 10000000) == "+1.e+07" +string.format("%#-+1.0e", 0.01) == "+1.e-02" +string.format("%#-+1.0e", 0.0001) == "+1.e-04" +string.format("%#-+1.0e", 1e-05) == "+1.e-05" +string.format("%#-+1.0e", 1e-06) == "+1.e-06" +string.format("%#-+1.0e", 1e-07) == "+1.e-07" +string.format("%#-+1.0e", 123.456) == "+1.e+02" +string.format("%#-+1.0e", 1234560000) == "+1.e+09" +string.format("%#-+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%#-+1.0e", 123.456789123) == "+1.e+02" +string.format("%#-+1.0e", 1234567891.23) == "+1.e+09" +string.format("%#-+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+1.1e", 0) == "+0.0e+00" +string.format("%#-+1.1e", 1) == "+1.0e+00" +string.format("%#-+1.1e", -1) == "-1.0e+00" +string.format("%#-+1.1e", 2) == "+2.0e+00" +string.format("%#-+1.1e", -2) == "-2.0e+00" +string.format("%#-+1.1e", 3) == "+3.0e+00" +string.format("%#-+1.1e", -3) == "-3.0e+00" +string.format("%#-+1.1e", 100) == "+1.0e+02" +string.format("%#-+1.1e", 10000) == "+1.0e+04" +string.format("%#-+1.1e", 100000) == "+1.0e+05" +string.format("%#-+1.1e", 1000000) == "+1.0e+06" +string.format("%#-+1.1e", 10000000) == "+1.0e+07" +string.format("%#-+1.1e", 0.01) == "+1.0e-02" +string.format("%#-+1.1e", 0.0001) == "+1.0e-04" +string.format("%#-+1.1e", 1e-05) == "+1.0e-05" +string.format("%#-+1.1e", 1e-06) == "+1.0e-06" +string.format("%#-+1.1e", 1e-07) == "+1.0e-07" +string.format("%#-+1.1e", 123.456) == "+1.2e+02" +string.format("%#-+1.1e", 1234560000) == "+1.2e+09" +string.format("%#-+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#-+1.1e", 123.456789123) == "+1.2e+02" +string.format("%#-+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%#-+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#-+2.0e", 0) == "+0.e+00" +string.format("%#-+2.0e", 1) == "+1.e+00" +string.format("%#-+2.0e", -1) == "-1.e+00" +string.format("%#-+2.0e", 2) == "+2.e+00" +string.format("%#-+2.0e", -2) == "-2.e+00" +string.format("%#-+2.0e", 3) == "+3.e+00" +string.format("%#-+2.0e", -3) == "-3.e+00" +string.format("%#-+2.0e", 100) == "+1.e+02" +string.format("%#-+2.0e", 10000) == "+1.e+04" +string.format("%#-+2.0e", 100000) == "+1.e+05" +string.format("%#-+2.0e", 1000000) == "+1.e+06" +string.format("%#-+2.0e", 10000000) == "+1.e+07" +string.format("%#-+2.0e", 0.01) == "+1.e-02" +string.format("%#-+2.0e", 0.0001) == "+1.e-04" +string.format("%#-+2.0e", 1e-05) == "+1.e-05" +string.format("%#-+2.0e", 1e-06) == "+1.e-06" +string.format("%#-+2.0e", 1e-07) == "+1.e-07" +string.format("%#-+2.0e", 123.456) == "+1.e+02" +string.format("%#-+2.0e", 1234560000) == "+1.e+09" +string.format("%#-+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%#-+2.0e", 123.456789123) == "+1.e+02" +string.format("%#-+2.0e", 1234567891.23) == "+1.e+09" +string.format("%#-+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+2.1e", 0) == "+0.0e+00" +string.format("%#-+2.1e", 1) == "+1.0e+00" +string.format("%#-+2.1e", -1) == "-1.0e+00" +string.format("%#-+2.1e", 2) == "+2.0e+00" +string.format("%#-+2.1e", -2) == "-2.0e+00" +string.format("%#-+2.1e", 3) == "+3.0e+00" +string.format("%#-+2.1e", -3) == "-3.0e+00" +string.format("%#-+2.1e", 100) == "+1.0e+02" +string.format("%#-+2.1e", 10000) == "+1.0e+04" +string.format("%#-+2.1e", 100000) == "+1.0e+05" +string.format("%#-+2.1e", 1000000) == "+1.0e+06" +string.format("%#-+2.1e", 10000000) == "+1.0e+07" +string.format("%#-+2.1e", 0.01) == "+1.0e-02" +string.format("%#-+2.1e", 0.0001) == "+1.0e-04" +string.format("%#-+2.1e", 1e-05) == "+1.0e-05" +string.format("%#-+2.1e", 1e-06) == "+1.0e-06" +string.format("%#-+2.1e", 1e-07) == "+1.0e-07" +string.format("%#-+2.1e", 123.456) == "+1.2e+02" +string.format("%#-+2.1e", 1234560000) == "+1.2e+09" +string.format("%#-+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#-+2.1e", 123.456789123) == "+1.2e+02" +string.format("%#-+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%#-+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#-+6e", nan) == "+nan " +string.format("%#-+6e", inf) == "+inf " +string.format("%#-+6e", -inf) == "-inf " +string.format("%#-+6.0e", 0) == "+0.e+00" +string.format("%#-+6.0e", 1) == "+1.e+00" +string.format("%#-+6.0e", -1) == "-1.e+00" +string.format("%#-+6.0e", 2) == "+2.e+00" +string.format("%#-+6.0e", -2) == "-2.e+00" +string.format("%#-+6.0e", 3) == "+3.e+00" +string.format("%#-+6.0e", -3) == "-3.e+00" +string.format("%#-+6.0e", nan) == "+nan " +string.format("%#-+6.0e", inf) == "+inf " +string.format("%#-+6.0e", -inf) == "-inf " +string.format("%#-+6.0e", 100) == "+1.e+02" +string.format("%#-+6.0e", 10000) == "+1.e+04" +string.format("%#-+6.0e", 100000) == "+1.e+05" +string.format("%#-+6.0e", 1000000) == "+1.e+06" +string.format("%#-+6.0e", 10000000) == "+1.e+07" +string.format("%#-+6.0e", 0.01) == "+1.e-02" +string.format("%#-+6.0e", 0.0001) == "+1.e-04" +string.format("%#-+6.0e", 1e-05) == "+1.e-05" +string.format("%#-+6.0e", 1e-06) == "+1.e-06" +string.format("%#-+6.0e", 1e-07) == "+1.e-07" +string.format("%#-+6.0e", 123.456) == "+1.e+02" +string.format("%#-+6.0e", 1234560000) == "+1.e+09" +string.format("%#-+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%#-+6.0e", 123.456789123) == "+1.e+02" +string.format("%#-+6.0e", 1234567891.23) == "+1.e+09" +string.format("%#-+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+6.1e", 0) == "+0.0e+00" +string.format("%#-+6.1e", 1) == "+1.0e+00" +string.format("%#-+6.1e", -1) == "-1.0e+00" +string.format("%#-+6.1e", 2) == "+2.0e+00" +string.format("%#-+6.1e", -2) == "-2.0e+00" +string.format("%#-+6.1e", 3) == "+3.0e+00" +string.format("%#-+6.1e", -3) == "-3.0e+00" +string.format("%#-+6.1e", nan) == "+nan " +string.format("%#-+6.1e", inf) == "+inf " +string.format("%#-+6.1e", -inf) == "-inf " +string.format("%#-+6.1e", 100) == "+1.0e+02" +string.format("%#-+6.1e", 10000) == "+1.0e+04" +string.format("%#-+6.1e", 100000) == "+1.0e+05" +string.format("%#-+6.1e", 1000000) == "+1.0e+06" +string.format("%#-+6.1e", 10000000) == "+1.0e+07" +string.format("%#-+6.1e", 0.01) == "+1.0e-02" +string.format("%#-+6.1e", 0.0001) == "+1.0e-04" +string.format("%#-+6.1e", 1e-05) == "+1.0e-05" +string.format("%#-+6.1e", 1e-06) == "+1.0e-06" +string.format("%#-+6.1e", 1e-07) == "+1.0e-07" +string.format("%#-+6.1e", 123.456) == "+1.2e+02" +string.format("%#-+6.1e", 1234560000) == "+1.2e+09" +string.format("%#-+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%#-+6.1e", 123.456789123) == "+1.2e+02" +string.format("%#-+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%#-+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%#-+6.6e", nan) == "+nan " +string.format("%#-+6.6e", inf) == "+inf " +string.format("%#-+6.6e", -inf) == "-inf " +string.format("%#-+20e", 0) == "+0.000000e+00 " +string.format("%#-+20e", 1) == "+1.000000e+00 " +string.format("%#-+20e", -1) == "-1.000000e+00 " +string.format("%#-+20e", 2) == "+2.000000e+00 " +string.format("%#-+20e", -2) == "-2.000000e+00 " +string.format("%#-+20e", 3) == "+3.000000e+00 " +string.format("%#-+20e", -3) == "-3.000000e+00 " +string.format("%#-+20e", nan) == "+nan " +string.format("%#-+20e", inf) == "+inf " +string.format("%#-+20e", -inf) == "-inf " +string.format("%#-+20e", 100) == "+1.000000e+02 " +string.format("%#-+20e", 10000) == "+1.000000e+04 " +string.format("%#-+20e", 100000) == "+1.000000e+05 " +string.format("%#-+20e", 1000000) == "+1.000000e+06 " +string.format("%#-+20e", 10000000) == "+1.000000e+07 " +string.format("%#-+20e", 0.01) == "+1.000000e-02 " +string.format("%#-+20e", 0.0001) == "+1.000000e-04 " +string.format("%#-+20e", 1e-05) == "+1.000000e-05 " +string.format("%#-+20e", 1e-06) == "+1.000000e-06 " +string.format("%#-+20e", 1e-07) == "+1.000000e-07 " +string.format("%#-+20e", 123.456) == "+1.234560e+02 " +string.format("%#-+20e", 1234560000) == "+1.234560e+09 " +string.format("%#-+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%#-+20e", 123.456789123) == "+1.234568e+02 " +string.format("%#-+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%#-+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%#-+20.0e", 0) == "+0.e+00 " +string.format("%#-+20.0e", 1) == "+1.e+00 " +string.format("%#-+20.0e", -1) == "-1.e+00 " +string.format("%#-+20.0e", 2) == "+2.e+00 " +string.format("%#-+20.0e", -2) == "-2.e+00 " +string.format("%#-+20.0e", 3) == "+3.e+00 " +string.format("%#-+20.0e", -3) == "-3.e+00 " +string.format("%#-+20.0e", nan) == "+nan " +string.format("%#-+20.0e", inf) == "+inf " +string.format("%#-+20.0e", -inf) == "-inf " +string.format("%#-+20.0e", 100) == "+1.e+02 " +string.format("%#-+20.0e", 10000) == "+1.e+04 " +string.format("%#-+20.0e", 100000) == "+1.e+05 " +string.format("%#-+20.0e", 1000000) == "+1.e+06 " +string.format("%#-+20.0e", 10000000) == "+1.e+07 " +string.format("%#-+20.0e", 0.01) == "+1.e-02 " +string.format("%#-+20.0e", 0.0001) == "+1.e-04 " +string.format("%#-+20.0e", 1e-05) == "+1.e-05 " +string.format("%#-+20.0e", 1e-06) == "+1.e-06 " +string.format("%#-+20.0e", 1e-07) == "+1.e-07 " +string.format("%#-+20.0e", 123.456) == "+1.e+02 " +string.format("%#-+20.0e", 1234560000) == "+1.e+09 " +string.format("%#-+20.0e", 1.23456e-05) == "+1.e-05 " +string.format("%#-+20.0e", 123.456789123) == "+1.e+02 " +string.format("%#-+20.0e", 1234567891.23) == "+1.e+09 " +string.format("%#-+20.0e", 1.23456789123e-05) == "+1.e-05 " +string.format("%#-+20.1e", 0) == "+0.0e+00 " +string.format("%#-+20.1e", 1) == "+1.0e+00 " +string.format("%#-+20.1e", -1) == "-1.0e+00 " +string.format("%#-+20.1e", 2) == "+2.0e+00 " +string.format("%#-+20.1e", -2) == "-2.0e+00 " +string.format("%#-+20.1e", 3) == "+3.0e+00 " +string.format("%#-+20.1e", -3) == "-3.0e+00 " +string.format("%#-+20.1e", nan) == "+nan " +string.format("%#-+20.1e", inf) == "+inf " +string.format("%#-+20.1e", -inf) == "-inf " +string.format("%#-+20.1e", 100) == "+1.0e+02 " +string.format("%#-+20.1e", 10000) == "+1.0e+04 " +string.format("%#-+20.1e", 100000) == "+1.0e+05 " +string.format("%#-+20.1e", 1000000) == "+1.0e+06 " +string.format("%#-+20.1e", 10000000) == "+1.0e+07 " +string.format("%#-+20.1e", 0.01) == "+1.0e-02 " +string.format("%#-+20.1e", 0.0001) == "+1.0e-04 " +string.format("%#-+20.1e", 1e-05) == "+1.0e-05 " +string.format("%#-+20.1e", 1e-06) == "+1.0e-06 " +string.format("%#-+20.1e", 1e-07) == "+1.0e-07 " +string.format("%#-+20.1e", 123.456) == "+1.2e+02 " +string.format("%#-+20.1e", 1234560000) == "+1.2e+09 " +string.format("%#-+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%#-+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%#-+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%#-+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%#-+20.6e", 0) == "+0.000000e+00 " +string.format("%#-+20.6e", 1) == "+1.000000e+00 " +string.format("%#-+20.6e", -1) == "-1.000000e+00 " +string.format("%#-+20.6e", 2) == "+2.000000e+00 " +string.format("%#-+20.6e", -2) == "-2.000000e+00 " +string.format("%#-+20.6e", 3) == "+3.000000e+00 " +string.format("%#-+20.6e", -3) == "-3.000000e+00 " +string.format("%#-+20.6e", nan) == "+nan " +string.format("%#-+20.6e", inf) == "+inf " +string.format("%#-+20.6e", -inf) == "-inf " +string.format("%#-+20.6e", 100) == "+1.000000e+02 " +string.format("%#-+20.6e", 10000) == "+1.000000e+04 " +string.format("%#-+20.6e", 100000) == "+1.000000e+05 " +string.format("%#-+20.6e", 1000000) == "+1.000000e+06 " +string.format("%#-+20.6e", 10000000) == "+1.000000e+07 " +string.format("%#-+20.6e", 0.01) == "+1.000000e-02 " +string.format("%#-+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%#-+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%#-+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%#-+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%#-+20.6e", 123.456) == "+1.234560e+02 " +string.format("%#-+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%#-+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%#-+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%#-+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%#-+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%# e", 0) == " 0.000000e+00" +string.format("%# e", 1) == " 1.000000e+00" +string.format("%# e", -1) == "-1.000000e+00" +string.format("%# e", 2) == " 2.000000e+00" +string.format("%# e", -2) == "-2.000000e+00" +string.format("%# e", 3) == " 3.000000e+00" +string.format("%# e", -3) == "-3.000000e+00" +string.format("%# e", nan) == " nan" +string.format("%# e", inf) == " inf" +string.format("%# e", -inf) == "-inf" +string.format("%# e", 100) == " 1.000000e+02" +string.format("%# e", 10000) == " 1.000000e+04" +string.format("%# e", 100000) == " 1.000000e+05" +string.format("%# e", 1000000) == " 1.000000e+06" +string.format("%# e", 10000000) == " 1.000000e+07" +string.format("%# e", 0.01) == " 1.000000e-02" +string.format("%# e", 0.0001) == " 1.000000e-04" +string.format("%# e", 1e-05) == " 1.000000e-05" +string.format("%# e", 1e-06) == " 1.000000e-06" +string.format("%# e", 1e-07) == " 1.000000e-07" +string.format("%# e", 123.456) == " 1.234560e+02" +string.format("%# e", 1234560000) == " 1.234560e+09" +string.format("%# e", 1.23456e-05) == " 1.234560e-05" +string.format("%# e", 123.456789123) == " 1.234568e+02" +string.format("%# e", 1234567891.23) == " 1.234568e+09" +string.format("%# e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%# .0e", 0) == " 0.e+00" +string.format("%# .0e", 1) == " 1.e+00" +string.format("%# .0e", -1) == "-1.e+00" +string.format("%# .0e", 2) == " 2.e+00" +string.format("%# .0e", -2) == "-2.e+00" +string.format("%# .0e", 3) == " 3.e+00" +string.format("%# .0e", -3) == "-3.e+00" +string.format("%# .0e", 100) == " 1.e+02" +string.format("%# .0e", 10000) == " 1.e+04" +string.format("%# .0e", 100000) == " 1.e+05" +string.format("%# .0e", 1000000) == " 1.e+06" +string.format("%# .0e", 10000000) == " 1.e+07" +string.format("%# .0e", 0.01) == " 1.e-02" +string.format("%# .0e", 0.0001) == " 1.e-04" +string.format("%# .0e", 1e-05) == " 1.e-05" +string.format("%# .0e", 1e-06) == " 1.e-06" +string.format("%# .0e", 1e-07) == " 1.e-07" +string.format("%# .0e", 123.456) == " 1.e+02" +string.format("%# .0e", 1234560000) == " 1.e+09" +string.format("%# .0e", 1.23456e-05) == " 1.e-05" +string.format("%# .0e", 123.456789123) == " 1.e+02" +string.format("%# .0e", 1234567891.23) == " 1.e+09" +string.format("%# .0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# .1e", 0) == " 0.0e+00" +string.format("%# .1e", 1) == " 1.0e+00" +string.format("%# .1e", -1) == "-1.0e+00" +string.format("%# .1e", 2) == " 2.0e+00" +string.format("%# .1e", -2) == "-2.0e+00" +string.format("%# .1e", 3) == " 3.0e+00" +string.format("%# .1e", -3) == "-3.0e+00" +string.format("%# .1e", 100) == " 1.0e+02" +string.format("%# .1e", 10000) == " 1.0e+04" +string.format("%# .1e", 100000) == " 1.0e+05" +string.format("%# .1e", 1000000) == " 1.0e+06" +string.format("%# .1e", 10000000) == " 1.0e+07" +string.format("%# .1e", 0.01) == " 1.0e-02" +string.format("%# .1e", 0.0001) == " 1.0e-04" +string.format("%# .1e", 1e-05) == " 1.0e-05" +string.format("%# .1e", 1e-06) == " 1.0e-06" +string.format("%# .1e", 1e-07) == " 1.0e-07" +string.format("%# .1e", 123.456) == " 1.2e+02" +string.format("%# .1e", 1234560000) == " 1.2e+09" +string.format("%# .1e", 1.23456e-05) == " 1.2e-05" +string.format("%# .1e", 123.456789123) == " 1.2e+02" +string.format("%# .1e", 1234567891.23) == " 1.2e+09" +string.format("%# .1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# 1.0e", 0) == " 0.e+00" +string.format("%# 1.0e", 1) == " 1.e+00" +string.format("%# 1.0e", -1) == "-1.e+00" +string.format("%# 1.0e", 2) == " 2.e+00" +string.format("%# 1.0e", -2) == "-2.e+00" +string.format("%# 1.0e", 3) == " 3.e+00" +string.format("%# 1.0e", -3) == "-3.e+00" +string.format("%# 1.0e", 100) == " 1.e+02" +string.format("%# 1.0e", 10000) == " 1.e+04" +string.format("%# 1.0e", 100000) == " 1.e+05" +string.format("%# 1.0e", 1000000) == " 1.e+06" +string.format("%# 1.0e", 10000000) == " 1.e+07" +string.format("%# 1.0e", 0.01) == " 1.e-02" +string.format("%# 1.0e", 0.0001) == " 1.e-04" +string.format("%# 1.0e", 1e-05) == " 1.e-05" +string.format("%# 1.0e", 1e-06) == " 1.e-06" +string.format("%# 1.0e", 1e-07) == " 1.e-07" +string.format("%# 1.0e", 123.456) == " 1.e+02" +string.format("%# 1.0e", 1234560000) == " 1.e+09" +string.format("%# 1.0e", 1.23456e-05) == " 1.e-05" +string.format("%# 1.0e", 123.456789123) == " 1.e+02" +string.format("%# 1.0e", 1234567891.23) == " 1.e+09" +string.format("%# 1.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# 1.1e", 0) == " 0.0e+00" +string.format("%# 1.1e", 1) == " 1.0e+00" +string.format("%# 1.1e", -1) == "-1.0e+00" +string.format("%# 1.1e", 2) == " 2.0e+00" +string.format("%# 1.1e", -2) == "-2.0e+00" +string.format("%# 1.1e", 3) == " 3.0e+00" +string.format("%# 1.1e", -3) == "-3.0e+00" +string.format("%# 1.1e", 100) == " 1.0e+02" +string.format("%# 1.1e", 10000) == " 1.0e+04" +string.format("%# 1.1e", 100000) == " 1.0e+05" +string.format("%# 1.1e", 1000000) == " 1.0e+06" +string.format("%# 1.1e", 10000000) == " 1.0e+07" +string.format("%# 1.1e", 0.01) == " 1.0e-02" +string.format("%# 1.1e", 0.0001) == " 1.0e-04" +string.format("%# 1.1e", 1e-05) == " 1.0e-05" +string.format("%# 1.1e", 1e-06) == " 1.0e-06" +string.format("%# 1.1e", 1e-07) == " 1.0e-07" +string.format("%# 1.1e", 123.456) == " 1.2e+02" +string.format("%# 1.1e", 1234560000) == " 1.2e+09" +string.format("%# 1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# 1.1e", 123.456789123) == " 1.2e+02" +string.format("%# 1.1e", 1234567891.23) == " 1.2e+09" +string.format("%# 1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# 2.0e", 0) == " 0.e+00" +string.format("%# 2.0e", 1) == " 1.e+00" +string.format("%# 2.0e", -1) == "-1.e+00" +string.format("%# 2.0e", 2) == " 2.e+00" +string.format("%# 2.0e", -2) == "-2.e+00" +string.format("%# 2.0e", 3) == " 3.e+00" +string.format("%# 2.0e", -3) == "-3.e+00" +string.format("%# 2.0e", 100) == " 1.e+02" +string.format("%# 2.0e", 10000) == " 1.e+04" +string.format("%# 2.0e", 100000) == " 1.e+05" +string.format("%# 2.0e", 1000000) == " 1.e+06" +string.format("%# 2.0e", 10000000) == " 1.e+07" +string.format("%# 2.0e", 0.01) == " 1.e-02" +string.format("%# 2.0e", 0.0001) == " 1.e-04" +string.format("%# 2.0e", 1e-05) == " 1.e-05" +string.format("%# 2.0e", 1e-06) == " 1.e-06" +string.format("%# 2.0e", 1e-07) == " 1.e-07" +string.format("%# 2.0e", 123.456) == " 1.e+02" +string.format("%# 2.0e", 1234560000) == " 1.e+09" +string.format("%# 2.0e", 1.23456e-05) == " 1.e-05" +string.format("%# 2.0e", 123.456789123) == " 1.e+02" +string.format("%# 2.0e", 1234567891.23) == " 1.e+09" +string.format("%# 2.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# 2.1e", 0) == " 0.0e+00" +string.format("%# 2.1e", 1) == " 1.0e+00" +string.format("%# 2.1e", -1) == "-1.0e+00" +string.format("%# 2.1e", 2) == " 2.0e+00" +string.format("%# 2.1e", -2) == "-2.0e+00" +string.format("%# 2.1e", 3) == " 3.0e+00" +string.format("%# 2.1e", -3) == "-3.0e+00" +string.format("%# 2.1e", 100) == " 1.0e+02" +string.format("%# 2.1e", 10000) == " 1.0e+04" +string.format("%# 2.1e", 100000) == " 1.0e+05" +string.format("%# 2.1e", 1000000) == " 1.0e+06" +string.format("%# 2.1e", 10000000) == " 1.0e+07" +string.format("%# 2.1e", 0.01) == " 1.0e-02" +string.format("%# 2.1e", 0.0001) == " 1.0e-04" +string.format("%# 2.1e", 1e-05) == " 1.0e-05" +string.format("%# 2.1e", 1e-06) == " 1.0e-06" +string.format("%# 2.1e", 1e-07) == " 1.0e-07" +string.format("%# 2.1e", 123.456) == " 1.2e+02" +string.format("%# 2.1e", 1234560000) == " 1.2e+09" +string.format("%# 2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# 2.1e", 123.456789123) == " 1.2e+02" +string.format("%# 2.1e", 1234567891.23) == " 1.2e+09" +string.format("%# 2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# 6e", nan) == " nan" +string.format("%# 6e", inf) == " inf" +string.format("%# 6e", -inf) == " -inf" +string.format("%# 6.0e", 0) == " 0.e+00" +string.format("%# 6.0e", 1) == " 1.e+00" +string.format("%# 6.0e", -1) == "-1.e+00" +string.format("%# 6.0e", 2) == " 2.e+00" +string.format("%# 6.0e", -2) == "-2.e+00" +string.format("%# 6.0e", 3) == " 3.e+00" +string.format("%# 6.0e", -3) == "-3.e+00" +string.format("%# 6.0e", nan) == " nan" +string.format("%# 6.0e", inf) == " inf" +string.format("%# 6.0e", -inf) == " -inf" +string.format("%# 6.0e", 100) == " 1.e+02" +string.format("%# 6.0e", 10000) == " 1.e+04" +string.format("%# 6.0e", 100000) == " 1.e+05" +string.format("%# 6.0e", 1000000) == " 1.e+06" +string.format("%# 6.0e", 10000000) == " 1.e+07" +string.format("%# 6.0e", 0.01) == " 1.e-02" +string.format("%# 6.0e", 0.0001) == " 1.e-04" +string.format("%# 6.0e", 1e-05) == " 1.e-05" +string.format("%# 6.0e", 1e-06) == " 1.e-06" +string.format("%# 6.0e", 1e-07) == " 1.e-07" +string.format("%# 6.0e", 123.456) == " 1.e+02" +string.format("%# 6.0e", 1234560000) == " 1.e+09" +string.format("%# 6.0e", 1.23456e-05) == " 1.e-05" +string.format("%# 6.0e", 123.456789123) == " 1.e+02" +string.format("%# 6.0e", 1234567891.23) == " 1.e+09" +string.format("%# 6.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# 6.1e", 0) == " 0.0e+00" +string.format("%# 6.1e", 1) == " 1.0e+00" +string.format("%# 6.1e", -1) == "-1.0e+00" +string.format("%# 6.1e", 2) == " 2.0e+00" +string.format("%# 6.1e", -2) == "-2.0e+00" +string.format("%# 6.1e", 3) == " 3.0e+00" +string.format("%# 6.1e", -3) == "-3.0e+00" +string.format("%# 6.1e", nan) == " nan" +string.format("%# 6.1e", inf) == " inf" +string.format("%# 6.1e", -inf) == " -inf" +string.format("%# 6.1e", 100) == " 1.0e+02" +string.format("%# 6.1e", 10000) == " 1.0e+04" +string.format("%# 6.1e", 100000) == " 1.0e+05" +string.format("%# 6.1e", 1000000) == " 1.0e+06" +string.format("%# 6.1e", 10000000) == " 1.0e+07" +string.format("%# 6.1e", 0.01) == " 1.0e-02" +string.format("%# 6.1e", 0.0001) == " 1.0e-04" +string.format("%# 6.1e", 1e-05) == " 1.0e-05" +string.format("%# 6.1e", 1e-06) == " 1.0e-06" +string.format("%# 6.1e", 1e-07) == " 1.0e-07" +string.format("%# 6.1e", 123.456) == " 1.2e+02" +string.format("%# 6.1e", 1234560000) == " 1.2e+09" +string.format("%# 6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# 6.1e", 123.456789123) == " 1.2e+02" +string.format("%# 6.1e", 1234567891.23) == " 1.2e+09" +string.format("%# 6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# 6.6e", nan) == " nan" +string.format("%# 6.6e", inf) == " inf" +string.format("%# 6.6e", -inf) == " -inf" +string.format("%# 20e", 0) == " 0.000000e+00" +string.format("%# 20e", 1) == " 1.000000e+00" +string.format("%# 20e", -1) == " -1.000000e+00" +string.format("%# 20e", 2) == " 2.000000e+00" +string.format("%# 20e", -2) == " -2.000000e+00" +string.format("%# 20e", 3) == " 3.000000e+00" +string.format("%# 20e", -3) == " -3.000000e+00" +string.format("%# 20e", nan) == " nan" +string.format("%# 20e", inf) == " inf" +string.format("%# 20e", -inf) == " -inf" +string.format("%# 20e", 100) == " 1.000000e+02" +string.format("%# 20e", 10000) == " 1.000000e+04" +string.format("%# 20e", 100000) == " 1.000000e+05" +string.format("%# 20e", 1000000) == " 1.000000e+06" +string.format("%# 20e", 10000000) == " 1.000000e+07" +string.format("%# 20e", 0.01) == " 1.000000e-02" +string.format("%# 20e", 0.0001) == " 1.000000e-04" +string.format("%# 20e", 1e-05) == " 1.000000e-05" +string.format("%# 20e", 1e-06) == " 1.000000e-06" +string.format("%# 20e", 1e-07) == " 1.000000e-07" +string.format("%# 20e", 123.456) == " 1.234560e+02" +string.format("%# 20e", 1234560000) == " 1.234560e+09" +string.format("%# 20e", 1.23456e-05) == " 1.234560e-05" +string.format("%# 20e", 123.456789123) == " 1.234568e+02" +string.format("%# 20e", 1234567891.23) == " 1.234568e+09" +string.format("%# 20e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%# 20.0e", 0) == " 0.e+00" +string.format("%# 20.0e", 1) == " 1.e+00" +string.format("%# 20.0e", -1) == " -1.e+00" +string.format("%# 20.0e", 2) == " 2.e+00" +string.format("%# 20.0e", -2) == " -2.e+00" +string.format("%# 20.0e", 3) == " 3.e+00" +string.format("%# 20.0e", -3) == " -3.e+00" +string.format("%# 20.0e", nan) == " nan" +string.format("%# 20.0e", inf) == " inf" +string.format("%# 20.0e", -inf) == " -inf" +string.format("%# 20.0e", 100) == " 1.e+02" +string.format("%# 20.0e", 10000) == " 1.e+04" +string.format("%# 20.0e", 100000) == " 1.e+05" +string.format("%# 20.0e", 1000000) == " 1.e+06" +string.format("%# 20.0e", 10000000) == " 1.e+07" +string.format("%# 20.0e", 0.01) == " 1.e-02" +string.format("%# 20.0e", 0.0001) == " 1.e-04" +string.format("%# 20.0e", 1e-05) == " 1.e-05" +string.format("%# 20.0e", 1e-06) == " 1.e-06" +string.format("%# 20.0e", 1e-07) == " 1.e-07" +string.format("%# 20.0e", 123.456) == " 1.e+02" +string.format("%# 20.0e", 1234560000) == " 1.e+09" +string.format("%# 20.0e", 1.23456e-05) == " 1.e-05" +string.format("%# 20.0e", 123.456789123) == " 1.e+02" +string.format("%# 20.0e", 1234567891.23) == " 1.e+09" +string.format("%# 20.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# 20.1e", 0) == " 0.0e+00" +string.format("%# 20.1e", 1) == " 1.0e+00" +string.format("%# 20.1e", -1) == " -1.0e+00" +string.format("%# 20.1e", 2) == " 2.0e+00" +string.format("%# 20.1e", -2) == " -2.0e+00" +string.format("%# 20.1e", 3) == " 3.0e+00" +string.format("%# 20.1e", -3) == " -3.0e+00" +string.format("%# 20.1e", nan) == " nan" +string.format("%# 20.1e", inf) == " inf" +string.format("%# 20.1e", -inf) == " -inf" +string.format("%# 20.1e", 100) == " 1.0e+02" +string.format("%# 20.1e", 10000) == " 1.0e+04" +string.format("%# 20.1e", 100000) == " 1.0e+05" +string.format("%# 20.1e", 1000000) == " 1.0e+06" +string.format("%# 20.1e", 10000000) == " 1.0e+07" +string.format("%# 20.1e", 0.01) == " 1.0e-02" +string.format("%# 20.1e", 0.0001) == " 1.0e-04" +string.format("%# 20.1e", 1e-05) == " 1.0e-05" +string.format("%# 20.1e", 1e-06) == " 1.0e-06" +string.format("%# 20.1e", 1e-07) == " 1.0e-07" +string.format("%# 20.1e", 123.456) == " 1.2e+02" +string.format("%# 20.1e", 1234560000) == " 1.2e+09" +string.format("%# 20.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# 20.1e", 123.456789123) == " 1.2e+02" +string.format("%# 20.1e", 1234567891.23) == " 1.2e+09" +string.format("%# 20.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# 20.6e", 0) == " 0.000000e+00" +string.format("%# 20.6e", 1) == " 1.000000e+00" +string.format("%# 20.6e", -1) == " -1.000000e+00" +string.format("%# 20.6e", 2) == " 2.000000e+00" +string.format("%# 20.6e", -2) == " -2.000000e+00" +string.format("%# 20.6e", 3) == " 3.000000e+00" +string.format("%# 20.6e", -3) == " -3.000000e+00" +string.format("%# 20.6e", nan) == " nan" +string.format("%# 20.6e", inf) == " inf" +string.format("%# 20.6e", -inf) == " -inf" +string.format("%# 20.6e", 100) == " 1.000000e+02" +string.format("%# 20.6e", 10000) == " 1.000000e+04" +string.format("%# 20.6e", 100000) == " 1.000000e+05" +string.format("%# 20.6e", 1000000) == " 1.000000e+06" +string.format("%# 20.6e", 10000000) == " 1.000000e+07" +string.format("%# 20.6e", 0.01) == " 1.000000e-02" +string.format("%# 20.6e", 0.0001) == " 1.000000e-04" +string.format("%# 20.6e", 1e-05) == " 1.000000e-05" +string.format("%# 20.6e", 1e-06) == " 1.000000e-06" +string.format("%# 20.6e", 1e-07) == " 1.000000e-07" +string.format("%# 20.6e", 123.456) == " 1.234560e+02" +string.format("%# 20.6e", 1234560000) == " 1.234560e+09" +string.format("%# 20.6e", 1.23456e-05) == " 1.234560e-05" +string.format("%# 20.6e", 123.456789123) == " 1.234568e+02" +string.format("%# 20.6e", 1234567891.23) == " 1.234568e+09" +string.format("%# 20.6e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%# +e", 0) == "+0.000000e+00" +string.format("%# +e", 1) == "+1.000000e+00" +string.format("%# +e", -1) == "-1.000000e+00" +string.format("%# +e", 2) == "+2.000000e+00" +string.format("%# +e", -2) == "-2.000000e+00" +string.format("%# +e", 3) == "+3.000000e+00" +string.format("%# +e", -3) == "-3.000000e+00" +string.format("%# +e", nan) == "+nan" +string.format("%# +e", inf) == "+inf" +string.format("%# +e", -inf) == "-inf" +string.format("%# +e", 100) == "+1.000000e+02" +string.format("%# +e", 10000) == "+1.000000e+04" +string.format("%# +e", 100000) == "+1.000000e+05" +string.format("%# +e", 1000000) == "+1.000000e+06" +string.format("%# +e", 10000000) == "+1.000000e+07" +string.format("%# +e", 0.01) == "+1.000000e-02" +string.format("%# +e", 0.0001) == "+1.000000e-04" +string.format("%# +e", 1e-05) == "+1.000000e-05" +string.format("%# +e", 1e-06) == "+1.000000e-06" +string.format("%# +e", 1e-07) == "+1.000000e-07" +string.format("%# +e", 123.456) == "+1.234560e+02" +string.format("%# +e", 1234560000) == "+1.234560e+09" +string.format("%# +e", 1.23456e-05) == "+1.234560e-05" +string.format("%# +e", 123.456789123) == "+1.234568e+02" +string.format("%# +e", 1234567891.23) == "+1.234568e+09" +string.format("%# +e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%# +.0e", 0) == "+0.e+00" +string.format("%# +.0e", 1) == "+1.e+00" +string.format("%# +.0e", -1) == "-1.e+00" +string.format("%# +.0e", 2) == "+2.e+00" +string.format("%# +.0e", -2) == "-2.e+00" +string.format("%# +.0e", 3) == "+3.e+00" +string.format("%# +.0e", -3) == "-3.e+00" +string.format("%# +.0e", 100) == "+1.e+02" +string.format("%# +.0e", 10000) == "+1.e+04" +string.format("%# +.0e", 100000) == "+1.e+05" +string.format("%# +.0e", 1000000) == "+1.e+06" +string.format("%# +.0e", 10000000) == "+1.e+07" +string.format("%# +.0e", 0.01) == "+1.e-02" +string.format("%# +.0e", 0.0001) == "+1.e-04" +string.format("%# +.0e", 1e-05) == "+1.e-05" +string.format("%# +.0e", 1e-06) == "+1.e-06" +string.format("%# +.0e", 1e-07) == "+1.e-07" +string.format("%# +.0e", 123.456) == "+1.e+02" +string.format("%# +.0e", 1234560000) == "+1.e+09" +string.format("%# +.0e", 1.23456e-05) == "+1.e-05" +string.format("%# +.0e", 123.456789123) == "+1.e+02" +string.format("%# +.0e", 1234567891.23) == "+1.e+09" +string.format("%# +.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# +.1e", 0) == "+0.0e+00" +string.format("%# +.1e", 1) == "+1.0e+00" +string.format("%# +.1e", -1) == "-1.0e+00" +string.format("%# +.1e", 2) == "+2.0e+00" +string.format("%# +.1e", -2) == "-2.0e+00" +string.format("%# +.1e", 3) == "+3.0e+00" +string.format("%# +.1e", -3) == "-3.0e+00" +string.format("%# +.1e", 100) == "+1.0e+02" +string.format("%# +.1e", 10000) == "+1.0e+04" +string.format("%# +.1e", 100000) == "+1.0e+05" +string.format("%# +.1e", 1000000) == "+1.0e+06" +string.format("%# +.1e", 10000000) == "+1.0e+07" +string.format("%# +.1e", 0.01) == "+1.0e-02" +string.format("%# +.1e", 0.0001) == "+1.0e-04" +string.format("%# +.1e", 1e-05) == "+1.0e-05" +string.format("%# +.1e", 1e-06) == "+1.0e-06" +string.format("%# +.1e", 1e-07) == "+1.0e-07" +string.format("%# +.1e", 123.456) == "+1.2e+02" +string.format("%# +.1e", 1234560000) == "+1.2e+09" +string.format("%# +.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# +.1e", 123.456789123) == "+1.2e+02" +string.format("%# +.1e", 1234567891.23) == "+1.2e+09" +string.format("%# +.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# +1.0e", 0) == "+0.e+00" +string.format("%# +1.0e", 1) == "+1.e+00" +string.format("%# +1.0e", -1) == "-1.e+00" +string.format("%# +1.0e", 2) == "+2.e+00" +string.format("%# +1.0e", -2) == "-2.e+00" +string.format("%# +1.0e", 3) == "+3.e+00" +string.format("%# +1.0e", -3) == "-3.e+00" +string.format("%# +1.0e", 100) == "+1.e+02" +string.format("%# +1.0e", 10000) == "+1.e+04" +string.format("%# +1.0e", 100000) == "+1.e+05" +string.format("%# +1.0e", 1000000) == "+1.e+06" +string.format("%# +1.0e", 10000000) == "+1.e+07" +string.format("%# +1.0e", 0.01) == "+1.e-02" +string.format("%# +1.0e", 0.0001) == "+1.e-04" +string.format("%# +1.0e", 1e-05) == "+1.e-05" +string.format("%# +1.0e", 1e-06) == "+1.e-06" +string.format("%# +1.0e", 1e-07) == "+1.e-07" +string.format("%# +1.0e", 123.456) == "+1.e+02" +string.format("%# +1.0e", 1234560000) == "+1.e+09" +string.format("%# +1.0e", 1.23456e-05) == "+1.e-05" +string.format("%# +1.0e", 123.456789123) == "+1.e+02" +string.format("%# +1.0e", 1234567891.23) == "+1.e+09" +string.format("%# +1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# +1.1e", 0) == "+0.0e+00" +string.format("%# +1.1e", 1) == "+1.0e+00" +string.format("%# +1.1e", -1) == "-1.0e+00" +string.format("%# +1.1e", 2) == "+2.0e+00" +string.format("%# +1.1e", -2) == "-2.0e+00" +string.format("%# +1.1e", 3) == "+3.0e+00" +string.format("%# +1.1e", -3) == "-3.0e+00" +string.format("%# +1.1e", 100) == "+1.0e+02" +string.format("%# +1.1e", 10000) == "+1.0e+04" +string.format("%# +1.1e", 100000) == "+1.0e+05" +string.format("%# +1.1e", 1000000) == "+1.0e+06" +string.format("%# +1.1e", 10000000) == "+1.0e+07" +string.format("%# +1.1e", 0.01) == "+1.0e-02" +string.format("%# +1.1e", 0.0001) == "+1.0e-04" +string.format("%# +1.1e", 1e-05) == "+1.0e-05" +string.format("%# +1.1e", 1e-06) == "+1.0e-06" +string.format("%# +1.1e", 1e-07) == "+1.0e-07" +string.format("%# +1.1e", 123.456) == "+1.2e+02" +string.format("%# +1.1e", 1234560000) == "+1.2e+09" +string.format("%# +1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# +1.1e", 123.456789123) == "+1.2e+02" +string.format("%# +1.1e", 1234567891.23) == "+1.2e+09" +string.format("%# +1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# +2.0e", 0) == "+0.e+00" +string.format("%# +2.0e", 1) == "+1.e+00" +string.format("%# +2.0e", -1) == "-1.e+00" +string.format("%# +2.0e", 2) == "+2.e+00" +string.format("%# +2.0e", -2) == "-2.e+00" +string.format("%# +2.0e", 3) == "+3.e+00" +string.format("%# +2.0e", -3) == "-3.e+00" +string.format("%# +2.0e", 100) == "+1.e+02" +string.format("%# +2.0e", 10000) == "+1.e+04" +string.format("%# +2.0e", 100000) == "+1.e+05" +string.format("%# +2.0e", 1000000) == "+1.e+06" +string.format("%# +2.0e", 10000000) == "+1.e+07" +string.format("%# +2.0e", 0.01) == "+1.e-02" +string.format("%# +2.0e", 0.0001) == "+1.e-04" +string.format("%# +2.0e", 1e-05) == "+1.e-05" +string.format("%# +2.0e", 1e-06) == "+1.e-06" +string.format("%# +2.0e", 1e-07) == "+1.e-07" +string.format("%# +2.0e", 123.456) == "+1.e+02" +string.format("%# +2.0e", 1234560000) == "+1.e+09" +string.format("%# +2.0e", 1.23456e-05) == "+1.e-05" +string.format("%# +2.0e", 123.456789123) == "+1.e+02" +string.format("%# +2.0e", 1234567891.23) == "+1.e+09" +string.format("%# +2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# +2.1e", 0) == "+0.0e+00" +string.format("%# +2.1e", 1) == "+1.0e+00" +string.format("%# +2.1e", -1) == "-1.0e+00" +string.format("%# +2.1e", 2) == "+2.0e+00" +string.format("%# +2.1e", -2) == "-2.0e+00" +string.format("%# +2.1e", 3) == "+3.0e+00" +string.format("%# +2.1e", -3) == "-3.0e+00" +string.format("%# +2.1e", 100) == "+1.0e+02" +string.format("%# +2.1e", 10000) == "+1.0e+04" +string.format("%# +2.1e", 100000) == "+1.0e+05" +string.format("%# +2.1e", 1000000) == "+1.0e+06" +string.format("%# +2.1e", 10000000) == "+1.0e+07" +string.format("%# +2.1e", 0.01) == "+1.0e-02" +string.format("%# +2.1e", 0.0001) == "+1.0e-04" +string.format("%# +2.1e", 1e-05) == "+1.0e-05" +string.format("%# +2.1e", 1e-06) == "+1.0e-06" +string.format("%# +2.1e", 1e-07) == "+1.0e-07" +string.format("%# +2.1e", 123.456) == "+1.2e+02" +string.format("%# +2.1e", 1234560000) == "+1.2e+09" +string.format("%# +2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# +2.1e", 123.456789123) == "+1.2e+02" +string.format("%# +2.1e", 1234567891.23) == "+1.2e+09" +string.format("%# +2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# +6e", nan) == " +nan" +string.format("%# +6e", inf) == " +inf" +string.format("%# +6e", -inf) == " -inf" +string.format("%# +6.0e", 0) == "+0.e+00" +string.format("%# +6.0e", 1) == "+1.e+00" +string.format("%# +6.0e", -1) == "-1.e+00" +string.format("%# +6.0e", 2) == "+2.e+00" +string.format("%# +6.0e", -2) == "-2.e+00" +string.format("%# +6.0e", 3) == "+3.e+00" +string.format("%# +6.0e", -3) == "-3.e+00" +string.format("%# +6.0e", nan) == " +nan" +string.format("%# +6.0e", inf) == " +inf" +string.format("%# +6.0e", -inf) == " -inf" +string.format("%# +6.0e", 100) == "+1.e+02" +string.format("%# +6.0e", 10000) == "+1.e+04" +string.format("%# +6.0e", 100000) == "+1.e+05" +string.format("%# +6.0e", 1000000) == "+1.e+06" +string.format("%# +6.0e", 10000000) == "+1.e+07" +string.format("%# +6.0e", 0.01) == "+1.e-02" +string.format("%# +6.0e", 0.0001) == "+1.e-04" +string.format("%# +6.0e", 1e-05) == "+1.e-05" +string.format("%# +6.0e", 1e-06) == "+1.e-06" +string.format("%# +6.0e", 1e-07) == "+1.e-07" +string.format("%# +6.0e", 123.456) == "+1.e+02" +string.format("%# +6.0e", 1234560000) == "+1.e+09" +string.format("%# +6.0e", 1.23456e-05) == "+1.e-05" +string.format("%# +6.0e", 123.456789123) == "+1.e+02" +string.format("%# +6.0e", 1234567891.23) == "+1.e+09" +string.format("%# +6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# +6.1e", 0) == "+0.0e+00" +string.format("%# +6.1e", 1) == "+1.0e+00" +string.format("%# +6.1e", -1) == "-1.0e+00" +string.format("%# +6.1e", 2) == "+2.0e+00" +string.format("%# +6.1e", -2) == "-2.0e+00" +string.format("%# +6.1e", 3) == "+3.0e+00" +string.format("%# +6.1e", -3) == "-3.0e+00" +string.format("%# +6.1e", nan) == " +nan" +string.format("%# +6.1e", inf) == " +inf" +string.format("%# +6.1e", -inf) == " -inf" +string.format("%# +6.1e", 100) == "+1.0e+02" +string.format("%# +6.1e", 10000) == "+1.0e+04" +string.format("%# +6.1e", 100000) == "+1.0e+05" +string.format("%# +6.1e", 1000000) == "+1.0e+06" +string.format("%# +6.1e", 10000000) == "+1.0e+07" +string.format("%# +6.1e", 0.01) == "+1.0e-02" +string.format("%# +6.1e", 0.0001) == "+1.0e-04" +string.format("%# +6.1e", 1e-05) == "+1.0e-05" +string.format("%# +6.1e", 1e-06) == "+1.0e-06" +string.format("%# +6.1e", 1e-07) == "+1.0e-07" +string.format("%# +6.1e", 123.456) == "+1.2e+02" +string.format("%# +6.1e", 1234560000) == "+1.2e+09" +string.format("%# +6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# +6.1e", 123.456789123) == "+1.2e+02" +string.format("%# +6.1e", 1234567891.23) == "+1.2e+09" +string.format("%# +6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# +6.6e", nan) == " +nan" +string.format("%# +6.6e", inf) == " +inf" +string.format("%# +6.6e", -inf) == " -inf" +string.format("%# +20e", 0) == " +0.000000e+00" +string.format("%# +20e", 1) == " +1.000000e+00" +string.format("%# +20e", -1) == " -1.000000e+00" +string.format("%# +20e", 2) == " +2.000000e+00" +string.format("%# +20e", -2) == " -2.000000e+00" +string.format("%# +20e", 3) == " +3.000000e+00" +string.format("%# +20e", -3) == " -3.000000e+00" +string.format("%# +20e", nan) == " +nan" +string.format("%# +20e", inf) == " +inf" +string.format("%# +20e", -inf) == " -inf" +string.format("%# +20e", 100) == " +1.000000e+02" +string.format("%# +20e", 10000) == " +1.000000e+04" +string.format("%# +20e", 100000) == " +1.000000e+05" +string.format("%# +20e", 1000000) == " +1.000000e+06" +string.format("%# +20e", 10000000) == " +1.000000e+07" +string.format("%# +20e", 0.01) == " +1.000000e-02" +string.format("%# +20e", 0.0001) == " +1.000000e-04" +string.format("%# +20e", 1e-05) == " +1.000000e-05" +string.format("%# +20e", 1e-06) == " +1.000000e-06" +string.format("%# +20e", 1e-07) == " +1.000000e-07" +string.format("%# +20e", 123.456) == " +1.234560e+02" +string.format("%# +20e", 1234560000) == " +1.234560e+09" +string.format("%# +20e", 1.23456e-05) == " +1.234560e-05" +string.format("%# +20e", 123.456789123) == " +1.234568e+02" +string.format("%# +20e", 1234567891.23) == " +1.234568e+09" +string.format("%# +20e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%# +20.0e", 0) == " +0.e+00" +string.format("%# +20.0e", 1) == " +1.e+00" +string.format("%# +20.0e", -1) == " -1.e+00" +string.format("%# +20.0e", 2) == " +2.e+00" +string.format("%# +20.0e", -2) == " -2.e+00" +string.format("%# +20.0e", 3) == " +3.e+00" +string.format("%# +20.0e", -3) == " -3.e+00" +string.format("%# +20.0e", nan) == " +nan" +string.format("%# +20.0e", inf) == " +inf" +string.format("%# +20.0e", -inf) == " -inf" +string.format("%# +20.0e", 100) == " +1.e+02" +string.format("%# +20.0e", 10000) == " +1.e+04" +string.format("%# +20.0e", 100000) == " +1.e+05" +string.format("%# +20.0e", 1000000) == " +1.e+06" +string.format("%# +20.0e", 10000000) == " +1.e+07" +string.format("%# +20.0e", 0.01) == " +1.e-02" +string.format("%# +20.0e", 0.0001) == " +1.e-04" +string.format("%# +20.0e", 1e-05) == " +1.e-05" +string.format("%# +20.0e", 1e-06) == " +1.e-06" +string.format("%# +20.0e", 1e-07) == " +1.e-07" +string.format("%# +20.0e", 123.456) == " +1.e+02" +string.format("%# +20.0e", 1234560000) == " +1.e+09" +string.format("%# +20.0e", 1.23456e-05) == " +1.e-05" +string.format("%# +20.0e", 123.456789123) == " +1.e+02" +string.format("%# +20.0e", 1234567891.23) == " +1.e+09" +string.format("%# +20.0e", 1.23456789123e-05) == " +1.e-05" +string.format("%# +20.1e", 0) == " +0.0e+00" +string.format("%# +20.1e", 1) == " +1.0e+00" +string.format("%# +20.1e", -1) == " -1.0e+00" +string.format("%# +20.1e", 2) == " +2.0e+00" +string.format("%# +20.1e", -2) == " -2.0e+00" +string.format("%# +20.1e", 3) == " +3.0e+00" +string.format("%# +20.1e", -3) == " -3.0e+00" +string.format("%# +20.1e", nan) == " +nan" +string.format("%# +20.1e", inf) == " +inf" +string.format("%# +20.1e", -inf) == " -inf" +string.format("%# +20.1e", 100) == " +1.0e+02" +string.format("%# +20.1e", 10000) == " +1.0e+04" +string.format("%# +20.1e", 100000) == " +1.0e+05" +string.format("%# +20.1e", 1000000) == " +1.0e+06" +string.format("%# +20.1e", 10000000) == " +1.0e+07" +string.format("%# +20.1e", 0.01) == " +1.0e-02" +string.format("%# +20.1e", 0.0001) == " +1.0e-04" +string.format("%# +20.1e", 1e-05) == " +1.0e-05" +string.format("%# +20.1e", 1e-06) == " +1.0e-06" +string.format("%# +20.1e", 1e-07) == " +1.0e-07" +string.format("%# +20.1e", 123.456) == " +1.2e+02" +string.format("%# +20.1e", 1234560000) == " +1.2e+09" +string.format("%# +20.1e", 1.23456e-05) == " +1.2e-05" +string.format("%# +20.1e", 123.456789123) == " +1.2e+02" +string.format("%# +20.1e", 1234567891.23) == " +1.2e+09" +string.format("%# +20.1e", 1.23456789123e-05) == " +1.2e-05" +string.format("%# +20.6e", 0) == " +0.000000e+00" +string.format("%# +20.6e", 1) == " +1.000000e+00" +string.format("%# +20.6e", -1) == " -1.000000e+00" +string.format("%# +20.6e", 2) == " +2.000000e+00" +string.format("%# +20.6e", -2) == " -2.000000e+00" +string.format("%# +20.6e", 3) == " +3.000000e+00" +string.format("%# +20.6e", -3) == " -3.000000e+00" +string.format("%# +20.6e", nan) == " +nan" +string.format("%# +20.6e", inf) == " +inf" +string.format("%# +20.6e", -inf) == " -inf" +string.format("%# +20.6e", 100) == " +1.000000e+02" +string.format("%# +20.6e", 10000) == " +1.000000e+04" +string.format("%# +20.6e", 100000) == " +1.000000e+05" +string.format("%# +20.6e", 1000000) == " +1.000000e+06" +string.format("%# +20.6e", 10000000) == " +1.000000e+07" +string.format("%# +20.6e", 0.01) == " +1.000000e-02" +string.format("%# +20.6e", 0.0001) == " +1.000000e-04" +string.format("%# +20.6e", 1e-05) == " +1.000000e-05" +string.format("%# +20.6e", 1e-06) == " +1.000000e-06" +string.format("%# +20.6e", 1e-07) == " +1.000000e-07" +string.format("%# +20.6e", 123.456) == " +1.234560e+02" +string.format("%# +20.6e", 1234560000) == " +1.234560e+09" +string.format("%# +20.6e", 1.23456e-05) == " +1.234560e-05" +string.format("%# +20.6e", 123.456789123) == " +1.234568e+02" +string.format("%# +20.6e", 1234567891.23) == " +1.234568e+09" +string.format("%# +20.6e", 1.23456789123e-05) == " +1.234568e-05" +string.format("%# -e", 0) == " 0.000000e+00" +string.format("%# -e", 1) == " 1.000000e+00" +string.format("%# -e", -1) == "-1.000000e+00" +string.format("%# -e", 2) == " 2.000000e+00" +string.format("%# -e", -2) == "-2.000000e+00" +string.format("%# -e", 3) == " 3.000000e+00" +string.format("%# -e", -3) == "-3.000000e+00" +string.format("%# -e", nan) == " nan" +string.format("%# -e", inf) == " inf" +string.format("%# -e", -inf) == "-inf" +string.format("%# -e", 100) == " 1.000000e+02" +string.format("%# -e", 10000) == " 1.000000e+04" +string.format("%# -e", 100000) == " 1.000000e+05" +string.format("%# -e", 1000000) == " 1.000000e+06" +string.format("%# -e", 10000000) == " 1.000000e+07" +string.format("%# -e", 0.01) == " 1.000000e-02" +string.format("%# -e", 0.0001) == " 1.000000e-04" +string.format("%# -e", 1e-05) == " 1.000000e-05" +string.format("%# -e", 1e-06) == " 1.000000e-06" +string.format("%# -e", 1e-07) == " 1.000000e-07" +string.format("%# -e", 123.456) == " 1.234560e+02" +string.format("%# -e", 1234560000) == " 1.234560e+09" +string.format("%# -e", 1.23456e-05) == " 1.234560e-05" +string.format("%# -e", 123.456789123) == " 1.234568e+02" +string.format("%# -e", 1234567891.23) == " 1.234568e+09" +string.format("%# -e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%# -.0e", 0) == " 0.e+00" +string.format("%# -.0e", 1) == " 1.e+00" +string.format("%# -.0e", -1) == "-1.e+00" +string.format("%# -.0e", 2) == " 2.e+00" +string.format("%# -.0e", -2) == "-2.e+00" +string.format("%# -.0e", 3) == " 3.e+00" +string.format("%# -.0e", -3) == "-3.e+00" +string.format("%# -.0e", 100) == " 1.e+02" +string.format("%# -.0e", 10000) == " 1.e+04" +string.format("%# -.0e", 100000) == " 1.e+05" +string.format("%# -.0e", 1000000) == " 1.e+06" +string.format("%# -.0e", 10000000) == " 1.e+07" +string.format("%# -.0e", 0.01) == " 1.e-02" +string.format("%# -.0e", 0.0001) == " 1.e-04" +string.format("%# -.0e", 1e-05) == " 1.e-05" +string.format("%# -.0e", 1e-06) == " 1.e-06" +string.format("%# -.0e", 1e-07) == " 1.e-07" +string.format("%# -.0e", 123.456) == " 1.e+02" +string.format("%# -.0e", 1234560000) == " 1.e+09" +string.format("%# -.0e", 1.23456e-05) == " 1.e-05" +string.format("%# -.0e", 123.456789123) == " 1.e+02" +string.format("%# -.0e", 1234567891.23) == " 1.e+09" +string.format("%# -.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# -.1e", 0) == " 0.0e+00" +string.format("%# -.1e", 1) == " 1.0e+00" +string.format("%# -.1e", -1) == "-1.0e+00" +string.format("%# -.1e", 2) == " 2.0e+00" +string.format("%# -.1e", -2) == "-2.0e+00" +string.format("%# -.1e", 3) == " 3.0e+00" +string.format("%# -.1e", -3) == "-3.0e+00" +string.format("%# -.1e", 100) == " 1.0e+02" +string.format("%# -.1e", 10000) == " 1.0e+04" +string.format("%# -.1e", 100000) == " 1.0e+05" +string.format("%# -.1e", 1000000) == " 1.0e+06" +string.format("%# -.1e", 10000000) == " 1.0e+07" +string.format("%# -.1e", 0.01) == " 1.0e-02" +string.format("%# -.1e", 0.0001) == " 1.0e-04" +string.format("%# -.1e", 1e-05) == " 1.0e-05" +string.format("%# -.1e", 1e-06) == " 1.0e-06" +string.format("%# -.1e", 1e-07) == " 1.0e-07" +string.format("%# -.1e", 123.456) == " 1.2e+02" +string.format("%# -.1e", 1234560000) == " 1.2e+09" +string.format("%# -.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# -.1e", 123.456789123) == " 1.2e+02" +string.format("%# -.1e", 1234567891.23) == " 1.2e+09" +string.format("%# -.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# -1.0e", 0) == " 0.e+00" +string.format("%# -1.0e", 1) == " 1.e+00" +string.format("%# -1.0e", -1) == "-1.e+00" +string.format("%# -1.0e", 2) == " 2.e+00" +string.format("%# -1.0e", -2) == "-2.e+00" +string.format("%# -1.0e", 3) == " 3.e+00" +string.format("%# -1.0e", -3) == "-3.e+00" +string.format("%# -1.0e", 100) == " 1.e+02" +string.format("%# -1.0e", 10000) == " 1.e+04" +string.format("%# -1.0e", 100000) == " 1.e+05" +string.format("%# -1.0e", 1000000) == " 1.e+06" +string.format("%# -1.0e", 10000000) == " 1.e+07" +string.format("%# -1.0e", 0.01) == " 1.e-02" +string.format("%# -1.0e", 0.0001) == " 1.e-04" +string.format("%# -1.0e", 1e-05) == " 1.e-05" +string.format("%# -1.0e", 1e-06) == " 1.e-06" +string.format("%# -1.0e", 1e-07) == " 1.e-07" +string.format("%# -1.0e", 123.456) == " 1.e+02" +string.format("%# -1.0e", 1234560000) == " 1.e+09" +string.format("%# -1.0e", 1.23456e-05) == " 1.e-05" +string.format("%# -1.0e", 123.456789123) == " 1.e+02" +string.format("%# -1.0e", 1234567891.23) == " 1.e+09" +string.format("%# -1.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# -1.1e", 0) == " 0.0e+00" +string.format("%# -1.1e", 1) == " 1.0e+00" +string.format("%# -1.1e", -1) == "-1.0e+00" +string.format("%# -1.1e", 2) == " 2.0e+00" +string.format("%# -1.1e", -2) == "-2.0e+00" +string.format("%# -1.1e", 3) == " 3.0e+00" +string.format("%# -1.1e", -3) == "-3.0e+00" +string.format("%# -1.1e", 100) == " 1.0e+02" +string.format("%# -1.1e", 10000) == " 1.0e+04" +string.format("%# -1.1e", 100000) == " 1.0e+05" +string.format("%# -1.1e", 1000000) == " 1.0e+06" +string.format("%# -1.1e", 10000000) == " 1.0e+07" +string.format("%# -1.1e", 0.01) == " 1.0e-02" +string.format("%# -1.1e", 0.0001) == " 1.0e-04" +string.format("%# -1.1e", 1e-05) == " 1.0e-05" +string.format("%# -1.1e", 1e-06) == " 1.0e-06" +string.format("%# -1.1e", 1e-07) == " 1.0e-07" +string.format("%# -1.1e", 123.456) == " 1.2e+02" +string.format("%# -1.1e", 1234560000) == " 1.2e+09" +string.format("%# -1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# -1.1e", 123.456789123) == " 1.2e+02" +string.format("%# -1.1e", 1234567891.23) == " 1.2e+09" +string.format("%# -1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# -2.0e", 0) == " 0.e+00" +string.format("%# -2.0e", 1) == " 1.e+00" +string.format("%# -2.0e", -1) == "-1.e+00" +string.format("%# -2.0e", 2) == " 2.e+00" +string.format("%# -2.0e", -2) == "-2.e+00" +string.format("%# -2.0e", 3) == " 3.e+00" +string.format("%# -2.0e", -3) == "-3.e+00" +string.format("%# -2.0e", 100) == " 1.e+02" +string.format("%# -2.0e", 10000) == " 1.e+04" +string.format("%# -2.0e", 100000) == " 1.e+05" +string.format("%# -2.0e", 1000000) == " 1.e+06" +string.format("%# -2.0e", 10000000) == " 1.e+07" +string.format("%# -2.0e", 0.01) == " 1.e-02" +string.format("%# -2.0e", 0.0001) == " 1.e-04" +string.format("%# -2.0e", 1e-05) == " 1.e-05" +string.format("%# -2.0e", 1e-06) == " 1.e-06" +string.format("%# -2.0e", 1e-07) == " 1.e-07" +string.format("%# -2.0e", 123.456) == " 1.e+02" +string.format("%# -2.0e", 1234560000) == " 1.e+09" +string.format("%# -2.0e", 1.23456e-05) == " 1.e-05" +string.format("%# -2.0e", 123.456789123) == " 1.e+02" +string.format("%# -2.0e", 1234567891.23) == " 1.e+09" +string.format("%# -2.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# -2.1e", 0) == " 0.0e+00" +string.format("%# -2.1e", 1) == " 1.0e+00" +string.format("%# -2.1e", -1) == "-1.0e+00" +string.format("%# -2.1e", 2) == " 2.0e+00" +string.format("%# -2.1e", -2) == "-2.0e+00" +string.format("%# -2.1e", 3) == " 3.0e+00" +string.format("%# -2.1e", -3) == "-3.0e+00" +string.format("%# -2.1e", 100) == " 1.0e+02" +string.format("%# -2.1e", 10000) == " 1.0e+04" +string.format("%# -2.1e", 100000) == " 1.0e+05" +string.format("%# -2.1e", 1000000) == " 1.0e+06" +string.format("%# -2.1e", 10000000) == " 1.0e+07" +string.format("%# -2.1e", 0.01) == " 1.0e-02" +string.format("%# -2.1e", 0.0001) == " 1.0e-04" +string.format("%# -2.1e", 1e-05) == " 1.0e-05" +string.format("%# -2.1e", 1e-06) == " 1.0e-06" +string.format("%# -2.1e", 1e-07) == " 1.0e-07" +string.format("%# -2.1e", 123.456) == " 1.2e+02" +string.format("%# -2.1e", 1234560000) == " 1.2e+09" +string.format("%# -2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# -2.1e", 123.456789123) == " 1.2e+02" +string.format("%# -2.1e", 1234567891.23) == " 1.2e+09" +string.format("%# -2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# -6e", nan) == " nan " +string.format("%# -6e", inf) == " inf " +string.format("%# -6e", -inf) == "-inf " +string.format("%# -6.0e", 0) == " 0.e+00" +string.format("%# -6.0e", 1) == " 1.e+00" +string.format("%# -6.0e", -1) == "-1.e+00" +string.format("%# -6.0e", 2) == " 2.e+00" +string.format("%# -6.0e", -2) == "-2.e+00" +string.format("%# -6.0e", 3) == " 3.e+00" +string.format("%# -6.0e", -3) == "-3.e+00" +string.format("%# -6.0e", nan) == " nan " +string.format("%# -6.0e", inf) == " inf " +string.format("%# -6.0e", -inf) == "-inf " +string.format("%# -6.0e", 100) == " 1.e+02" +string.format("%# -6.0e", 10000) == " 1.e+04" +string.format("%# -6.0e", 100000) == " 1.e+05" +string.format("%# -6.0e", 1000000) == " 1.e+06" +string.format("%# -6.0e", 10000000) == " 1.e+07" +string.format("%# -6.0e", 0.01) == " 1.e-02" +string.format("%# -6.0e", 0.0001) == " 1.e-04" +string.format("%# -6.0e", 1e-05) == " 1.e-05" +string.format("%# -6.0e", 1e-06) == " 1.e-06" +string.format("%# -6.0e", 1e-07) == " 1.e-07" +string.format("%# -6.0e", 123.456) == " 1.e+02" +string.format("%# -6.0e", 1234560000) == " 1.e+09" +string.format("%# -6.0e", 1.23456e-05) == " 1.e-05" +string.format("%# -6.0e", 123.456789123) == " 1.e+02" +string.format("%# -6.0e", 1234567891.23) == " 1.e+09" +string.format("%# -6.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%# -6.1e", 0) == " 0.0e+00" +string.format("%# -6.1e", 1) == " 1.0e+00" +string.format("%# -6.1e", -1) == "-1.0e+00" +string.format("%# -6.1e", 2) == " 2.0e+00" +string.format("%# -6.1e", -2) == "-2.0e+00" +string.format("%# -6.1e", 3) == " 3.0e+00" +string.format("%# -6.1e", -3) == "-3.0e+00" +string.format("%# -6.1e", nan) == " nan " +string.format("%# -6.1e", inf) == " inf " +string.format("%# -6.1e", -inf) == "-inf " +string.format("%# -6.1e", 100) == " 1.0e+02" +string.format("%# -6.1e", 10000) == " 1.0e+04" +string.format("%# -6.1e", 100000) == " 1.0e+05" +string.format("%# -6.1e", 1000000) == " 1.0e+06" +string.format("%# -6.1e", 10000000) == " 1.0e+07" +string.format("%# -6.1e", 0.01) == " 1.0e-02" +string.format("%# -6.1e", 0.0001) == " 1.0e-04" +string.format("%# -6.1e", 1e-05) == " 1.0e-05" +string.format("%# -6.1e", 1e-06) == " 1.0e-06" +string.format("%# -6.1e", 1e-07) == " 1.0e-07" +string.format("%# -6.1e", 123.456) == " 1.2e+02" +string.format("%# -6.1e", 1234560000) == " 1.2e+09" +string.format("%# -6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%# -6.1e", 123.456789123) == " 1.2e+02" +string.format("%# -6.1e", 1234567891.23) == " 1.2e+09" +string.format("%# -6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%# -6.6e", nan) == " nan " +string.format("%# -6.6e", inf) == " inf " +string.format("%# -6.6e", -inf) == "-inf " +string.format("%# -20e", 0) == " 0.000000e+00 " +string.format("%# -20e", 1) == " 1.000000e+00 " +string.format("%# -20e", -1) == "-1.000000e+00 " +string.format("%# -20e", 2) == " 2.000000e+00 " +string.format("%# -20e", -2) == "-2.000000e+00 " +string.format("%# -20e", 3) == " 3.000000e+00 " +string.format("%# -20e", -3) == "-3.000000e+00 " +string.format("%# -20e", nan) == " nan " +string.format("%# -20e", inf) == " inf " +string.format("%# -20e", -inf) == "-inf " +string.format("%# -20e", 100) == " 1.000000e+02 " +string.format("%# -20e", 10000) == " 1.000000e+04 " +string.format("%# -20e", 100000) == " 1.000000e+05 " +string.format("%# -20e", 1000000) == " 1.000000e+06 " +string.format("%# -20e", 10000000) == " 1.000000e+07 " +string.format("%# -20e", 0.01) == " 1.000000e-02 " +string.format("%# -20e", 0.0001) == " 1.000000e-04 " +string.format("%# -20e", 1e-05) == " 1.000000e-05 " +string.format("%# -20e", 1e-06) == " 1.000000e-06 " +string.format("%# -20e", 1e-07) == " 1.000000e-07 " +string.format("%# -20e", 123.456) == " 1.234560e+02 " +string.format("%# -20e", 1234560000) == " 1.234560e+09 " +string.format("%# -20e", 1.23456e-05) == " 1.234560e-05 " +string.format("%# -20e", 123.456789123) == " 1.234568e+02 " +string.format("%# -20e", 1234567891.23) == " 1.234568e+09 " +string.format("%# -20e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%# -20.0e", 0) == " 0.e+00 " +string.format("%# -20.0e", 1) == " 1.e+00 " +string.format("%# -20.0e", -1) == "-1.e+00 " +string.format("%# -20.0e", 2) == " 2.e+00 " +string.format("%# -20.0e", -2) == "-2.e+00 " +string.format("%# -20.0e", 3) == " 3.e+00 " +string.format("%# -20.0e", -3) == "-3.e+00 " +string.format("%# -20.0e", nan) == " nan " +string.format("%# -20.0e", inf) == " inf " +string.format("%# -20.0e", -inf) == "-inf " +string.format("%# -20.0e", 100) == " 1.e+02 " +string.format("%# -20.0e", 10000) == " 1.e+04 " +string.format("%# -20.0e", 100000) == " 1.e+05 " +string.format("%# -20.0e", 1000000) == " 1.e+06 " +string.format("%# -20.0e", 10000000) == " 1.e+07 " +string.format("%# -20.0e", 0.01) == " 1.e-02 " +string.format("%# -20.0e", 0.0001) == " 1.e-04 " +string.format("%# -20.0e", 1e-05) == " 1.e-05 " +string.format("%# -20.0e", 1e-06) == " 1.e-06 " +string.format("%# -20.0e", 1e-07) == " 1.e-07 " +string.format("%# -20.0e", 123.456) == " 1.e+02 " +string.format("%# -20.0e", 1234560000) == " 1.e+09 " +string.format("%# -20.0e", 1.23456e-05) == " 1.e-05 " +string.format("%# -20.0e", 123.456789123) == " 1.e+02 " +string.format("%# -20.0e", 1234567891.23) == " 1.e+09 " +string.format("%# -20.0e", 1.23456789123e-05) == " 1.e-05 " +string.format("%# -20.1e", 0) == " 0.0e+00 " +string.format("%# -20.1e", 1) == " 1.0e+00 " +string.format("%# -20.1e", -1) == "-1.0e+00 " +string.format("%# -20.1e", 2) == " 2.0e+00 " +string.format("%# -20.1e", -2) == "-2.0e+00 " +string.format("%# -20.1e", 3) == " 3.0e+00 " +string.format("%# -20.1e", -3) == "-3.0e+00 " +string.format("%# -20.1e", nan) == " nan " +string.format("%# -20.1e", inf) == " inf " +string.format("%# -20.1e", -inf) == "-inf " +string.format("%# -20.1e", 100) == " 1.0e+02 " +string.format("%# -20.1e", 10000) == " 1.0e+04 " +string.format("%# -20.1e", 100000) == " 1.0e+05 " +string.format("%# -20.1e", 1000000) == " 1.0e+06 " +string.format("%# -20.1e", 10000000) == " 1.0e+07 " +string.format("%# -20.1e", 0.01) == " 1.0e-02 " +string.format("%# -20.1e", 0.0001) == " 1.0e-04 " +string.format("%# -20.1e", 1e-05) == " 1.0e-05 " +string.format("%# -20.1e", 1e-06) == " 1.0e-06 " +string.format("%# -20.1e", 1e-07) == " 1.0e-07 " +string.format("%# -20.1e", 123.456) == " 1.2e+02 " +string.format("%# -20.1e", 1234560000) == " 1.2e+09 " +string.format("%# -20.1e", 1.23456e-05) == " 1.2e-05 " +string.format("%# -20.1e", 123.456789123) == " 1.2e+02 " +string.format("%# -20.1e", 1234567891.23) == " 1.2e+09 " +string.format("%# -20.1e", 1.23456789123e-05) == " 1.2e-05 " +string.format("%# -20.6e", 0) == " 0.000000e+00 " +string.format("%# -20.6e", 1) == " 1.000000e+00 " +string.format("%# -20.6e", -1) == "-1.000000e+00 " +string.format("%# -20.6e", 2) == " 2.000000e+00 " +string.format("%# -20.6e", -2) == "-2.000000e+00 " +string.format("%# -20.6e", 3) == " 3.000000e+00 " +string.format("%# -20.6e", -3) == "-3.000000e+00 " +string.format("%# -20.6e", nan) == " nan " +string.format("%# -20.6e", inf) == " inf " +string.format("%# -20.6e", -inf) == "-inf " +string.format("%# -20.6e", 100) == " 1.000000e+02 " +string.format("%# -20.6e", 10000) == " 1.000000e+04 " +string.format("%# -20.6e", 100000) == " 1.000000e+05 " +string.format("%# -20.6e", 1000000) == " 1.000000e+06 " +string.format("%# -20.6e", 10000000) == " 1.000000e+07 " +string.format("%# -20.6e", 0.01) == " 1.000000e-02 " +string.format("%# -20.6e", 0.0001) == " 1.000000e-04 " +string.format("%# -20.6e", 1e-05) == " 1.000000e-05 " +string.format("%# -20.6e", 1e-06) == " 1.000000e-06 " +string.format("%# -20.6e", 1e-07) == " 1.000000e-07 " +string.format("%# -20.6e", 123.456) == " 1.234560e+02 " +string.format("%# -20.6e", 1234560000) == " 1.234560e+09 " +string.format("%# -20.6e", 1.23456e-05) == " 1.234560e-05 " +string.format("%# -20.6e", 123.456789123) == " 1.234568e+02 " +string.format("%# -20.6e", 1234567891.23) == " 1.234568e+09 " +string.format("%# -20.6e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%# -+e", 0) == "+0.000000e+00" +string.format("%# -+e", 1) == "+1.000000e+00" +string.format("%# -+e", -1) == "-1.000000e+00" +string.format("%# -+e", 2) == "+2.000000e+00" +string.format("%# -+e", -2) == "-2.000000e+00" +string.format("%# -+e", 3) == "+3.000000e+00" +string.format("%# -+e", -3) == "-3.000000e+00" +string.format("%# -+e", nan) == "+nan" +string.format("%# -+e", inf) == "+inf" +string.format("%# -+e", -inf) == "-inf" +string.format("%# -+e", 100) == "+1.000000e+02" +string.format("%# -+e", 10000) == "+1.000000e+04" +string.format("%# -+e", 100000) == "+1.000000e+05" +string.format("%# -+e", 1000000) == "+1.000000e+06" +string.format("%# -+e", 10000000) == "+1.000000e+07" +string.format("%# -+e", 0.01) == "+1.000000e-02" +string.format("%# -+e", 0.0001) == "+1.000000e-04" +string.format("%# -+e", 1e-05) == "+1.000000e-05" +string.format("%# -+e", 1e-06) == "+1.000000e-06" +string.format("%# -+e", 1e-07) == "+1.000000e-07" +string.format("%# -+e", 123.456) == "+1.234560e+02" +string.format("%# -+e", 1234560000) == "+1.234560e+09" +string.format("%# -+e", 1.23456e-05) == "+1.234560e-05" +string.format("%# -+e", 123.456789123) == "+1.234568e+02" +string.format("%# -+e", 1234567891.23) == "+1.234568e+09" +string.format("%# -+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%# -+.0e", 0) == "+0.e+00" +string.format("%# -+.0e", 1) == "+1.e+00" +string.format("%# -+.0e", -1) == "-1.e+00" +string.format("%# -+.0e", 2) == "+2.e+00" +string.format("%# -+.0e", -2) == "-2.e+00" +string.format("%# -+.0e", 3) == "+3.e+00" +string.format("%# -+.0e", -3) == "-3.e+00" +string.format("%# -+.0e", 100) == "+1.e+02" +string.format("%# -+.0e", 10000) == "+1.e+04" +string.format("%# -+.0e", 100000) == "+1.e+05" +string.format("%# -+.0e", 1000000) == "+1.e+06" +string.format("%# -+.0e", 10000000) == "+1.e+07" +string.format("%# -+.0e", 0.01) == "+1.e-02" +string.format("%# -+.0e", 0.0001) == "+1.e-04" +string.format("%# -+.0e", 1e-05) == "+1.e-05" +string.format("%# -+.0e", 1e-06) == "+1.e-06" +string.format("%# -+.0e", 1e-07) == "+1.e-07" +string.format("%# -+.0e", 123.456) == "+1.e+02" +string.format("%# -+.0e", 1234560000) == "+1.e+09" +string.format("%# -+.0e", 1.23456e-05) == "+1.e-05" +string.format("%# -+.0e", 123.456789123) == "+1.e+02" +string.format("%# -+.0e", 1234567891.23) == "+1.e+09" +string.format("%# -+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+.1e", 0) == "+0.0e+00" +string.format("%# -+.1e", 1) == "+1.0e+00" +string.format("%# -+.1e", -1) == "-1.0e+00" +string.format("%# -+.1e", 2) == "+2.0e+00" +string.format("%# -+.1e", -2) == "-2.0e+00" +string.format("%# -+.1e", 3) == "+3.0e+00" +string.format("%# -+.1e", -3) == "-3.0e+00" +string.format("%# -+.1e", 100) == "+1.0e+02" +string.format("%# -+.1e", 10000) == "+1.0e+04" +string.format("%# -+.1e", 100000) == "+1.0e+05" +string.format("%# -+.1e", 1000000) == "+1.0e+06" +string.format("%# -+.1e", 10000000) == "+1.0e+07" +string.format("%# -+.1e", 0.01) == "+1.0e-02" +string.format("%# -+.1e", 0.0001) == "+1.0e-04" +string.format("%# -+.1e", 1e-05) == "+1.0e-05" +string.format("%# -+.1e", 1e-06) == "+1.0e-06" +string.format("%# -+.1e", 1e-07) == "+1.0e-07" +string.format("%# -+.1e", 123.456) == "+1.2e+02" +string.format("%# -+.1e", 1234560000) == "+1.2e+09" +string.format("%# -+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# -+.1e", 123.456789123) == "+1.2e+02" +string.format("%# -+.1e", 1234567891.23) == "+1.2e+09" +string.format("%# -+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# -+1.0e", 0) == "+0.e+00" +string.format("%# -+1.0e", 1) == "+1.e+00" +string.format("%# -+1.0e", -1) == "-1.e+00" +string.format("%# -+1.0e", 2) == "+2.e+00" +string.format("%# -+1.0e", -2) == "-2.e+00" +string.format("%# -+1.0e", 3) == "+3.e+00" +string.format("%# -+1.0e", -3) == "-3.e+00" +string.format("%# -+1.0e", 100) == "+1.e+02" +string.format("%# -+1.0e", 10000) == "+1.e+04" +string.format("%# -+1.0e", 100000) == "+1.e+05" +string.format("%# -+1.0e", 1000000) == "+1.e+06" +string.format("%# -+1.0e", 10000000) == "+1.e+07" +string.format("%# -+1.0e", 0.01) == "+1.e-02" +string.format("%# -+1.0e", 0.0001) == "+1.e-04" +string.format("%# -+1.0e", 1e-05) == "+1.e-05" +string.format("%# -+1.0e", 1e-06) == "+1.e-06" +string.format("%# -+1.0e", 1e-07) == "+1.e-07" +string.format("%# -+1.0e", 123.456) == "+1.e+02" +string.format("%# -+1.0e", 1234560000) == "+1.e+09" +string.format("%# -+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%# -+1.0e", 123.456789123) == "+1.e+02" +string.format("%# -+1.0e", 1234567891.23) == "+1.e+09" +string.format("%# -+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+1.1e", 0) == "+0.0e+00" +string.format("%# -+1.1e", 1) == "+1.0e+00" +string.format("%# -+1.1e", -1) == "-1.0e+00" +string.format("%# -+1.1e", 2) == "+2.0e+00" +string.format("%# -+1.1e", -2) == "-2.0e+00" +string.format("%# -+1.1e", 3) == "+3.0e+00" +string.format("%# -+1.1e", -3) == "-3.0e+00" +string.format("%# -+1.1e", 100) == "+1.0e+02" +string.format("%# -+1.1e", 10000) == "+1.0e+04" +string.format("%# -+1.1e", 100000) == "+1.0e+05" +string.format("%# -+1.1e", 1000000) == "+1.0e+06" +string.format("%# -+1.1e", 10000000) == "+1.0e+07" +string.format("%# -+1.1e", 0.01) == "+1.0e-02" +string.format("%# -+1.1e", 0.0001) == "+1.0e-04" +string.format("%# -+1.1e", 1e-05) == "+1.0e-05" +string.format("%# -+1.1e", 1e-06) == "+1.0e-06" +string.format("%# -+1.1e", 1e-07) == "+1.0e-07" +string.format("%# -+1.1e", 123.456) == "+1.2e+02" +string.format("%# -+1.1e", 1234560000) == "+1.2e+09" +string.format("%# -+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# -+1.1e", 123.456789123) == "+1.2e+02" +string.format("%# -+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%# -+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# -+2.0e", 0) == "+0.e+00" +string.format("%# -+2.0e", 1) == "+1.e+00" +string.format("%# -+2.0e", -1) == "-1.e+00" +string.format("%# -+2.0e", 2) == "+2.e+00" +string.format("%# -+2.0e", -2) == "-2.e+00" +string.format("%# -+2.0e", 3) == "+3.e+00" +string.format("%# -+2.0e", -3) == "-3.e+00" +string.format("%# -+2.0e", 100) == "+1.e+02" +string.format("%# -+2.0e", 10000) == "+1.e+04" +string.format("%# -+2.0e", 100000) == "+1.e+05" +string.format("%# -+2.0e", 1000000) == "+1.e+06" +string.format("%# -+2.0e", 10000000) == "+1.e+07" +string.format("%# -+2.0e", 0.01) == "+1.e-02" +string.format("%# -+2.0e", 0.0001) == "+1.e-04" +string.format("%# -+2.0e", 1e-05) == "+1.e-05" +string.format("%# -+2.0e", 1e-06) == "+1.e-06" +string.format("%# -+2.0e", 1e-07) == "+1.e-07" +string.format("%# -+2.0e", 123.456) == "+1.e+02" +string.format("%# -+2.0e", 1234560000) == "+1.e+09" +string.format("%# -+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%# -+2.0e", 123.456789123) == "+1.e+02" +string.format("%# -+2.0e", 1234567891.23) == "+1.e+09" +string.format("%# -+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+2.1e", 0) == "+0.0e+00" +string.format("%# -+2.1e", 1) == "+1.0e+00" +string.format("%# -+2.1e", -1) == "-1.0e+00" +string.format("%# -+2.1e", 2) == "+2.0e+00" +string.format("%# -+2.1e", -2) == "-2.0e+00" +string.format("%# -+2.1e", 3) == "+3.0e+00" +string.format("%# -+2.1e", -3) == "-3.0e+00" +string.format("%# -+2.1e", 100) == "+1.0e+02" +string.format("%# -+2.1e", 10000) == "+1.0e+04" +string.format("%# -+2.1e", 100000) == "+1.0e+05" +string.format("%# -+2.1e", 1000000) == "+1.0e+06" +string.format("%# -+2.1e", 10000000) == "+1.0e+07" +string.format("%# -+2.1e", 0.01) == "+1.0e-02" +string.format("%# -+2.1e", 0.0001) == "+1.0e-04" +string.format("%# -+2.1e", 1e-05) == "+1.0e-05" +string.format("%# -+2.1e", 1e-06) == "+1.0e-06" +string.format("%# -+2.1e", 1e-07) == "+1.0e-07" +string.format("%# -+2.1e", 123.456) == "+1.2e+02" +string.format("%# -+2.1e", 1234560000) == "+1.2e+09" +string.format("%# -+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# -+2.1e", 123.456789123) == "+1.2e+02" +string.format("%# -+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%# -+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# -+6e", nan) == "+nan " +string.format("%# -+6e", inf) == "+inf " +string.format("%# -+6e", -inf) == "-inf " +string.format("%# -+6.0e", 0) == "+0.e+00" +string.format("%# -+6.0e", 1) == "+1.e+00" +string.format("%# -+6.0e", -1) == "-1.e+00" +string.format("%# -+6.0e", 2) == "+2.e+00" +string.format("%# -+6.0e", -2) == "-2.e+00" +string.format("%# -+6.0e", 3) == "+3.e+00" +string.format("%# -+6.0e", -3) == "-3.e+00" +string.format("%# -+6.0e", nan) == "+nan " +string.format("%# -+6.0e", inf) == "+inf " +string.format("%# -+6.0e", -inf) == "-inf " +string.format("%# -+6.0e", 100) == "+1.e+02" +string.format("%# -+6.0e", 10000) == "+1.e+04" +string.format("%# -+6.0e", 100000) == "+1.e+05" +string.format("%# -+6.0e", 1000000) == "+1.e+06" +string.format("%# -+6.0e", 10000000) == "+1.e+07" +string.format("%# -+6.0e", 0.01) == "+1.e-02" +string.format("%# -+6.0e", 0.0001) == "+1.e-04" +string.format("%# -+6.0e", 1e-05) == "+1.e-05" +string.format("%# -+6.0e", 1e-06) == "+1.e-06" +string.format("%# -+6.0e", 1e-07) == "+1.e-07" +string.format("%# -+6.0e", 123.456) == "+1.e+02" +string.format("%# -+6.0e", 1234560000) == "+1.e+09" +string.format("%# -+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%# -+6.0e", 123.456789123) == "+1.e+02" +string.format("%# -+6.0e", 1234567891.23) == "+1.e+09" +string.format("%# -+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+6.1e", 0) == "+0.0e+00" +string.format("%# -+6.1e", 1) == "+1.0e+00" +string.format("%# -+6.1e", -1) == "-1.0e+00" +string.format("%# -+6.1e", 2) == "+2.0e+00" +string.format("%# -+6.1e", -2) == "-2.0e+00" +string.format("%# -+6.1e", 3) == "+3.0e+00" +string.format("%# -+6.1e", -3) == "-3.0e+00" +string.format("%# -+6.1e", nan) == "+nan " +string.format("%# -+6.1e", inf) == "+inf " +string.format("%# -+6.1e", -inf) == "-inf " +string.format("%# -+6.1e", 100) == "+1.0e+02" +string.format("%# -+6.1e", 10000) == "+1.0e+04" +string.format("%# -+6.1e", 100000) == "+1.0e+05" +string.format("%# -+6.1e", 1000000) == "+1.0e+06" +string.format("%# -+6.1e", 10000000) == "+1.0e+07" +string.format("%# -+6.1e", 0.01) == "+1.0e-02" +string.format("%# -+6.1e", 0.0001) == "+1.0e-04" +string.format("%# -+6.1e", 1e-05) == "+1.0e-05" +string.format("%# -+6.1e", 1e-06) == "+1.0e-06" +string.format("%# -+6.1e", 1e-07) == "+1.0e-07" +string.format("%# -+6.1e", 123.456) == "+1.2e+02" +string.format("%# -+6.1e", 1234560000) == "+1.2e+09" +string.format("%# -+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%# -+6.1e", 123.456789123) == "+1.2e+02" +string.format("%# -+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%# -+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%# -+6.6e", nan) == "+nan " +string.format("%# -+6.6e", inf) == "+inf " +string.format("%# -+6.6e", -inf) == "-inf " +string.format("%# -+20e", 0) == "+0.000000e+00 " +string.format("%# -+20e", 1) == "+1.000000e+00 " +string.format("%# -+20e", -1) == "-1.000000e+00 " +string.format("%# -+20e", 2) == "+2.000000e+00 " +string.format("%# -+20e", -2) == "-2.000000e+00 " +string.format("%# -+20e", 3) == "+3.000000e+00 " +string.format("%# -+20e", -3) == "-3.000000e+00 " +string.format("%# -+20e", nan) == "+nan " +string.format("%# -+20e", inf) == "+inf " +string.format("%# -+20e", -inf) == "-inf " +string.format("%# -+20e", 100) == "+1.000000e+02 " +string.format("%# -+20e", 10000) == "+1.000000e+04 " +string.format("%# -+20e", 100000) == "+1.000000e+05 " +string.format("%# -+20e", 1000000) == "+1.000000e+06 " +string.format("%# -+20e", 10000000) == "+1.000000e+07 " +string.format("%# -+20e", 0.01) == "+1.000000e-02 " +string.format("%# -+20e", 0.0001) == "+1.000000e-04 " +string.format("%# -+20e", 1e-05) == "+1.000000e-05 " +string.format("%# -+20e", 1e-06) == "+1.000000e-06 " +string.format("%# -+20e", 1e-07) == "+1.000000e-07 " +string.format("%# -+20e", 123.456) == "+1.234560e+02 " +string.format("%# -+20e", 1234560000) == "+1.234560e+09 " +string.format("%# -+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%# -+20e", 123.456789123) == "+1.234568e+02 " +string.format("%# -+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%# -+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%# -+20.0e", 0) == "+0.e+00 " +string.format("%# -+20.0e", 1) == "+1.e+00 " +string.format("%# -+20.0e", -1) == "-1.e+00 " +string.format("%# -+20.0e", 2) == "+2.e+00 " +string.format("%# -+20.0e", -2) == "-2.e+00 " +string.format("%# -+20.0e", 3) == "+3.e+00 " +string.format("%# -+20.0e", -3) == "-3.e+00 " +string.format("%# -+20.0e", nan) == "+nan " +string.format("%# -+20.0e", inf) == "+inf " +string.format("%# -+20.0e", -inf) == "-inf " +string.format("%# -+20.0e", 100) == "+1.e+02 " +string.format("%# -+20.0e", 10000) == "+1.e+04 " +string.format("%# -+20.0e", 100000) == "+1.e+05 " +string.format("%# -+20.0e", 1000000) == "+1.e+06 " +string.format("%# -+20.0e", 10000000) == "+1.e+07 " +string.format("%# -+20.0e", 0.01) == "+1.e-02 " +string.format("%# -+20.0e", 0.0001) == "+1.e-04 " +string.format("%# -+20.0e", 1e-05) == "+1.e-05 " +string.format("%# -+20.0e", 1e-06) == "+1.e-06 " +string.format("%# -+20.0e", 1e-07) == "+1.e-07 " +string.format("%# -+20.0e", 123.456) == "+1.e+02 " +string.format("%# -+20.0e", 1234560000) == "+1.e+09 " +string.format("%# -+20.0e", 1.23456e-05) == "+1.e-05 " +string.format("%# -+20.0e", 123.456789123) == "+1.e+02 " +string.format("%# -+20.0e", 1234567891.23) == "+1.e+09 " +string.format("%# -+20.0e", 1.23456789123e-05) == "+1.e-05 " +string.format("%# -+20.1e", 0) == "+0.0e+00 " +string.format("%# -+20.1e", 1) == "+1.0e+00 " +string.format("%# -+20.1e", -1) == "-1.0e+00 " +string.format("%# -+20.1e", 2) == "+2.0e+00 " +string.format("%# -+20.1e", -2) == "-2.0e+00 " +string.format("%# -+20.1e", 3) == "+3.0e+00 " +string.format("%# -+20.1e", -3) == "-3.0e+00 " +string.format("%# -+20.1e", nan) == "+nan " +string.format("%# -+20.1e", inf) == "+inf " +string.format("%# -+20.1e", -inf) == "-inf " +string.format("%# -+20.1e", 100) == "+1.0e+02 " +string.format("%# -+20.1e", 10000) == "+1.0e+04 " +string.format("%# -+20.1e", 100000) == "+1.0e+05 " +string.format("%# -+20.1e", 1000000) == "+1.0e+06 " +string.format("%# -+20.1e", 10000000) == "+1.0e+07 " +string.format("%# -+20.1e", 0.01) == "+1.0e-02 " +string.format("%# -+20.1e", 0.0001) == "+1.0e-04 " +string.format("%# -+20.1e", 1e-05) == "+1.0e-05 " +string.format("%# -+20.1e", 1e-06) == "+1.0e-06 " +string.format("%# -+20.1e", 1e-07) == "+1.0e-07 " +string.format("%# -+20.1e", 123.456) == "+1.2e+02 " +string.format("%# -+20.1e", 1234560000) == "+1.2e+09 " +string.format("%# -+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%# -+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%# -+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%# -+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%# -+20.6e", 0) == "+0.000000e+00 " +string.format("%# -+20.6e", 1) == "+1.000000e+00 " +string.format("%# -+20.6e", -1) == "-1.000000e+00 " +string.format("%# -+20.6e", 2) == "+2.000000e+00 " +string.format("%# -+20.6e", -2) == "-2.000000e+00 " +string.format("%# -+20.6e", 3) == "+3.000000e+00 " +string.format("%# -+20.6e", -3) == "-3.000000e+00 " +string.format("%# -+20.6e", nan) == "+nan " +string.format("%# -+20.6e", inf) == "+inf " +string.format("%# -+20.6e", -inf) == "-inf " +string.format("%# -+20.6e", 100) == "+1.000000e+02 " +string.format("%# -+20.6e", 10000) == "+1.000000e+04 " +string.format("%# -+20.6e", 100000) == "+1.000000e+05 " +string.format("%# -+20.6e", 1000000) == "+1.000000e+06 " +string.format("%# -+20.6e", 10000000) == "+1.000000e+07 " +string.format("%# -+20.6e", 0.01) == "+1.000000e-02 " +string.format("%# -+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%# -+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%# -+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%# -+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%# -+20.6e", 123.456) == "+1.234560e+02 " +string.format("%# -+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%# -+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%# -+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%# -+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%# -+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0e", 0) == "0.000000e+00" +string.format("%0e", 1) == "1.000000e+00" +string.format("%0e", -1) == "-1.000000e+00" +string.format("%0e", 2) == "2.000000e+00" +string.format("%0e", -2) == "-2.000000e+00" +string.format("%0e", 3) == "3.000000e+00" +string.format("%0e", -3) == "-3.000000e+00" +string.format("%0e", nan) == "nan" +string.format("%0e", inf) == "inf" +string.format("%0e", -inf) == "-inf" +string.format("%0e", 100) == "1.000000e+02" +string.format("%0e", 10000) == "1.000000e+04" +string.format("%0e", 100000) == "1.000000e+05" +string.format("%0e", 1000000) == "1.000000e+06" +string.format("%0e", 10000000) == "1.000000e+07" +string.format("%0e", 0.01) == "1.000000e-02" +string.format("%0e", 0.0001) == "1.000000e-04" +string.format("%0e", 1e-05) == "1.000000e-05" +string.format("%0e", 1e-06) == "1.000000e-06" +string.format("%0e", 1e-07) == "1.000000e-07" +string.format("%0e", 123.456) == "1.234560e+02" +string.format("%0e", 1234560000) == "1.234560e+09" +string.format("%0e", 1.23456e-05) == "1.234560e-05" +string.format("%0e", 123.456789123) == "1.234568e+02" +string.format("%0e", 1234567891.23) == "1.234568e+09" +string.format("%0e", 1.23456789123e-05) == "1.234568e-05" +string.format("%0.0e", 0) == "0e+00" +string.format("%0.0e", 1) == "1e+00" +string.format("%0.0e", -1) == "-1e+00" +string.format("%0.0e", 2) == "2e+00" +string.format("%0.0e", -2) == "-2e+00" +string.format("%0.0e", 3) == "3e+00" +string.format("%0.0e", -3) == "-3e+00" +string.format("%0.0e", 100) == "1e+02" +string.format("%0.0e", 10000) == "1e+04" +string.format("%0.0e", 100000) == "1e+05" +string.format("%0.0e", 1000000) == "1e+06" +string.format("%0.0e", 10000000) == "1e+07" +string.format("%0.0e", 0.01) == "1e-02" +string.format("%0.0e", 0.0001) == "1e-04" +string.format("%0.0e", 1e-05) == "1e-05" +string.format("%0.0e", 1e-06) == "1e-06" +string.format("%0.0e", 1e-07) == "1e-07" +string.format("%0.0e", 123.456) == "1e+02" +string.format("%0.0e", 1234560000) == "1e+09" +string.format("%0.0e", 1.23456e-05) == "1e-05" +string.format("%0.0e", 123.456789123) == "1e+02" +string.format("%0.0e", 1234567891.23) == "1e+09" +string.format("%0.0e", 1.23456789123e-05) == "1e-05" +string.format("%0.1e", 0) == "0.0e+00" +string.format("%0.1e", 1) == "1.0e+00" +string.format("%0.1e", -1) == "-1.0e+00" +string.format("%0.1e", 2) == "2.0e+00" +string.format("%0.1e", -2) == "-2.0e+00" +string.format("%0.1e", 3) == "3.0e+00" +string.format("%0.1e", -3) == "-3.0e+00" +string.format("%0.1e", 100) == "1.0e+02" +string.format("%0.1e", 10000) == "1.0e+04" +string.format("%0.1e", 100000) == "1.0e+05" +string.format("%0.1e", 1000000) == "1.0e+06" +string.format("%0.1e", 10000000) == "1.0e+07" +string.format("%0.1e", 0.01) == "1.0e-02" +string.format("%0.1e", 0.0001) == "1.0e-04" +string.format("%0.1e", 1e-05) == "1.0e-05" +string.format("%0.1e", 1e-06) == "1.0e-06" +string.format("%0.1e", 1e-07) == "1.0e-07" +string.format("%0.1e", 123.456) == "1.2e+02" +string.format("%0.1e", 1234560000) == "1.2e+09" +string.format("%0.1e", 1.23456e-05) == "1.2e-05" +string.format("%0.1e", 123.456789123) == "1.2e+02" +string.format("%0.1e", 1234567891.23) == "1.2e+09" +string.format("%0.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%01.0e", 0) == "0e+00" +string.format("%01.0e", 1) == "1e+00" +string.format("%01.0e", -1) == "-1e+00" +string.format("%01.0e", 2) == "2e+00" +string.format("%01.0e", -2) == "-2e+00" +string.format("%01.0e", 3) == "3e+00" +string.format("%01.0e", -3) == "-3e+00" +string.format("%01.0e", 100) == "1e+02" +string.format("%01.0e", 10000) == "1e+04" +string.format("%01.0e", 100000) == "1e+05" +string.format("%01.0e", 1000000) == "1e+06" +string.format("%01.0e", 10000000) == "1e+07" +string.format("%01.0e", 0.01) == "1e-02" +string.format("%01.0e", 0.0001) == "1e-04" +string.format("%01.0e", 1e-05) == "1e-05" +string.format("%01.0e", 1e-06) == "1e-06" +string.format("%01.0e", 1e-07) == "1e-07" +string.format("%01.0e", 123.456) == "1e+02" +string.format("%01.0e", 1234560000) == "1e+09" +string.format("%01.0e", 1.23456e-05) == "1e-05" +string.format("%01.0e", 123.456789123) == "1e+02" +string.format("%01.0e", 1234567891.23) == "1e+09" +string.format("%01.0e", 1.23456789123e-05) == "1e-05" +string.format("%01.1e", 0) == "0.0e+00" +string.format("%01.1e", 1) == "1.0e+00" +string.format("%01.1e", -1) == "-1.0e+00" +string.format("%01.1e", 2) == "2.0e+00" +string.format("%01.1e", -2) == "-2.0e+00" +string.format("%01.1e", 3) == "3.0e+00" +string.format("%01.1e", -3) == "-3.0e+00" +string.format("%01.1e", 100) == "1.0e+02" +string.format("%01.1e", 10000) == "1.0e+04" +string.format("%01.1e", 100000) == "1.0e+05" +string.format("%01.1e", 1000000) == "1.0e+06" +string.format("%01.1e", 10000000) == "1.0e+07" +string.format("%01.1e", 0.01) == "1.0e-02" +string.format("%01.1e", 0.0001) == "1.0e-04" +string.format("%01.1e", 1e-05) == "1.0e-05" +string.format("%01.1e", 1e-06) == "1.0e-06" +string.format("%01.1e", 1e-07) == "1.0e-07" +string.format("%01.1e", 123.456) == "1.2e+02" +string.format("%01.1e", 1234560000) == "1.2e+09" +string.format("%01.1e", 1.23456e-05) == "1.2e-05" +string.format("%01.1e", 123.456789123) == "1.2e+02" +string.format("%01.1e", 1234567891.23) == "1.2e+09" +string.format("%01.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%02.0e", 0) == "0e+00" +string.format("%02.0e", 1) == "1e+00" +string.format("%02.0e", -1) == "-1e+00" +string.format("%02.0e", 2) == "2e+00" +string.format("%02.0e", -2) == "-2e+00" +string.format("%02.0e", 3) == "3e+00" +string.format("%02.0e", -3) == "-3e+00" +string.format("%02.0e", 100) == "1e+02" +string.format("%02.0e", 10000) == "1e+04" +string.format("%02.0e", 100000) == "1e+05" +string.format("%02.0e", 1000000) == "1e+06" +string.format("%02.0e", 10000000) == "1e+07" +string.format("%02.0e", 0.01) == "1e-02" +string.format("%02.0e", 0.0001) == "1e-04" +string.format("%02.0e", 1e-05) == "1e-05" +string.format("%02.0e", 1e-06) == "1e-06" +string.format("%02.0e", 1e-07) == "1e-07" +string.format("%02.0e", 123.456) == "1e+02" +string.format("%02.0e", 1234560000) == "1e+09" +string.format("%02.0e", 1.23456e-05) == "1e-05" +string.format("%02.0e", 123.456789123) == "1e+02" +string.format("%02.0e", 1234567891.23) == "1e+09" +string.format("%02.0e", 1.23456789123e-05) == "1e-05" +string.format("%02.1e", 0) == "0.0e+00" +string.format("%02.1e", 1) == "1.0e+00" +string.format("%02.1e", -1) == "-1.0e+00" +string.format("%02.1e", 2) == "2.0e+00" +string.format("%02.1e", -2) == "-2.0e+00" +string.format("%02.1e", 3) == "3.0e+00" +string.format("%02.1e", -3) == "-3.0e+00" +string.format("%02.1e", 100) == "1.0e+02" +string.format("%02.1e", 10000) == "1.0e+04" +string.format("%02.1e", 100000) == "1.0e+05" +string.format("%02.1e", 1000000) == "1.0e+06" +string.format("%02.1e", 10000000) == "1.0e+07" +string.format("%02.1e", 0.01) == "1.0e-02" +string.format("%02.1e", 0.0001) == "1.0e-04" +string.format("%02.1e", 1e-05) == "1.0e-05" +string.format("%02.1e", 1e-06) == "1.0e-06" +string.format("%02.1e", 1e-07) == "1.0e-07" +string.format("%02.1e", 123.456) == "1.2e+02" +string.format("%02.1e", 1234560000) == "1.2e+09" +string.format("%02.1e", 1.23456e-05) == "1.2e-05" +string.format("%02.1e", 123.456789123) == "1.2e+02" +string.format("%02.1e", 1234567891.23) == "1.2e+09" +string.format("%02.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%06e", nan) == " nan" +string.format("%06e", inf) == " inf" +string.format("%06e", -inf) == " -inf" +string.format("%06.0e", 0) == "00e+00" +string.format("%06.0e", 1) == "01e+00" +string.format("%06.0e", -1) == "-1e+00" +string.format("%06.0e", 2) == "02e+00" +string.format("%06.0e", -2) == "-2e+00" +string.format("%06.0e", 3) == "03e+00" +string.format("%06.0e", -3) == "-3e+00" +string.format("%06.0e", nan) == " nan" +string.format("%06.0e", inf) == " inf" +string.format("%06.0e", -inf) == " -inf" +string.format("%06.0e", 100) == "01e+02" +string.format("%06.0e", 10000) == "01e+04" +string.format("%06.0e", 100000) == "01e+05" +string.format("%06.0e", 1000000) == "01e+06" +string.format("%06.0e", 10000000) == "01e+07" +string.format("%06.0e", 0.01) == "01e-02" +string.format("%06.0e", 0.0001) == "01e-04" +string.format("%06.0e", 1e-05) == "01e-05" +string.format("%06.0e", 1e-06) == "01e-06" +string.format("%06.0e", 1e-07) == "01e-07" +string.format("%06.0e", 123.456) == "01e+02" +string.format("%06.0e", 1234560000) == "01e+09" +string.format("%06.0e", 1.23456e-05) == "01e-05" +string.format("%06.0e", 123.456789123) == "01e+02" +string.format("%06.0e", 1234567891.23) == "01e+09" +string.format("%06.0e", 1.23456789123e-05) == "01e-05" +string.format("%06.1e", 0) == "0.0e+00" +string.format("%06.1e", 1) == "1.0e+00" +string.format("%06.1e", -1) == "-1.0e+00" +string.format("%06.1e", 2) == "2.0e+00" +string.format("%06.1e", -2) == "-2.0e+00" +string.format("%06.1e", 3) == "3.0e+00" +string.format("%06.1e", -3) == "-3.0e+00" +string.format("%06.1e", nan) == " nan" +string.format("%06.1e", inf) == " inf" +string.format("%06.1e", -inf) == " -inf" +string.format("%06.1e", 100) == "1.0e+02" +string.format("%06.1e", 10000) == "1.0e+04" +string.format("%06.1e", 100000) == "1.0e+05" +string.format("%06.1e", 1000000) == "1.0e+06" +string.format("%06.1e", 10000000) == "1.0e+07" +string.format("%06.1e", 0.01) == "1.0e-02" +string.format("%06.1e", 0.0001) == "1.0e-04" +string.format("%06.1e", 1e-05) == "1.0e-05" +string.format("%06.1e", 1e-06) == "1.0e-06" +string.format("%06.1e", 1e-07) == "1.0e-07" +string.format("%06.1e", 123.456) == "1.2e+02" +string.format("%06.1e", 1234560000) == "1.2e+09" +string.format("%06.1e", 1.23456e-05) == "1.2e-05" +string.format("%06.1e", 123.456789123) == "1.2e+02" +string.format("%06.1e", 1234567891.23) == "1.2e+09" +string.format("%06.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%06.6e", nan) == " nan" +string.format("%06.6e", inf) == " inf" +string.format("%06.6e", -inf) == " -inf" +string.format("%020e", 0) == "000000000.000000e+00" +string.format("%020e", 1) == "000000001.000000e+00" +string.format("%020e", -1) == "-00000001.000000e+00" +string.format("%020e", 2) == "000000002.000000e+00" +string.format("%020e", -2) == "-00000002.000000e+00" +string.format("%020e", 3) == "000000003.000000e+00" +string.format("%020e", -3) == "-00000003.000000e+00" +string.format("%020e", nan) == " nan" +string.format("%020e", inf) == " inf" +string.format("%020e", -inf) == " -inf" +string.format("%020e", 100) == "000000001.000000e+02" +string.format("%020e", 10000) == "000000001.000000e+04" +string.format("%020e", 100000) == "000000001.000000e+05" +string.format("%020e", 1000000) == "000000001.000000e+06" +string.format("%020e", 10000000) == "000000001.000000e+07" +string.format("%020e", 0.01) == "000000001.000000e-02" +string.format("%020e", 0.0001) == "000000001.000000e-04" +string.format("%020e", 1e-05) == "000000001.000000e-05" +string.format("%020e", 1e-06) == "000000001.000000e-06" +string.format("%020e", 1e-07) == "000000001.000000e-07" +string.format("%020e", 123.456) == "000000001.234560e+02" +string.format("%020e", 1234560000) == "000000001.234560e+09" +string.format("%020e", 1.23456e-05) == "000000001.234560e-05" +string.format("%020e", 123.456789123) == "000000001.234568e+02" +string.format("%020e", 1234567891.23) == "000000001.234568e+09" +string.format("%020e", 1.23456789123e-05) == "000000001.234568e-05" +string.format("%020.0e", 0) == "0000000000000000e+00" +string.format("%020.0e", 1) == "0000000000000001e+00" +string.format("%020.0e", -1) == "-000000000000001e+00" +string.format("%020.0e", 2) == "0000000000000002e+00" +string.format("%020.0e", -2) == "-000000000000002e+00" +string.format("%020.0e", 3) == "0000000000000003e+00" +string.format("%020.0e", -3) == "-000000000000003e+00" +string.format("%020.0e", nan) == " nan" +string.format("%020.0e", inf) == " inf" +string.format("%020.0e", -inf) == " -inf" +string.format("%020.0e", 100) == "0000000000000001e+02" +string.format("%020.0e", 10000) == "0000000000000001e+04" +string.format("%020.0e", 100000) == "0000000000000001e+05" +string.format("%020.0e", 1000000) == "0000000000000001e+06" +string.format("%020.0e", 10000000) == "0000000000000001e+07" +string.format("%020.0e", 0.01) == "0000000000000001e-02" +string.format("%020.0e", 0.0001) == "0000000000000001e-04" +string.format("%020.0e", 1e-05) == "0000000000000001e-05" +string.format("%020.0e", 1e-06) == "0000000000000001e-06" +string.format("%020.0e", 1e-07) == "0000000000000001e-07" +string.format("%020.0e", 123.456) == "0000000000000001e+02" +string.format("%020.0e", 1234560000) == "0000000000000001e+09" +string.format("%020.0e", 1.23456e-05) == "0000000000000001e-05" +string.format("%020.0e", 123.456789123) == "0000000000000001e+02" +string.format("%020.0e", 1234567891.23) == "0000000000000001e+09" +string.format("%020.0e", 1.23456789123e-05) == "0000000000000001e-05" +string.format("%020.1e", 0) == "00000000000000.0e+00" +string.format("%020.1e", 1) == "00000000000001.0e+00" +string.format("%020.1e", -1) == "-0000000000001.0e+00" +string.format("%020.1e", 2) == "00000000000002.0e+00" +string.format("%020.1e", -2) == "-0000000000002.0e+00" +string.format("%020.1e", 3) == "00000000000003.0e+00" +string.format("%020.1e", -3) == "-0000000000003.0e+00" +string.format("%020.1e", nan) == " nan" +string.format("%020.1e", inf) == " inf" +string.format("%020.1e", -inf) == " -inf" +string.format("%020.1e", 100) == "00000000000001.0e+02" +string.format("%020.1e", 10000) == "00000000000001.0e+04" +string.format("%020.1e", 100000) == "00000000000001.0e+05" +string.format("%020.1e", 1000000) == "00000000000001.0e+06" +string.format("%020.1e", 10000000) == "00000000000001.0e+07" +string.format("%020.1e", 0.01) == "00000000000001.0e-02" +string.format("%020.1e", 0.0001) == "00000000000001.0e-04" +string.format("%020.1e", 1e-05) == "00000000000001.0e-05" +string.format("%020.1e", 1e-06) == "00000000000001.0e-06" +string.format("%020.1e", 1e-07) == "00000000000001.0e-07" +string.format("%020.1e", 123.456) == "00000000000001.2e+02" +string.format("%020.1e", 1234560000) == "00000000000001.2e+09" +string.format("%020.1e", 1.23456e-05) == "00000000000001.2e-05" +string.format("%020.1e", 123.456789123) == "00000000000001.2e+02" +string.format("%020.1e", 1234567891.23) == "00000000000001.2e+09" +string.format("%020.1e", 1.23456789123e-05) == "00000000000001.2e-05" +string.format("%020.6e", 0) == "000000000.000000e+00" +string.format("%020.6e", 1) == "000000001.000000e+00" +string.format("%020.6e", -1) == "-00000001.000000e+00" +string.format("%020.6e", 2) == "000000002.000000e+00" +string.format("%020.6e", -2) == "-00000002.000000e+00" +string.format("%020.6e", 3) == "000000003.000000e+00" +string.format("%020.6e", -3) == "-00000003.000000e+00" +string.format("%020.6e", nan) == " nan" +string.format("%020.6e", inf) == " inf" +string.format("%020.6e", -inf) == " -inf" +string.format("%020.6e", 100) == "000000001.000000e+02" +string.format("%020.6e", 10000) == "000000001.000000e+04" +string.format("%020.6e", 100000) == "000000001.000000e+05" +string.format("%020.6e", 1000000) == "000000001.000000e+06" +string.format("%020.6e", 10000000) == "000000001.000000e+07" +string.format("%020.6e", 0.01) == "000000001.000000e-02" +string.format("%020.6e", 0.0001) == "000000001.000000e-04" +string.format("%020.6e", 1e-05) == "000000001.000000e-05" +string.format("%020.6e", 1e-06) == "000000001.000000e-06" +string.format("%020.6e", 1e-07) == "000000001.000000e-07" +string.format("%020.6e", 123.456) == "000000001.234560e+02" +string.format("%020.6e", 1234560000) == "000000001.234560e+09" +string.format("%020.6e", 1.23456e-05) == "000000001.234560e-05" +string.format("%020.6e", 123.456789123) == "000000001.234568e+02" +string.format("%020.6e", 1234567891.23) == "000000001.234568e+09" +string.format("%020.6e", 1.23456789123e-05) == "000000001.234568e-05" +string.format("%0+e", 0) == "+0.000000e+00" +string.format("%0+e", 1) == "+1.000000e+00" +string.format("%0+e", -1) == "-1.000000e+00" +string.format("%0+e", 2) == "+2.000000e+00" +string.format("%0+e", -2) == "-2.000000e+00" +string.format("%0+e", 3) == "+3.000000e+00" +string.format("%0+e", -3) == "-3.000000e+00" +string.format("%0+e", nan) == "+nan" +string.format("%0+e", inf) == "+inf" +string.format("%0+e", -inf) == "-inf" +string.format("%0+e", 100) == "+1.000000e+02" +string.format("%0+e", 10000) == "+1.000000e+04" +string.format("%0+e", 100000) == "+1.000000e+05" +string.format("%0+e", 1000000) == "+1.000000e+06" +string.format("%0+e", 10000000) == "+1.000000e+07" +string.format("%0+e", 0.01) == "+1.000000e-02" +string.format("%0+e", 0.0001) == "+1.000000e-04" +string.format("%0+e", 1e-05) == "+1.000000e-05" +string.format("%0+e", 1e-06) == "+1.000000e-06" +string.format("%0+e", 1e-07) == "+1.000000e-07" +string.format("%0+e", 123.456) == "+1.234560e+02" +string.format("%0+e", 1234560000) == "+1.234560e+09" +string.format("%0+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0+e", 123.456789123) == "+1.234568e+02" +string.format("%0+e", 1234567891.23) == "+1.234568e+09" +string.format("%0+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0+.0e", 0) == "+0e+00" +string.format("%0+.0e", 1) == "+1e+00" +string.format("%0+.0e", -1) == "-1e+00" +string.format("%0+.0e", 2) == "+2e+00" +string.format("%0+.0e", -2) == "-2e+00" +string.format("%0+.0e", 3) == "+3e+00" +string.format("%0+.0e", -3) == "-3e+00" +string.format("%0+.0e", 100) == "+1e+02" +string.format("%0+.0e", 10000) == "+1e+04" +string.format("%0+.0e", 100000) == "+1e+05" +string.format("%0+.0e", 1000000) == "+1e+06" +string.format("%0+.0e", 10000000) == "+1e+07" +string.format("%0+.0e", 0.01) == "+1e-02" +string.format("%0+.0e", 0.0001) == "+1e-04" +string.format("%0+.0e", 1e-05) == "+1e-05" +string.format("%0+.0e", 1e-06) == "+1e-06" +string.format("%0+.0e", 1e-07) == "+1e-07" +string.format("%0+.0e", 123.456) == "+1e+02" +string.format("%0+.0e", 1234560000) == "+1e+09" +string.format("%0+.0e", 1.23456e-05) == "+1e-05" +string.format("%0+.0e", 123.456789123) == "+1e+02" +string.format("%0+.0e", 1234567891.23) == "+1e+09" +string.format("%0+.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0+.1e", 0) == "+0.0e+00" +string.format("%0+.1e", 1) == "+1.0e+00" +string.format("%0+.1e", -1) == "-1.0e+00" +string.format("%0+.1e", 2) == "+2.0e+00" +string.format("%0+.1e", -2) == "-2.0e+00" +string.format("%0+.1e", 3) == "+3.0e+00" +string.format("%0+.1e", -3) == "-3.0e+00" +string.format("%0+.1e", 100) == "+1.0e+02" +string.format("%0+.1e", 10000) == "+1.0e+04" +string.format("%0+.1e", 100000) == "+1.0e+05" +string.format("%0+.1e", 1000000) == "+1.0e+06" +string.format("%0+.1e", 10000000) == "+1.0e+07" +string.format("%0+.1e", 0.01) == "+1.0e-02" +string.format("%0+.1e", 0.0001) == "+1.0e-04" +string.format("%0+.1e", 1e-05) == "+1.0e-05" +string.format("%0+.1e", 1e-06) == "+1.0e-06" +string.format("%0+.1e", 1e-07) == "+1.0e-07" +string.format("%0+.1e", 123.456) == "+1.2e+02" +string.format("%0+.1e", 1234560000) == "+1.2e+09" +string.format("%0+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0+.1e", 123.456789123) == "+1.2e+02" +string.format("%0+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0+1.0e", 0) == "+0e+00" +string.format("%0+1.0e", 1) == "+1e+00" +string.format("%0+1.0e", -1) == "-1e+00" +string.format("%0+1.0e", 2) == "+2e+00" +string.format("%0+1.0e", -2) == "-2e+00" +string.format("%0+1.0e", 3) == "+3e+00" +string.format("%0+1.0e", -3) == "-3e+00" +string.format("%0+1.0e", 100) == "+1e+02" +string.format("%0+1.0e", 10000) == "+1e+04" +string.format("%0+1.0e", 100000) == "+1e+05" +string.format("%0+1.0e", 1000000) == "+1e+06" +string.format("%0+1.0e", 10000000) == "+1e+07" +string.format("%0+1.0e", 0.01) == "+1e-02" +string.format("%0+1.0e", 0.0001) == "+1e-04" +string.format("%0+1.0e", 1e-05) == "+1e-05" +string.format("%0+1.0e", 1e-06) == "+1e-06" +string.format("%0+1.0e", 1e-07) == "+1e-07" +string.format("%0+1.0e", 123.456) == "+1e+02" +string.format("%0+1.0e", 1234560000) == "+1e+09" +string.format("%0+1.0e", 1.23456e-05) == "+1e-05" +string.format("%0+1.0e", 123.456789123) == "+1e+02" +string.format("%0+1.0e", 1234567891.23) == "+1e+09" +string.format("%0+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0+1.1e", 0) == "+0.0e+00" +string.format("%0+1.1e", 1) == "+1.0e+00" +string.format("%0+1.1e", -1) == "-1.0e+00" +string.format("%0+1.1e", 2) == "+2.0e+00" +string.format("%0+1.1e", -2) == "-2.0e+00" +string.format("%0+1.1e", 3) == "+3.0e+00" +string.format("%0+1.1e", -3) == "-3.0e+00" +string.format("%0+1.1e", 100) == "+1.0e+02" +string.format("%0+1.1e", 10000) == "+1.0e+04" +string.format("%0+1.1e", 100000) == "+1.0e+05" +string.format("%0+1.1e", 1000000) == "+1.0e+06" +string.format("%0+1.1e", 10000000) == "+1.0e+07" +string.format("%0+1.1e", 0.01) == "+1.0e-02" +string.format("%0+1.1e", 0.0001) == "+1.0e-04" +string.format("%0+1.1e", 1e-05) == "+1.0e-05" +string.format("%0+1.1e", 1e-06) == "+1.0e-06" +string.format("%0+1.1e", 1e-07) == "+1.0e-07" +string.format("%0+1.1e", 123.456) == "+1.2e+02" +string.format("%0+1.1e", 1234560000) == "+1.2e+09" +string.format("%0+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0+2.0e", 0) == "+0e+00" +string.format("%0+2.0e", 1) == "+1e+00" +string.format("%0+2.0e", -1) == "-1e+00" +string.format("%0+2.0e", 2) == "+2e+00" +string.format("%0+2.0e", -2) == "-2e+00" +string.format("%0+2.0e", 3) == "+3e+00" +string.format("%0+2.0e", -3) == "-3e+00" +string.format("%0+2.0e", 100) == "+1e+02" +string.format("%0+2.0e", 10000) == "+1e+04" +string.format("%0+2.0e", 100000) == "+1e+05" +string.format("%0+2.0e", 1000000) == "+1e+06" +string.format("%0+2.0e", 10000000) == "+1e+07" +string.format("%0+2.0e", 0.01) == "+1e-02" +string.format("%0+2.0e", 0.0001) == "+1e-04" +string.format("%0+2.0e", 1e-05) == "+1e-05" +string.format("%0+2.0e", 1e-06) == "+1e-06" +string.format("%0+2.0e", 1e-07) == "+1e-07" +string.format("%0+2.0e", 123.456) == "+1e+02" +string.format("%0+2.0e", 1234560000) == "+1e+09" +string.format("%0+2.0e", 1.23456e-05) == "+1e-05" +string.format("%0+2.0e", 123.456789123) == "+1e+02" +string.format("%0+2.0e", 1234567891.23) == "+1e+09" +string.format("%0+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0+2.1e", 0) == "+0.0e+00" +string.format("%0+2.1e", 1) == "+1.0e+00" +string.format("%0+2.1e", -1) == "-1.0e+00" +string.format("%0+2.1e", 2) == "+2.0e+00" +string.format("%0+2.1e", -2) == "-2.0e+00" +string.format("%0+2.1e", 3) == "+3.0e+00" +string.format("%0+2.1e", -3) == "-3.0e+00" +string.format("%0+2.1e", 100) == "+1.0e+02" +string.format("%0+2.1e", 10000) == "+1.0e+04" +string.format("%0+2.1e", 100000) == "+1.0e+05" +string.format("%0+2.1e", 1000000) == "+1.0e+06" +string.format("%0+2.1e", 10000000) == "+1.0e+07" +string.format("%0+2.1e", 0.01) == "+1.0e-02" +string.format("%0+2.1e", 0.0001) == "+1.0e-04" +string.format("%0+2.1e", 1e-05) == "+1.0e-05" +string.format("%0+2.1e", 1e-06) == "+1.0e-06" +string.format("%0+2.1e", 1e-07) == "+1.0e-07" +string.format("%0+2.1e", 123.456) == "+1.2e+02" +string.format("%0+2.1e", 1234560000) == "+1.2e+09" +string.format("%0+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0+6e", nan) == " +nan" +string.format("%0+6e", inf) == " +inf" +string.format("%0+6e", -inf) == " -inf" +string.format("%0+6.0e", 0) == "+0e+00" +string.format("%0+6.0e", 1) == "+1e+00" +string.format("%0+6.0e", -1) == "-1e+00" +string.format("%0+6.0e", 2) == "+2e+00" +string.format("%0+6.0e", -2) == "-2e+00" +string.format("%0+6.0e", 3) == "+3e+00" +string.format("%0+6.0e", -3) == "-3e+00" +string.format("%0+6.0e", nan) == " +nan" +string.format("%0+6.0e", inf) == " +inf" +string.format("%0+6.0e", -inf) == " -inf" +string.format("%0+6.0e", 100) == "+1e+02" +string.format("%0+6.0e", 10000) == "+1e+04" +string.format("%0+6.0e", 100000) == "+1e+05" +string.format("%0+6.0e", 1000000) == "+1e+06" +string.format("%0+6.0e", 10000000) == "+1e+07" +string.format("%0+6.0e", 0.01) == "+1e-02" +string.format("%0+6.0e", 0.0001) == "+1e-04" +string.format("%0+6.0e", 1e-05) == "+1e-05" +string.format("%0+6.0e", 1e-06) == "+1e-06" +string.format("%0+6.0e", 1e-07) == "+1e-07" +string.format("%0+6.0e", 123.456) == "+1e+02" +string.format("%0+6.0e", 1234560000) == "+1e+09" +string.format("%0+6.0e", 1.23456e-05) == "+1e-05" +string.format("%0+6.0e", 123.456789123) == "+1e+02" +string.format("%0+6.0e", 1234567891.23) == "+1e+09" +string.format("%0+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0+6.1e", 0) == "+0.0e+00" +string.format("%0+6.1e", 1) == "+1.0e+00" +string.format("%0+6.1e", -1) == "-1.0e+00" +string.format("%0+6.1e", 2) == "+2.0e+00" +string.format("%0+6.1e", -2) == "-2.0e+00" +string.format("%0+6.1e", 3) == "+3.0e+00" +string.format("%0+6.1e", -3) == "-3.0e+00" +string.format("%0+6.1e", nan) == " +nan" +string.format("%0+6.1e", inf) == " +inf" +string.format("%0+6.1e", -inf) == " -inf" +string.format("%0+6.1e", 100) == "+1.0e+02" +string.format("%0+6.1e", 10000) == "+1.0e+04" +string.format("%0+6.1e", 100000) == "+1.0e+05" +string.format("%0+6.1e", 1000000) == "+1.0e+06" +string.format("%0+6.1e", 10000000) == "+1.0e+07" +string.format("%0+6.1e", 0.01) == "+1.0e-02" +string.format("%0+6.1e", 0.0001) == "+1.0e-04" +string.format("%0+6.1e", 1e-05) == "+1.0e-05" +string.format("%0+6.1e", 1e-06) == "+1.0e-06" +string.format("%0+6.1e", 1e-07) == "+1.0e-07" +string.format("%0+6.1e", 123.456) == "+1.2e+02" +string.format("%0+6.1e", 1234560000) == "+1.2e+09" +string.format("%0+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0+6.6e", nan) == " +nan" +string.format("%0+6.6e", inf) == " +inf" +string.format("%0+6.6e", -inf) == " -inf" +string.format("%0+20e", 0) == "+00000000.000000e+00" +string.format("%0+20e", 1) == "+00000001.000000e+00" +string.format("%0+20e", -1) == "-00000001.000000e+00" +string.format("%0+20e", 2) == "+00000002.000000e+00" +string.format("%0+20e", -2) == "-00000002.000000e+00" +string.format("%0+20e", 3) == "+00000003.000000e+00" +string.format("%0+20e", -3) == "-00000003.000000e+00" +string.format("%0+20e", nan) == " +nan" +string.format("%0+20e", inf) == " +inf" +string.format("%0+20e", -inf) == " -inf" +string.format("%0+20e", 100) == "+00000001.000000e+02" +string.format("%0+20e", 10000) == "+00000001.000000e+04" +string.format("%0+20e", 100000) == "+00000001.000000e+05" +string.format("%0+20e", 1000000) == "+00000001.000000e+06" +string.format("%0+20e", 10000000) == "+00000001.000000e+07" +string.format("%0+20e", 0.01) == "+00000001.000000e-02" +string.format("%0+20e", 0.0001) == "+00000001.000000e-04" +string.format("%0+20e", 1e-05) == "+00000001.000000e-05" +string.format("%0+20e", 1e-06) == "+00000001.000000e-06" +string.format("%0+20e", 1e-07) == "+00000001.000000e-07" +string.format("%0+20e", 123.456) == "+00000001.234560e+02" +string.format("%0+20e", 1234560000) == "+00000001.234560e+09" +string.format("%0+20e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0+20e", 123.456789123) == "+00000001.234568e+02" +string.format("%0+20e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0+20e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0+20.0e", 0) == "+000000000000000e+00" +string.format("%0+20.0e", 1) == "+000000000000001e+00" +string.format("%0+20.0e", -1) == "-000000000000001e+00" +string.format("%0+20.0e", 2) == "+000000000000002e+00" +string.format("%0+20.0e", -2) == "-000000000000002e+00" +string.format("%0+20.0e", 3) == "+000000000000003e+00" +string.format("%0+20.0e", -3) == "-000000000000003e+00" +string.format("%0+20.0e", nan) == " +nan" +string.format("%0+20.0e", inf) == " +inf" +string.format("%0+20.0e", -inf) == " -inf" +string.format("%0+20.0e", 100) == "+000000000000001e+02" +string.format("%0+20.0e", 10000) == "+000000000000001e+04" +string.format("%0+20.0e", 100000) == "+000000000000001e+05" +string.format("%0+20.0e", 1000000) == "+000000000000001e+06" +string.format("%0+20.0e", 10000000) == "+000000000000001e+07" +string.format("%0+20.0e", 0.01) == "+000000000000001e-02" +string.format("%0+20.0e", 0.0001) == "+000000000000001e-04" +string.format("%0+20.0e", 1e-05) == "+000000000000001e-05" +string.format("%0+20.0e", 1e-06) == "+000000000000001e-06" +string.format("%0+20.0e", 1e-07) == "+000000000000001e-07" +string.format("%0+20.0e", 123.456) == "+000000000000001e+02" +string.format("%0+20.0e", 1234560000) == "+000000000000001e+09" +string.format("%0+20.0e", 1.23456e-05) == "+000000000000001e-05" +string.format("%0+20.0e", 123.456789123) == "+000000000000001e+02" +string.format("%0+20.0e", 1234567891.23) == "+000000000000001e+09" +string.format("%0+20.0e", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0+20.1e", 0) == "+0000000000000.0e+00" +string.format("%0+20.1e", 1) == "+0000000000001.0e+00" +string.format("%0+20.1e", -1) == "-0000000000001.0e+00" +string.format("%0+20.1e", 2) == "+0000000000002.0e+00" +string.format("%0+20.1e", -2) == "-0000000000002.0e+00" +string.format("%0+20.1e", 3) == "+0000000000003.0e+00" +string.format("%0+20.1e", -3) == "-0000000000003.0e+00" +string.format("%0+20.1e", nan) == " +nan" +string.format("%0+20.1e", inf) == " +inf" +string.format("%0+20.1e", -inf) == " -inf" +string.format("%0+20.1e", 100) == "+0000000000001.0e+02" +string.format("%0+20.1e", 10000) == "+0000000000001.0e+04" +string.format("%0+20.1e", 100000) == "+0000000000001.0e+05" +string.format("%0+20.1e", 1000000) == "+0000000000001.0e+06" +string.format("%0+20.1e", 10000000) == "+0000000000001.0e+07" +string.format("%0+20.1e", 0.01) == "+0000000000001.0e-02" +string.format("%0+20.1e", 0.0001) == "+0000000000001.0e-04" +string.format("%0+20.1e", 1e-05) == "+0000000000001.0e-05" +string.format("%0+20.1e", 1e-06) == "+0000000000001.0e-06" +string.format("%0+20.1e", 1e-07) == "+0000000000001.0e-07" +string.format("%0+20.1e", 123.456) == "+0000000000001.2e+02" +string.format("%0+20.1e", 1234560000) == "+0000000000001.2e+09" +string.format("%0+20.1e", 1.23456e-05) == "+0000000000001.2e-05" +string.format("%0+20.1e", 123.456789123) == "+0000000000001.2e+02" +string.format("%0+20.1e", 1234567891.23) == "+0000000000001.2e+09" +string.format("%0+20.1e", 1.23456789123e-05) == "+0000000000001.2e-05" +string.format("%0+20.6e", 0) == "+00000000.000000e+00" +string.format("%0+20.6e", 1) == "+00000001.000000e+00" +string.format("%0+20.6e", -1) == "-00000001.000000e+00" +string.format("%0+20.6e", 2) == "+00000002.000000e+00" +string.format("%0+20.6e", -2) == "-00000002.000000e+00" +string.format("%0+20.6e", 3) == "+00000003.000000e+00" +string.format("%0+20.6e", -3) == "-00000003.000000e+00" +string.format("%0+20.6e", nan) == " +nan" +string.format("%0+20.6e", inf) == " +inf" +string.format("%0+20.6e", -inf) == " -inf" +string.format("%0+20.6e", 100) == "+00000001.000000e+02" +string.format("%0+20.6e", 10000) == "+00000001.000000e+04" +string.format("%0+20.6e", 100000) == "+00000001.000000e+05" +string.format("%0+20.6e", 1000000) == "+00000001.000000e+06" +string.format("%0+20.6e", 10000000) == "+00000001.000000e+07" +string.format("%0+20.6e", 0.01) == "+00000001.000000e-02" +string.format("%0+20.6e", 0.0001) == "+00000001.000000e-04" +string.format("%0+20.6e", 1e-05) == "+00000001.000000e-05" +string.format("%0+20.6e", 1e-06) == "+00000001.000000e-06" +string.format("%0+20.6e", 1e-07) == "+00000001.000000e-07" +string.format("%0+20.6e", 123.456) == "+00000001.234560e+02" +string.format("%0+20.6e", 1234560000) == "+00000001.234560e+09" +string.format("%0+20.6e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0+20.6e", 123.456789123) == "+00000001.234568e+02" +string.format("%0+20.6e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0+20.6e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0-e", 0) == "0.000000e+00" +string.format("%0-e", 1) == "1.000000e+00" +string.format("%0-e", -1) == "-1.000000e+00" +string.format("%0-e", 2) == "2.000000e+00" +string.format("%0-e", -2) == "-2.000000e+00" +string.format("%0-e", 3) == "3.000000e+00" +string.format("%0-e", -3) == "-3.000000e+00" +string.format("%0-e", nan) == "nan" +string.format("%0-e", inf) == "inf" +string.format("%0-e", -inf) == "-inf" +string.format("%0-e", 100) == "1.000000e+02" +string.format("%0-e", 10000) == "1.000000e+04" +string.format("%0-e", 100000) == "1.000000e+05" +string.format("%0-e", 1000000) == "1.000000e+06" +string.format("%0-e", 10000000) == "1.000000e+07" +string.format("%0-e", 0.01) == "1.000000e-02" +string.format("%0-e", 0.0001) == "1.000000e-04" +string.format("%0-e", 1e-05) == "1.000000e-05" +string.format("%0-e", 1e-06) == "1.000000e-06" +string.format("%0-e", 1e-07) == "1.000000e-07" +string.format("%0-e", 123.456) == "1.234560e+02" +string.format("%0-e", 1234560000) == "1.234560e+09" +string.format("%0-e", 1.23456e-05) == "1.234560e-05" +string.format("%0-e", 123.456789123) == "1.234568e+02" +string.format("%0-e", 1234567891.23) == "1.234568e+09" +string.format("%0-e", 1.23456789123e-05) == "1.234568e-05" +string.format("%0-.0e", 0) == "0e+00" +string.format("%0-.0e", 1) == "1e+00" +string.format("%0-.0e", -1) == "-1e+00" +string.format("%0-.0e", 2) == "2e+00" +string.format("%0-.0e", -2) == "-2e+00" +string.format("%0-.0e", 3) == "3e+00" +string.format("%0-.0e", -3) == "-3e+00" +string.format("%0-.0e", 100) == "1e+02" +string.format("%0-.0e", 10000) == "1e+04" +string.format("%0-.0e", 100000) == "1e+05" +string.format("%0-.0e", 1000000) == "1e+06" +string.format("%0-.0e", 10000000) == "1e+07" +string.format("%0-.0e", 0.01) == "1e-02" +string.format("%0-.0e", 0.0001) == "1e-04" +string.format("%0-.0e", 1e-05) == "1e-05" +string.format("%0-.0e", 1e-06) == "1e-06" +string.format("%0-.0e", 1e-07) == "1e-07" +string.format("%0-.0e", 123.456) == "1e+02" +string.format("%0-.0e", 1234560000) == "1e+09" +string.format("%0-.0e", 1.23456e-05) == "1e-05" +string.format("%0-.0e", 123.456789123) == "1e+02" +string.format("%0-.0e", 1234567891.23) == "1e+09" +string.format("%0-.0e", 1.23456789123e-05) == "1e-05" +string.format("%0-.1e", 0) == "0.0e+00" +string.format("%0-.1e", 1) == "1.0e+00" +string.format("%0-.1e", -1) == "-1.0e+00" +string.format("%0-.1e", 2) == "2.0e+00" +string.format("%0-.1e", -2) == "-2.0e+00" +string.format("%0-.1e", 3) == "3.0e+00" +string.format("%0-.1e", -3) == "-3.0e+00" +string.format("%0-.1e", 100) == "1.0e+02" +string.format("%0-.1e", 10000) == "1.0e+04" +string.format("%0-.1e", 100000) == "1.0e+05" +string.format("%0-.1e", 1000000) == "1.0e+06" +string.format("%0-.1e", 10000000) == "1.0e+07" +string.format("%0-.1e", 0.01) == "1.0e-02" +string.format("%0-.1e", 0.0001) == "1.0e-04" +string.format("%0-.1e", 1e-05) == "1.0e-05" +string.format("%0-.1e", 1e-06) == "1.0e-06" +string.format("%0-.1e", 1e-07) == "1.0e-07" +string.format("%0-.1e", 123.456) == "1.2e+02" +string.format("%0-.1e", 1234560000) == "1.2e+09" +string.format("%0-.1e", 1.23456e-05) == "1.2e-05" +string.format("%0-.1e", 123.456789123) == "1.2e+02" +string.format("%0-.1e", 1234567891.23) == "1.2e+09" +string.format("%0-.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0-1.0e", 0) == "0e+00" +string.format("%0-1.0e", 1) == "1e+00" +string.format("%0-1.0e", -1) == "-1e+00" +string.format("%0-1.0e", 2) == "2e+00" +string.format("%0-1.0e", -2) == "-2e+00" +string.format("%0-1.0e", 3) == "3e+00" +string.format("%0-1.0e", -3) == "-3e+00" +string.format("%0-1.0e", 100) == "1e+02" +string.format("%0-1.0e", 10000) == "1e+04" +string.format("%0-1.0e", 100000) == "1e+05" +string.format("%0-1.0e", 1000000) == "1e+06" +string.format("%0-1.0e", 10000000) == "1e+07" +string.format("%0-1.0e", 0.01) == "1e-02" +string.format("%0-1.0e", 0.0001) == "1e-04" +string.format("%0-1.0e", 1e-05) == "1e-05" +string.format("%0-1.0e", 1e-06) == "1e-06" +string.format("%0-1.0e", 1e-07) == "1e-07" +string.format("%0-1.0e", 123.456) == "1e+02" +string.format("%0-1.0e", 1234560000) == "1e+09" +string.format("%0-1.0e", 1.23456e-05) == "1e-05" +string.format("%0-1.0e", 123.456789123) == "1e+02" +string.format("%0-1.0e", 1234567891.23) == "1e+09" +string.format("%0-1.0e", 1.23456789123e-05) == "1e-05" +string.format("%0-1.1e", 0) == "0.0e+00" +string.format("%0-1.1e", 1) == "1.0e+00" +string.format("%0-1.1e", -1) == "-1.0e+00" +string.format("%0-1.1e", 2) == "2.0e+00" +string.format("%0-1.1e", -2) == "-2.0e+00" +string.format("%0-1.1e", 3) == "3.0e+00" +string.format("%0-1.1e", -3) == "-3.0e+00" +string.format("%0-1.1e", 100) == "1.0e+02" +string.format("%0-1.1e", 10000) == "1.0e+04" +string.format("%0-1.1e", 100000) == "1.0e+05" +string.format("%0-1.1e", 1000000) == "1.0e+06" +string.format("%0-1.1e", 10000000) == "1.0e+07" +string.format("%0-1.1e", 0.01) == "1.0e-02" +string.format("%0-1.1e", 0.0001) == "1.0e-04" +string.format("%0-1.1e", 1e-05) == "1.0e-05" +string.format("%0-1.1e", 1e-06) == "1.0e-06" +string.format("%0-1.1e", 1e-07) == "1.0e-07" +string.format("%0-1.1e", 123.456) == "1.2e+02" +string.format("%0-1.1e", 1234560000) == "1.2e+09" +string.format("%0-1.1e", 1.23456e-05) == "1.2e-05" +string.format("%0-1.1e", 123.456789123) == "1.2e+02" +string.format("%0-1.1e", 1234567891.23) == "1.2e+09" +string.format("%0-1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0-2.0e", 0) == "0e+00" +string.format("%0-2.0e", 1) == "1e+00" +string.format("%0-2.0e", -1) == "-1e+00" +string.format("%0-2.0e", 2) == "2e+00" +string.format("%0-2.0e", -2) == "-2e+00" +string.format("%0-2.0e", 3) == "3e+00" +string.format("%0-2.0e", -3) == "-3e+00" +string.format("%0-2.0e", 100) == "1e+02" +string.format("%0-2.0e", 10000) == "1e+04" +string.format("%0-2.0e", 100000) == "1e+05" +string.format("%0-2.0e", 1000000) == "1e+06" +string.format("%0-2.0e", 10000000) == "1e+07" +string.format("%0-2.0e", 0.01) == "1e-02" +string.format("%0-2.0e", 0.0001) == "1e-04" +string.format("%0-2.0e", 1e-05) == "1e-05" +string.format("%0-2.0e", 1e-06) == "1e-06" +string.format("%0-2.0e", 1e-07) == "1e-07" +string.format("%0-2.0e", 123.456) == "1e+02" +string.format("%0-2.0e", 1234560000) == "1e+09" +string.format("%0-2.0e", 1.23456e-05) == "1e-05" +string.format("%0-2.0e", 123.456789123) == "1e+02" +string.format("%0-2.0e", 1234567891.23) == "1e+09" +string.format("%0-2.0e", 1.23456789123e-05) == "1e-05" +string.format("%0-2.1e", 0) == "0.0e+00" +string.format("%0-2.1e", 1) == "1.0e+00" +string.format("%0-2.1e", -1) == "-1.0e+00" +string.format("%0-2.1e", 2) == "2.0e+00" +string.format("%0-2.1e", -2) == "-2.0e+00" +string.format("%0-2.1e", 3) == "3.0e+00" +string.format("%0-2.1e", -3) == "-3.0e+00" +string.format("%0-2.1e", 100) == "1.0e+02" +string.format("%0-2.1e", 10000) == "1.0e+04" +string.format("%0-2.1e", 100000) == "1.0e+05" +string.format("%0-2.1e", 1000000) == "1.0e+06" +string.format("%0-2.1e", 10000000) == "1.0e+07" +string.format("%0-2.1e", 0.01) == "1.0e-02" +string.format("%0-2.1e", 0.0001) == "1.0e-04" +string.format("%0-2.1e", 1e-05) == "1.0e-05" +string.format("%0-2.1e", 1e-06) == "1.0e-06" +string.format("%0-2.1e", 1e-07) == "1.0e-07" +string.format("%0-2.1e", 123.456) == "1.2e+02" +string.format("%0-2.1e", 1234560000) == "1.2e+09" +string.format("%0-2.1e", 1.23456e-05) == "1.2e-05" +string.format("%0-2.1e", 123.456789123) == "1.2e+02" +string.format("%0-2.1e", 1234567891.23) == "1.2e+09" +string.format("%0-2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0-6e", nan) == "nan " +string.format("%0-6e", inf) == "inf " +string.format("%0-6e", -inf) == "-inf " +string.format("%0-6.0e", 0) == "0e+00 " +string.format("%0-6.0e", 1) == "1e+00 " +string.format("%0-6.0e", -1) == "-1e+00" +string.format("%0-6.0e", 2) == "2e+00 " +string.format("%0-6.0e", -2) == "-2e+00" +string.format("%0-6.0e", 3) == "3e+00 " +string.format("%0-6.0e", -3) == "-3e+00" +string.format("%0-6.0e", nan) == "nan " +string.format("%0-6.0e", inf) == "inf " +string.format("%0-6.0e", -inf) == "-inf " +string.format("%0-6.0e", 100) == "1e+02 " +string.format("%0-6.0e", 10000) == "1e+04 " +string.format("%0-6.0e", 100000) == "1e+05 " +string.format("%0-6.0e", 1000000) == "1e+06 " +string.format("%0-6.0e", 10000000) == "1e+07 " +string.format("%0-6.0e", 0.01) == "1e-02 " +string.format("%0-6.0e", 0.0001) == "1e-04 " +string.format("%0-6.0e", 1e-05) == "1e-05 " +string.format("%0-6.0e", 1e-06) == "1e-06 " +string.format("%0-6.0e", 1e-07) == "1e-07 " +string.format("%0-6.0e", 123.456) == "1e+02 " +string.format("%0-6.0e", 1234560000) == "1e+09 " +string.format("%0-6.0e", 1.23456e-05) == "1e-05 " +string.format("%0-6.0e", 123.456789123) == "1e+02 " +string.format("%0-6.0e", 1234567891.23) == "1e+09 " +string.format("%0-6.0e", 1.23456789123e-05) == "1e-05 " +string.format("%0-6.1e", 0) == "0.0e+00" +string.format("%0-6.1e", 1) == "1.0e+00" +string.format("%0-6.1e", -1) == "-1.0e+00" +string.format("%0-6.1e", 2) == "2.0e+00" +string.format("%0-6.1e", -2) == "-2.0e+00" +string.format("%0-6.1e", 3) == "3.0e+00" +string.format("%0-6.1e", -3) == "-3.0e+00" +string.format("%0-6.1e", nan) == "nan " +string.format("%0-6.1e", inf) == "inf " +string.format("%0-6.1e", -inf) == "-inf " +string.format("%0-6.1e", 100) == "1.0e+02" +string.format("%0-6.1e", 10000) == "1.0e+04" +string.format("%0-6.1e", 100000) == "1.0e+05" +string.format("%0-6.1e", 1000000) == "1.0e+06" +string.format("%0-6.1e", 10000000) == "1.0e+07" +string.format("%0-6.1e", 0.01) == "1.0e-02" +string.format("%0-6.1e", 0.0001) == "1.0e-04" +string.format("%0-6.1e", 1e-05) == "1.0e-05" +string.format("%0-6.1e", 1e-06) == "1.0e-06" +string.format("%0-6.1e", 1e-07) == "1.0e-07" +string.format("%0-6.1e", 123.456) == "1.2e+02" +string.format("%0-6.1e", 1234560000) == "1.2e+09" +string.format("%0-6.1e", 1.23456e-05) == "1.2e-05" +string.format("%0-6.1e", 123.456789123) == "1.2e+02" +string.format("%0-6.1e", 1234567891.23) == "1.2e+09" +string.format("%0-6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0-6.6e", nan) == "nan " +string.format("%0-6.6e", inf) == "inf " +string.format("%0-6.6e", -inf) == "-inf " +string.format("%0-20e", 0) == "0.000000e+00 " +string.format("%0-20e", 1) == "1.000000e+00 " +string.format("%0-20e", -1) == "-1.000000e+00 " +string.format("%0-20e", 2) == "2.000000e+00 " +string.format("%0-20e", -2) == "-2.000000e+00 " +string.format("%0-20e", 3) == "3.000000e+00 " +string.format("%0-20e", -3) == "-3.000000e+00 " +string.format("%0-20e", nan) == "nan " +string.format("%0-20e", inf) == "inf " +string.format("%0-20e", -inf) == "-inf " +string.format("%0-20e", 100) == "1.000000e+02 " +string.format("%0-20e", 10000) == "1.000000e+04 " +string.format("%0-20e", 100000) == "1.000000e+05 " +string.format("%0-20e", 1000000) == "1.000000e+06 " +string.format("%0-20e", 10000000) == "1.000000e+07 " +string.format("%0-20e", 0.01) == "1.000000e-02 " +string.format("%0-20e", 0.0001) == "1.000000e-04 " +string.format("%0-20e", 1e-05) == "1.000000e-05 " +string.format("%0-20e", 1e-06) == "1.000000e-06 " +string.format("%0-20e", 1e-07) == "1.000000e-07 " +string.format("%0-20e", 123.456) == "1.234560e+02 " +string.format("%0-20e", 1234560000) == "1.234560e+09 " +string.format("%0-20e", 1.23456e-05) == "1.234560e-05 " +string.format("%0-20e", 123.456789123) == "1.234568e+02 " +string.format("%0-20e", 1234567891.23) == "1.234568e+09 " +string.format("%0-20e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%0-20.0e", 0) == "0e+00 " +string.format("%0-20.0e", 1) == "1e+00 " +string.format("%0-20.0e", -1) == "-1e+00 " +string.format("%0-20.0e", 2) == "2e+00 " +string.format("%0-20.0e", -2) == "-2e+00 " +string.format("%0-20.0e", 3) == "3e+00 " +string.format("%0-20.0e", -3) == "-3e+00 " +string.format("%0-20.0e", nan) == "nan " +string.format("%0-20.0e", inf) == "inf " +string.format("%0-20.0e", -inf) == "-inf " +string.format("%0-20.0e", 100) == "1e+02 " +string.format("%0-20.0e", 10000) == "1e+04 " +string.format("%0-20.0e", 100000) == "1e+05 " +string.format("%0-20.0e", 1000000) == "1e+06 " +string.format("%0-20.0e", 10000000) == "1e+07 " +string.format("%0-20.0e", 0.01) == "1e-02 " +string.format("%0-20.0e", 0.0001) == "1e-04 " +string.format("%0-20.0e", 1e-05) == "1e-05 " +string.format("%0-20.0e", 1e-06) == "1e-06 " +string.format("%0-20.0e", 1e-07) == "1e-07 " +string.format("%0-20.0e", 123.456) == "1e+02 " +string.format("%0-20.0e", 1234560000) == "1e+09 " +string.format("%0-20.0e", 1.23456e-05) == "1e-05 " +string.format("%0-20.0e", 123.456789123) == "1e+02 " +string.format("%0-20.0e", 1234567891.23) == "1e+09 " +string.format("%0-20.0e", 1.23456789123e-05) == "1e-05 " +string.format("%0-20.1e", 0) == "0.0e+00 " +string.format("%0-20.1e", 1) == "1.0e+00 " +string.format("%0-20.1e", -1) == "-1.0e+00 " +string.format("%0-20.1e", 2) == "2.0e+00 " +string.format("%0-20.1e", -2) == "-2.0e+00 " +string.format("%0-20.1e", 3) == "3.0e+00 " +string.format("%0-20.1e", -3) == "-3.0e+00 " +string.format("%0-20.1e", nan) == "nan " +string.format("%0-20.1e", inf) == "inf " +string.format("%0-20.1e", -inf) == "-inf " +string.format("%0-20.1e", 100) == "1.0e+02 " +string.format("%0-20.1e", 10000) == "1.0e+04 " +string.format("%0-20.1e", 100000) == "1.0e+05 " +string.format("%0-20.1e", 1000000) == "1.0e+06 " +string.format("%0-20.1e", 10000000) == "1.0e+07 " +string.format("%0-20.1e", 0.01) == "1.0e-02 " +string.format("%0-20.1e", 0.0001) == "1.0e-04 " +string.format("%0-20.1e", 1e-05) == "1.0e-05 " +string.format("%0-20.1e", 1e-06) == "1.0e-06 " +string.format("%0-20.1e", 1e-07) == "1.0e-07 " +string.format("%0-20.1e", 123.456) == "1.2e+02 " +string.format("%0-20.1e", 1234560000) == "1.2e+09 " +string.format("%0-20.1e", 1.23456e-05) == "1.2e-05 " +string.format("%0-20.1e", 123.456789123) == "1.2e+02 " +string.format("%0-20.1e", 1234567891.23) == "1.2e+09 " +string.format("%0-20.1e", 1.23456789123e-05) == "1.2e-05 " +string.format("%0-20.6e", 0) == "0.000000e+00 " +string.format("%0-20.6e", 1) == "1.000000e+00 " +string.format("%0-20.6e", -1) == "-1.000000e+00 " +string.format("%0-20.6e", 2) == "2.000000e+00 " +string.format("%0-20.6e", -2) == "-2.000000e+00 " +string.format("%0-20.6e", 3) == "3.000000e+00 " +string.format("%0-20.6e", -3) == "-3.000000e+00 " +string.format("%0-20.6e", nan) == "nan " +string.format("%0-20.6e", inf) == "inf " +string.format("%0-20.6e", -inf) == "-inf " +string.format("%0-20.6e", 100) == "1.000000e+02 " +string.format("%0-20.6e", 10000) == "1.000000e+04 " +string.format("%0-20.6e", 100000) == "1.000000e+05 " +string.format("%0-20.6e", 1000000) == "1.000000e+06 " +string.format("%0-20.6e", 10000000) == "1.000000e+07 " +string.format("%0-20.6e", 0.01) == "1.000000e-02 " +string.format("%0-20.6e", 0.0001) == "1.000000e-04 " +string.format("%0-20.6e", 1e-05) == "1.000000e-05 " +string.format("%0-20.6e", 1e-06) == "1.000000e-06 " +string.format("%0-20.6e", 1e-07) == "1.000000e-07 " +string.format("%0-20.6e", 123.456) == "1.234560e+02 " +string.format("%0-20.6e", 1234560000) == "1.234560e+09 " +string.format("%0-20.6e", 1.23456e-05) == "1.234560e-05 " +string.format("%0-20.6e", 123.456789123) == "1.234568e+02 " +string.format("%0-20.6e", 1234567891.23) == "1.234568e+09 " +string.format("%0-20.6e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%0-+e", 0) == "+0.000000e+00" +string.format("%0-+e", 1) == "+1.000000e+00" +string.format("%0-+e", -1) == "-1.000000e+00" +string.format("%0-+e", 2) == "+2.000000e+00" +string.format("%0-+e", -2) == "-2.000000e+00" +string.format("%0-+e", 3) == "+3.000000e+00" +string.format("%0-+e", -3) == "-3.000000e+00" +string.format("%0-+e", nan) == "+nan" +string.format("%0-+e", inf) == "+inf" +string.format("%0-+e", -inf) == "-inf" +string.format("%0-+e", 100) == "+1.000000e+02" +string.format("%0-+e", 10000) == "+1.000000e+04" +string.format("%0-+e", 100000) == "+1.000000e+05" +string.format("%0-+e", 1000000) == "+1.000000e+06" +string.format("%0-+e", 10000000) == "+1.000000e+07" +string.format("%0-+e", 0.01) == "+1.000000e-02" +string.format("%0-+e", 0.0001) == "+1.000000e-04" +string.format("%0-+e", 1e-05) == "+1.000000e-05" +string.format("%0-+e", 1e-06) == "+1.000000e-06" +string.format("%0-+e", 1e-07) == "+1.000000e-07" +string.format("%0-+e", 123.456) == "+1.234560e+02" +string.format("%0-+e", 1234560000) == "+1.234560e+09" +string.format("%0-+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0-+e", 123.456789123) == "+1.234568e+02" +string.format("%0-+e", 1234567891.23) == "+1.234568e+09" +string.format("%0-+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0-+.0e", 0) == "+0e+00" +string.format("%0-+.0e", 1) == "+1e+00" +string.format("%0-+.0e", -1) == "-1e+00" +string.format("%0-+.0e", 2) == "+2e+00" +string.format("%0-+.0e", -2) == "-2e+00" +string.format("%0-+.0e", 3) == "+3e+00" +string.format("%0-+.0e", -3) == "-3e+00" +string.format("%0-+.0e", 100) == "+1e+02" +string.format("%0-+.0e", 10000) == "+1e+04" +string.format("%0-+.0e", 100000) == "+1e+05" +string.format("%0-+.0e", 1000000) == "+1e+06" +string.format("%0-+.0e", 10000000) == "+1e+07" +string.format("%0-+.0e", 0.01) == "+1e-02" +string.format("%0-+.0e", 0.0001) == "+1e-04" +string.format("%0-+.0e", 1e-05) == "+1e-05" +string.format("%0-+.0e", 1e-06) == "+1e-06" +string.format("%0-+.0e", 1e-07) == "+1e-07" +string.format("%0-+.0e", 123.456) == "+1e+02" +string.format("%0-+.0e", 1234560000) == "+1e+09" +string.format("%0-+.0e", 1.23456e-05) == "+1e-05" +string.format("%0-+.0e", 123.456789123) == "+1e+02" +string.format("%0-+.0e", 1234567891.23) == "+1e+09" +string.format("%0-+.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0-+.1e", 0) == "+0.0e+00" +string.format("%0-+.1e", 1) == "+1.0e+00" +string.format("%0-+.1e", -1) == "-1.0e+00" +string.format("%0-+.1e", 2) == "+2.0e+00" +string.format("%0-+.1e", -2) == "-2.0e+00" +string.format("%0-+.1e", 3) == "+3.0e+00" +string.format("%0-+.1e", -3) == "-3.0e+00" +string.format("%0-+.1e", 100) == "+1.0e+02" +string.format("%0-+.1e", 10000) == "+1.0e+04" +string.format("%0-+.1e", 100000) == "+1.0e+05" +string.format("%0-+.1e", 1000000) == "+1.0e+06" +string.format("%0-+.1e", 10000000) == "+1.0e+07" +string.format("%0-+.1e", 0.01) == "+1.0e-02" +string.format("%0-+.1e", 0.0001) == "+1.0e-04" +string.format("%0-+.1e", 1e-05) == "+1.0e-05" +string.format("%0-+.1e", 1e-06) == "+1.0e-06" +string.format("%0-+.1e", 1e-07) == "+1.0e-07" +string.format("%0-+.1e", 123.456) == "+1.2e+02" +string.format("%0-+.1e", 1234560000) == "+1.2e+09" +string.format("%0-+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0-+.1e", 123.456789123) == "+1.2e+02" +string.format("%0-+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0-+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0-+1.0e", 0) == "+0e+00" +string.format("%0-+1.0e", 1) == "+1e+00" +string.format("%0-+1.0e", -1) == "-1e+00" +string.format("%0-+1.0e", 2) == "+2e+00" +string.format("%0-+1.0e", -2) == "-2e+00" +string.format("%0-+1.0e", 3) == "+3e+00" +string.format("%0-+1.0e", -3) == "-3e+00" +string.format("%0-+1.0e", 100) == "+1e+02" +string.format("%0-+1.0e", 10000) == "+1e+04" +string.format("%0-+1.0e", 100000) == "+1e+05" +string.format("%0-+1.0e", 1000000) == "+1e+06" +string.format("%0-+1.0e", 10000000) == "+1e+07" +string.format("%0-+1.0e", 0.01) == "+1e-02" +string.format("%0-+1.0e", 0.0001) == "+1e-04" +string.format("%0-+1.0e", 1e-05) == "+1e-05" +string.format("%0-+1.0e", 1e-06) == "+1e-06" +string.format("%0-+1.0e", 1e-07) == "+1e-07" +string.format("%0-+1.0e", 123.456) == "+1e+02" +string.format("%0-+1.0e", 1234560000) == "+1e+09" +string.format("%0-+1.0e", 1.23456e-05) == "+1e-05" +string.format("%0-+1.0e", 123.456789123) == "+1e+02" +string.format("%0-+1.0e", 1234567891.23) == "+1e+09" +string.format("%0-+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0-+1.1e", 0) == "+0.0e+00" +string.format("%0-+1.1e", 1) == "+1.0e+00" +string.format("%0-+1.1e", -1) == "-1.0e+00" +string.format("%0-+1.1e", 2) == "+2.0e+00" +string.format("%0-+1.1e", -2) == "-2.0e+00" +string.format("%0-+1.1e", 3) == "+3.0e+00" +string.format("%0-+1.1e", -3) == "-3.0e+00" +string.format("%0-+1.1e", 100) == "+1.0e+02" +string.format("%0-+1.1e", 10000) == "+1.0e+04" +string.format("%0-+1.1e", 100000) == "+1.0e+05" +string.format("%0-+1.1e", 1000000) == "+1.0e+06" +string.format("%0-+1.1e", 10000000) == "+1.0e+07" +string.format("%0-+1.1e", 0.01) == "+1.0e-02" +string.format("%0-+1.1e", 0.0001) == "+1.0e-04" +string.format("%0-+1.1e", 1e-05) == "+1.0e-05" +string.format("%0-+1.1e", 1e-06) == "+1.0e-06" +string.format("%0-+1.1e", 1e-07) == "+1.0e-07" +string.format("%0-+1.1e", 123.456) == "+1.2e+02" +string.format("%0-+1.1e", 1234560000) == "+1.2e+09" +string.format("%0-+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0-+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0-+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0-+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0-+2.0e", 0) == "+0e+00" +string.format("%0-+2.0e", 1) == "+1e+00" +string.format("%0-+2.0e", -1) == "-1e+00" +string.format("%0-+2.0e", 2) == "+2e+00" +string.format("%0-+2.0e", -2) == "-2e+00" +string.format("%0-+2.0e", 3) == "+3e+00" +string.format("%0-+2.0e", -3) == "-3e+00" +string.format("%0-+2.0e", 100) == "+1e+02" +string.format("%0-+2.0e", 10000) == "+1e+04" +string.format("%0-+2.0e", 100000) == "+1e+05" +string.format("%0-+2.0e", 1000000) == "+1e+06" +string.format("%0-+2.0e", 10000000) == "+1e+07" +string.format("%0-+2.0e", 0.01) == "+1e-02" +string.format("%0-+2.0e", 0.0001) == "+1e-04" +string.format("%0-+2.0e", 1e-05) == "+1e-05" +string.format("%0-+2.0e", 1e-06) == "+1e-06" +string.format("%0-+2.0e", 1e-07) == "+1e-07" +string.format("%0-+2.0e", 123.456) == "+1e+02" +string.format("%0-+2.0e", 1234560000) == "+1e+09" +string.format("%0-+2.0e", 1.23456e-05) == "+1e-05" +string.format("%0-+2.0e", 123.456789123) == "+1e+02" +string.format("%0-+2.0e", 1234567891.23) == "+1e+09" +string.format("%0-+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0-+2.1e", 0) == "+0.0e+00" +string.format("%0-+2.1e", 1) == "+1.0e+00" +string.format("%0-+2.1e", -1) == "-1.0e+00" +string.format("%0-+2.1e", 2) == "+2.0e+00" +string.format("%0-+2.1e", -2) == "-2.0e+00" +string.format("%0-+2.1e", 3) == "+3.0e+00" +string.format("%0-+2.1e", -3) == "-3.0e+00" +string.format("%0-+2.1e", 100) == "+1.0e+02" +string.format("%0-+2.1e", 10000) == "+1.0e+04" +string.format("%0-+2.1e", 100000) == "+1.0e+05" +string.format("%0-+2.1e", 1000000) == "+1.0e+06" +string.format("%0-+2.1e", 10000000) == "+1.0e+07" +string.format("%0-+2.1e", 0.01) == "+1.0e-02" +string.format("%0-+2.1e", 0.0001) == "+1.0e-04" +string.format("%0-+2.1e", 1e-05) == "+1.0e-05" +string.format("%0-+2.1e", 1e-06) == "+1.0e-06" +string.format("%0-+2.1e", 1e-07) == "+1.0e-07" +string.format("%0-+2.1e", 123.456) == "+1.2e+02" +string.format("%0-+2.1e", 1234560000) == "+1.2e+09" +string.format("%0-+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0-+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0-+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0-+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0-+6e", nan) == "+nan " +string.format("%0-+6e", inf) == "+inf " +string.format("%0-+6e", -inf) == "-inf " +string.format("%0-+6.0e", 0) == "+0e+00" +string.format("%0-+6.0e", 1) == "+1e+00" +string.format("%0-+6.0e", -1) == "-1e+00" +string.format("%0-+6.0e", 2) == "+2e+00" +string.format("%0-+6.0e", -2) == "-2e+00" +string.format("%0-+6.0e", 3) == "+3e+00" +string.format("%0-+6.0e", -3) == "-3e+00" +string.format("%0-+6.0e", nan) == "+nan " +string.format("%0-+6.0e", inf) == "+inf " +string.format("%0-+6.0e", -inf) == "-inf " +string.format("%0-+6.0e", 100) == "+1e+02" +string.format("%0-+6.0e", 10000) == "+1e+04" +string.format("%0-+6.0e", 100000) == "+1e+05" +string.format("%0-+6.0e", 1000000) == "+1e+06" +string.format("%0-+6.0e", 10000000) == "+1e+07" +string.format("%0-+6.0e", 0.01) == "+1e-02" +string.format("%0-+6.0e", 0.0001) == "+1e-04" +string.format("%0-+6.0e", 1e-05) == "+1e-05" +string.format("%0-+6.0e", 1e-06) == "+1e-06" +string.format("%0-+6.0e", 1e-07) == "+1e-07" +string.format("%0-+6.0e", 123.456) == "+1e+02" +string.format("%0-+6.0e", 1234560000) == "+1e+09" +string.format("%0-+6.0e", 1.23456e-05) == "+1e-05" +string.format("%0-+6.0e", 123.456789123) == "+1e+02" +string.format("%0-+6.0e", 1234567891.23) == "+1e+09" +string.format("%0-+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0-+6.1e", 0) == "+0.0e+00" +string.format("%0-+6.1e", 1) == "+1.0e+00" +string.format("%0-+6.1e", -1) == "-1.0e+00" +string.format("%0-+6.1e", 2) == "+2.0e+00" +string.format("%0-+6.1e", -2) == "-2.0e+00" +string.format("%0-+6.1e", 3) == "+3.0e+00" +string.format("%0-+6.1e", -3) == "-3.0e+00" +string.format("%0-+6.1e", nan) == "+nan " +string.format("%0-+6.1e", inf) == "+inf " +string.format("%0-+6.1e", -inf) == "-inf " +string.format("%0-+6.1e", 100) == "+1.0e+02" +string.format("%0-+6.1e", 10000) == "+1.0e+04" +string.format("%0-+6.1e", 100000) == "+1.0e+05" +string.format("%0-+6.1e", 1000000) == "+1.0e+06" +string.format("%0-+6.1e", 10000000) == "+1.0e+07" +string.format("%0-+6.1e", 0.01) == "+1.0e-02" +string.format("%0-+6.1e", 0.0001) == "+1.0e-04" +string.format("%0-+6.1e", 1e-05) == "+1.0e-05" +string.format("%0-+6.1e", 1e-06) == "+1.0e-06" +string.format("%0-+6.1e", 1e-07) == "+1.0e-07" +string.format("%0-+6.1e", 123.456) == "+1.2e+02" +string.format("%0-+6.1e", 1234560000) == "+1.2e+09" +string.format("%0-+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0-+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0-+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0-+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0-+6.6e", nan) == "+nan " +string.format("%0-+6.6e", inf) == "+inf " +string.format("%0-+6.6e", -inf) == "-inf " +string.format("%0-+20e", 0) == "+0.000000e+00 " +string.format("%0-+20e", 1) == "+1.000000e+00 " +string.format("%0-+20e", -1) == "-1.000000e+00 " +string.format("%0-+20e", 2) == "+2.000000e+00 " +string.format("%0-+20e", -2) == "-2.000000e+00 " +string.format("%0-+20e", 3) == "+3.000000e+00 " +string.format("%0-+20e", -3) == "-3.000000e+00 " +string.format("%0-+20e", nan) == "+nan " +string.format("%0-+20e", inf) == "+inf " +string.format("%0-+20e", -inf) == "-inf " +string.format("%0-+20e", 100) == "+1.000000e+02 " +string.format("%0-+20e", 10000) == "+1.000000e+04 " +string.format("%0-+20e", 100000) == "+1.000000e+05 " +string.format("%0-+20e", 1000000) == "+1.000000e+06 " +string.format("%0-+20e", 10000000) == "+1.000000e+07 " +string.format("%0-+20e", 0.01) == "+1.000000e-02 " +string.format("%0-+20e", 0.0001) == "+1.000000e-04 " +string.format("%0-+20e", 1e-05) == "+1.000000e-05 " +string.format("%0-+20e", 1e-06) == "+1.000000e-06 " +string.format("%0-+20e", 1e-07) == "+1.000000e-07 " +string.format("%0-+20e", 123.456) == "+1.234560e+02 " +string.format("%0-+20e", 1234560000) == "+1.234560e+09 " +string.format("%0-+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0-+20e", 123.456789123) == "+1.234568e+02 " +string.format("%0-+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%0-+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0-+20.0e", 0) == "+0e+00 " +string.format("%0-+20.0e", 1) == "+1e+00 " +string.format("%0-+20.0e", -1) == "-1e+00 " +string.format("%0-+20.0e", 2) == "+2e+00 " +string.format("%0-+20.0e", -2) == "-2e+00 " +string.format("%0-+20.0e", 3) == "+3e+00 " +string.format("%0-+20.0e", -3) == "-3e+00 " +string.format("%0-+20.0e", nan) == "+nan " +string.format("%0-+20.0e", inf) == "+inf " +string.format("%0-+20.0e", -inf) == "-inf " +string.format("%0-+20.0e", 100) == "+1e+02 " +string.format("%0-+20.0e", 10000) == "+1e+04 " +string.format("%0-+20.0e", 100000) == "+1e+05 " +string.format("%0-+20.0e", 1000000) == "+1e+06 " +string.format("%0-+20.0e", 10000000) == "+1e+07 " +string.format("%0-+20.0e", 0.01) == "+1e-02 " +string.format("%0-+20.0e", 0.0001) == "+1e-04 " +string.format("%0-+20.0e", 1e-05) == "+1e-05 " +string.format("%0-+20.0e", 1e-06) == "+1e-06 " +string.format("%0-+20.0e", 1e-07) == "+1e-07 " +string.format("%0-+20.0e", 123.456) == "+1e+02 " +string.format("%0-+20.0e", 1234560000) == "+1e+09 " +string.format("%0-+20.0e", 1.23456e-05) == "+1e-05 " +string.format("%0-+20.0e", 123.456789123) == "+1e+02 " +string.format("%0-+20.0e", 1234567891.23) == "+1e+09 " +string.format("%0-+20.0e", 1.23456789123e-05) == "+1e-05 " +string.format("%0-+20.1e", 0) == "+0.0e+00 " +string.format("%0-+20.1e", 1) == "+1.0e+00 " +string.format("%0-+20.1e", -1) == "-1.0e+00 " +string.format("%0-+20.1e", 2) == "+2.0e+00 " +string.format("%0-+20.1e", -2) == "-2.0e+00 " +string.format("%0-+20.1e", 3) == "+3.0e+00 " +string.format("%0-+20.1e", -3) == "-3.0e+00 " +string.format("%0-+20.1e", nan) == "+nan " +string.format("%0-+20.1e", inf) == "+inf " +string.format("%0-+20.1e", -inf) == "-inf " +string.format("%0-+20.1e", 100) == "+1.0e+02 " +string.format("%0-+20.1e", 10000) == "+1.0e+04 " +string.format("%0-+20.1e", 100000) == "+1.0e+05 " +string.format("%0-+20.1e", 1000000) == "+1.0e+06 " +string.format("%0-+20.1e", 10000000) == "+1.0e+07 " +string.format("%0-+20.1e", 0.01) == "+1.0e-02 " +string.format("%0-+20.1e", 0.0001) == "+1.0e-04 " +string.format("%0-+20.1e", 1e-05) == "+1.0e-05 " +string.format("%0-+20.1e", 1e-06) == "+1.0e-06 " +string.format("%0-+20.1e", 1e-07) == "+1.0e-07 " +string.format("%0-+20.1e", 123.456) == "+1.2e+02 " +string.format("%0-+20.1e", 1234560000) == "+1.2e+09 " +string.format("%0-+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%0-+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%0-+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%0-+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%0-+20.6e", 0) == "+0.000000e+00 " +string.format("%0-+20.6e", 1) == "+1.000000e+00 " +string.format("%0-+20.6e", -1) == "-1.000000e+00 " +string.format("%0-+20.6e", 2) == "+2.000000e+00 " +string.format("%0-+20.6e", -2) == "-2.000000e+00 " +string.format("%0-+20.6e", 3) == "+3.000000e+00 " +string.format("%0-+20.6e", -3) == "-3.000000e+00 " +string.format("%0-+20.6e", nan) == "+nan " +string.format("%0-+20.6e", inf) == "+inf " +string.format("%0-+20.6e", -inf) == "-inf " +string.format("%0-+20.6e", 100) == "+1.000000e+02 " +string.format("%0-+20.6e", 10000) == "+1.000000e+04 " +string.format("%0-+20.6e", 100000) == "+1.000000e+05 " +string.format("%0-+20.6e", 1000000) == "+1.000000e+06 " +string.format("%0-+20.6e", 10000000) == "+1.000000e+07 " +string.format("%0-+20.6e", 0.01) == "+1.000000e-02 " +string.format("%0-+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%0-+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%0-+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%0-+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%0-+20.6e", 123.456) == "+1.234560e+02 " +string.format("%0-+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%0-+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0-+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%0-+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%0-+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0 e", 0) == " 0.000000e+00" +string.format("%0 e", 1) == " 1.000000e+00" +string.format("%0 e", -1) == "-1.000000e+00" +string.format("%0 e", 2) == " 2.000000e+00" +string.format("%0 e", -2) == "-2.000000e+00" +string.format("%0 e", 3) == " 3.000000e+00" +string.format("%0 e", -3) == "-3.000000e+00" +string.format("%0 e", nan) == " nan" +string.format("%0 e", inf) == " inf" +string.format("%0 e", -inf) == "-inf" +string.format("%0 e", 100) == " 1.000000e+02" +string.format("%0 e", 10000) == " 1.000000e+04" +string.format("%0 e", 100000) == " 1.000000e+05" +string.format("%0 e", 1000000) == " 1.000000e+06" +string.format("%0 e", 10000000) == " 1.000000e+07" +string.format("%0 e", 0.01) == " 1.000000e-02" +string.format("%0 e", 0.0001) == " 1.000000e-04" +string.format("%0 e", 1e-05) == " 1.000000e-05" +string.format("%0 e", 1e-06) == " 1.000000e-06" +string.format("%0 e", 1e-07) == " 1.000000e-07" +string.format("%0 e", 123.456) == " 1.234560e+02" +string.format("%0 e", 1234560000) == " 1.234560e+09" +string.format("%0 e", 1.23456e-05) == " 1.234560e-05" +string.format("%0 e", 123.456789123) == " 1.234568e+02" +string.format("%0 e", 1234567891.23) == " 1.234568e+09" +string.format("%0 e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%0 .0e", 0) == " 0e+00" +string.format("%0 .0e", 1) == " 1e+00" +string.format("%0 .0e", -1) == "-1e+00" +string.format("%0 .0e", 2) == " 2e+00" +string.format("%0 .0e", -2) == "-2e+00" +string.format("%0 .0e", 3) == " 3e+00" +string.format("%0 .0e", -3) == "-3e+00" +string.format("%0 .0e", 100) == " 1e+02" +string.format("%0 .0e", 10000) == " 1e+04" +string.format("%0 .0e", 100000) == " 1e+05" +string.format("%0 .0e", 1000000) == " 1e+06" +string.format("%0 .0e", 10000000) == " 1e+07" +string.format("%0 .0e", 0.01) == " 1e-02" +string.format("%0 .0e", 0.0001) == " 1e-04" +string.format("%0 .0e", 1e-05) == " 1e-05" +string.format("%0 .0e", 1e-06) == " 1e-06" +string.format("%0 .0e", 1e-07) == " 1e-07" +string.format("%0 .0e", 123.456) == " 1e+02" +string.format("%0 .0e", 1234560000) == " 1e+09" +string.format("%0 .0e", 1.23456e-05) == " 1e-05" +string.format("%0 .0e", 123.456789123) == " 1e+02" +string.format("%0 .0e", 1234567891.23) == " 1e+09" +string.format("%0 .0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 .1e", 0) == " 0.0e+00" +string.format("%0 .1e", 1) == " 1.0e+00" +string.format("%0 .1e", -1) == "-1.0e+00" +string.format("%0 .1e", 2) == " 2.0e+00" +string.format("%0 .1e", -2) == "-2.0e+00" +string.format("%0 .1e", 3) == " 3.0e+00" +string.format("%0 .1e", -3) == "-3.0e+00" +string.format("%0 .1e", 100) == " 1.0e+02" +string.format("%0 .1e", 10000) == " 1.0e+04" +string.format("%0 .1e", 100000) == " 1.0e+05" +string.format("%0 .1e", 1000000) == " 1.0e+06" +string.format("%0 .1e", 10000000) == " 1.0e+07" +string.format("%0 .1e", 0.01) == " 1.0e-02" +string.format("%0 .1e", 0.0001) == " 1.0e-04" +string.format("%0 .1e", 1e-05) == " 1.0e-05" +string.format("%0 .1e", 1e-06) == " 1.0e-06" +string.format("%0 .1e", 1e-07) == " 1.0e-07" +string.format("%0 .1e", 123.456) == " 1.2e+02" +string.format("%0 .1e", 1234560000) == " 1.2e+09" +string.format("%0 .1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 .1e", 123.456789123) == " 1.2e+02" +string.format("%0 .1e", 1234567891.23) == " 1.2e+09" +string.format("%0 .1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 1.0e", 0) == " 0e+00" +string.format("%0 1.0e", 1) == " 1e+00" +string.format("%0 1.0e", -1) == "-1e+00" +string.format("%0 1.0e", 2) == " 2e+00" +string.format("%0 1.0e", -2) == "-2e+00" +string.format("%0 1.0e", 3) == " 3e+00" +string.format("%0 1.0e", -3) == "-3e+00" +string.format("%0 1.0e", 100) == " 1e+02" +string.format("%0 1.0e", 10000) == " 1e+04" +string.format("%0 1.0e", 100000) == " 1e+05" +string.format("%0 1.0e", 1000000) == " 1e+06" +string.format("%0 1.0e", 10000000) == " 1e+07" +string.format("%0 1.0e", 0.01) == " 1e-02" +string.format("%0 1.0e", 0.0001) == " 1e-04" +string.format("%0 1.0e", 1e-05) == " 1e-05" +string.format("%0 1.0e", 1e-06) == " 1e-06" +string.format("%0 1.0e", 1e-07) == " 1e-07" +string.format("%0 1.0e", 123.456) == " 1e+02" +string.format("%0 1.0e", 1234560000) == " 1e+09" +string.format("%0 1.0e", 1.23456e-05) == " 1e-05" +string.format("%0 1.0e", 123.456789123) == " 1e+02" +string.format("%0 1.0e", 1234567891.23) == " 1e+09" +string.format("%0 1.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 1.1e", 0) == " 0.0e+00" +string.format("%0 1.1e", 1) == " 1.0e+00" +string.format("%0 1.1e", -1) == "-1.0e+00" +string.format("%0 1.1e", 2) == " 2.0e+00" +string.format("%0 1.1e", -2) == "-2.0e+00" +string.format("%0 1.1e", 3) == " 3.0e+00" +string.format("%0 1.1e", -3) == "-3.0e+00" +string.format("%0 1.1e", 100) == " 1.0e+02" +string.format("%0 1.1e", 10000) == " 1.0e+04" +string.format("%0 1.1e", 100000) == " 1.0e+05" +string.format("%0 1.1e", 1000000) == " 1.0e+06" +string.format("%0 1.1e", 10000000) == " 1.0e+07" +string.format("%0 1.1e", 0.01) == " 1.0e-02" +string.format("%0 1.1e", 0.0001) == " 1.0e-04" +string.format("%0 1.1e", 1e-05) == " 1.0e-05" +string.format("%0 1.1e", 1e-06) == " 1.0e-06" +string.format("%0 1.1e", 1e-07) == " 1.0e-07" +string.format("%0 1.1e", 123.456) == " 1.2e+02" +string.format("%0 1.1e", 1234560000) == " 1.2e+09" +string.format("%0 1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 1.1e", 123.456789123) == " 1.2e+02" +string.format("%0 1.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 2.0e", 0) == " 0e+00" +string.format("%0 2.0e", 1) == " 1e+00" +string.format("%0 2.0e", -1) == "-1e+00" +string.format("%0 2.0e", 2) == " 2e+00" +string.format("%0 2.0e", -2) == "-2e+00" +string.format("%0 2.0e", 3) == " 3e+00" +string.format("%0 2.0e", -3) == "-3e+00" +string.format("%0 2.0e", 100) == " 1e+02" +string.format("%0 2.0e", 10000) == " 1e+04" +string.format("%0 2.0e", 100000) == " 1e+05" +string.format("%0 2.0e", 1000000) == " 1e+06" +string.format("%0 2.0e", 10000000) == " 1e+07" +string.format("%0 2.0e", 0.01) == " 1e-02" +string.format("%0 2.0e", 0.0001) == " 1e-04" +string.format("%0 2.0e", 1e-05) == " 1e-05" +string.format("%0 2.0e", 1e-06) == " 1e-06" +string.format("%0 2.0e", 1e-07) == " 1e-07" +string.format("%0 2.0e", 123.456) == " 1e+02" +string.format("%0 2.0e", 1234560000) == " 1e+09" +string.format("%0 2.0e", 1.23456e-05) == " 1e-05" +string.format("%0 2.0e", 123.456789123) == " 1e+02" +string.format("%0 2.0e", 1234567891.23) == " 1e+09" +string.format("%0 2.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 2.1e", 0) == " 0.0e+00" +string.format("%0 2.1e", 1) == " 1.0e+00" +string.format("%0 2.1e", -1) == "-1.0e+00" +string.format("%0 2.1e", 2) == " 2.0e+00" +string.format("%0 2.1e", -2) == "-2.0e+00" +string.format("%0 2.1e", 3) == " 3.0e+00" +string.format("%0 2.1e", -3) == "-3.0e+00" +string.format("%0 2.1e", 100) == " 1.0e+02" +string.format("%0 2.1e", 10000) == " 1.0e+04" +string.format("%0 2.1e", 100000) == " 1.0e+05" +string.format("%0 2.1e", 1000000) == " 1.0e+06" +string.format("%0 2.1e", 10000000) == " 1.0e+07" +string.format("%0 2.1e", 0.01) == " 1.0e-02" +string.format("%0 2.1e", 0.0001) == " 1.0e-04" +string.format("%0 2.1e", 1e-05) == " 1.0e-05" +string.format("%0 2.1e", 1e-06) == " 1.0e-06" +string.format("%0 2.1e", 1e-07) == " 1.0e-07" +string.format("%0 2.1e", 123.456) == " 1.2e+02" +string.format("%0 2.1e", 1234560000) == " 1.2e+09" +string.format("%0 2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 2.1e", 123.456789123) == " 1.2e+02" +string.format("%0 2.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 6e", nan) == " nan" +string.format("%0 6e", inf) == " inf" +string.format("%0 6e", -inf) == " -inf" +string.format("%0 6.0e", 0) == " 0e+00" +string.format("%0 6.0e", 1) == " 1e+00" +string.format("%0 6.0e", -1) == "-1e+00" +string.format("%0 6.0e", 2) == " 2e+00" +string.format("%0 6.0e", -2) == "-2e+00" +string.format("%0 6.0e", 3) == " 3e+00" +string.format("%0 6.0e", -3) == "-3e+00" +string.format("%0 6.0e", nan) == " nan" +string.format("%0 6.0e", inf) == " inf" +string.format("%0 6.0e", -inf) == " -inf" +string.format("%0 6.0e", 100) == " 1e+02" +string.format("%0 6.0e", 10000) == " 1e+04" +string.format("%0 6.0e", 100000) == " 1e+05" +string.format("%0 6.0e", 1000000) == " 1e+06" +string.format("%0 6.0e", 10000000) == " 1e+07" +string.format("%0 6.0e", 0.01) == " 1e-02" +string.format("%0 6.0e", 0.0001) == " 1e-04" +string.format("%0 6.0e", 1e-05) == " 1e-05" +string.format("%0 6.0e", 1e-06) == " 1e-06" +string.format("%0 6.0e", 1e-07) == " 1e-07" +string.format("%0 6.0e", 123.456) == " 1e+02" +string.format("%0 6.0e", 1234560000) == " 1e+09" +string.format("%0 6.0e", 1.23456e-05) == " 1e-05" +string.format("%0 6.0e", 123.456789123) == " 1e+02" +string.format("%0 6.0e", 1234567891.23) == " 1e+09" +string.format("%0 6.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 6.1e", 0) == " 0.0e+00" +string.format("%0 6.1e", 1) == " 1.0e+00" +string.format("%0 6.1e", -1) == "-1.0e+00" +string.format("%0 6.1e", 2) == " 2.0e+00" +string.format("%0 6.1e", -2) == "-2.0e+00" +string.format("%0 6.1e", 3) == " 3.0e+00" +string.format("%0 6.1e", -3) == "-3.0e+00" +string.format("%0 6.1e", nan) == " nan" +string.format("%0 6.1e", inf) == " inf" +string.format("%0 6.1e", -inf) == " -inf" +string.format("%0 6.1e", 100) == " 1.0e+02" +string.format("%0 6.1e", 10000) == " 1.0e+04" +string.format("%0 6.1e", 100000) == " 1.0e+05" +string.format("%0 6.1e", 1000000) == " 1.0e+06" +string.format("%0 6.1e", 10000000) == " 1.0e+07" +string.format("%0 6.1e", 0.01) == " 1.0e-02" +string.format("%0 6.1e", 0.0001) == " 1.0e-04" +string.format("%0 6.1e", 1e-05) == " 1.0e-05" +string.format("%0 6.1e", 1e-06) == " 1.0e-06" +string.format("%0 6.1e", 1e-07) == " 1.0e-07" +string.format("%0 6.1e", 123.456) == " 1.2e+02" +string.format("%0 6.1e", 1234560000) == " 1.2e+09" +string.format("%0 6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 6.1e", 123.456789123) == " 1.2e+02" +string.format("%0 6.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 6.6e", nan) == " nan" +string.format("%0 6.6e", inf) == " inf" +string.format("%0 6.6e", -inf) == " -inf" +string.format("%0 20e", 0) == " 00000000.000000e+00" +string.format("%0 20e", 1) == " 00000001.000000e+00" +string.format("%0 20e", -1) == "-00000001.000000e+00" +string.format("%0 20e", 2) == " 00000002.000000e+00" +string.format("%0 20e", -2) == "-00000002.000000e+00" +string.format("%0 20e", 3) == " 00000003.000000e+00" +string.format("%0 20e", -3) == "-00000003.000000e+00" +string.format("%0 20e", nan) == " nan" +string.format("%0 20e", inf) == " inf" +string.format("%0 20e", -inf) == " -inf" +string.format("%0 20e", 100) == " 00000001.000000e+02" +string.format("%0 20e", 10000) == " 00000001.000000e+04" +string.format("%0 20e", 100000) == " 00000001.000000e+05" +string.format("%0 20e", 1000000) == " 00000001.000000e+06" +string.format("%0 20e", 10000000) == " 00000001.000000e+07" +string.format("%0 20e", 0.01) == " 00000001.000000e-02" +string.format("%0 20e", 0.0001) == " 00000001.000000e-04" +string.format("%0 20e", 1e-05) == " 00000001.000000e-05" +string.format("%0 20e", 1e-06) == " 00000001.000000e-06" +string.format("%0 20e", 1e-07) == " 00000001.000000e-07" +string.format("%0 20e", 123.456) == " 00000001.234560e+02" +string.format("%0 20e", 1234560000) == " 00000001.234560e+09" +string.format("%0 20e", 1.23456e-05) == " 00000001.234560e-05" +string.format("%0 20e", 123.456789123) == " 00000001.234568e+02" +string.format("%0 20e", 1234567891.23) == " 00000001.234568e+09" +string.format("%0 20e", 1.23456789123e-05) == " 00000001.234568e-05" +string.format("%0 20.0e", 0) == " 000000000000000e+00" +string.format("%0 20.0e", 1) == " 000000000000001e+00" +string.format("%0 20.0e", -1) == "-000000000000001e+00" +string.format("%0 20.0e", 2) == " 000000000000002e+00" +string.format("%0 20.0e", -2) == "-000000000000002e+00" +string.format("%0 20.0e", 3) == " 000000000000003e+00" +string.format("%0 20.0e", -3) == "-000000000000003e+00" +string.format("%0 20.0e", nan) == " nan" +string.format("%0 20.0e", inf) == " inf" +string.format("%0 20.0e", -inf) == " -inf" +string.format("%0 20.0e", 100) == " 000000000000001e+02" +string.format("%0 20.0e", 10000) == " 000000000000001e+04" +string.format("%0 20.0e", 100000) == " 000000000000001e+05" +string.format("%0 20.0e", 1000000) == " 000000000000001e+06" +string.format("%0 20.0e", 10000000) == " 000000000000001e+07" +string.format("%0 20.0e", 0.01) == " 000000000000001e-02" +string.format("%0 20.0e", 0.0001) == " 000000000000001e-04" +string.format("%0 20.0e", 1e-05) == " 000000000000001e-05" +string.format("%0 20.0e", 1e-06) == " 000000000000001e-06" +string.format("%0 20.0e", 1e-07) == " 000000000000001e-07" +string.format("%0 20.0e", 123.456) == " 000000000000001e+02" +string.format("%0 20.0e", 1234560000) == " 000000000000001e+09" +string.format("%0 20.0e", 1.23456e-05) == " 000000000000001e-05" +string.format("%0 20.0e", 123.456789123) == " 000000000000001e+02" +string.format("%0 20.0e", 1234567891.23) == " 000000000000001e+09" +string.format("%0 20.0e", 1.23456789123e-05) == " 000000000000001e-05" +string.format("%0 20.1e", 0) == " 0000000000000.0e+00" +string.format("%0 20.1e", 1) == " 0000000000001.0e+00" +string.format("%0 20.1e", -1) == "-0000000000001.0e+00" +string.format("%0 20.1e", 2) == " 0000000000002.0e+00" +string.format("%0 20.1e", -2) == "-0000000000002.0e+00" +string.format("%0 20.1e", 3) == " 0000000000003.0e+00" +string.format("%0 20.1e", -3) == "-0000000000003.0e+00" +string.format("%0 20.1e", nan) == " nan" +string.format("%0 20.1e", inf) == " inf" +string.format("%0 20.1e", -inf) == " -inf" +string.format("%0 20.1e", 100) == " 0000000000001.0e+02" +string.format("%0 20.1e", 10000) == " 0000000000001.0e+04" +string.format("%0 20.1e", 100000) == " 0000000000001.0e+05" +string.format("%0 20.1e", 1000000) == " 0000000000001.0e+06" +string.format("%0 20.1e", 10000000) == " 0000000000001.0e+07" +string.format("%0 20.1e", 0.01) == " 0000000000001.0e-02" +string.format("%0 20.1e", 0.0001) == " 0000000000001.0e-04" +string.format("%0 20.1e", 1e-05) == " 0000000000001.0e-05" +string.format("%0 20.1e", 1e-06) == " 0000000000001.0e-06" +string.format("%0 20.1e", 1e-07) == " 0000000000001.0e-07" +string.format("%0 20.1e", 123.456) == " 0000000000001.2e+02" +string.format("%0 20.1e", 1234560000) == " 0000000000001.2e+09" +string.format("%0 20.1e", 1.23456e-05) == " 0000000000001.2e-05" +string.format("%0 20.1e", 123.456789123) == " 0000000000001.2e+02" +string.format("%0 20.1e", 1234567891.23) == " 0000000000001.2e+09" +string.format("%0 20.1e", 1.23456789123e-05) == " 0000000000001.2e-05" +string.format("%0 20.6e", 0) == " 00000000.000000e+00" +string.format("%0 20.6e", 1) == " 00000001.000000e+00" +string.format("%0 20.6e", -1) == "-00000001.000000e+00" +string.format("%0 20.6e", 2) == " 00000002.000000e+00" +string.format("%0 20.6e", -2) == "-00000002.000000e+00" +string.format("%0 20.6e", 3) == " 00000003.000000e+00" +string.format("%0 20.6e", -3) == "-00000003.000000e+00" +string.format("%0 20.6e", nan) == " nan" +string.format("%0 20.6e", inf) == " inf" +string.format("%0 20.6e", -inf) == " -inf" +string.format("%0 20.6e", 100) == " 00000001.000000e+02" +string.format("%0 20.6e", 10000) == " 00000001.000000e+04" +string.format("%0 20.6e", 100000) == " 00000001.000000e+05" +string.format("%0 20.6e", 1000000) == " 00000001.000000e+06" +string.format("%0 20.6e", 10000000) == " 00000001.000000e+07" +string.format("%0 20.6e", 0.01) == " 00000001.000000e-02" +string.format("%0 20.6e", 0.0001) == " 00000001.000000e-04" +string.format("%0 20.6e", 1e-05) == " 00000001.000000e-05" +string.format("%0 20.6e", 1e-06) == " 00000001.000000e-06" +string.format("%0 20.6e", 1e-07) == " 00000001.000000e-07" +string.format("%0 20.6e", 123.456) == " 00000001.234560e+02" +string.format("%0 20.6e", 1234560000) == " 00000001.234560e+09" +string.format("%0 20.6e", 1.23456e-05) == " 00000001.234560e-05" +string.format("%0 20.6e", 123.456789123) == " 00000001.234568e+02" +string.format("%0 20.6e", 1234567891.23) == " 00000001.234568e+09" +string.format("%0 20.6e", 1.23456789123e-05) == " 00000001.234568e-05" +string.format("%0 +e", 0) == "+0.000000e+00" +string.format("%0 +e", 1) == "+1.000000e+00" +string.format("%0 +e", -1) == "-1.000000e+00" +string.format("%0 +e", 2) == "+2.000000e+00" +string.format("%0 +e", -2) == "-2.000000e+00" +string.format("%0 +e", 3) == "+3.000000e+00" +string.format("%0 +e", -3) == "-3.000000e+00" +string.format("%0 +e", nan) == "+nan" +string.format("%0 +e", inf) == "+inf" +string.format("%0 +e", -inf) == "-inf" +string.format("%0 +e", 100) == "+1.000000e+02" +string.format("%0 +e", 10000) == "+1.000000e+04" +string.format("%0 +e", 100000) == "+1.000000e+05" +string.format("%0 +e", 1000000) == "+1.000000e+06" +string.format("%0 +e", 10000000) == "+1.000000e+07" +string.format("%0 +e", 0.01) == "+1.000000e-02" +string.format("%0 +e", 0.0001) == "+1.000000e-04" +string.format("%0 +e", 1e-05) == "+1.000000e-05" +string.format("%0 +e", 1e-06) == "+1.000000e-06" +string.format("%0 +e", 1e-07) == "+1.000000e-07" +string.format("%0 +e", 123.456) == "+1.234560e+02" +string.format("%0 +e", 1234560000) == "+1.234560e+09" +string.format("%0 +e", 1.23456e-05) == "+1.234560e-05" +string.format("%0 +e", 123.456789123) == "+1.234568e+02" +string.format("%0 +e", 1234567891.23) == "+1.234568e+09" +string.format("%0 +e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0 +.0e", 0) == "+0e+00" +string.format("%0 +.0e", 1) == "+1e+00" +string.format("%0 +.0e", -1) == "-1e+00" +string.format("%0 +.0e", 2) == "+2e+00" +string.format("%0 +.0e", -2) == "-2e+00" +string.format("%0 +.0e", 3) == "+3e+00" +string.format("%0 +.0e", -3) == "-3e+00" +string.format("%0 +.0e", 100) == "+1e+02" +string.format("%0 +.0e", 10000) == "+1e+04" +string.format("%0 +.0e", 100000) == "+1e+05" +string.format("%0 +.0e", 1000000) == "+1e+06" +string.format("%0 +.0e", 10000000) == "+1e+07" +string.format("%0 +.0e", 0.01) == "+1e-02" +string.format("%0 +.0e", 0.0001) == "+1e-04" +string.format("%0 +.0e", 1e-05) == "+1e-05" +string.format("%0 +.0e", 1e-06) == "+1e-06" +string.format("%0 +.0e", 1e-07) == "+1e-07" +string.format("%0 +.0e", 123.456) == "+1e+02" +string.format("%0 +.0e", 1234560000) == "+1e+09" +string.format("%0 +.0e", 1.23456e-05) == "+1e-05" +string.format("%0 +.0e", 123.456789123) == "+1e+02" +string.format("%0 +.0e", 1234567891.23) == "+1e+09" +string.format("%0 +.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 +.1e", 0) == "+0.0e+00" +string.format("%0 +.1e", 1) == "+1.0e+00" +string.format("%0 +.1e", -1) == "-1.0e+00" +string.format("%0 +.1e", 2) == "+2.0e+00" +string.format("%0 +.1e", -2) == "-2.0e+00" +string.format("%0 +.1e", 3) == "+3.0e+00" +string.format("%0 +.1e", -3) == "-3.0e+00" +string.format("%0 +.1e", 100) == "+1.0e+02" +string.format("%0 +.1e", 10000) == "+1.0e+04" +string.format("%0 +.1e", 100000) == "+1.0e+05" +string.format("%0 +.1e", 1000000) == "+1.0e+06" +string.format("%0 +.1e", 10000000) == "+1.0e+07" +string.format("%0 +.1e", 0.01) == "+1.0e-02" +string.format("%0 +.1e", 0.0001) == "+1.0e-04" +string.format("%0 +.1e", 1e-05) == "+1.0e-05" +string.format("%0 +.1e", 1e-06) == "+1.0e-06" +string.format("%0 +.1e", 1e-07) == "+1.0e-07" +string.format("%0 +.1e", 123.456) == "+1.2e+02" +string.format("%0 +.1e", 1234560000) == "+1.2e+09" +string.format("%0 +.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 +.1e", 123.456789123) == "+1.2e+02" +string.format("%0 +.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 +.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 +1.0e", 0) == "+0e+00" +string.format("%0 +1.0e", 1) == "+1e+00" +string.format("%0 +1.0e", -1) == "-1e+00" +string.format("%0 +1.0e", 2) == "+2e+00" +string.format("%0 +1.0e", -2) == "-2e+00" +string.format("%0 +1.0e", 3) == "+3e+00" +string.format("%0 +1.0e", -3) == "-3e+00" +string.format("%0 +1.0e", 100) == "+1e+02" +string.format("%0 +1.0e", 10000) == "+1e+04" +string.format("%0 +1.0e", 100000) == "+1e+05" +string.format("%0 +1.0e", 1000000) == "+1e+06" +string.format("%0 +1.0e", 10000000) == "+1e+07" +string.format("%0 +1.0e", 0.01) == "+1e-02" +string.format("%0 +1.0e", 0.0001) == "+1e-04" +string.format("%0 +1.0e", 1e-05) == "+1e-05" +string.format("%0 +1.0e", 1e-06) == "+1e-06" +string.format("%0 +1.0e", 1e-07) == "+1e-07" +string.format("%0 +1.0e", 123.456) == "+1e+02" +string.format("%0 +1.0e", 1234560000) == "+1e+09" +string.format("%0 +1.0e", 1.23456e-05) == "+1e-05" +string.format("%0 +1.0e", 123.456789123) == "+1e+02" +string.format("%0 +1.0e", 1234567891.23) == "+1e+09" +string.format("%0 +1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 +1.1e", 0) == "+0.0e+00" +string.format("%0 +1.1e", 1) == "+1.0e+00" +string.format("%0 +1.1e", -1) == "-1.0e+00" +string.format("%0 +1.1e", 2) == "+2.0e+00" +string.format("%0 +1.1e", -2) == "-2.0e+00" +string.format("%0 +1.1e", 3) == "+3.0e+00" +string.format("%0 +1.1e", -3) == "-3.0e+00" +string.format("%0 +1.1e", 100) == "+1.0e+02" +string.format("%0 +1.1e", 10000) == "+1.0e+04" +string.format("%0 +1.1e", 100000) == "+1.0e+05" +string.format("%0 +1.1e", 1000000) == "+1.0e+06" +string.format("%0 +1.1e", 10000000) == "+1.0e+07" +string.format("%0 +1.1e", 0.01) == "+1.0e-02" +string.format("%0 +1.1e", 0.0001) == "+1.0e-04" +string.format("%0 +1.1e", 1e-05) == "+1.0e-05" +string.format("%0 +1.1e", 1e-06) == "+1.0e-06" +string.format("%0 +1.1e", 1e-07) == "+1.0e-07" +string.format("%0 +1.1e", 123.456) == "+1.2e+02" +string.format("%0 +1.1e", 1234560000) == "+1.2e+09" +string.format("%0 +1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 +1.1e", 123.456789123) == "+1.2e+02" +string.format("%0 +1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 +1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 +2.0e", 0) == "+0e+00" +string.format("%0 +2.0e", 1) == "+1e+00" +string.format("%0 +2.0e", -1) == "-1e+00" +string.format("%0 +2.0e", 2) == "+2e+00" +string.format("%0 +2.0e", -2) == "-2e+00" +string.format("%0 +2.0e", 3) == "+3e+00" +string.format("%0 +2.0e", -3) == "-3e+00" +string.format("%0 +2.0e", 100) == "+1e+02" +string.format("%0 +2.0e", 10000) == "+1e+04" +string.format("%0 +2.0e", 100000) == "+1e+05" +string.format("%0 +2.0e", 1000000) == "+1e+06" +string.format("%0 +2.0e", 10000000) == "+1e+07" +string.format("%0 +2.0e", 0.01) == "+1e-02" +string.format("%0 +2.0e", 0.0001) == "+1e-04" +string.format("%0 +2.0e", 1e-05) == "+1e-05" +string.format("%0 +2.0e", 1e-06) == "+1e-06" +string.format("%0 +2.0e", 1e-07) == "+1e-07" +string.format("%0 +2.0e", 123.456) == "+1e+02" +string.format("%0 +2.0e", 1234560000) == "+1e+09" +string.format("%0 +2.0e", 1.23456e-05) == "+1e-05" +string.format("%0 +2.0e", 123.456789123) == "+1e+02" +string.format("%0 +2.0e", 1234567891.23) == "+1e+09" +string.format("%0 +2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 +2.1e", 0) == "+0.0e+00" +string.format("%0 +2.1e", 1) == "+1.0e+00" +string.format("%0 +2.1e", -1) == "-1.0e+00" +string.format("%0 +2.1e", 2) == "+2.0e+00" +string.format("%0 +2.1e", -2) == "-2.0e+00" +string.format("%0 +2.1e", 3) == "+3.0e+00" +string.format("%0 +2.1e", -3) == "-3.0e+00" +string.format("%0 +2.1e", 100) == "+1.0e+02" +string.format("%0 +2.1e", 10000) == "+1.0e+04" +string.format("%0 +2.1e", 100000) == "+1.0e+05" +string.format("%0 +2.1e", 1000000) == "+1.0e+06" +string.format("%0 +2.1e", 10000000) == "+1.0e+07" +string.format("%0 +2.1e", 0.01) == "+1.0e-02" +string.format("%0 +2.1e", 0.0001) == "+1.0e-04" +string.format("%0 +2.1e", 1e-05) == "+1.0e-05" +string.format("%0 +2.1e", 1e-06) == "+1.0e-06" +string.format("%0 +2.1e", 1e-07) == "+1.0e-07" +string.format("%0 +2.1e", 123.456) == "+1.2e+02" +string.format("%0 +2.1e", 1234560000) == "+1.2e+09" +string.format("%0 +2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 +2.1e", 123.456789123) == "+1.2e+02" +string.format("%0 +2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 +2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 +6e", nan) == " +nan" +string.format("%0 +6e", inf) == " +inf" +string.format("%0 +6e", -inf) == " -inf" +string.format("%0 +6.0e", 0) == "+0e+00" +string.format("%0 +6.0e", 1) == "+1e+00" +string.format("%0 +6.0e", -1) == "-1e+00" +string.format("%0 +6.0e", 2) == "+2e+00" +string.format("%0 +6.0e", -2) == "-2e+00" +string.format("%0 +6.0e", 3) == "+3e+00" +string.format("%0 +6.0e", -3) == "-3e+00" +string.format("%0 +6.0e", nan) == " +nan" +string.format("%0 +6.0e", inf) == " +inf" +string.format("%0 +6.0e", -inf) == " -inf" +string.format("%0 +6.0e", 100) == "+1e+02" +string.format("%0 +6.0e", 10000) == "+1e+04" +string.format("%0 +6.0e", 100000) == "+1e+05" +string.format("%0 +6.0e", 1000000) == "+1e+06" +string.format("%0 +6.0e", 10000000) == "+1e+07" +string.format("%0 +6.0e", 0.01) == "+1e-02" +string.format("%0 +6.0e", 0.0001) == "+1e-04" +string.format("%0 +6.0e", 1e-05) == "+1e-05" +string.format("%0 +6.0e", 1e-06) == "+1e-06" +string.format("%0 +6.0e", 1e-07) == "+1e-07" +string.format("%0 +6.0e", 123.456) == "+1e+02" +string.format("%0 +6.0e", 1234560000) == "+1e+09" +string.format("%0 +6.0e", 1.23456e-05) == "+1e-05" +string.format("%0 +6.0e", 123.456789123) == "+1e+02" +string.format("%0 +6.0e", 1234567891.23) == "+1e+09" +string.format("%0 +6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 +6.1e", 0) == "+0.0e+00" +string.format("%0 +6.1e", 1) == "+1.0e+00" +string.format("%0 +6.1e", -1) == "-1.0e+00" +string.format("%0 +6.1e", 2) == "+2.0e+00" +string.format("%0 +6.1e", -2) == "-2.0e+00" +string.format("%0 +6.1e", 3) == "+3.0e+00" +string.format("%0 +6.1e", -3) == "-3.0e+00" +string.format("%0 +6.1e", nan) == " +nan" +string.format("%0 +6.1e", inf) == " +inf" +string.format("%0 +6.1e", -inf) == " -inf" +string.format("%0 +6.1e", 100) == "+1.0e+02" +string.format("%0 +6.1e", 10000) == "+1.0e+04" +string.format("%0 +6.1e", 100000) == "+1.0e+05" +string.format("%0 +6.1e", 1000000) == "+1.0e+06" +string.format("%0 +6.1e", 10000000) == "+1.0e+07" +string.format("%0 +6.1e", 0.01) == "+1.0e-02" +string.format("%0 +6.1e", 0.0001) == "+1.0e-04" +string.format("%0 +6.1e", 1e-05) == "+1.0e-05" +string.format("%0 +6.1e", 1e-06) == "+1.0e-06" +string.format("%0 +6.1e", 1e-07) == "+1.0e-07" +string.format("%0 +6.1e", 123.456) == "+1.2e+02" +string.format("%0 +6.1e", 1234560000) == "+1.2e+09" +string.format("%0 +6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 +6.1e", 123.456789123) == "+1.2e+02" +string.format("%0 +6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 +6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 +6.6e", nan) == " +nan" +string.format("%0 +6.6e", inf) == " +inf" +string.format("%0 +6.6e", -inf) == " -inf" +string.format("%0 +20e", 0) == "+00000000.000000e+00" +string.format("%0 +20e", 1) == "+00000001.000000e+00" +string.format("%0 +20e", -1) == "-00000001.000000e+00" +string.format("%0 +20e", 2) == "+00000002.000000e+00" +string.format("%0 +20e", -2) == "-00000002.000000e+00" +string.format("%0 +20e", 3) == "+00000003.000000e+00" +string.format("%0 +20e", -3) == "-00000003.000000e+00" +string.format("%0 +20e", nan) == " +nan" +string.format("%0 +20e", inf) == " +inf" +string.format("%0 +20e", -inf) == " -inf" +string.format("%0 +20e", 100) == "+00000001.000000e+02" +string.format("%0 +20e", 10000) == "+00000001.000000e+04" +string.format("%0 +20e", 100000) == "+00000001.000000e+05" +string.format("%0 +20e", 1000000) == "+00000001.000000e+06" +string.format("%0 +20e", 10000000) == "+00000001.000000e+07" +string.format("%0 +20e", 0.01) == "+00000001.000000e-02" +string.format("%0 +20e", 0.0001) == "+00000001.000000e-04" +string.format("%0 +20e", 1e-05) == "+00000001.000000e-05" +string.format("%0 +20e", 1e-06) == "+00000001.000000e-06" +string.format("%0 +20e", 1e-07) == "+00000001.000000e-07" +string.format("%0 +20e", 123.456) == "+00000001.234560e+02" +string.format("%0 +20e", 1234560000) == "+00000001.234560e+09" +string.format("%0 +20e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0 +20e", 123.456789123) == "+00000001.234568e+02" +string.format("%0 +20e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0 +20e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0 +20.0e", 0) == "+000000000000000e+00" +string.format("%0 +20.0e", 1) == "+000000000000001e+00" +string.format("%0 +20.0e", -1) == "-000000000000001e+00" +string.format("%0 +20.0e", 2) == "+000000000000002e+00" +string.format("%0 +20.0e", -2) == "-000000000000002e+00" +string.format("%0 +20.0e", 3) == "+000000000000003e+00" +string.format("%0 +20.0e", -3) == "-000000000000003e+00" +string.format("%0 +20.0e", nan) == " +nan" +string.format("%0 +20.0e", inf) == " +inf" +string.format("%0 +20.0e", -inf) == " -inf" +string.format("%0 +20.0e", 100) == "+000000000000001e+02" +string.format("%0 +20.0e", 10000) == "+000000000000001e+04" +string.format("%0 +20.0e", 100000) == "+000000000000001e+05" +string.format("%0 +20.0e", 1000000) == "+000000000000001e+06" +string.format("%0 +20.0e", 10000000) == "+000000000000001e+07" +string.format("%0 +20.0e", 0.01) == "+000000000000001e-02" +string.format("%0 +20.0e", 0.0001) == "+000000000000001e-04" +string.format("%0 +20.0e", 1e-05) == "+000000000000001e-05" +string.format("%0 +20.0e", 1e-06) == "+000000000000001e-06" +string.format("%0 +20.0e", 1e-07) == "+000000000000001e-07" +string.format("%0 +20.0e", 123.456) == "+000000000000001e+02" +string.format("%0 +20.0e", 1234560000) == "+000000000000001e+09" +string.format("%0 +20.0e", 1.23456e-05) == "+000000000000001e-05" +string.format("%0 +20.0e", 123.456789123) == "+000000000000001e+02" +string.format("%0 +20.0e", 1234567891.23) == "+000000000000001e+09" +string.format("%0 +20.0e", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0 +20.1e", 0) == "+0000000000000.0e+00" +string.format("%0 +20.1e", 1) == "+0000000000001.0e+00" +string.format("%0 +20.1e", -1) == "-0000000000001.0e+00" +string.format("%0 +20.1e", 2) == "+0000000000002.0e+00" +string.format("%0 +20.1e", -2) == "-0000000000002.0e+00" +string.format("%0 +20.1e", 3) == "+0000000000003.0e+00" +string.format("%0 +20.1e", -3) == "-0000000000003.0e+00" +string.format("%0 +20.1e", nan) == " +nan" +string.format("%0 +20.1e", inf) == " +inf" +string.format("%0 +20.1e", -inf) == " -inf" +string.format("%0 +20.1e", 100) == "+0000000000001.0e+02" +string.format("%0 +20.1e", 10000) == "+0000000000001.0e+04" +string.format("%0 +20.1e", 100000) == "+0000000000001.0e+05" +string.format("%0 +20.1e", 1000000) == "+0000000000001.0e+06" +string.format("%0 +20.1e", 10000000) == "+0000000000001.0e+07" +string.format("%0 +20.1e", 0.01) == "+0000000000001.0e-02" +string.format("%0 +20.1e", 0.0001) == "+0000000000001.0e-04" +string.format("%0 +20.1e", 1e-05) == "+0000000000001.0e-05" +string.format("%0 +20.1e", 1e-06) == "+0000000000001.0e-06" +string.format("%0 +20.1e", 1e-07) == "+0000000000001.0e-07" +string.format("%0 +20.1e", 123.456) == "+0000000000001.2e+02" +string.format("%0 +20.1e", 1234560000) == "+0000000000001.2e+09" +string.format("%0 +20.1e", 1.23456e-05) == "+0000000000001.2e-05" +string.format("%0 +20.1e", 123.456789123) == "+0000000000001.2e+02" +string.format("%0 +20.1e", 1234567891.23) == "+0000000000001.2e+09" +string.format("%0 +20.1e", 1.23456789123e-05) == "+0000000000001.2e-05" +string.format("%0 +20.6e", 0) == "+00000000.000000e+00" +string.format("%0 +20.6e", 1) == "+00000001.000000e+00" +string.format("%0 +20.6e", -1) == "-00000001.000000e+00" +string.format("%0 +20.6e", 2) == "+00000002.000000e+00" +string.format("%0 +20.6e", -2) == "-00000002.000000e+00" +string.format("%0 +20.6e", 3) == "+00000003.000000e+00" +string.format("%0 +20.6e", -3) == "-00000003.000000e+00" +string.format("%0 +20.6e", nan) == " +nan" +string.format("%0 +20.6e", inf) == " +inf" +string.format("%0 +20.6e", -inf) == " -inf" +string.format("%0 +20.6e", 100) == "+00000001.000000e+02" +string.format("%0 +20.6e", 10000) == "+00000001.000000e+04" +string.format("%0 +20.6e", 100000) == "+00000001.000000e+05" +string.format("%0 +20.6e", 1000000) == "+00000001.000000e+06" +string.format("%0 +20.6e", 10000000) == "+00000001.000000e+07" +string.format("%0 +20.6e", 0.01) == "+00000001.000000e-02" +string.format("%0 +20.6e", 0.0001) == "+00000001.000000e-04" +string.format("%0 +20.6e", 1e-05) == "+00000001.000000e-05" +string.format("%0 +20.6e", 1e-06) == "+00000001.000000e-06" +string.format("%0 +20.6e", 1e-07) == "+00000001.000000e-07" +string.format("%0 +20.6e", 123.456) == "+00000001.234560e+02" +string.format("%0 +20.6e", 1234560000) == "+00000001.234560e+09" +string.format("%0 +20.6e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0 +20.6e", 123.456789123) == "+00000001.234568e+02" +string.format("%0 +20.6e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0 +20.6e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0 -e", 0) == " 0.000000e+00" +string.format("%0 -e", 1) == " 1.000000e+00" +string.format("%0 -e", -1) == "-1.000000e+00" +string.format("%0 -e", 2) == " 2.000000e+00" +string.format("%0 -e", -2) == "-2.000000e+00" +string.format("%0 -e", 3) == " 3.000000e+00" +string.format("%0 -e", -3) == "-3.000000e+00" +string.format("%0 -e", nan) == " nan" +string.format("%0 -e", inf) == " inf" +string.format("%0 -e", -inf) == "-inf" +string.format("%0 -e", 100) == " 1.000000e+02" +string.format("%0 -e", 10000) == " 1.000000e+04" +string.format("%0 -e", 100000) == " 1.000000e+05" +string.format("%0 -e", 1000000) == " 1.000000e+06" +string.format("%0 -e", 10000000) == " 1.000000e+07" +string.format("%0 -e", 0.01) == " 1.000000e-02" +string.format("%0 -e", 0.0001) == " 1.000000e-04" +string.format("%0 -e", 1e-05) == " 1.000000e-05" +string.format("%0 -e", 1e-06) == " 1.000000e-06" +string.format("%0 -e", 1e-07) == " 1.000000e-07" +string.format("%0 -e", 123.456) == " 1.234560e+02" +string.format("%0 -e", 1234560000) == " 1.234560e+09" +string.format("%0 -e", 1.23456e-05) == " 1.234560e-05" +string.format("%0 -e", 123.456789123) == " 1.234568e+02" +string.format("%0 -e", 1234567891.23) == " 1.234568e+09" +string.format("%0 -e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%0 -.0e", 0) == " 0e+00" +string.format("%0 -.0e", 1) == " 1e+00" +string.format("%0 -.0e", -1) == "-1e+00" +string.format("%0 -.0e", 2) == " 2e+00" +string.format("%0 -.0e", -2) == "-2e+00" +string.format("%0 -.0e", 3) == " 3e+00" +string.format("%0 -.0e", -3) == "-3e+00" +string.format("%0 -.0e", 100) == " 1e+02" +string.format("%0 -.0e", 10000) == " 1e+04" +string.format("%0 -.0e", 100000) == " 1e+05" +string.format("%0 -.0e", 1000000) == " 1e+06" +string.format("%0 -.0e", 10000000) == " 1e+07" +string.format("%0 -.0e", 0.01) == " 1e-02" +string.format("%0 -.0e", 0.0001) == " 1e-04" +string.format("%0 -.0e", 1e-05) == " 1e-05" +string.format("%0 -.0e", 1e-06) == " 1e-06" +string.format("%0 -.0e", 1e-07) == " 1e-07" +string.format("%0 -.0e", 123.456) == " 1e+02" +string.format("%0 -.0e", 1234560000) == " 1e+09" +string.format("%0 -.0e", 1.23456e-05) == " 1e-05" +string.format("%0 -.0e", 123.456789123) == " 1e+02" +string.format("%0 -.0e", 1234567891.23) == " 1e+09" +string.format("%0 -.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 -.1e", 0) == " 0.0e+00" +string.format("%0 -.1e", 1) == " 1.0e+00" +string.format("%0 -.1e", -1) == "-1.0e+00" +string.format("%0 -.1e", 2) == " 2.0e+00" +string.format("%0 -.1e", -2) == "-2.0e+00" +string.format("%0 -.1e", 3) == " 3.0e+00" +string.format("%0 -.1e", -3) == "-3.0e+00" +string.format("%0 -.1e", 100) == " 1.0e+02" +string.format("%0 -.1e", 10000) == " 1.0e+04" +string.format("%0 -.1e", 100000) == " 1.0e+05" +string.format("%0 -.1e", 1000000) == " 1.0e+06" +string.format("%0 -.1e", 10000000) == " 1.0e+07" +string.format("%0 -.1e", 0.01) == " 1.0e-02" +string.format("%0 -.1e", 0.0001) == " 1.0e-04" +string.format("%0 -.1e", 1e-05) == " 1.0e-05" +string.format("%0 -.1e", 1e-06) == " 1.0e-06" +string.format("%0 -.1e", 1e-07) == " 1.0e-07" +string.format("%0 -.1e", 123.456) == " 1.2e+02" +string.format("%0 -.1e", 1234560000) == " 1.2e+09" +string.format("%0 -.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 -.1e", 123.456789123) == " 1.2e+02" +string.format("%0 -.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 -.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 -1.0e", 0) == " 0e+00" +string.format("%0 -1.0e", 1) == " 1e+00" +string.format("%0 -1.0e", -1) == "-1e+00" +string.format("%0 -1.0e", 2) == " 2e+00" +string.format("%0 -1.0e", -2) == "-2e+00" +string.format("%0 -1.0e", 3) == " 3e+00" +string.format("%0 -1.0e", -3) == "-3e+00" +string.format("%0 -1.0e", 100) == " 1e+02" +string.format("%0 -1.0e", 10000) == " 1e+04" +string.format("%0 -1.0e", 100000) == " 1e+05" +string.format("%0 -1.0e", 1000000) == " 1e+06" +string.format("%0 -1.0e", 10000000) == " 1e+07" +string.format("%0 -1.0e", 0.01) == " 1e-02" +string.format("%0 -1.0e", 0.0001) == " 1e-04" +string.format("%0 -1.0e", 1e-05) == " 1e-05" +string.format("%0 -1.0e", 1e-06) == " 1e-06" +string.format("%0 -1.0e", 1e-07) == " 1e-07" +string.format("%0 -1.0e", 123.456) == " 1e+02" +string.format("%0 -1.0e", 1234560000) == " 1e+09" +string.format("%0 -1.0e", 1.23456e-05) == " 1e-05" +string.format("%0 -1.0e", 123.456789123) == " 1e+02" +string.format("%0 -1.0e", 1234567891.23) == " 1e+09" +string.format("%0 -1.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 -1.1e", 0) == " 0.0e+00" +string.format("%0 -1.1e", 1) == " 1.0e+00" +string.format("%0 -1.1e", -1) == "-1.0e+00" +string.format("%0 -1.1e", 2) == " 2.0e+00" +string.format("%0 -1.1e", -2) == "-2.0e+00" +string.format("%0 -1.1e", 3) == " 3.0e+00" +string.format("%0 -1.1e", -3) == "-3.0e+00" +string.format("%0 -1.1e", 100) == " 1.0e+02" +string.format("%0 -1.1e", 10000) == " 1.0e+04" +string.format("%0 -1.1e", 100000) == " 1.0e+05" +string.format("%0 -1.1e", 1000000) == " 1.0e+06" +string.format("%0 -1.1e", 10000000) == " 1.0e+07" +string.format("%0 -1.1e", 0.01) == " 1.0e-02" +string.format("%0 -1.1e", 0.0001) == " 1.0e-04" +string.format("%0 -1.1e", 1e-05) == " 1.0e-05" +string.format("%0 -1.1e", 1e-06) == " 1.0e-06" +string.format("%0 -1.1e", 1e-07) == " 1.0e-07" +string.format("%0 -1.1e", 123.456) == " 1.2e+02" +string.format("%0 -1.1e", 1234560000) == " 1.2e+09" +string.format("%0 -1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 -1.1e", 123.456789123) == " 1.2e+02" +string.format("%0 -1.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 -1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 -2.0e", 0) == " 0e+00" +string.format("%0 -2.0e", 1) == " 1e+00" +string.format("%0 -2.0e", -1) == "-1e+00" +string.format("%0 -2.0e", 2) == " 2e+00" +string.format("%0 -2.0e", -2) == "-2e+00" +string.format("%0 -2.0e", 3) == " 3e+00" +string.format("%0 -2.0e", -3) == "-3e+00" +string.format("%0 -2.0e", 100) == " 1e+02" +string.format("%0 -2.0e", 10000) == " 1e+04" +string.format("%0 -2.0e", 100000) == " 1e+05" +string.format("%0 -2.0e", 1000000) == " 1e+06" +string.format("%0 -2.0e", 10000000) == " 1e+07" +string.format("%0 -2.0e", 0.01) == " 1e-02" +string.format("%0 -2.0e", 0.0001) == " 1e-04" +string.format("%0 -2.0e", 1e-05) == " 1e-05" +string.format("%0 -2.0e", 1e-06) == " 1e-06" +string.format("%0 -2.0e", 1e-07) == " 1e-07" +string.format("%0 -2.0e", 123.456) == " 1e+02" +string.format("%0 -2.0e", 1234560000) == " 1e+09" +string.format("%0 -2.0e", 1.23456e-05) == " 1e-05" +string.format("%0 -2.0e", 123.456789123) == " 1e+02" +string.format("%0 -2.0e", 1234567891.23) == " 1e+09" +string.format("%0 -2.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 -2.1e", 0) == " 0.0e+00" +string.format("%0 -2.1e", 1) == " 1.0e+00" +string.format("%0 -2.1e", -1) == "-1.0e+00" +string.format("%0 -2.1e", 2) == " 2.0e+00" +string.format("%0 -2.1e", -2) == "-2.0e+00" +string.format("%0 -2.1e", 3) == " 3.0e+00" +string.format("%0 -2.1e", -3) == "-3.0e+00" +string.format("%0 -2.1e", 100) == " 1.0e+02" +string.format("%0 -2.1e", 10000) == " 1.0e+04" +string.format("%0 -2.1e", 100000) == " 1.0e+05" +string.format("%0 -2.1e", 1000000) == " 1.0e+06" +string.format("%0 -2.1e", 10000000) == " 1.0e+07" +string.format("%0 -2.1e", 0.01) == " 1.0e-02" +string.format("%0 -2.1e", 0.0001) == " 1.0e-04" +string.format("%0 -2.1e", 1e-05) == " 1.0e-05" +string.format("%0 -2.1e", 1e-06) == " 1.0e-06" +string.format("%0 -2.1e", 1e-07) == " 1.0e-07" +string.format("%0 -2.1e", 123.456) == " 1.2e+02" +string.format("%0 -2.1e", 1234560000) == " 1.2e+09" +string.format("%0 -2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 -2.1e", 123.456789123) == " 1.2e+02" +string.format("%0 -2.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 -2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 -6e", nan) == " nan " +string.format("%0 -6e", inf) == " inf " +string.format("%0 -6e", -inf) == "-inf " +string.format("%0 -6.0e", 0) == " 0e+00" +string.format("%0 -6.0e", 1) == " 1e+00" +string.format("%0 -6.0e", -1) == "-1e+00" +string.format("%0 -6.0e", 2) == " 2e+00" +string.format("%0 -6.0e", -2) == "-2e+00" +string.format("%0 -6.0e", 3) == " 3e+00" +string.format("%0 -6.0e", -3) == "-3e+00" +string.format("%0 -6.0e", nan) == " nan " +string.format("%0 -6.0e", inf) == " inf " +string.format("%0 -6.0e", -inf) == "-inf " +string.format("%0 -6.0e", 100) == " 1e+02" +string.format("%0 -6.0e", 10000) == " 1e+04" +string.format("%0 -6.0e", 100000) == " 1e+05" +string.format("%0 -6.0e", 1000000) == " 1e+06" +string.format("%0 -6.0e", 10000000) == " 1e+07" +string.format("%0 -6.0e", 0.01) == " 1e-02" +string.format("%0 -6.0e", 0.0001) == " 1e-04" +string.format("%0 -6.0e", 1e-05) == " 1e-05" +string.format("%0 -6.0e", 1e-06) == " 1e-06" +string.format("%0 -6.0e", 1e-07) == " 1e-07" +string.format("%0 -6.0e", 123.456) == " 1e+02" +string.format("%0 -6.0e", 1234560000) == " 1e+09" +string.format("%0 -6.0e", 1.23456e-05) == " 1e-05" +string.format("%0 -6.0e", 123.456789123) == " 1e+02" +string.format("%0 -6.0e", 1234567891.23) == " 1e+09" +string.format("%0 -6.0e", 1.23456789123e-05) == " 1e-05" +string.format("%0 -6.1e", 0) == " 0.0e+00" +string.format("%0 -6.1e", 1) == " 1.0e+00" +string.format("%0 -6.1e", -1) == "-1.0e+00" +string.format("%0 -6.1e", 2) == " 2.0e+00" +string.format("%0 -6.1e", -2) == "-2.0e+00" +string.format("%0 -6.1e", 3) == " 3.0e+00" +string.format("%0 -6.1e", -3) == "-3.0e+00" +string.format("%0 -6.1e", nan) == " nan " +string.format("%0 -6.1e", inf) == " inf " +string.format("%0 -6.1e", -inf) == "-inf " +string.format("%0 -6.1e", 100) == " 1.0e+02" +string.format("%0 -6.1e", 10000) == " 1.0e+04" +string.format("%0 -6.1e", 100000) == " 1.0e+05" +string.format("%0 -6.1e", 1000000) == " 1.0e+06" +string.format("%0 -6.1e", 10000000) == " 1.0e+07" +string.format("%0 -6.1e", 0.01) == " 1.0e-02" +string.format("%0 -6.1e", 0.0001) == " 1.0e-04" +string.format("%0 -6.1e", 1e-05) == " 1.0e-05" +string.format("%0 -6.1e", 1e-06) == " 1.0e-06" +string.format("%0 -6.1e", 1e-07) == " 1.0e-07" +string.format("%0 -6.1e", 123.456) == " 1.2e+02" +string.format("%0 -6.1e", 1234560000) == " 1.2e+09" +string.format("%0 -6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0 -6.1e", 123.456789123) == " 1.2e+02" +string.format("%0 -6.1e", 1234567891.23) == " 1.2e+09" +string.format("%0 -6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0 -6.6e", nan) == " nan " +string.format("%0 -6.6e", inf) == " inf " +string.format("%0 -6.6e", -inf) == "-inf " +string.format("%0 -20e", 0) == " 0.000000e+00 " +string.format("%0 -20e", 1) == " 1.000000e+00 " +string.format("%0 -20e", -1) == "-1.000000e+00 " +string.format("%0 -20e", 2) == " 2.000000e+00 " +string.format("%0 -20e", -2) == "-2.000000e+00 " +string.format("%0 -20e", 3) == " 3.000000e+00 " +string.format("%0 -20e", -3) == "-3.000000e+00 " +string.format("%0 -20e", nan) == " nan " +string.format("%0 -20e", inf) == " inf " +string.format("%0 -20e", -inf) == "-inf " +string.format("%0 -20e", 100) == " 1.000000e+02 " +string.format("%0 -20e", 10000) == " 1.000000e+04 " +string.format("%0 -20e", 100000) == " 1.000000e+05 " +string.format("%0 -20e", 1000000) == " 1.000000e+06 " +string.format("%0 -20e", 10000000) == " 1.000000e+07 " +string.format("%0 -20e", 0.01) == " 1.000000e-02 " +string.format("%0 -20e", 0.0001) == " 1.000000e-04 " +string.format("%0 -20e", 1e-05) == " 1.000000e-05 " +string.format("%0 -20e", 1e-06) == " 1.000000e-06 " +string.format("%0 -20e", 1e-07) == " 1.000000e-07 " +string.format("%0 -20e", 123.456) == " 1.234560e+02 " +string.format("%0 -20e", 1234560000) == " 1.234560e+09 " +string.format("%0 -20e", 1.23456e-05) == " 1.234560e-05 " +string.format("%0 -20e", 123.456789123) == " 1.234568e+02 " +string.format("%0 -20e", 1234567891.23) == " 1.234568e+09 " +string.format("%0 -20e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%0 -20.0e", 0) == " 0e+00 " +string.format("%0 -20.0e", 1) == " 1e+00 " +string.format("%0 -20.0e", -1) == "-1e+00 " +string.format("%0 -20.0e", 2) == " 2e+00 " +string.format("%0 -20.0e", -2) == "-2e+00 " +string.format("%0 -20.0e", 3) == " 3e+00 " +string.format("%0 -20.0e", -3) == "-3e+00 " +string.format("%0 -20.0e", nan) == " nan " +string.format("%0 -20.0e", inf) == " inf " +string.format("%0 -20.0e", -inf) == "-inf " +string.format("%0 -20.0e", 100) == " 1e+02 " +string.format("%0 -20.0e", 10000) == " 1e+04 " +string.format("%0 -20.0e", 100000) == " 1e+05 " +string.format("%0 -20.0e", 1000000) == " 1e+06 " +string.format("%0 -20.0e", 10000000) == " 1e+07 " +string.format("%0 -20.0e", 0.01) == " 1e-02 " +string.format("%0 -20.0e", 0.0001) == " 1e-04 " +string.format("%0 -20.0e", 1e-05) == " 1e-05 " +string.format("%0 -20.0e", 1e-06) == " 1e-06 " +string.format("%0 -20.0e", 1e-07) == " 1e-07 " +string.format("%0 -20.0e", 123.456) == " 1e+02 " +string.format("%0 -20.0e", 1234560000) == " 1e+09 " +string.format("%0 -20.0e", 1.23456e-05) == " 1e-05 " +string.format("%0 -20.0e", 123.456789123) == " 1e+02 " +string.format("%0 -20.0e", 1234567891.23) == " 1e+09 " +string.format("%0 -20.0e", 1.23456789123e-05) == " 1e-05 " +string.format("%0 -20.1e", 0) == " 0.0e+00 " +string.format("%0 -20.1e", 1) == " 1.0e+00 " +string.format("%0 -20.1e", -1) == "-1.0e+00 " +string.format("%0 -20.1e", 2) == " 2.0e+00 " +string.format("%0 -20.1e", -2) == "-2.0e+00 " +string.format("%0 -20.1e", 3) == " 3.0e+00 " +string.format("%0 -20.1e", -3) == "-3.0e+00 " +string.format("%0 -20.1e", nan) == " nan " +string.format("%0 -20.1e", inf) == " inf " +string.format("%0 -20.1e", -inf) == "-inf " +string.format("%0 -20.1e", 100) == " 1.0e+02 " +string.format("%0 -20.1e", 10000) == " 1.0e+04 " +string.format("%0 -20.1e", 100000) == " 1.0e+05 " +string.format("%0 -20.1e", 1000000) == " 1.0e+06 " +string.format("%0 -20.1e", 10000000) == " 1.0e+07 " +string.format("%0 -20.1e", 0.01) == " 1.0e-02 " +string.format("%0 -20.1e", 0.0001) == " 1.0e-04 " +string.format("%0 -20.1e", 1e-05) == " 1.0e-05 " +string.format("%0 -20.1e", 1e-06) == " 1.0e-06 " +string.format("%0 -20.1e", 1e-07) == " 1.0e-07 " +string.format("%0 -20.1e", 123.456) == " 1.2e+02 " +string.format("%0 -20.1e", 1234560000) == " 1.2e+09 " +string.format("%0 -20.1e", 1.23456e-05) == " 1.2e-05 " +string.format("%0 -20.1e", 123.456789123) == " 1.2e+02 " +string.format("%0 -20.1e", 1234567891.23) == " 1.2e+09 " +string.format("%0 -20.1e", 1.23456789123e-05) == " 1.2e-05 " +string.format("%0 -20.6e", 0) == " 0.000000e+00 " +string.format("%0 -20.6e", 1) == " 1.000000e+00 " +string.format("%0 -20.6e", -1) == "-1.000000e+00 " +string.format("%0 -20.6e", 2) == " 2.000000e+00 " +string.format("%0 -20.6e", -2) == "-2.000000e+00 " +string.format("%0 -20.6e", 3) == " 3.000000e+00 " +string.format("%0 -20.6e", -3) == "-3.000000e+00 " +string.format("%0 -20.6e", nan) == " nan " +string.format("%0 -20.6e", inf) == " inf " +string.format("%0 -20.6e", -inf) == "-inf " +string.format("%0 -20.6e", 100) == " 1.000000e+02 " +string.format("%0 -20.6e", 10000) == " 1.000000e+04 " +string.format("%0 -20.6e", 100000) == " 1.000000e+05 " +string.format("%0 -20.6e", 1000000) == " 1.000000e+06 " +string.format("%0 -20.6e", 10000000) == " 1.000000e+07 " +string.format("%0 -20.6e", 0.01) == " 1.000000e-02 " +string.format("%0 -20.6e", 0.0001) == " 1.000000e-04 " +string.format("%0 -20.6e", 1e-05) == " 1.000000e-05 " +string.format("%0 -20.6e", 1e-06) == " 1.000000e-06 " +string.format("%0 -20.6e", 1e-07) == " 1.000000e-07 " +string.format("%0 -20.6e", 123.456) == " 1.234560e+02 " +string.format("%0 -20.6e", 1234560000) == " 1.234560e+09 " +string.format("%0 -20.6e", 1.23456e-05) == " 1.234560e-05 " +string.format("%0 -20.6e", 123.456789123) == " 1.234568e+02 " +string.format("%0 -20.6e", 1234567891.23) == " 1.234568e+09 " +string.format("%0 -20.6e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%0 -+e", 0) == "+0.000000e+00" +string.format("%0 -+e", 1) == "+1.000000e+00" +string.format("%0 -+e", -1) == "-1.000000e+00" +string.format("%0 -+e", 2) == "+2.000000e+00" +string.format("%0 -+e", -2) == "-2.000000e+00" +string.format("%0 -+e", 3) == "+3.000000e+00" +string.format("%0 -+e", -3) == "-3.000000e+00" +string.format("%0 -+e", nan) == "+nan" +string.format("%0 -+e", inf) == "+inf" +string.format("%0 -+e", -inf) == "-inf" +string.format("%0 -+e", 100) == "+1.000000e+02" +string.format("%0 -+e", 10000) == "+1.000000e+04" +string.format("%0 -+e", 100000) == "+1.000000e+05" +string.format("%0 -+e", 1000000) == "+1.000000e+06" +string.format("%0 -+e", 10000000) == "+1.000000e+07" +string.format("%0 -+e", 0.01) == "+1.000000e-02" +string.format("%0 -+e", 0.0001) == "+1.000000e-04" +string.format("%0 -+e", 1e-05) == "+1.000000e-05" +string.format("%0 -+e", 1e-06) == "+1.000000e-06" +string.format("%0 -+e", 1e-07) == "+1.000000e-07" +string.format("%0 -+e", 123.456) == "+1.234560e+02" +string.format("%0 -+e", 1234560000) == "+1.234560e+09" +string.format("%0 -+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0 -+e", 123.456789123) == "+1.234568e+02" +string.format("%0 -+e", 1234567891.23) == "+1.234568e+09" +string.format("%0 -+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0 -+.0e", 0) == "+0e+00" +string.format("%0 -+.0e", 1) == "+1e+00" +string.format("%0 -+.0e", -1) == "-1e+00" +string.format("%0 -+.0e", 2) == "+2e+00" +string.format("%0 -+.0e", -2) == "-2e+00" +string.format("%0 -+.0e", 3) == "+3e+00" +string.format("%0 -+.0e", -3) == "-3e+00" +string.format("%0 -+.0e", 100) == "+1e+02" +string.format("%0 -+.0e", 10000) == "+1e+04" +string.format("%0 -+.0e", 100000) == "+1e+05" +string.format("%0 -+.0e", 1000000) == "+1e+06" +string.format("%0 -+.0e", 10000000) == "+1e+07" +string.format("%0 -+.0e", 0.01) == "+1e-02" +string.format("%0 -+.0e", 0.0001) == "+1e-04" +string.format("%0 -+.0e", 1e-05) == "+1e-05" +string.format("%0 -+.0e", 1e-06) == "+1e-06" +string.format("%0 -+.0e", 1e-07) == "+1e-07" +string.format("%0 -+.0e", 123.456) == "+1e+02" +string.format("%0 -+.0e", 1234560000) == "+1e+09" +string.format("%0 -+.0e", 1.23456e-05) == "+1e-05" +string.format("%0 -+.0e", 123.456789123) == "+1e+02" +string.format("%0 -+.0e", 1234567891.23) == "+1e+09" +string.format("%0 -+.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+.1e", 0) == "+0.0e+00" +string.format("%0 -+.1e", 1) == "+1.0e+00" +string.format("%0 -+.1e", -1) == "-1.0e+00" +string.format("%0 -+.1e", 2) == "+2.0e+00" +string.format("%0 -+.1e", -2) == "-2.0e+00" +string.format("%0 -+.1e", 3) == "+3.0e+00" +string.format("%0 -+.1e", -3) == "-3.0e+00" +string.format("%0 -+.1e", 100) == "+1.0e+02" +string.format("%0 -+.1e", 10000) == "+1.0e+04" +string.format("%0 -+.1e", 100000) == "+1.0e+05" +string.format("%0 -+.1e", 1000000) == "+1.0e+06" +string.format("%0 -+.1e", 10000000) == "+1.0e+07" +string.format("%0 -+.1e", 0.01) == "+1.0e-02" +string.format("%0 -+.1e", 0.0001) == "+1.0e-04" +string.format("%0 -+.1e", 1e-05) == "+1.0e-05" +string.format("%0 -+.1e", 1e-06) == "+1.0e-06" +string.format("%0 -+.1e", 1e-07) == "+1.0e-07" +string.format("%0 -+.1e", 123.456) == "+1.2e+02" +string.format("%0 -+.1e", 1234560000) == "+1.2e+09" +string.format("%0 -+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 -+.1e", 123.456789123) == "+1.2e+02" +string.format("%0 -+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 -+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 -+1.0e", 0) == "+0e+00" +string.format("%0 -+1.0e", 1) == "+1e+00" +string.format("%0 -+1.0e", -1) == "-1e+00" +string.format("%0 -+1.0e", 2) == "+2e+00" +string.format("%0 -+1.0e", -2) == "-2e+00" +string.format("%0 -+1.0e", 3) == "+3e+00" +string.format("%0 -+1.0e", -3) == "-3e+00" +string.format("%0 -+1.0e", 100) == "+1e+02" +string.format("%0 -+1.0e", 10000) == "+1e+04" +string.format("%0 -+1.0e", 100000) == "+1e+05" +string.format("%0 -+1.0e", 1000000) == "+1e+06" +string.format("%0 -+1.0e", 10000000) == "+1e+07" +string.format("%0 -+1.0e", 0.01) == "+1e-02" +string.format("%0 -+1.0e", 0.0001) == "+1e-04" +string.format("%0 -+1.0e", 1e-05) == "+1e-05" +string.format("%0 -+1.0e", 1e-06) == "+1e-06" +string.format("%0 -+1.0e", 1e-07) == "+1e-07" +string.format("%0 -+1.0e", 123.456) == "+1e+02" +string.format("%0 -+1.0e", 1234560000) == "+1e+09" +string.format("%0 -+1.0e", 1.23456e-05) == "+1e-05" +string.format("%0 -+1.0e", 123.456789123) == "+1e+02" +string.format("%0 -+1.0e", 1234567891.23) == "+1e+09" +string.format("%0 -+1.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+1.1e", 0) == "+0.0e+00" +string.format("%0 -+1.1e", 1) == "+1.0e+00" +string.format("%0 -+1.1e", -1) == "-1.0e+00" +string.format("%0 -+1.1e", 2) == "+2.0e+00" +string.format("%0 -+1.1e", -2) == "-2.0e+00" +string.format("%0 -+1.1e", 3) == "+3.0e+00" +string.format("%0 -+1.1e", -3) == "-3.0e+00" +string.format("%0 -+1.1e", 100) == "+1.0e+02" +string.format("%0 -+1.1e", 10000) == "+1.0e+04" +string.format("%0 -+1.1e", 100000) == "+1.0e+05" +string.format("%0 -+1.1e", 1000000) == "+1.0e+06" +string.format("%0 -+1.1e", 10000000) == "+1.0e+07" +string.format("%0 -+1.1e", 0.01) == "+1.0e-02" +string.format("%0 -+1.1e", 0.0001) == "+1.0e-04" +string.format("%0 -+1.1e", 1e-05) == "+1.0e-05" +string.format("%0 -+1.1e", 1e-06) == "+1.0e-06" +string.format("%0 -+1.1e", 1e-07) == "+1.0e-07" +string.format("%0 -+1.1e", 123.456) == "+1.2e+02" +string.format("%0 -+1.1e", 1234560000) == "+1.2e+09" +string.format("%0 -+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 -+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0 -+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 -+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 -+2.0e", 0) == "+0e+00" +string.format("%0 -+2.0e", 1) == "+1e+00" +string.format("%0 -+2.0e", -1) == "-1e+00" +string.format("%0 -+2.0e", 2) == "+2e+00" +string.format("%0 -+2.0e", -2) == "-2e+00" +string.format("%0 -+2.0e", 3) == "+3e+00" +string.format("%0 -+2.0e", -3) == "-3e+00" +string.format("%0 -+2.0e", 100) == "+1e+02" +string.format("%0 -+2.0e", 10000) == "+1e+04" +string.format("%0 -+2.0e", 100000) == "+1e+05" +string.format("%0 -+2.0e", 1000000) == "+1e+06" +string.format("%0 -+2.0e", 10000000) == "+1e+07" +string.format("%0 -+2.0e", 0.01) == "+1e-02" +string.format("%0 -+2.0e", 0.0001) == "+1e-04" +string.format("%0 -+2.0e", 1e-05) == "+1e-05" +string.format("%0 -+2.0e", 1e-06) == "+1e-06" +string.format("%0 -+2.0e", 1e-07) == "+1e-07" +string.format("%0 -+2.0e", 123.456) == "+1e+02" +string.format("%0 -+2.0e", 1234560000) == "+1e+09" +string.format("%0 -+2.0e", 1.23456e-05) == "+1e-05" +string.format("%0 -+2.0e", 123.456789123) == "+1e+02" +string.format("%0 -+2.0e", 1234567891.23) == "+1e+09" +string.format("%0 -+2.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+2.1e", 0) == "+0.0e+00" +string.format("%0 -+2.1e", 1) == "+1.0e+00" +string.format("%0 -+2.1e", -1) == "-1.0e+00" +string.format("%0 -+2.1e", 2) == "+2.0e+00" +string.format("%0 -+2.1e", -2) == "-2.0e+00" +string.format("%0 -+2.1e", 3) == "+3.0e+00" +string.format("%0 -+2.1e", -3) == "-3.0e+00" +string.format("%0 -+2.1e", 100) == "+1.0e+02" +string.format("%0 -+2.1e", 10000) == "+1.0e+04" +string.format("%0 -+2.1e", 100000) == "+1.0e+05" +string.format("%0 -+2.1e", 1000000) == "+1.0e+06" +string.format("%0 -+2.1e", 10000000) == "+1.0e+07" +string.format("%0 -+2.1e", 0.01) == "+1.0e-02" +string.format("%0 -+2.1e", 0.0001) == "+1.0e-04" +string.format("%0 -+2.1e", 1e-05) == "+1.0e-05" +string.format("%0 -+2.1e", 1e-06) == "+1.0e-06" +string.format("%0 -+2.1e", 1e-07) == "+1.0e-07" +string.format("%0 -+2.1e", 123.456) == "+1.2e+02" +string.format("%0 -+2.1e", 1234560000) == "+1.2e+09" +string.format("%0 -+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 -+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0 -+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 -+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 -+6e", nan) == "+nan " +string.format("%0 -+6e", inf) == "+inf " +string.format("%0 -+6e", -inf) == "-inf " +string.format("%0 -+6.0e", 0) == "+0e+00" +string.format("%0 -+6.0e", 1) == "+1e+00" +string.format("%0 -+6.0e", -1) == "-1e+00" +string.format("%0 -+6.0e", 2) == "+2e+00" +string.format("%0 -+6.0e", -2) == "-2e+00" +string.format("%0 -+6.0e", 3) == "+3e+00" +string.format("%0 -+6.0e", -3) == "-3e+00" +string.format("%0 -+6.0e", nan) == "+nan " +string.format("%0 -+6.0e", inf) == "+inf " +string.format("%0 -+6.0e", -inf) == "-inf " +string.format("%0 -+6.0e", 100) == "+1e+02" +string.format("%0 -+6.0e", 10000) == "+1e+04" +string.format("%0 -+6.0e", 100000) == "+1e+05" +string.format("%0 -+6.0e", 1000000) == "+1e+06" +string.format("%0 -+6.0e", 10000000) == "+1e+07" +string.format("%0 -+6.0e", 0.01) == "+1e-02" +string.format("%0 -+6.0e", 0.0001) == "+1e-04" +string.format("%0 -+6.0e", 1e-05) == "+1e-05" +string.format("%0 -+6.0e", 1e-06) == "+1e-06" +string.format("%0 -+6.0e", 1e-07) == "+1e-07" +string.format("%0 -+6.0e", 123.456) == "+1e+02" +string.format("%0 -+6.0e", 1234560000) == "+1e+09" +string.format("%0 -+6.0e", 1.23456e-05) == "+1e-05" +string.format("%0 -+6.0e", 123.456789123) == "+1e+02" +string.format("%0 -+6.0e", 1234567891.23) == "+1e+09" +string.format("%0 -+6.0e", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+6.1e", 0) == "+0.0e+00" +string.format("%0 -+6.1e", 1) == "+1.0e+00" +string.format("%0 -+6.1e", -1) == "-1.0e+00" +string.format("%0 -+6.1e", 2) == "+2.0e+00" +string.format("%0 -+6.1e", -2) == "-2.0e+00" +string.format("%0 -+6.1e", 3) == "+3.0e+00" +string.format("%0 -+6.1e", -3) == "-3.0e+00" +string.format("%0 -+6.1e", nan) == "+nan " +string.format("%0 -+6.1e", inf) == "+inf " +string.format("%0 -+6.1e", -inf) == "-inf " +string.format("%0 -+6.1e", 100) == "+1.0e+02" +string.format("%0 -+6.1e", 10000) == "+1.0e+04" +string.format("%0 -+6.1e", 100000) == "+1.0e+05" +string.format("%0 -+6.1e", 1000000) == "+1.0e+06" +string.format("%0 -+6.1e", 10000000) == "+1.0e+07" +string.format("%0 -+6.1e", 0.01) == "+1.0e-02" +string.format("%0 -+6.1e", 0.0001) == "+1.0e-04" +string.format("%0 -+6.1e", 1e-05) == "+1.0e-05" +string.format("%0 -+6.1e", 1e-06) == "+1.0e-06" +string.format("%0 -+6.1e", 1e-07) == "+1.0e-07" +string.format("%0 -+6.1e", 123.456) == "+1.2e+02" +string.format("%0 -+6.1e", 1234560000) == "+1.2e+09" +string.format("%0 -+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0 -+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0 -+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0 -+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0 -+6.6e", nan) == "+nan " +string.format("%0 -+6.6e", inf) == "+inf " +string.format("%0 -+6.6e", -inf) == "-inf " +string.format("%0 -+20e", 0) == "+0.000000e+00 " +string.format("%0 -+20e", 1) == "+1.000000e+00 " +string.format("%0 -+20e", -1) == "-1.000000e+00 " +string.format("%0 -+20e", 2) == "+2.000000e+00 " +string.format("%0 -+20e", -2) == "-2.000000e+00 " +string.format("%0 -+20e", 3) == "+3.000000e+00 " +string.format("%0 -+20e", -3) == "-3.000000e+00 " +string.format("%0 -+20e", nan) == "+nan " +string.format("%0 -+20e", inf) == "+inf " +string.format("%0 -+20e", -inf) == "-inf " +string.format("%0 -+20e", 100) == "+1.000000e+02 " +string.format("%0 -+20e", 10000) == "+1.000000e+04 " +string.format("%0 -+20e", 100000) == "+1.000000e+05 " +string.format("%0 -+20e", 1000000) == "+1.000000e+06 " +string.format("%0 -+20e", 10000000) == "+1.000000e+07 " +string.format("%0 -+20e", 0.01) == "+1.000000e-02 " +string.format("%0 -+20e", 0.0001) == "+1.000000e-04 " +string.format("%0 -+20e", 1e-05) == "+1.000000e-05 " +string.format("%0 -+20e", 1e-06) == "+1.000000e-06 " +string.format("%0 -+20e", 1e-07) == "+1.000000e-07 " +string.format("%0 -+20e", 123.456) == "+1.234560e+02 " +string.format("%0 -+20e", 1234560000) == "+1.234560e+09 " +string.format("%0 -+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0 -+20e", 123.456789123) == "+1.234568e+02 " +string.format("%0 -+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%0 -+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0 -+20.0e", 0) == "+0e+00 " +string.format("%0 -+20.0e", 1) == "+1e+00 " +string.format("%0 -+20.0e", -1) == "-1e+00 " +string.format("%0 -+20.0e", 2) == "+2e+00 " +string.format("%0 -+20.0e", -2) == "-2e+00 " +string.format("%0 -+20.0e", 3) == "+3e+00 " +string.format("%0 -+20.0e", -3) == "-3e+00 " +string.format("%0 -+20.0e", nan) == "+nan " +string.format("%0 -+20.0e", inf) == "+inf " +string.format("%0 -+20.0e", -inf) == "-inf " +string.format("%0 -+20.0e", 100) == "+1e+02 " +string.format("%0 -+20.0e", 10000) == "+1e+04 " +string.format("%0 -+20.0e", 100000) == "+1e+05 " +string.format("%0 -+20.0e", 1000000) == "+1e+06 " +string.format("%0 -+20.0e", 10000000) == "+1e+07 " +string.format("%0 -+20.0e", 0.01) == "+1e-02 " +string.format("%0 -+20.0e", 0.0001) == "+1e-04 " +string.format("%0 -+20.0e", 1e-05) == "+1e-05 " +string.format("%0 -+20.0e", 1e-06) == "+1e-06 " +string.format("%0 -+20.0e", 1e-07) == "+1e-07 " +string.format("%0 -+20.0e", 123.456) == "+1e+02 " +string.format("%0 -+20.0e", 1234560000) == "+1e+09 " +string.format("%0 -+20.0e", 1.23456e-05) == "+1e-05 " +string.format("%0 -+20.0e", 123.456789123) == "+1e+02 " +string.format("%0 -+20.0e", 1234567891.23) == "+1e+09 " +string.format("%0 -+20.0e", 1.23456789123e-05) == "+1e-05 " +string.format("%0 -+20.1e", 0) == "+0.0e+00 " +string.format("%0 -+20.1e", 1) == "+1.0e+00 " +string.format("%0 -+20.1e", -1) == "-1.0e+00 " +string.format("%0 -+20.1e", 2) == "+2.0e+00 " +string.format("%0 -+20.1e", -2) == "-2.0e+00 " +string.format("%0 -+20.1e", 3) == "+3.0e+00 " +string.format("%0 -+20.1e", -3) == "-3.0e+00 " +string.format("%0 -+20.1e", nan) == "+nan " +string.format("%0 -+20.1e", inf) == "+inf " +string.format("%0 -+20.1e", -inf) == "-inf " +string.format("%0 -+20.1e", 100) == "+1.0e+02 " +string.format("%0 -+20.1e", 10000) == "+1.0e+04 " +string.format("%0 -+20.1e", 100000) == "+1.0e+05 " +string.format("%0 -+20.1e", 1000000) == "+1.0e+06 " +string.format("%0 -+20.1e", 10000000) == "+1.0e+07 " +string.format("%0 -+20.1e", 0.01) == "+1.0e-02 " +string.format("%0 -+20.1e", 0.0001) == "+1.0e-04 " +string.format("%0 -+20.1e", 1e-05) == "+1.0e-05 " +string.format("%0 -+20.1e", 1e-06) == "+1.0e-06 " +string.format("%0 -+20.1e", 1e-07) == "+1.0e-07 " +string.format("%0 -+20.1e", 123.456) == "+1.2e+02 " +string.format("%0 -+20.1e", 1234560000) == "+1.2e+09 " +string.format("%0 -+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%0 -+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%0 -+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%0 -+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%0 -+20.6e", 0) == "+0.000000e+00 " +string.format("%0 -+20.6e", 1) == "+1.000000e+00 " +string.format("%0 -+20.6e", -1) == "-1.000000e+00 " +string.format("%0 -+20.6e", 2) == "+2.000000e+00 " +string.format("%0 -+20.6e", -2) == "-2.000000e+00 " +string.format("%0 -+20.6e", 3) == "+3.000000e+00 " +string.format("%0 -+20.6e", -3) == "-3.000000e+00 " +string.format("%0 -+20.6e", nan) == "+nan " +string.format("%0 -+20.6e", inf) == "+inf " +string.format("%0 -+20.6e", -inf) == "-inf " +string.format("%0 -+20.6e", 100) == "+1.000000e+02 " +string.format("%0 -+20.6e", 10000) == "+1.000000e+04 " +string.format("%0 -+20.6e", 100000) == "+1.000000e+05 " +string.format("%0 -+20.6e", 1000000) == "+1.000000e+06 " +string.format("%0 -+20.6e", 10000000) == "+1.000000e+07 " +string.format("%0 -+20.6e", 0.01) == "+1.000000e-02 " +string.format("%0 -+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%0 -+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%0 -+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%0 -+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%0 -+20.6e", 123.456) == "+1.234560e+02 " +string.format("%0 -+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%0 -+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0 -+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%0 -+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%0 -+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0#e", 0) == "0.000000e+00" +string.format("%0#e", 1) == "1.000000e+00" +string.format("%0#e", -1) == "-1.000000e+00" +string.format("%0#e", 2) == "2.000000e+00" +string.format("%0#e", -2) == "-2.000000e+00" +string.format("%0#e", 3) == "3.000000e+00" +string.format("%0#e", -3) == "-3.000000e+00" +string.format("%0#e", nan) == "nan" +string.format("%0#e", inf) == "inf" +string.format("%0#e", -inf) == "-inf" +string.format("%0#e", 100) == "1.000000e+02" +string.format("%0#e", 10000) == "1.000000e+04" +string.format("%0#e", 100000) == "1.000000e+05" +string.format("%0#e", 1000000) == "1.000000e+06" +string.format("%0#e", 10000000) == "1.000000e+07" +string.format("%0#e", 0.01) == "1.000000e-02" +string.format("%0#e", 0.0001) == "1.000000e-04" +string.format("%0#e", 1e-05) == "1.000000e-05" +string.format("%0#e", 1e-06) == "1.000000e-06" +string.format("%0#e", 1e-07) == "1.000000e-07" +string.format("%0#e", 123.456) == "1.234560e+02" +string.format("%0#e", 1234560000) == "1.234560e+09" +string.format("%0#e", 1.23456e-05) == "1.234560e-05" +string.format("%0#e", 123.456789123) == "1.234568e+02" +string.format("%0#e", 1234567891.23) == "1.234568e+09" +string.format("%0#e", 1.23456789123e-05) == "1.234568e-05" +string.format("%0#.0e", 0) == "0.e+00" +string.format("%0#.0e", 1) == "1.e+00" +string.format("%0#.0e", -1) == "-1.e+00" +string.format("%0#.0e", 2) == "2.e+00" +string.format("%0#.0e", -2) == "-2.e+00" +string.format("%0#.0e", 3) == "3.e+00" +string.format("%0#.0e", -3) == "-3.e+00" +string.format("%0#.0e", 100) == "1.e+02" +string.format("%0#.0e", 10000) == "1.e+04" +string.format("%0#.0e", 100000) == "1.e+05" +string.format("%0#.0e", 1000000) == "1.e+06" +string.format("%0#.0e", 10000000) == "1.e+07" +string.format("%0#.0e", 0.01) == "1.e-02" +string.format("%0#.0e", 0.0001) == "1.e-04" +string.format("%0#.0e", 1e-05) == "1.e-05" +string.format("%0#.0e", 1e-06) == "1.e-06" +string.format("%0#.0e", 1e-07) == "1.e-07" +string.format("%0#.0e", 123.456) == "1.e+02" +string.format("%0#.0e", 1234560000) == "1.e+09" +string.format("%0#.0e", 1.23456e-05) == "1.e-05" +string.format("%0#.0e", 123.456789123) == "1.e+02" +string.format("%0#.0e", 1234567891.23) == "1.e+09" +string.format("%0#.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#.1e", 0) == "0.0e+00" +string.format("%0#.1e", 1) == "1.0e+00" +string.format("%0#.1e", -1) == "-1.0e+00" +string.format("%0#.1e", 2) == "2.0e+00" +string.format("%0#.1e", -2) == "-2.0e+00" +string.format("%0#.1e", 3) == "3.0e+00" +string.format("%0#.1e", -3) == "-3.0e+00" +string.format("%0#.1e", 100) == "1.0e+02" +string.format("%0#.1e", 10000) == "1.0e+04" +string.format("%0#.1e", 100000) == "1.0e+05" +string.format("%0#.1e", 1000000) == "1.0e+06" +string.format("%0#.1e", 10000000) == "1.0e+07" +string.format("%0#.1e", 0.01) == "1.0e-02" +string.format("%0#.1e", 0.0001) == "1.0e-04" +string.format("%0#.1e", 1e-05) == "1.0e-05" +string.format("%0#.1e", 1e-06) == "1.0e-06" +string.format("%0#.1e", 1e-07) == "1.0e-07" +string.format("%0#.1e", 123.456) == "1.2e+02" +string.format("%0#.1e", 1234560000) == "1.2e+09" +string.format("%0#.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#.1e", 123.456789123) == "1.2e+02" +string.format("%0#.1e", 1234567891.23) == "1.2e+09" +string.format("%0#.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#1.0e", 0) == "0.e+00" +string.format("%0#1.0e", 1) == "1.e+00" +string.format("%0#1.0e", -1) == "-1.e+00" +string.format("%0#1.0e", 2) == "2.e+00" +string.format("%0#1.0e", -2) == "-2.e+00" +string.format("%0#1.0e", 3) == "3.e+00" +string.format("%0#1.0e", -3) == "-3.e+00" +string.format("%0#1.0e", 100) == "1.e+02" +string.format("%0#1.0e", 10000) == "1.e+04" +string.format("%0#1.0e", 100000) == "1.e+05" +string.format("%0#1.0e", 1000000) == "1.e+06" +string.format("%0#1.0e", 10000000) == "1.e+07" +string.format("%0#1.0e", 0.01) == "1.e-02" +string.format("%0#1.0e", 0.0001) == "1.e-04" +string.format("%0#1.0e", 1e-05) == "1.e-05" +string.format("%0#1.0e", 1e-06) == "1.e-06" +string.format("%0#1.0e", 1e-07) == "1.e-07" +string.format("%0#1.0e", 123.456) == "1.e+02" +string.format("%0#1.0e", 1234560000) == "1.e+09" +string.format("%0#1.0e", 1.23456e-05) == "1.e-05" +string.format("%0#1.0e", 123.456789123) == "1.e+02" +string.format("%0#1.0e", 1234567891.23) == "1.e+09" +string.format("%0#1.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#1.1e", 0) == "0.0e+00" +string.format("%0#1.1e", 1) == "1.0e+00" +string.format("%0#1.1e", -1) == "-1.0e+00" +string.format("%0#1.1e", 2) == "2.0e+00" +string.format("%0#1.1e", -2) == "-2.0e+00" +string.format("%0#1.1e", 3) == "3.0e+00" +string.format("%0#1.1e", -3) == "-3.0e+00" +string.format("%0#1.1e", 100) == "1.0e+02" +string.format("%0#1.1e", 10000) == "1.0e+04" +string.format("%0#1.1e", 100000) == "1.0e+05" +string.format("%0#1.1e", 1000000) == "1.0e+06" +string.format("%0#1.1e", 10000000) == "1.0e+07" +string.format("%0#1.1e", 0.01) == "1.0e-02" +string.format("%0#1.1e", 0.0001) == "1.0e-04" +string.format("%0#1.1e", 1e-05) == "1.0e-05" +string.format("%0#1.1e", 1e-06) == "1.0e-06" +string.format("%0#1.1e", 1e-07) == "1.0e-07" +string.format("%0#1.1e", 123.456) == "1.2e+02" +string.format("%0#1.1e", 1234560000) == "1.2e+09" +string.format("%0#1.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#1.1e", 123.456789123) == "1.2e+02" +string.format("%0#1.1e", 1234567891.23) == "1.2e+09" +string.format("%0#1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#2.0e", 0) == "0.e+00" +string.format("%0#2.0e", 1) == "1.e+00" +string.format("%0#2.0e", -1) == "-1.e+00" +string.format("%0#2.0e", 2) == "2.e+00" +string.format("%0#2.0e", -2) == "-2.e+00" +string.format("%0#2.0e", 3) == "3.e+00" +string.format("%0#2.0e", -3) == "-3.e+00" +string.format("%0#2.0e", 100) == "1.e+02" +string.format("%0#2.0e", 10000) == "1.e+04" +string.format("%0#2.0e", 100000) == "1.e+05" +string.format("%0#2.0e", 1000000) == "1.e+06" +string.format("%0#2.0e", 10000000) == "1.e+07" +string.format("%0#2.0e", 0.01) == "1.e-02" +string.format("%0#2.0e", 0.0001) == "1.e-04" +string.format("%0#2.0e", 1e-05) == "1.e-05" +string.format("%0#2.0e", 1e-06) == "1.e-06" +string.format("%0#2.0e", 1e-07) == "1.e-07" +string.format("%0#2.0e", 123.456) == "1.e+02" +string.format("%0#2.0e", 1234560000) == "1.e+09" +string.format("%0#2.0e", 1.23456e-05) == "1.e-05" +string.format("%0#2.0e", 123.456789123) == "1.e+02" +string.format("%0#2.0e", 1234567891.23) == "1.e+09" +string.format("%0#2.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#2.1e", 0) == "0.0e+00" +string.format("%0#2.1e", 1) == "1.0e+00" +string.format("%0#2.1e", -1) == "-1.0e+00" +string.format("%0#2.1e", 2) == "2.0e+00" +string.format("%0#2.1e", -2) == "-2.0e+00" +string.format("%0#2.1e", 3) == "3.0e+00" +string.format("%0#2.1e", -3) == "-3.0e+00" +string.format("%0#2.1e", 100) == "1.0e+02" +string.format("%0#2.1e", 10000) == "1.0e+04" +string.format("%0#2.1e", 100000) == "1.0e+05" +string.format("%0#2.1e", 1000000) == "1.0e+06" +string.format("%0#2.1e", 10000000) == "1.0e+07" +string.format("%0#2.1e", 0.01) == "1.0e-02" +string.format("%0#2.1e", 0.0001) == "1.0e-04" +string.format("%0#2.1e", 1e-05) == "1.0e-05" +string.format("%0#2.1e", 1e-06) == "1.0e-06" +string.format("%0#2.1e", 1e-07) == "1.0e-07" +string.format("%0#2.1e", 123.456) == "1.2e+02" +string.format("%0#2.1e", 1234560000) == "1.2e+09" +string.format("%0#2.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#2.1e", 123.456789123) == "1.2e+02" +string.format("%0#2.1e", 1234567891.23) == "1.2e+09" +string.format("%0#2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#6e", nan) == " nan" +string.format("%0#6e", inf) == " inf" +string.format("%0#6e", -inf) == " -inf" +string.format("%0#6.0e", 0) == "0.e+00" +string.format("%0#6.0e", 1) == "1.e+00" +string.format("%0#6.0e", -1) == "-1.e+00" +string.format("%0#6.0e", 2) == "2.e+00" +string.format("%0#6.0e", -2) == "-2.e+00" +string.format("%0#6.0e", 3) == "3.e+00" +string.format("%0#6.0e", -3) == "-3.e+00" +string.format("%0#6.0e", nan) == " nan" +string.format("%0#6.0e", inf) == " inf" +string.format("%0#6.0e", -inf) == " -inf" +string.format("%0#6.0e", 100) == "1.e+02" +string.format("%0#6.0e", 10000) == "1.e+04" +string.format("%0#6.0e", 100000) == "1.e+05" +string.format("%0#6.0e", 1000000) == "1.e+06" +string.format("%0#6.0e", 10000000) == "1.e+07" +string.format("%0#6.0e", 0.01) == "1.e-02" +string.format("%0#6.0e", 0.0001) == "1.e-04" +string.format("%0#6.0e", 1e-05) == "1.e-05" +string.format("%0#6.0e", 1e-06) == "1.e-06" +string.format("%0#6.0e", 1e-07) == "1.e-07" +string.format("%0#6.0e", 123.456) == "1.e+02" +string.format("%0#6.0e", 1234560000) == "1.e+09" +string.format("%0#6.0e", 1.23456e-05) == "1.e-05" +string.format("%0#6.0e", 123.456789123) == "1.e+02" +string.format("%0#6.0e", 1234567891.23) == "1.e+09" +string.format("%0#6.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#6.1e", 0) == "0.0e+00" +string.format("%0#6.1e", 1) == "1.0e+00" +string.format("%0#6.1e", -1) == "-1.0e+00" +string.format("%0#6.1e", 2) == "2.0e+00" +string.format("%0#6.1e", -2) == "-2.0e+00" +string.format("%0#6.1e", 3) == "3.0e+00" +string.format("%0#6.1e", -3) == "-3.0e+00" +string.format("%0#6.1e", nan) == " nan" +string.format("%0#6.1e", inf) == " inf" +string.format("%0#6.1e", -inf) == " -inf" +string.format("%0#6.1e", 100) == "1.0e+02" +string.format("%0#6.1e", 10000) == "1.0e+04" +string.format("%0#6.1e", 100000) == "1.0e+05" +string.format("%0#6.1e", 1000000) == "1.0e+06" +string.format("%0#6.1e", 10000000) == "1.0e+07" +string.format("%0#6.1e", 0.01) == "1.0e-02" +string.format("%0#6.1e", 0.0001) == "1.0e-04" +string.format("%0#6.1e", 1e-05) == "1.0e-05" +string.format("%0#6.1e", 1e-06) == "1.0e-06" +string.format("%0#6.1e", 1e-07) == "1.0e-07" +string.format("%0#6.1e", 123.456) == "1.2e+02" +string.format("%0#6.1e", 1234560000) == "1.2e+09" +string.format("%0#6.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#6.1e", 123.456789123) == "1.2e+02" +string.format("%0#6.1e", 1234567891.23) == "1.2e+09" +string.format("%0#6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#6.6e", nan) == " nan" +string.format("%0#6.6e", inf) == " inf" +string.format("%0#6.6e", -inf) == " -inf" +string.format("%0#20e", 0) == "000000000.000000e+00" +string.format("%0#20e", 1) == "000000001.000000e+00" +string.format("%0#20e", -1) == "-00000001.000000e+00" +string.format("%0#20e", 2) == "000000002.000000e+00" +string.format("%0#20e", -2) == "-00000002.000000e+00" +string.format("%0#20e", 3) == "000000003.000000e+00" +string.format("%0#20e", -3) == "-00000003.000000e+00" +string.format("%0#20e", nan) == " nan" +string.format("%0#20e", inf) == " inf" +string.format("%0#20e", -inf) == " -inf" +string.format("%0#20e", 100) == "000000001.000000e+02" +string.format("%0#20e", 10000) == "000000001.000000e+04" +string.format("%0#20e", 100000) == "000000001.000000e+05" +string.format("%0#20e", 1000000) == "000000001.000000e+06" +string.format("%0#20e", 10000000) == "000000001.000000e+07" +string.format("%0#20e", 0.01) == "000000001.000000e-02" +string.format("%0#20e", 0.0001) == "000000001.000000e-04" +string.format("%0#20e", 1e-05) == "000000001.000000e-05" +string.format("%0#20e", 1e-06) == "000000001.000000e-06" +string.format("%0#20e", 1e-07) == "000000001.000000e-07" +string.format("%0#20e", 123.456) == "000000001.234560e+02" +string.format("%0#20e", 1234560000) == "000000001.234560e+09" +string.format("%0#20e", 1.23456e-05) == "000000001.234560e-05" +string.format("%0#20e", 123.456789123) == "000000001.234568e+02" +string.format("%0#20e", 1234567891.23) == "000000001.234568e+09" +string.format("%0#20e", 1.23456789123e-05) == "000000001.234568e-05" +string.format("%0#20.0e", 0) == "000000000000000.e+00" +string.format("%0#20.0e", 1) == "000000000000001.e+00" +string.format("%0#20.0e", -1) == "-00000000000001.e+00" +string.format("%0#20.0e", 2) == "000000000000002.e+00" +string.format("%0#20.0e", -2) == "-00000000000002.e+00" +string.format("%0#20.0e", 3) == "000000000000003.e+00" +string.format("%0#20.0e", -3) == "-00000000000003.e+00" +string.format("%0#20.0e", nan) == " nan" +string.format("%0#20.0e", inf) == " inf" +string.format("%0#20.0e", -inf) == " -inf" +string.format("%0#20.0e", 100) == "000000000000001.e+02" +string.format("%0#20.0e", 10000) == "000000000000001.e+04" +string.format("%0#20.0e", 100000) == "000000000000001.e+05" +string.format("%0#20.0e", 1000000) == "000000000000001.e+06" +string.format("%0#20.0e", 10000000) == "000000000000001.e+07" +string.format("%0#20.0e", 0.01) == "000000000000001.e-02" +string.format("%0#20.0e", 0.0001) == "000000000000001.e-04" +string.format("%0#20.0e", 1e-05) == "000000000000001.e-05" +string.format("%0#20.0e", 1e-06) == "000000000000001.e-06" +string.format("%0#20.0e", 1e-07) == "000000000000001.e-07" +string.format("%0#20.0e", 123.456) == "000000000000001.e+02" +string.format("%0#20.0e", 1234560000) == "000000000000001.e+09" +string.format("%0#20.0e", 1.23456e-05) == "000000000000001.e-05" +string.format("%0#20.0e", 123.456789123) == "000000000000001.e+02" +string.format("%0#20.0e", 1234567891.23) == "000000000000001.e+09" +string.format("%0#20.0e", 1.23456789123e-05) == "000000000000001.e-05" +string.format("%0#20.1e", 0) == "00000000000000.0e+00" +string.format("%0#20.1e", 1) == "00000000000001.0e+00" +string.format("%0#20.1e", -1) == "-0000000000001.0e+00" +string.format("%0#20.1e", 2) == "00000000000002.0e+00" +string.format("%0#20.1e", -2) == "-0000000000002.0e+00" +string.format("%0#20.1e", 3) == "00000000000003.0e+00" +string.format("%0#20.1e", -3) == "-0000000000003.0e+00" +string.format("%0#20.1e", nan) == " nan" +string.format("%0#20.1e", inf) == " inf" +string.format("%0#20.1e", -inf) == " -inf" +string.format("%0#20.1e", 100) == "00000000000001.0e+02" +string.format("%0#20.1e", 10000) == "00000000000001.0e+04" +string.format("%0#20.1e", 100000) == "00000000000001.0e+05" +string.format("%0#20.1e", 1000000) == "00000000000001.0e+06" +string.format("%0#20.1e", 10000000) == "00000000000001.0e+07" +string.format("%0#20.1e", 0.01) == "00000000000001.0e-02" +string.format("%0#20.1e", 0.0001) == "00000000000001.0e-04" +string.format("%0#20.1e", 1e-05) == "00000000000001.0e-05" +string.format("%0#20.1e", 1e-06) == "00000000000001.0e-06" +string.format("%0#20.1e", 1e-07) == "00000000000001.0e-07" +string.format("%0#20.1e", 123.456) == "00000000000001.2e+02" +string.format("%0#20.1e", 1234560000) == "00000000000001.2e+09" +string.format("%0#20.1e", 1.23456e-05) == "00000000000001.2e-05" +string.format("%0#20.1e", 123.456789123) == "00000000000001.2e+02" +string.format("%0#20.1e", 1234567891.23) == "00000000000001.2e+09" +string.format("%0#20.1e", 1.23456789123e-05) == "00000000000001.2e-05" +string.format("%0#20.6e", 0) == "000000000.000000e+00" +string.format("%0#20.6e", 1) == "000000001.000000e+00" +string.format("%0#20.6e", -1) == "-00000001.000000e+00" +string.format("%0#20.6e", 2) == "000000002.000000e+00" +string.format("%0#20.6e", -2) == "-00000002.000000e+00" +string.format("%0#20.6e", 3) == "000000003.000000e+00" +string.format("%0#20.6e", -3) == "-00000003.000000e+00" +string.format("%0#20.6e", nan) == " nan" +string.format("%0#20.6e", inf) == " inf" +string.format("%0#20.6e", -inf) == " -inf" +string.format("%0#20.6e", 100) == "000000001.000000e+02" +string.format("%0#20.6e", 10000) == "000000001.000000e+04" +string.format("%0#20.6e", 100000) == "000000001.000000e+05" +string.format("%0#20.6e", 1000000) == "000000001.000000e+06" +string.format("%0#20.6e", 10000000) == "000000001.000000e+07" +string.format("%0#20.6e", 0.01) == "000000001.000000e-02" +string.format("%0#20.6e", 0.0001) == "000000001.000000e-04" +string.format("%0#20.6e", 1e-05) == "000000001.000000e-05" +string.format("%0#20.6e", 1e-06) == "000000001.000000e-06" +string.format("%0#20.6e", 1e-07) == "000000001.000000e-07" +string.format("%0#20.6e", 123.456) == "000000001.234560e+02" +string.format("%0#20.6e", 1234560000) == "000000001.234560e+09" +string.format("%0#20.6e", 1.23456e-05) == "000000001.234560e-05" +string.format("%0#20.6e", 123.456789123) == "000000001.234568e+02" +string.format("%0#20.6e", 1234567891.23) == "000000001.234568e+09" +string.format("%0#20.6e", 1.23456789123e-05) == "000000001.234568e-05" +string.format("%0#+e", 0) == "+0.000000e+00" +string.format("%0#+e", 1) == "+1.000000e+00" +string.format("%0#+e", -1) == "-1.000000e+00" +string.format("%0#+e", 2) == "+2.000000e+00" +string.format("%0#+e", -2) == "-2.000000e+00" +string.format("%0#+e", 3) == "+3.000000e+00" +string.format("%0#+e", -3) == "-3.000000e+00" +string.format("%0#+e", nan) == "+nan" +string.format("%0#+e", inf) == "+inf" +string.format("%0#+e", -inf) == "-inf" +string.format("%0#+e", 100) == "+1.000000e+02" +string.format("%0#+e", 10000) == "+1.000000e+04" +string.format("%0#+e", 100000) == "+1.000000e+05" +string.format("%0#+e", 1000000) == "+1.000000e+06" +string.format("%0#+e", 10000000) == "+1.000000e+07" +string.format("%0#+e", 0.01) == "+1.000000e-02" +string.format("%0#+e", 0.0001) == "+1.000000e-04" +string.format("%0#+e", 1e-05) == "+1.000000e-05" +string.format("%0#+e", 1e-06) == "+1.000000e-06" +string.format("%0#+e", 1e-07) == "+1.000000e-07" +string.format("%0#+e", 123.456) == "+1.234560e+02" +string.format("%0#+e", 1234560000) == "+1.234560e+09" +string.format("%0#+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0#+e", 123.456789123) == "+1.234568e+02" +string.format("%0#+e", 1234567891.23) == "+1.234568e+09" +string.format("%0#+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0#+.0e", 0) == "+0.e+00" +string.format("%0#+.0e", 1) == "+1.e+00" +string.format("%0#+.0e", -1) == "-1.e+00" +string.format("%0#+.0e", 2) == "+2.e+00" +string.format("%0#+.0e", -2) == "-2.e+00" +string.format("%0#+.0e", 3) == "+3.e+00" +string.format("%0#+.0e", -3) == "-3.e+00" +string.format("%0#+.0e", 100) == "+1.e+02" +string.format("%0#+.0e", 10000) == "+1.e+04" +string.format("%0#+.0e", 100000) == "+1.e+05" +string.format("%0#+.0e", 1000000) == "+1.e+06" +string.format("%0#+.0e", 10000000) == "+1.e+07" +string.format("%0#+.0e", 0.01) == "+1.e-02" +string.format("%0#+.0e", 0.0001) == "+1.e-04" +string.format("%0#+.0e", 1e-05) == "+1.e-05" +string.format("%0#+.0e", 1e-06) == "+1.e-06" +string.format("%0#+.0e", 1e-07) == "+1.e-07" +string.format("%0#+.0e", 123.456) == "+1.e+02" +string.format("%0#+.0e", 1234560000) == "+1.e+09" +string.format("%0#+.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#+.0e", 123.456789123) == "+1.e+02" +string.format("%0#+.0e", 1234567891.23) == "+1.e+09" +string.format("%0#+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+.1e", 0) == "+0.0e+00" +string.format("%0#+.1e", 1) == "+1.0e+00" +string.format("%0#+.1e", -1) == "-1.0e+00" +string.format("%0#+.1e", 2) == "+2.0e+00" +string.format("%0#+.1e", -2) == "-2.0e+00" +string.format("%0#+.1e", 3) == "+3.0e+00" +string.format("%0#+.1e", -3) == "-3.0e+00" +string.format("%0#+.1e", 100) == "+1.0e+02" +string.format("%0#+.1e", 10000) == "+1.0e+04" +string.format("%0#+.1e", 100000) == "+1.0e+05" +string.format("%0#+.1e", 1000000) == "+1.0e+06" +string.format("%0#+.1e", 10000000) == "+1.0e+07" +string.format("%0#+.1e", 0.01) == "+1.0e-02" +string.format("%0#+.1e", 0.0001) == "+1.0e-04" +string.format("%0#+.1e", 1e-05) == "+1.0e-05" +string.format("%0#+.1e", 1e-06) == "+1.0e-06" +string.format("%0#+.1e", 1e-07) == "+1.0e-07" +string.format("%0#+.1e", 123.456) == "+1.2e+02" +string.format("%0#+.1e", 1234560000) == "+1.2e+09" +string.format("%0#+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#+.1e", 123.456789123) == "+1.2e+02" +string.format("%0#+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#+1.0e", 0) == "+0.e+00" +string.format("%0#+1.0e", 1) == "+1.e+00" +string.format("%0#+1.0e", -1) == "-1.e+00" +string.format("%0#+1.0e", 2) == "+2.e+00" +string.format("%0#+1.0e", -2) == "-2.e+00" +string.format("%0#+1.0e", 3) == "+3.e+00" +string.format("%0#+1.0e", -3) == "-3.e+00" +string.format("%0#+1.0e", 100) == "+1.e+02" +string.format("%0#+1.0e", 10000) == "+1.e+04" +string.format("%0#+1.0e", 100000) == "+1.e+05" +string.format("%0#+1.0e", 1000000) == "+1.e+06" +string.format("%0#+1.0e", 10000000) == "+1.e+07" +string.format("%0#+1.0e", 0.01) == "+1.e-02" +string.format("%0#+1.0e", 0.0001) == "+1.e-04" +string.format("%0#+1.0e", 1e-05) == "+1.e-05" +string.format("%0#+1.0e", 1e-06) == "+1.e-06" +string.format("%0#+1.0e", 1e-07) == "+1.e-07" +string.format("%0#+1.0e", 123.456) == "+1.e+02" +string.format("%0#+1.0e", 1234560000) == "+1.e+09" +string.format("%0#+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#+1.0e", 123.456789123) == "+1.e+02" +string.format("%0#+1.0e", 1234567891.23) == "+1.e+09" +string.format("%0#+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+1.1e", 0) == "+0.0e+00" +string.format("%0#+1.1e", 1) == "+1.0e+00" +string.format("%0#+1.1e", -1) == "-1.0e+00" +string.format("%0#+1.1e", 2) == "+2.0e+00" +string.format("%0#+1.1e", -2) == "-2.0e+00" +string.format("%0#+1.1e", 3) == "+3.0e+00" +string.format("%0#+1.1e", -3) == "-3.0e+00" +string.format("%0#+1.1e", 100) == "+1.0e+02" +string.format("%0#+1.1e", 10000) == "+1.0e+04" +string.format("%0#+1.1e", 100000) == "+1.0e+05" +string.format("%0#+1.1e", 1000000) == "+1.0e+06" +string.format("%0#+1.1e", 10000000) == "+1.0e+07" +string.format("%0#+1.1e", 0.01) == "+1.0e-02" +string.format("%0#+1.1e", 0.0001) == "+1.0e-04" +string.format("%0#+1.1e", 1e-05) == "+1.0e-05" +string.format("%0#+1.1e", 1e-06) == "+1.0e-06" +string.format("%0#+1.1e", 1e-07) == "+1.0e-07" +string.format("%0#+1.1e", 123.456) == "+1.2e+02" +string.format("%0#+1.1e", 1234560000) == "+1.2e+09" +string.format("%0#+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0#+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#+2.0e", 0) == "+0.e+00" +string.format("%0#+2.0e", 1) == "+1.e+00" +string.format("%0#+2.0e", -1) == "-1.e+00" +string.format("%0#+2.0e", 2) == "+2.e+00" +string.format("%0#+2.0e", -2) == "-2.e+00" +string.format("%0#+2.0e", 3) == "+3.e+00" +string.format("%0#+2.0e", -3) == "-3.e+00" +string.format("%0#+2.0e", 100) == "+1.e+02" +string.format("%0#+2.0e", 10000) == "+1.e+04" +string.format("%0#+2.0e", 100000) == "+1.e+05" +string.format("%0#+2.0e", 1000000) == "+1.e+06" +string.format("%0#+2.0e", 10000000) == "+1.e+07" +string.format("%0#+2.0e", 0.01) == "+1.e-02" +string.format("%0#+2.0e", 0.0001) == "+1.e-04" +string.format("%0#+2.0e", 1e-05) == "+1.e-05" +string.format("%0#+2.0e", 1e-06) == "+1.e-06" +string.format("%0#+2.0e", 1e-07) == "+1.e-07" +string.format("%0#+2.0e", 123.456) == "+1.e+02" +string.format("%0#+2.0e", 1234560000) == "+1.e+09" +string.format("%0#+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#+2.0e", 123.456789123) == "+1.e+02" +string.format("%0#+2.0e", 1234567891.23) == "+1.e+09" +string.format("%0#+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+2.1e", 0) == "+0.0e+00" +string.format("%0#+2.1e", 1) == "+1.0e+00" +string.format("%0#+2.1e", -1) == "-1.0e+00" +string.format("%0#+2.1e", 2) == "+2.0e+00" +string.format("%0#+2.1e", -2) == "-2.0e+00" +string.format("%0#+2.1e", 3) == "+3.0e+00" +string.format("%0#+2.1e", -3) == "-3.0e+00" +string.format("%0#+2.1e", 100) == "+1.0e+02" +string.format("%0#+2.1e", 10000) == "+1.0e+04" +string.format("%0#+2.1e", 100000) == "+1.0e+05" +string.format("%0#+2.1e", 1000000) == "+1.0e+06" +string.format("%0#+2.1e", 10000000) == "+1.0e+07" +string.format("%0#+2.1e", 0.01) == "+1.0e-02" +string.format("%0#+2.1e", 0.0001) == "+1.0e-04" +string.format("%0#+2.1e", 1e-05) == "+1.0e-05" +string.format("%0#+2.1e", 1e-06) == "+1.0e-06" +string.format("%0#+2.1e", 1e-07) == "+1.0e-07" +string.format("%0#+2.1e", 123.456) == "+1.2e+02" +string.format("%0#+2.1e", 1234560000) == "+1.2e+09" +string.format("%0#+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0#+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#+6e", nan) == " +nan" +string.format("%0#+6e", inf) == " +inf" +string.format("%0#+6e", -inf) == " -inf" +string.format("%0#+6.0e", 0) == "+0.e+00" +string.format("%0#+6.0e", 1) == "+1.e+00" +string.format("%0#+6.0e", -1) == "-1.e+00" +string.format("%0#+6.0e", 2) == "+2.e+00" +string.format("%0#+6.0e", -2) == "-2.e+00" +string.format("%0#+6.0e", 3) == "+3.e+00" +string.format("%0#+6.0e", -3) == "-3.e+00" +string.format("%0#+6.0e", nan) == " +nan" +string.format("%0#+6.0e", inf) == " +inf" +string.format("%0#+6.0e", -inf) == " -inf" +string.format("%0#+6.0e", 100) == "+1.e+02" +string.format("%0#+6.0e", 10000) == "+1.e+04" +string.format("%0#+6.0e", 100000) == "+1.e+05" +string.format("%0#+6.0e", 1000000) == "+1.e+06" +string.format("%0#+6.0e", 10000000) == "+1.e+07" +string.format("%0#+6.0e", 0.01) == "+1.e-02" +string.format("%0#+6.0e", 0.0001) == "+1.e-04" +string.format("%0#+6.0e", 1e-05) == "+1.e-05" +string.format("%0#+6.0e", 1e-06) == "+1.e-06" +string.format("%0#+6.0e", 1e-07) == "+1.e-07" +string.format("%0#+6.0e", 123.456) == "+1.e+02" +string.format("%0#+6.0e", 1234560000) == "+1.e+09" +string.format("%0#+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#+6.0e", 123.456789123) == "+1.e+02" +string.format("%0#+6.0e", 1234567891.23) == "+1.e+09" +string.format("%0#+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+6.1e", 0) == "+0.0e+00" +string.format("%0#+6.1e", 1) == "+1.0e+00" +string.format("%0#+6.1e", -1) == "-1.0e+00" +string.format("%0#+6.1e", 2) == "+2.0e+00" +string.format("%0#+6.1e", -2) == "-2.0e+00" +string.format("%0#+6.1e", 3) == "+3.0e+00" +string.format("%0#+6.1e", -3) == "-3.0e+00" +string.format("%0#+6.1e", nan) == " +nan" +string.format("%0#+6.1e", inf) == " +inf" +string.format("%0#+6.1e", -inf) == " -inf" +string.format("%0#+6.1e", 100) == "+1.0e+02" +string.format("%0#+6.1e", 10000) == "+1.0e+04" +string.format("%0#+6.1e", 100000) == "+1.0e+05" +string.format("%0#+6.1e", 1000000) == "+1.0e+06" +string.format("%0#+6.1e", 10000000) == "+1.0e+07" +string.format("%0#+6.1e", 0.01) == "+1.0e-02" +string.format("%0#+6.1e", 0.0001) == "+1.0e-04" +string.format("%0#+6.1e", 1e-05) == "+1.0e-05" +string.format("%0#+6.1e", 1e-06) == "+1.0e-06" +string.format("%0#+6.1e", 1e-07) == "+1.0e-07" +string.format("%0#+6.1e", 123.456) == "+1.2e+02" +string.format("%0#+6.1e", 1234560000) == "+1.2e+09" +string.format("%0#+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0#+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#+6.6e", nan) == " +nan" +string.format("%0#+6.6e", inf) == " +inf" +string.format("%0#+6.6e", -inf) == " -inf" +string.format("%0#+20e", 0) == "+00000000.000000e+00" +string.format("%0#+20e", 1) == "+00000001.000000e+00" +string.format("%0#+20e", -1) == "-00000001.000000e+00" +string.format("%0#+20e", 2) == "+00000002.000000e+00" +string.format("%0#+20e", -2) == "-00000002.000000e+00" +string.format("%0#+20e", 3) == "+00000003.000000e+00" +string.format("%0#+20e", -3) == "-00000003.000000e+00" +string.format("%0#+20e", nan) == " +nan" +string.format("%0#+20e", inf) == " +inf" +string.format("%0#+20e", -inf) == " -inf" +string.format("%0#+20e", 100) == "+00000001.000000e+02" +string.format("%0#+20e", 10000) == "+00000001.000000e+04" +string.format("%0#+20e", 100000) == "+00000001.000000e+05" +string.format("%0#+20e", 1000000) == "+00000001.000000e+06" +string.format("%0#+20e", 10000000) == "+00000001.000000e+07" +string.format("%0#+20e", 0.01) == "+00000001.000000e-02" +string.format("%0#+20e", 0.0001) == "+00000001.000000e-04" +string.format("%0#+20e", 1e-05) == "+00000001.000000e-05" +string.format("%0#+20e", 1e-06) == "+00000001.000000e-06" +string.format("%0#+20e", 1e-07) == "+00000001.000000e-07" +string.format("%0#+20e", 123.456) == "+00000001.234560e+02" +string.format("%0#+20e", 1234560000) == "+00000001.234560e+09" +string.format("%0#+20e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0#+20e", 123.456789123) == "+00000001.234568e+02" +string.format("%0#+20e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0#+20e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0#+20.0e", 0) == "+00000000000000.e+00" +string.format("%0#+20.0e", 1) == "+00000000000001.e+00" +string.format("%0#+20.0e", -1) == "-00000000000001.e+00" +string.format("%0#+20.0e", 2) == "+00000000000002.e+00" +string.format("%0#+20.0e", -2) == "-00000000000002.e+00" +string.format("%0#+20.0e", 3) == "+00000000000003.e+00" +string.format("%0#+20.0e", -3) == "-00000000000003.e+00" +string.format("%0#+20.0e", nan) == " +nan" +string.format("%0#+20.0e", inf) == " +inf" +string.format("%0#+20.0e", -inf) == " -inf" +string.format("%0#+20.0e", 100) == "+00000000000001.e+02" +string.format("%0#+20.0e", 10000) == "+00000000000001.e+04" +string.format("%0#+20.0e", 100000) == "+00000000000001.e+05" +string.format("%0#+20.0e", 1000000) == "+00000000000001.e+06" +string.format("%0#+20.0e", 10000000) == "+00000000000001.e+07" +string.format("%0#+20.0e", 0.01) == "+00000000000001.e-02" +string.format("%0#+20.0e", 0.0001) == "+00000000000001.e-04" +string.format("%0#+20.0e", 1e-05) == "+00000000000001.e-05" +string.format("%0#+20.0e", 1e-06) == "+00000000000001.e-06" +string.format("%0#+20.0e", 1e-07) == "+00000000000001.e-07" +string.format("%0#+20.0e", 123.456) == "+00000000000001.e+02" +string.format("%0#+20.0e", 1234560000) == "+00000000000001.e+09" +string.format("%0#+20.0e", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0#+20.0e", 123.456789123) == "+00000000000001.e+02" +string.format("%0#+20.0e", 1234567891.23) == "+00000000000001.e+09" +string.format("%0#+20.0e", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0#+20.1e", 0) == "+0000000000000.0e+00" +string.format("%0#+20.1e", 1) == "+0000000000001.0e+00" +string.format("%0#+20.1e", -1) == "-0000000000001.0e+00" +string.format("%0#+20.1e", 2) == "+0000000000002.0e+00" +string.format("%0#+20.1e", -2) == "-0000000000002.0e+00" +string.format("%0#+20.1e", 3) == "+0000000000003.0e+00" +string.format("%0#+20.1e", -3) == "-0000000000003.0e+00" +string.format("%0#+20.1e", nan) == " +nan" +string.format("%0#+20.1e", inf) == " +inf" +string.format("%0#+20.1e", -inf) == " -inf" +string.format("%0#+20.1e", 100) == "+0000000000001.0e+02" +string.format("%0#+20.1e", 10000) == "+0000000000001.0e+04" +string.format("%0#+20.1e", 100000) == "+0000000000001.0e+05" +string.format("%0#+20.1e", 1000000) == "+0000000000001.0e+06" +string.format("%0#+20.1e", 10000000) == "+0000000000001.0e+07" +string.format("%0#+20.1e", 0.01) == "+0000000000001.0e-02" +string.format("%0#+20.1e", 0.0001) == "+0000000000001.0e-04" +string.format("%0#+20.1e", 1e-05) == "+0000000000001.0e-05" +string.format("%0#+20.1e", 1e-06) == "+0000000000001.0e-06" +string.format("%0#+20.1e", 1e-07) == "+0000000000001.0e-07" +string.format("%0#+20.1e", 123.456) == "+0000000000001.2e+02" +string.format("%0#+20.1e", 1234560000) == "+0000000000001.2e+09" +string.format("%0#+20.1e", 1.23456e-05) == "+0000000000001.2e-05" +string.format("%0#+20.1e", 123.456789123) == "+0000000000001.2e+02" +string.format("%0#+20.1e", 1234567891.23) == "+0000000000001.2e+09" +string.format("%0#+20.1e", 1.23456789123e-05) == "+0000000000001.2e-05" +string.format("%0#+20.6e", 0) == "+00000000.000000e+00" +string.format("%0#+20.6e", 1) == "+00000001.000000e+00" +string.format("%0#+20.6e", -1) == "-00000001.000000e+00" +string.format("%0#+20.6e", 2) == "+00000002.000000e+00" +string.format("%0#+20.6e", -2) == "-00000002.000000e+00" +string.format("%0#+20.6e", 3) == "+00000003.000000e+00" +string.format("%0#+20.6e", -3) == "-00000003.000000e+00" +string.format("%0#+20.6e", nan) == " +nan" +string.format("%0#+20.6e", inf) == " +inf" +string.format("%0#+20.6e", -inf) == " -inf" +string.format("%0#+20.6e", 100) == "+00000001.000000e+02" +string.format("%0#+20.6e", 10000) == "+00000001.000000e+04" +string.format("%0#+20.6e", 100000) == "+00000001.000000e+05" +string.format("%0#+20.6e", 1000000) == "+00000001.000000e+06" +string.format("%0#+20.6e", 10000000) == "+00000001.000000e+07" +string.format("%0#+20.6e", 0.01) == "+00000001.000000e-02" +string.format("%0#+20.6e", 0.0001) == "+00000001.000000e-04" +string.format("%0#+20.6e", 1e-05) == "+00000001.000000e-05" +string.format("%0#+20.6e", 1e-06) == "+00000001.000000e-06" +string.format("%0#+20.6e", 1e-07) == "+00000001.000000e-07" +string.format("%0#+20.6e", 123.456) == "+00000001.234560e+02" +string.format("%0#+20.6e", 1234560000) == "+00000001.234560e+09" +string.format("%0#+20.6e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0#+20.6e", 123.456789123) == "+00000001.234568e+02" +string.format("%0#+20.6e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0#+20.6e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0#-e", 0) == "0.000000e+00" +string.format("%0#-e", 1) == "1.000000e+00" +string.format("%0#-e", -1) == "-1.000000e+00" +string.format("%0#-e", 2) == "2.000000e+00" +string.format("%0#-e", -2) == "-2.000000e+00" +string.format("%0#-e", 3) == "3.000000e+00" +string.format("%0#-e", -3) == "-3.000000e+00" +string.format("%0#-e", nan) == "nan" +string.format("%0#-e", inf) == "inf" +string.format("%0#-e", -inf) == "-inf" +string.format("%0#-e", 100) == "1.000000e+02" +string.format("%0#-e", 10000) == "1.000000e+04" +string.format("%0#-e", 100000) == "1.000000e+05" +string.format("%0#-e", 1000000) == "1.000000e+06" +string.format("%0#-e", 10000000) == "1.000000e+07" +string.format("%0#-e", 0.01) == "1.000000e-02" +string.format("%0#-e", 0.0001) == "1.000000e-04" +string.format("%0#-e", 1e-05) == "1.000000e-05" +string.format("%0#-e", 1e-06) == "1.000000e-06" +string.format("%0#-e", 1e-07) == "1.000000e-07" +string.format("%0#-e", 123.456) == "1.234560e+02" +string.format("%0#-e", 1234560000) == "1.234560e+09" +string.format("%0#-e", 1.23456e-05) == "1.234560e-05" +string.format("%0#-e", 123.456789123) == "1.234568e+02" +string.format("%0#-e", 1234567891.23) == "1.234568e+09" +string.format("%0#-e", 1.23456789123e-05) == "1.234568e-05" +string.format("%0#-.0e", 0) == "0.e+00" +string.format("%0#-.0e", 1) == "1.e+00" +string.format("%0#-.0e", -1) == "-1.e+00" +string.format("%0#-.0e", 2) == "2.e+00" +string.format("%0#-.0e", -2) == "-2.e+00" +string.format("%0#-.0e", 3) == "3.e+00" +string.format("%0#-.0e", -3) == "-3.e+00" +string.format("%0#-.0e", 100) == "1.e+02" +string.format("%0#-.0e", 10000) == "1.e+04" +string.format("%0#-.0e", 100000) == "1.e+05" +string.format("%0#-.0e", 1000000) == "1.e+06" +string.format("%0#-.0e", 10000000) == "1.e+07" +string.format("%0#-.0e", 0.01) == "1.e-02" +string.format("%0#-.0e", 0.0001) == "1.e-04" +string.format("%0#-.0e", 1e-05) == "1.e-05" +string.format("%0#-.0e", 1e-06) == "1.e-06" +string.format("%0#-.0e", 1e-07) == "1.e-07" +string.format("%0#-.0e", 123.456) == "1.e+02" +string.format("%0#-.0e", 1234560000) == "1.e+09" +string.format("%0#-.0e", 1.23456e-05) == "1.e-05" +string.format("%0#-.0e", 123.456789123) == "1.e+02" +string.format("%0#-.0e", 1234567891.23) == "1.e+09" +string.format("%0#-.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#-.1e", 0) == "0.0e+00" +string.format("%0#-.1e", 1) == "1.0e+00" +string.format("%0#-.1e", -1) == "-1.0e+00" +string.format("%0#-.1e", 2) == "2.0e+00" +string.format("%0#-.1e", -2) == "-2.0e+00" +string.format("%0#-.1e", 3) == "3.0e+00" +string.format("%0#-.1e", -3) == "-3.0e+00" +string.format("%0#-.1e", 100) == "1.0e+02" +string.format("%0#-.1e", 10000) == "1.0e+04" +string.format("%0#-.1e", 100000) == "1.0e+05" +string.format("%0#-.1e", 1000000) == "1.0e+06" +string.format("%0#-.1e", 10000000) == "1.0e+07" +string.format("%0#-.1e", 0.01) == "1.0e-02" +string.format("%0#-.1e", 0.0001) == "1.0e-04" +string.format("%0#-.1e", 1e-05) == "1.0e-05" +string.format("%0#-.1e", 1e-06) == "1.0e-06" +string.format("%0#-.1e", 1e-07) == "1.0e-07" +string.format("%0#-.1e", 123.456) == "1.2e+02" +string.format("%0#-.1e", 1234560000) == "1.2e+09" +string.format("%0#-.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#-.1e", 123.456789123) == "1.2e+02" +string.format("%0#-.1e", 1234567891.23) == "1.2e+09" +string.format("%0#-.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#-1.0e", 0) == "0.e+00" +string.format("%0#-1.0e", 1) == "1.e+00" +string.format("%0#-1.0e", -1) == "-1.e+00" +string.format("%0#-1.0e", 2) == "2.e+00" +string.format("%0#-1.0e", -2) == "-2.e+00" +string.format("%0#-1.0e", 3) == "3.e+00" +string.format("%0#-1.0e", -3) == "-3.e+00" +string.format("%0#-1.0e", 100) == "1.e+02" +string.format("%0#-1.0e", 10000) == "1.e+04" +string.format("%0#-1.0e", 100000) == "1.e+05" +string.format("%0#-1.0e", 1000000) == "1.e+06" +string.format("%0#-1.0e", 10000000) == "1.e+07" +string.format("%0#-1.0e", 0.01) == "1.e-02" +string.format("%0#-1.0e", 0.0001) == "1.e-04" +string.format("%0#-1.0e", 1e-05) == "1.e-05" +string.format("%0#-1.0e", 1e-06) == "1.e-06" +string.format("%0#-1.0e", 1e-07) == "1.e-07" +string.format("%0#-1.0e", 123.456) == "1.e+02" +string.format("%0#-1.0e", 1234560000) == "1.e+09" +string.format("%0#-1.0e", 1.23456e-05) == "1.e-05" +string.format("%0#-1.0e", 123.456789123) == "1.e+02" +string.format("%0#-1.0e", 1234567891.23) == "1.e+09" +string.format("%0#-1.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#-1.1e", 0) == "0.0e+00" +string.format("%0#-1.1e", 1) == "1.0e+00" +string.format("%0#-1.1e", -1) == "-1.0e+00" +string.format("%0#-1.1e", 2) == "2.0e+00" +string.format("%0#-1.1e", -2) == "-2.0e+00" +string.format("%0#-1.1e", 3) == "3.0e+00" +string.format("%0#-1.1e", -3) == "-3.0e+00" +string.format("%0#-1.1e", 100) == "1.0e+02" +string.format("%0#-1.1e", 10000) == "1.0e+04" +string.format("%0#-1.1e", 100000) == "1.0e+05" +string.format("%0#-1.1e", 1000000) == "1.0e+06" +string.format("%0#-1.1e", 10000000) == "1.0e+07" +string.format("%0#-1.1e", 0.01) == "1.0e-02" +string.format("%0#-1.1e", 0.0001) == "1.0e-04" +string.format("%0#-1.1e", 1e-05) == "1.0e-05" +string.format("%0#-1.1e", 1e-06) == "1.0e-06" +string.format("%0#-1.1e", 1e-07) == "1.0e-07" +string.format("%0#-1.1e", 123.456) == "1.2e+02" +string.format("%0#-1.1e", 1234560000) == "1.2e+09" +string.format("%0#-1.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#-1.1e", 123.456789123) == "1.2e+02" +string.format("%0#-1.1e", 1234567891.23) == "1.2e+09" +string.format("%0#-1.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#-2.0e", 0) == "0.e+00" +string.format("%0#-2.0e", 1) == "1.e+00" +string.format("%0#-2.0e", -1) == "-1.e+00" +string.format("%0#-2.0e", 2) == "2.e+00" +string.format("%0#-2.0e", -2) == "-2.e+00" +string.format("%0#-2.0e", 3) == "3.e+00" +string.format("%0#-2.0e", -3) == "-3.e+00" +string.format("%0#-2.0e", 100) == "1.e+02" +string.format("%0#-2.0e", 10000) == "1.e+04" +string.format("%0#-2.0e", 100000) == "1.e+05" +string.format("%0#-2.0e", 1000000) == "1.e+06" +string.format("%0#-2.0e", 10000000) == "1.e+07" +string.format("%0#-2.0e", 0.01) == "1.e-02" +string.format("%0#-2.0e", 0.0001) == "1.e-04" +string.format("%0#-2.0e", 1e-05) == "1.e-05" +string.format("%0#-2.0e", 1e-06) == "1.e-06" +string.format("%0#-2.0e", 1e-07) == "1.e-07" +string.format("%0#-2.0e", 123.456) == "1.e+02" +string.format("%0#-2.0e", 1234560000) == "1.e+09" +string.format("%0#-2.0e", 1.23456e-05) == "1.e-05" +string.format("%0#-2.0e", 123.456789123) == "1.e+02" +string.format("%0#-2.0e", 1234567891.23) == "1.e+09" +string.format("%0#-2.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#-2.1e", 0) == "0.0e+00" +string.format("%0#-2.1e", 1) == "1.0e+00" +string.format("%0#-2.1e", -1) == "-1.0e+00" +string.format("%0#-2.1e", 2) == "2.0e+00" +string.format("%0#-2.1e", -2) == "-2.0e+00" +string.format("%0#-2.1e", 3) == "3.0e+00" +string.format("%0#-2.1e", -3) == "-3.0e+00" +string.format("%0#-2.1e", 100) == "1.0e+02" +string.format("%0#-2.1e", 10000) == "1.0e+04" +string.format("%0#-2.1e", 100000) == "1.0e+05" +string.format("%0#-2.1e", 1000000) == "1.0e+06" +string.format("%0#-2.1e", 10000000) == "1.0e+07" +string.format("%0#-2.1e", 0.01) == "1.0e-02" +string.format("%0#-2.1e", 0.0001) == "1.0e-04" +string.format("%0#-2.1e", 1e-05) == "1.0e-05" +string.format("%0#-2.1e", 1e-06) == "1.0e-06" +string.format("%0#-2.1e", 1e-07) == "1.0e-07" +string.format("%0#-2.1e", 123.456) == "1.2e+02" +string.format("%0#-2.1e", 1234560000) == "1.2e+09" +string.format("%0#-2.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#-2.1e", 123.456789123) == "1.2e+02" +string.format("%0#-2.1e", 1234567891.23) == "1.2e+09" +string.format("%0#-2.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#-6e", nan) == "nan " +string.format("%0#-6e", inf) == "inf " +string.format("%0#-6e", -inf) == "-inf " +string.format("%0#-6.0e", 0) == "0.e+00" +string.format("%0#-6.0e", 1) == "1.e+00" +string.format("%0#-6.0e", -1) == "-1.e+00" +string.format("%0#-6.0e", 2) == "2.e+00" +string.format("%0#-6.0e", -2) == "-2.e+00" +string.format("%0#-6.0e", 3) == "3.e+00" +string.format("%0#-6.0e", -3) == "-3.e+00" +string.format("%0#-6.0e", nan) == "nan " +string.format("%0#-6.0e", inf) == "inf " +string.format("%0#-6.0e", -inf) == "-inf " +string.format("%0#-6.0e", 100) == "1.e+02" +string.format("%0#-6.0e", 10000) == "1.e+04" +string.format("%0#-6.0e", 100000) == "1.e+05" +string.format("%0#-6.0e", 1000000) == "1.e+06" +string.format("%0#-6.0e", 10000000) == "1.e+07" +string.format("%0#-6.0e", 0.01) == "1.e-02" +string.format("%0#-6.0e", 0.0001) == "1.e-04" +string.format("%0#-6.0e", 1e-05) == "1.e-05" +string.format("%0#-6.0e", 1e-06) == "1.e-06" +string.format("%0#-6.0e", 1e-07) == "1.e-07" +string.format("%0#-6.0e", 123.456) == "1.e+02" +string.format("%0#-6.0e", 1234560000) == "1.e+09" +string.format("%0#-6.0e", 1.23456e-05) == "1.e-05" +string.format("%0#-6.0e", 123.456789123) == "1.e+02" +string.format("%0#-6.0e", 1234567891.23) == "1.e+09" +string.format("%0#-6.0e", 1.23456789123e-05) == "1.e-05" +string.format("%0#-6.1e", 0) == "0.0e+00" +string.format("%0#-6.1e", 1) == "1.0e+00" +string.format("%0#-6.1e", -1) == "-1.0e+00" +string.format("%0#-6.1e", 2) == "2.0e+00" +string.format("%0#-6.1e", -2) == "-2.0e+00" +string.format("%0#-6.1e", 3) == "3.0e+00" +string.format("%0#-6.1e", -3) == "-3.0e+00" +string.format("%0#-6.1e", nan) == "nan " +string.format("%0#-6.1e", inf) == "inf " +string.format("%0#-6.1e", -inf) == "-inf " +string.format("%0#-6.1e", 100) == "1.0e+02" +string.format("%0#-6.1e", 10000) == "1.0e+04" +string.format("%0#-6.1e", 100000) == "1.0e+05" +string.format("%0#-6.1e", 1000000) == "1.0e+06" +string.format("%0#-6.1e", 10000000) == "1.0e+07" +string.format("%0#-6.1e", 0.01) == "1.0e-02" +string.format("%0#-6.1e", 0.0001) == "1.0e-04" +string.format("%0#-6.1e", 1e-05) == "1.0e-05" +string.format("%0#-6.1e", 1e-06) == "1.0e-06" +string.format("%0#-6.1e", 1e-07) == "1.0e-07" +string.format("%0#-6.1e", 123.456) == "1.2e+02" +string.format("%0#-6.1e", 1234560000) == "1.2e+09" +string.format("%0#-6.1e", 1.23456e-05) == "1.2e-05" +string.format("%0#-6.1e", 123.456789123) == "1.2e+02" +string.format("%0#-6.1e", 1234567891.23) == "1.2e+09" +string.format("%0#-6.1e", 1.23456789123e-05) == "1.2e-05" +string.format("%0#-6.6e", nan) == "nan " +string.format("%0#-6.6e", inf) == "inf " +string.format("%0#-6.6e", -inf) == "-inf " +string.format("%0#-20e", 0) == "0.000000e+00 " +string.format("%0#-20e", 1) == "1.000000e+00 " +string.format("%0#-20e", -1) == "-1.000000e+00 " +string.format("%0#-20e", 2) == "2.000000e+00 " +string.format("%0#-20e", -2) == "-2.000000e+00 " +string.format("%0#-20e", 3) == "3.000000e+00 " +string.format("%0#-20e", -3) == "-3.000000e+00 " +string.format("%0#-20e", nan) == "nan " +string.format("%0#-20e", inf) == "inf " +string.format("%0#-20e", -inf) == "-inf " +string.format("%0#-20e", 100) == "1.000000e+02 " +string.format("%0#-20e", 10000) == "1.000000e+04 " +string.format("%0#-20e", 100000) == "1.000000e+05 " +string.format("%0#-20e", 1000000) == "1.000000e+06 " +string.format("%0#-20e", 10000000) == "1.000000e+07 " +string.format("%0#-20e", 0.01) == "1.000000e-02 " +string.format("%0#-20e", 0.0001) == "1.000000e-04 " +string.format("%0#-20e", 1e-05) == "1.000000e-05 " +string.format("%0#-20e", 1e-06) == "1.000000e-06 " +string.format("%0#-20e", 1e-07) == "1.000000e-07 " +string.format("%0#-20e", 123.456) == "1.234560e+02 " +string.format("%0#-20e", 1234560000) == "1.234560e+09 " +string.format("%0#-20e", 1.23456e-05) == "1.234560e-05 " +string.format("%0#-20e", 123.456789123) == "1.234568e+02 " +string.format("%0#-20e", 1234567891.23) == "1.234568e+09 " +string.format("%0#-20e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%0#-20.0e", 0) == "0.e+00 " +string.format("%0#-20.0e", 1) == "1.e+00 " +string.format("%0#-20.0e", -1) == "-1.e+00 " +string.format("%0#-20.0e", 2) == "2.e+00 " +string.format("%0#-20.0e", -2) == "-2.e+00 " +string.format("%0#-20.0e", 3) == "3.e+00 " +string.format("%0#-20.0e", -3) == "-3.e+00 " +string.format("%0#-20.0e", nan) == "nan " +string.format("%0#-20.0e", inf) == "inf " +string.format("%0#-20.0e", -inf) == "-inf " +string.format("%0#-20.0e", 100) == "1.e+02 " +string.format("%0#-20.0e", 10000) == "1.e+04 " +string.format("%0#-20.0e", 100000) == "1.e+05 " +string.format("%0#-20.0e", 1000000) == "1.e+06 " +string.format("%0#-20.0e", 10000000) == "1.e+07 " +string.format("%0#-20.0e", 0.01) == "1.e-02 " +string.format("%0#-20.0e", 0.0001) == "1.e-04 " +string.format("%0#-20.0e", 1e-05) == "1.e-05 " +string.format("%0#-20.0e", 1e-06) == "1.e-06 " +string.format("%0#-20.0e", 1e-07) == "1.e-07 " +string.format("%0#-20.0e", 123.456) == "1.e+02 " +string.format("%0#-20.0e", 1234560000) == "1.e+09 " +string.format("%0#-20.0e", 1.23456e-05) == "1.e-05 " +string.format("%0#-20.0e", 123.456789123) == "1.e+02 " +string.format("%0#-20.0e", 1234567891.23) == "1.e+09 " +string.format("%0#-20.0e", 1.23456789123e-05) == "1.e-05 " +string.format("%0#-20.1e", 0) == "0.0e+00 " +string.format("%0#-20.1e", 1) == "1.0e+00 " +string.format("%0#-20.1e", -1) == "-1.0e+00 " +string.format("%0#-20.1e", 2) == "2.0e+00 " +string.format("%0#-20.1e", -2) == "-2.0e+00 " +string.format("%0#-20.1e", 3) == "3.0e+00 " +string.format("%0#-20.1e", -3) == "-3.0e+00 " +string.format("%0#-20.1e", nan) == "nan " +string.format("%0#-20.1e", inf) == "inf " +string.format("%0#-20.1e", -inf) == "-inf " +string.format("%0#-20.1e", 100) == "1.0e+02 " +string.format("%0#-20.1e", 10000) == "1.0e+04 " +string.format("%0#-20.1e", 100000) == "1.0e+05 " +string.format("%0#-20.1e", 1000000) == "1.0e+06 " +string.format("%0#-20.1e", 10000000) == "1.0e+07 " +string.format("%0#-20.1e", 0.01) == "1.0e-02 " +string.format("%0#-20.1e", 0.0001) == "1.0e-04 " +string.format("%0#-20.1e", 1e-05) == "1.0e-05 " +string.format("%0#-20.1e", 1e-06) == "1.0e-06 " +string.format("%0#-20.1e", 1e-07) == "1.0e-07 " +string.format("%0#-20.1e", 123.456) == "1.2e+02 " +string.format("%0#-20.1e", 1234560000) == "1.2e+09 " +string.format("%0#-20.1e", 1.23456e-05) == "1.2e-05 " +string.format("%0#-20.1e", 123.456789123) == "1.2e+02 " +string.format("%0#-20.1e", 1234567891.23) == "1.2e+09 " +string.format("%0#-20.1e", 1.23456789123e-05) == "1.2e-05 " +string.format("%0#-20.6e", 0) == "0.000000e+00 " +string.format("%0#-20.6e", 1) == "1.000000e+00 " +string.format("%0#-20.6e", -1) == "-1.000000e+00 " +string.format("%0#-20.6e", 2) == "2.000000e+00 " +string.format("%0#-20.6e", -2) == "-2.000000e+00 " +string.format("%0#-20.6e", 3) == "3.000000e+00 " +string.format("%0#-20.6e", -3) == "-3.000000e+00 " +string.format("%0#-20.6e", nan) == "nan " +string.format("%0#-20.6e", inf) == "inf " +string.format("%0#-20.6e", -inf) == "-inf " +string.format("%0#-20.6e", 100) == "1.000000e+02 " +string.format("%0#-20.6e", 10000) == "1.000000e+04 " +string.format("%0#-20.6e", 100000) == "1.000000e+05 " +string.format("%0#-20.6e", 1000000) == "1.000000e+06 " +string.format("%0#-20.6e", 10000000) == "1.000000e+07 " +string.format("%0#-20.6e", 0.01) == "1.000000e-02 " +string.format("%0#-20.6e", 0.0001) == "1.000000e-04 " +string.format("%0#-20.6e", 1e-05) == "1.000000e-05 " +string.format("%0#-20.6e", 1e-06) == "1.000000e-06 " +string.format("%0#-20.6e", 1e-07) == "1.000000e-07 " +string.format("%0#-20.6e", 123.456) == "1.234560e+02 " +string.format("%0#-20.6e", 1234560000) == "1.234560e+09 " +string.format("%0#-20.6e", 1.23456e-05) == "1.234560e-05 " +string.format("%0#-20.6e", 123.456789123) == "1.234568e+02 " +string.format("%0#-20.6e", 1234567891.23) == "1.234568e+09 " +string.format("%0#-20.6e", 1.23456789123e-05) == "1.234568e-05 " +string.format("%0#-+e", 0) == "+0.000000e+00" +string.format("%0#-+e", 1) == "+1.000000e+00" +string.format("%0#-+e", -1) == "-1.000000e+00" +string.format("%0#-+e", 2) == "+2.000000e+00" +string.format("%0#-+e", -2) == "-2.000000e+00" +string.format("%0#-+e", 3) == "+3.000000e+00" +string.format("%0#-+e", -3) == "-3.000000e+00" +string.format("%0#-+e", nan) == "+nan" +string.format("%0#-+e", inf) == "+inf" +string.format("%0#-+e", -inf) == "-inf" +string.format("%0#-+e", 100) == "+1.000000e+02" +string.format("%0#-+e", 10000) == "+1.000000e+04" +string.format("%0#-+e", 100000) == "+1.000000e+05" +string.format("%0#-+e", 1000000) == "+1.000000e+06" +string.format("%0#-+e", 10000000) == "+1.000000e+07" +string.format("%0#-+e", 0.01) == "+1.000000e-02" +string.format("%0#-+e", 0.0001) == "+1.000000e-04" +string.format("%0#-+e", 1e-05) == "+1.000000e-05" +string.format("%0#-+e", 1e-06) == "+1.000000e-06" +string.format("%0#-+e", 1e-07) == "+1.000000e-07" +string.format("%0#-+e", 123.456) == "+1.234560e+02" +string.format("%0#-+e", 1234560000) == "+1.234560e+09" +string.format("%0#-+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0#-+e", 123.456789123) == "+1.234568e+02" +string.format("%0#-+e", 1234567891.23) == "+1.234568e+09" +string.format("%0#-+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0#-+.0e", 0) == "+0.e+00" +string.format("%0#-+.0e", 1) == "+1.e+00" +string.format("%0#-+.0e", -1) == "-1.e+00" +string.format("%0#-+.0e", 2) == "+2.e+00" +string.format("%0#-+.0e", -2) == "-2.e+00" +string.format("%0#-+.0e", 3) == "+3.e+00" +string.format("%0#-+.0e", -3) == "-3.e+00" +string.format("%0#-+.0e", 100) == "+1.e+02" +string.format("%0#-+.0e", 10000) == "+1.e+04" +string.format("%0#-+.0e", 100000) == "+1.e+05" +string.format("%0#-+.0e", 1000000) == "+1.e+06" +string.format("%0#-+.0e", 10000000) == "+1.e+07" +string.format("%0#-+.0e", 0.01) == "+1.e-02" +string.format("%0#-+.0e", 0.0001) == "+1.e-04" +string.format("%0#-+.0e", 1e-05) == "+1.e-05" +string.format("%0#-+.0e", 1e-06) == "+1.e-06" +string.format("%0#-+.0e", 1e-07) == "+1.e-07" +string.format("%0#-+.0e", 123.456) == "+1.e+02" +string.format("%0#-+.0e", 1234560000) == "+1.e+09" +string.format("%0#-+.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#-+.0e", 123.456789123) == "+1.e+02" +string.format("%0#-+.0e", 1234567891.23) == "+1.e+09" +string.format("%0#-+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+.1e", 0) == "+0.0e+00" +string.format("%0#-+.1e", 1) == "+1.0e+00" +string.format("%0#-+.1e", -1) == "-1.0e+00" +string.format("%0#-+.1e", 2) == "+2.0e+00" +string.format("%0#-+.1e", -2) == "-2.0e+00" +string.format("%0#-+.1e", 3) == "+3.0e+00" +string.format("%0#-+.1e", -3) == "-3.0e+00" +string.format("%0#-+.1e", 100) == "+1.0e+02" +string.format("%0#-+.1e", 10000) == "+1.0e+04" +string.format("%0#-+.1e", 100000) == "+1.0e+05" +string.format("%0#-+.1e", 1000000) == "+1.0e+06" +string.format("%0#-+.1e", 10000000) == "+1.0e+07" +string.format("%0#-+.1e", 0.01) == "+1.0e-02" +string.format("%0#-+.1e", 0.0001) == "+1.0e-04" +string.format("%0#-+.1e", 1e-05) == "+1.0e-05" +string.format("%0#-+.1e", 1e-06) == "+1.0e-06" +string.format("%0#-+.1e", 1e-07) == "+1.0e-07" +string.format("%0#-+.1e", 123.456) == "+1.2e+02" +string.format("%0#-+.1e", 1234560000) == "+1.2e+09" +string.format("%0#-+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#-+.1e", 123.456789123) == "+1.2e+02" +string.format("%0#-+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#-+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#-+1.0e", 0) == "+0.e+00" +string.format("%0#-+1.0e", 1) == "+1.e+00" +string.format("%0#-+1.0e", -1) == "-1.e+00" +string.format("%0#-+1.0e", 2) == "+2.e+00" +string.format("%0#-+1.0e", -2) == "-2.e+00" +string.format("%0#-+1.0e", 3) == "+3.e+00" +string.format("%0#-+1.0e", -3) == "-3.e+00" +string.format("%0#-+1.0e", 100) == "+1.e+02" +string.format("%0#-+1.0e", 10000) == "+1.e+04" +string.format("%0#-+1.0e", 100000) == "+1.e+05" +string.format("%0#-+1.0e", 1000000) == "+1.e+06" +string.format("%0#-+1.0e", 10000000) == "+1.e+07" +string.format("%0#-+1.0e", 0.01) == "+1.e-02" +string.format("%0#-+1.0e", 0.0001) == "+1.e-04" +string.format("%0#-+1.0e", 1e-05) == "+1.e-05" +string.format("%0#-+1.0e", 1e-06) == "+1.e-06" +string.format("%0#-+1.0e", 1e-07) == "+1.e-07" +string.format("%0#-+1.0e", 123.456) == "+1.e+02" +string.format("%0#-+1.0e", 1234560000) == "+1.e+09" +string.format("%0#-+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#-+1.0e", 123.456789123) == "+1.e+02" +string.format("%0#-+1.0e", 1234567891.23) == "+1.e+09" +string.format("%0#-+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+1.1e", 0) == "+0.0e+00" +string.format("%0#-+1.1e", 1) == "+1.0e+00" +string.format("%0#-+1.1e", -1) == "-1.0e+00" +string.format("%0#-+1.1e", 2) == "+2.0e+00" +string.format("%0#-+1.1e", -2) == "-2.0e+00" +string.format("%0#-+1.1e", 3) == "+3.0e+00" +string.format("%0#-+1.1e", -3) == "-3.0e+00" +string.format("%0#-+1.1e", 100) == "+1.0e+02" +string.format("%0#-+1.1e", 10000) == "+1.0e+04" +string.format("%0#-+1.1e", 100000) == "+1.0e+05" +string.format("%0#-+1.1e", 1000000) == "+1.0e+06" +string.format("%0#-+1.1e", 10000000) == "+1.0e+07" +string.format("%0#-+1.1e", 0.01) == "+1.0e-02" +string.format("%0#-+1.1e", 0.0001) == "+1.0e-04" +string.format("%0#-+1.1e", 1e-05) == "+1.0e-05" +string.format("%0#-+1.1e", 1e-06) == "+1.0e-06" +string.format("%0#-+1.1e", 1e-07) == "+1.0e-07" +string.format("%0#-+1.1e", 123.456) == "+1.2e+02" +string.format("%0#-+1.1e", 1234560000) == "+1.2e+09" +string.format("%0#-+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#-+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0#-+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#-+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#-+2.0e", 0) == "+0.e+00" +string.format("%0#-+2.0e", 1) == "+1.e+00" +string.format("%0#-+2.0e", -1) == "-1.e+00" +string.format("%0#-+2.0e", 2) == "+2.e+00" +string.format("%0#-+2.0e", -2) == "-2.e+00" +string.format("%0#-+2.0e", 3) == "+3.e+00" +string.format("%0#-+2.0e", -3) == "-3.e+00" +string.format("%0#-+2.0e", 100) == "+1.e+02" +string.format("%0#-+2.0e", 10000) == "+1.e+04" +string.format("%0#-+2.0e", 100000) == "+1.e+05" +string.format("%0#-+2.0e", 1000000) == "+1.e+06" +string.format("%0#-+2.0e", 10000000) == "+1.e+07" +string.format("%0#-+2.0e", 0.01) == "+1.e-02" +string.format("%0#-+2.0e", 0.0001) == "+1.e-04" +string.format("%0#-+2.0e", 1e-05) == "+1.e-05" +string.format("%0#-+2.0e", 1e-06) == "+1.e-06" +string.format("%0#-+2.0e", 1e-07) == "+1.e-07" +string.format("%0#-+2.0e", 123.456) == "+1.e+02" +string.format("%0#-+2.0e", 1234560000) == "+1.e+09" +string.format("%0#-+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#-+2.0e", 123.456789123) == "+1.e+02" +string.format("%0#-+2.0e", 1234567891.23) == "+1.e+09" +string.format("%0#-+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+2.1e", 0) == "+0.0e+00" +string.format("%0#-+2.1e", 1) == "+1.0e+00" +string.format("%0#-+2.1e", -1) == "-1.0e+00" +string.format("%0#-+2.1e", 2) == "+2.0e+00" +string.format("%0#-+2.1e", -2) == "-2.0e+00" +string.format("%0#-+2.1e", 3) == "+3.0e+00" +string.format("%0#-+2.1e", -3) == "-3.0e+00" +string.format("%0#-+2.1e", 100) == "+1.0e+02" +string.format("%0#-+2.1e", 10000) == "+1.0e+04" +string.format("%0#-+2.1e", 100000) == "+1.0e+05" +string.format("%0#-+2.1e", 1000000) == "+1.0e+06" +string.format("%0#-+2.1e", 10000000) == "+1.0e+07" +string.format("%0#-+2.1e", 0.01) == "+1.0e-02" +string.format("%0#-+2.1e", 0.0001) == "+1.0e-04" +string.format("%0#-+2.1e", 1e-05) == "+1.0e-05" +string.format("%0#-+2.1e", 1e-06) == "+1.0e-06" +string.format("%0#-+2.1e", 1e-07) == "+1.0e-07" +string.format("%0#-+2.1e", 123.456) == "+1.2e+02" +string.format("%0#-+2.1e", 1234560000) == "+1.2e+09" +string.format("%0#-+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#-+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0#-+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#-+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#-+6e", nan) == "+nan " +string.format("%0#-+6e", inf) == "+inf " +string.format("%0#-+6e", -inf) == "-inf " +string.format("%0#-+6.0e", 0) == "+0.e+00" +string.format("%0#-+6.0e", 1) == "+1.e+00" +string.format("%0#-+6.0e", -1) == "-1.e+00" +string.format("%0#-+6.0e", 2) == "+2.e+00" +string.format("%0#-+6.0e", -2) == "-2.e+00" +string.format("%0#-+6.0e", 3) == "+3.e+00" +string.format("%0#-+6.0e", -3) == "-3.e+00" +string.format("%0#-+6.0e", nan) == "+nan " +string.format("%0#-+6.0e", inf) == "+inf " +string.format("%0#-+6.0e", -inf) == "-inf " +string.format("%0#-+6.0e", 100) == "+1.e+02" +string.format("%0#-+6.0e", 10000) == "+1.e+04" +string.format("%0#-+6.0e", 100000) == "+1.e+05" +string.format("%0#-+6.0e", 1000000) == "+1.e+06" +string.format("%0#-+6.0e", 10000000) == "+1.e+07" +string.format("%0#-+6.0e", 0.01) == "+1.e-02" +string.format("%0#-+6.0e", 0.0001) == "+1.e-04" +string.format("%0#-+6.0e", 1e-05) == "+1.e-05" +string.format("%0#-+6.0e", 1e-06) == "+1.e-06" +string.format("%0#-+6.0e", 1e-07) == "+1.e-07" +string.format("%0#-+6.0e", 123.456) == "+1.e+02" +string.format("%0#-+6.0e", 1234560000) == "+1.e+09" +string.format("%0#-+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%0#-+6.0e", 123.456789123) == "+1.e+02" +string.format("%0#-+6.0e", 1234567891.23) == "+1.e+09" +string.format("%0#-+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+6.1e", 0) == "+0.0e+00" +string.format("%0#-+6.1e", 1) == "+1.0e+00" +string.format("%0#-+6.1e", -1) == "-1.0e+00" +string.format("%0#-+6.1e", 2) == "+2.0e+00" +string.format("%0#-+6.1e", -2) == "-2.0e+00" +string.format("%0#-+6.1e", 3) == "+3.0e+00" +string.format("%0#-+6.1e", -3) == "-3.0e+00" +string.format("%0#-+6.1e", nan) == "+nan " +string.format("%0#-+6.1e", inf) == "+inf " +string.format("%0#-+6.1e", -inf) == "-inf " +string.format("%0#-+6.1e", 100) == "+1.0e+02" +string.format("%0#-+6.1e", 10000) == "+1.0e+04" +string.format("%0#-+6.1e", 100000) == "+1.0e+05" +string.format("%0#-+6.1e", 1000000) == "+1.0e+06" +string.format("%0#-+6.1e", 10000000) == "+1.0e+07" +string.format("%0#-+6.1e", 0.01) == "+1.0e-02" +string.format("%0#-+6.1e", 0.0001) == "+1.0e-04" +string.format("%0#-+6.1e", 1e-05) == "+1.0e-05" +string.format("%0#-+6.1e", 1e-06) == "+1.0e-06" +string.format("%0#-+6.1e", 1e-07) == "+1.0e-07" +string.format("%0#-+6.1e", 123.456) == "+1.2e+02" +string.format("%0#-+6.1e", 1234560000) == "+1.2e+09" +string.format("%0#-+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0#-+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0#-+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0#-+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0#-+6.6e", nan) == "+nan " +string.format("%0#-+6.6e", inf) == "+inf " +string.format("%0#-+6.6e", -inf) == "-inf " +string.format("%0#-+20e", 0) == "+0.000000e+00 " +string.format("%0#-+20e", 1) == "+1.000000e+00 " +string.format("%0#-+20e", -1) == "-1.000000e+00 " +string.format("%0#-+20e", 2) == "+2.000000e+00 " +string.format("%0#-+20e", -2) == "-2.000000e+00 " +string.format("%0#-+20e", 3) == "+3.000000e+00 " +string.format("%0#-+20e", -3) == "-3.000000e+00 " +string.format("%0#-+20e", nan) == "+nan " +string.format("%0#-+20e", inf) == "+inf " +string.format("%0#-+20e", -inf) == "-inf " +string.format("%0#-+20e", 100) == "+1.000000e+02 " +string.format("%0#-+20e", 10000) == "+1.000000e+04 " +string.format("%0#-+20e", 100000) == "+1.000000e+05 " +string.format("%0#-+20e", 1000000) == "+1.000000e+06 " +string.format("%0#-+20e", 10000000) == "+1.000000e+07 " +string.format("%0#-+20e", 0.01) == "+1.000000e-02 " +string.format("%0#-+20e", 0.0001) == "+1.000000e-04 " +string.format("%0#-+20e", 1e-05) == "+1.000000e-05 " +string.format("%0#-+20e", 1e-06) == "+1.000000e-06 " +string.format("%0#-+20e", 1e-07) == "+1.000000e-07 " +string.format("%0#-+20e", 123.456) == "+1.234560e+02 " +string.format("%0#-+20e", 1234560000) == "+1.234560e+09 " +string.format("%0#-+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0#-+20e", 123.456789123) == "+1.234568e+02 " +string.format("%0#-+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%0#-+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0#-+20.0e", 0) == "+0.e+00 " +string.format("%0#-+20.0e", 1) == "+1.e+00 " +string.format("%0#-+20.0e", -1) == "-1.e+00 " +string.format("%0#-+20.0e", 2) == "+2.e+00 " +string.format("%0#-+20.0e", -2) == "-2.e+00 " +string.format("%0#-+20.0e", 3) == "+3.e+00 " +string.format("%0#-+20.0e", -3) == "-3.e+00 " +string.format("%0#-+20.0e", nan) == "+nan " +string.format("%0#-+20.0e", inf) == "+inf " +string.format("%0#-+20.0e", -inf) == "-inf " +string.format("%0#-+20.0e", 100) == "+1.e+02 " +string.format("%0#-+20.0e", 10000) == "+1.e+04 " +string.format("%0#-+20.0e", 100000) == "+1.e+05 " +string.format("%0#-+20.0e", 1000000) == "+1.e+06 " +string.format("%0#-+20.0e", 10000000) == "+1.e+07 " +string.format("%0#-+20.0e", 0.01) == "+1.e-02 " +string.format("%0#-+20.0e", 0.0001) == "+1.e-04 " +string.format("%0#-+20.0e", 1e-05) == "+1.e-05 " +string.format("%0#-+20.0e", 1e-06) == "+1.e-06 " +string.format("%0#-+20.0e", 1e-07) == "+1.e-07 " +string.format("%0#-+20.0e", 123.456) == "+1.e+02 " +string.format("%0#-+20.0e", 1234560000) == "+1.e+09 " +string.format("%0#-+20.0e", 1.23456e-05) == "+1.e-05 " +string.format("%0#-+20.0e", 123.456789123) == "+1.e+02 " +string.format("%0#-+20.0e", 1234567891.23) == "+1.e+09 " +string.format("%0#-+20.0e", 1.23456789123e-05) == "+1.e-05 " +string.format("%0#-+20.1e", 0) == "+0.0e+00 " +string.format("%0#-+20.1e", 1) == "+1.0e+00 " +string.format("%0#-+20.1e", -1) == "-1.0e+00 " +string.format("%0#-+20.1e", 2) == "+2.0e+00 " +string.format("%0#-+20.1e", -2) == "-2.0e+00 " +string.format("%0#-+20.1e", 3) == "+3.0e+00 " +string.format("%0#-+20.1e", -3) == "-3.0e+00 " +string.format("%0#-+20.1e", nan) == "+nan " +string.format("%0#-+20.1e", inf) == "+inf " +string.format("%0#-+20.1e", -inf) == "-inf " +string.format("%0#-+20.1e", 100) == "+1.0e+02 " +string.format("%0#-+20.1e", 10000) == "+1.0e+04 " +string.format("%0#-+20.1e", 100000) == "+1.0e+05 " +string.format("%0#-+20.1e", 1000000) == "+1.0e+06 " +string.format("%0#-+20.1e", 10000000) == "+1.0e+07 " +string.format("%0#-+20.1e", 0.01) == "+1.0e-02 " +string.format("%0#-+20.1e", 0.0001) == "+1.0e-04 " +string.format("%0#-+20.1e", 1e-05) == "+1.0e-05 " +string.format("%0#-+20.1e", 1e-06) == "+1.0e-06 " +string.format("%0#-+20.1e", 1e-07) == "+1.0e-07 " +string.format("%0#-+20.1e", 123.456) == "+1.2e+02 " +string.format("%0#-+20.1e", 1234560000) == "+1.2e+09 " +string.format("%0#-+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%0#-+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%0#-+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%0#-+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%0#-+20.6e", 0) == "+0.000000e+00 " +string.format("%0#-+20.6e", 1) == "+1.000000e+00 " +string.format("%0#-+20.6e", -1) == "-1.000000e+00 " +string.format("%0#-+20.6e", 2) == "+2.000000e+00 " +string.format("%0#-+20.6e", -2) == "-2.000000e+00 " +string.format("%0#-+20.6e", 3) == "+3.000000e+00 " +string.format("%0#-+20.6e", -3) == "-3.000000e+00 " +string.format("%0#-+20.6e", nan) == "+nan " +string.format("%0#-+20.6e", inf) == "+inf " +string.format("%0#-+20.6e", -inf) == "-inf " +string.format("%0#-+20.6e", 100) == "+1.000000e+02 " +string.format("%0#-+20.6e", 10000) == "+1.000000e+04 " +string.format("%0#-+20.6e", 100000) == "+1.000000e+05 " +string.format("%0#-+20.6e", 1000000) == "+1.000000e+06 " +string.format("%0#-+20.6e", 10000000) == "+1.000000e+07 " +string.format("%0#-+20.6e", 0.01) == "+1.000000e-02 " +string.format("%0#-+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%0#-+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%0#-+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%0#-+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%0#-+20.6e", 123.456) == "+1.234560e+02 " +string.format("%0#-+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%0#-+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0#-+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%0#-+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%0#-+20.6e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0# e", 0) == " 0.000000e+00" +string.format("%0# e", 1) == " 1.000000e+00" +string.format("%0# e", -1) == "-1.000000e+00" +string.format("%0# e", 2) == " 2.000000e+00" +string.format("%0# e", -2) == "-2.000000e+00" +string.format("%0# e", 3) == " 3.000000e+00" +string.format("%0# e", -3) == "-3.000000e+00" +string.format("%0# e", nan) == " nan" +string.format("%0# e", inf) == " inf" +string.format("%0# e", -inf) == "-inf" +string.format("%0# e", 100) == " 1.000000e+02" +string.format("%0# e", 10000) == " 1.000000e+04" +string.format("%0# e", 100000) == " 1.000000e+05" +string.format("%0# e", 1000000) == " 1.000000e+06" +string.format("%0# e", 10000000) == " 1.000000e+07" +string.format("%0# e", 0.01) == " 1.000000e-02" +string.format("%0# e", 0.0001) == " 1.000000e-04" +string.format("%0# e", 1e-05) == " 1.000000e-05" +string.format("%0# e", 1e-06) == " 1.000000e-06" +string.format("%0# e", 1e-07) == " 1.000000e-07" +string.format("%0# e", 123.456) == " 1.234560e+02" +string.format("%0# e", 1234560000) == " 1.234560e+09" +string.format("%0# e", 1.23456e-05) == " 1.234560e-05" +string.format("%0# e", 123.456789123) == " 1.234568e+02" +string.format("%0# e", 1234567891.23) == " 1.234568e+09" +string.format("%0# e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%0# .0e", 0) == " 0.e+00" +string.format("%0# .0e", 1) == " 1.e+00" +string.format("%0# .0e", -1) == "-1.e+00" +string.format("%0# .0e", 2) == " 2.e+00" +string.format("%0# .0e", -2) == "-2.e+00" +string.format("%0# .0e", 3) == " 3.e+00" +string.format("%0# .0e", -3) == "-3.e+00" +string.format("%0# .0e", 100) == " 1.e+02" +string.format("%0# .0e", 10000) == " 1.e+04" +string.format("%0# .0e", 100000) == " 1.e+05" +string.format("%0# .0e", 1000000) == " 1.e+06" +string.format("%0# .0e", 10000000) == " 1.e+07" +string.format("%0# .0e", 0.01) == " 1.e-02" +string.format("%0# .0e", 0.0001) == " 1.e-04" +string.format("%0# .0e", 1e-05) == " 1.e-05" +string.format("%0# .0e", 1e-06) == " 1.e-06" +string.format("%0# .0e", 1e-07) == " 1.e-07" +string.format("%0# .0e", 123.456) == " 1.e+02" +string.format("%0# .0e", 1234560000) == " 1.e+09" +string.format("%0# .0e", 1.23456e-05) == " 1.e-05" +string.format("%0# .0e", 123.456789123) == " 1.e+02" +string.format("%0# .0e", 1234567891.23) == " 1.e+09" +string.format("%0# .0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# .1e", 0) == " 0.0e+00" +string.format("%0# .1e", 1) == " 1.0e+00" +string.format("%0# .1e", -1) == "-1.0e+00" +string.format("%0# .1e", 2) == " 2.0e+00" +string.format("%0# .1e", -2) == "-2.0e+00" +string.format("%0# .1e", 3) == " 3.0e+00" +string.format("%0# .1e", -3) == "-3.0e+00" +string.format("%0# .1e", 100) == " 1.0e+02" +string.format("%0# .1e", 10000) == " 1.0e+04" +string.format("%0# .1e", 100000) == " 1.0e+05" +string.format("%0# .1e", 1000000) == " 1.0e+06" +string.format("%0# .1e", 10000000) == " 1.0e+07" +string.format("%0# .1e", 0.01) == " 1.0e-02" +string.format("%0# .1e", 0.0001) == " 1.0e-04" +string.format("%0# .1e", 1e-05) == " 1.0e-05" +string.format("%0# .1e", 1e-06) == " 1.0e-06" +string.format("%0# .1e", 1e-07) == " 1.0e-07" +string.format("%0# .1e", 123.456) == " 1.2e+02" +string.format("%0# .1e", 1234560000) == " 1.2e+09" +string.format("%0# .1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# .1e", 123.456789123) == " 1.2e+02" +string.format("%0# .1e", 1234567891.23) == " 1.2e+09" +string.format("%0# .1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# 1.0e", 0) == " 0.e+00" +string.format("%0# 1.0e", 1) == " 1.e+00" +string.format("%0# 1.0e", -1) == "-1.e+00" +string.format("%0# 1.0e", 2) == " 2.e+00" +string.format("%0# 1.0e", -2) == "-2.e+00" +string.format("%0# 1.0e", 3) == " 3.e+00" +string.format("%0# 1.0e", -3) == "-3.e+00" +string.format("%0# 1.0e", 100) == " 1.e+02" +string.format("%0# 1.0e", 10000) == " 1.e+04" +string.format("%0# 1.0e", 100000) == " 1.e+05" +string.format("%0# 1.0e", 1000000) == " 1.e+06" +string.format("%0# 1.0e", 10000000) == " 1.e+07" +string.format("%0# 1.0e", 0.01) == " 1.e-02" +string.format("%0# 1.0e", 0.0001) == " 1.e-04" +string.format("%0# 1.0e", 1e-05) == " 1.e-05" +string.format("%0# 1.0e", 1e-06) == " 1.e-06" +string.format("%0# 1.0e", 1e-07) == " 1.e-07" +string.format("%0# 1.0e", 123.456) == " 1.e+02" +string.format("%0# 1.0e", 1234560000) == " 1.e+09" +string.format("%0# 1.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# 1.0e", 123.456789123) == " 1.e+02" +string.format("%0# 1.0e", 1234567891.23) == " 1.e+09" +string.format("%0# 1.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 1.1e", 0) == " 0.0e+00" +string.format("%0# 1.1e", 1) == " 1.0e+00" +string.format("%0# 1.1e", -1) == "-1.0e+00" +string.format("%0# 1.1e", 2) == " 2.0e+00" +string.format("%0# 1.1e", -2) == "-2.0e+00" +string.format("%0# 1.1e", 3) == " 3.0e+00" +string.format("%0# 1.1e", -3) == "-3.0e+00" +string.format("%0# 1.1e", 100) == " 1.0e+02" +string.format("%0# 1.1e", 10000) == " 1.0e+04" +string.format("%0# 1.1e", 100000) == " 1.0e+05" +string.format("%0# 1.1e", 1000000) == " 1.0e+06" +string.format("%0# 1.1e", 10000000) == " 1.0e+07" +string.format("%0# 1.1e", 0.01) == " 1.0e-02" +string.format("%0# 1.1e", 0.0001) == " 1.0e-04" +string.format("%0# 1.1e", 1e-05) == " 1.0e-05" +string.format("%0# 1.1e", 1e-06) == " 1.0e-06" +string.format("%0# 1.1e", 1e-07) == " 1.0e-07" +string.format("%0# 1.1e", 123.456) == " 1.2e+02" +string.format("%0# 1.1e", 1234560000) == " 1.2e+09" +string.format("%0# 1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# 1.1e", 123.456789123) == " 1.2e+02" +string.format("%0# 1.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# 1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# 2.0e", 0) == " 0.e+00" +string.format("%0# 2.0e", 1) == " 1.e+00" +string.format("%0# 2.0e", -1) == "-1.e+00" +string.format("%0# 2.0e", 2) == " 2.e+00" +string.format("%0# 2.0e", -2) == "-2.e+00" +string.format("%0# 2.0e", 3) == " 3.e+00" +string.format("%0# 2.0e", -3) == "-3.e+00" +string.format("%0# 2.0e", 100) == " 1.e+02" +string.format("%0# 2.0e", 10000) == " 1.e+04" +string.format("%0# 2.0e", 100000) == " 1.e+05" +string.format("%0# 2.0e", 1000000) == " 1.e+06" +string.format("%0# 2.0e", 10000000) == " 1.e+07" +string.format("%0# 2.0e", 0.01) == " 1.e-02" +string.format("%0# 2.0e", 0.0001) == " 1.e-04" +string.format("%0# 2.0e", 1e-05) == " 1.e-05" +string.format("%0# 2.0e", 1e-06) == " 1.e-06" +string.format("%0# 2.0e", 1e-07) == " 1.e-07" +string.format("%0# 2.0e", 123.456) == " 1.e+02" +string.format("%0# 2.0e", 1234560000) == " 1.e+09" +string.format("%0# 2.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# 2.0e", 123.456789123) == " 1.e+02" +string.format("%0# 2.0e", 1234567891.23) == " 1.e+09" +string.format("%0# 2.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 2.1e", 0) == " 0.0e+00" +string.format("%0# 2.1e", 1) == " 1.0e+00" +string.format("%0# 2.1e", -1) == "-1.0e+00" +string.format("%0# 2.1e", 2) == " 2.0e+00" +string.format("%0# 2.1e", -2) == "-2.0e+00" +string.format("%0# 2.1e", 3) == " 3.0e+00" +string.format("%0# 2.1e", -3) == "-3.0e+00" +string.format("%0# 2.1e", 100) == " 1.0e+02" +string.format("%0# 2.1e", 10000) == " 1.0e+04" +string.format("%0# 2.1e", 100000) == " 1.0e+05" +string.format("%0# 2.1e", 1000000) == " 1.0e+06" +string.format("%0# 2.1e", 10000000) == " 1.0e+07" +string.format("%0# 2.1e", 0.01) == " 1.0e-02" +string.format("%0# 2.1e", 0.0001) == " 1.0e-04" +string.format("%0# 2.1e", 1e-05) == " 1.0e-05" +string.format("%0# 2.1e", 1e-06) == " 1.0e-06" +string.format("%0# 2.1e", 1e-07) == " 1.0e-07" +string.format("%0# 2.1e", 123.456) == " 1.2e+02" +string.format("%0# 2.1e", 1234560000) == " 1.2e+09" +string.format("%0# 2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# 2.1e", 123.456789123) == " 1.2e+02" +string.format("%0# 2.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# 2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# 6e", nan) == " nan" +string.format("%0# 6e", inf) == " inf" +string.format("%0# 6e", -inf) == " -inf" +string.format("%0# 6.0e", 0) == " 0.e+00" +string.format("%0# 6.0e", 1) == " 1.e+00" +string.format("%0# 6.0e", -1) == "-1.e+00" +string.format("%0# 6.0e", 2) == " 2.e+00" +string.format("%0# 6.0e", -2) == "-2.e+00" +string.format("%0# 6.0e", 3) == " 3.e+00" +string.format("%0# 6.0e", -3) == "-3.e+00" +string.format("%0# 6.0e", nan) == " nan" +string.format("%0# 6.0e", inf) == " inf" +string.format("%0# 6.0e", -inf) == " -inf" +string.format("%0# 6.0e", 100) == " 1.e+02" +string.format("%0# 6.0e", 10000) == " 1.e+04" +string.format("%0# 6.0e", 100000) == " 1.e+05" +string.format("%0# 6.0e", 1000000) == " 1.e+06" +string.format("%0# 6.0e", 10000000) == " 1.e+07" +string.format("%0# 6.0e", 0.01) == " 1.e-02" +string.format("%0# 6.0e", 0.0001) == " 1.e-04" +string.format("%0# 6.0e", 1e-05) == " 1.e-05" +string.format("%0# 6.0e", 1e-06) == " 1.e-06" +string.format("%0# 6.0e", 1e-07) == " 1.e-07" +string.format("%0# 6.0e", 123.456) == " 1.e+02" +string.format("%0# 6.0e", 1234560000) == " 1.e+09" +string.format("%0# 6.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# 6.0e", 123.456789123) == " 1.e+02" +string.format("%0# 6.0e", 1234567891.23) == " 1.e+09" +string.format("%0# 6.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 6.1e", 0) == " 0.0e+00" +string.format("%0# 6.1e", 1) == " 1.0e+00" +string.format("%0# 6.1e", -1) == "-1.0e+00" +string.format("%0# 6.1e", 2) == " 2.0e+00" +string.format("%0# 6.1e", -2) == "-2.0e+00" +string.format("%0# 6.1e", 3) == " 3.0e+00" +string.format("%0# 6.1e", -3) == "-3.0e+00" +string.format("%0# 6.1e", nan) == " nan" +string.format("%0# 6.1e", inf) == " inf" +string.format("%0# 6.1e", -inf) == " -inf" +string.format("%0# 6.1e", 100) == " 1.0e+02" +string.format("%0# 6.1e", 10000) == " 1.0e+04" +string.format("%0# 6.1e", 100000) == " 1.0e+05" +string.format("%0# 6.1e", 1000000) == " 1.0e+06" +string.format("%0# 6.1e", 10000000) == " 1.0e+07" +string.format("%0# 6.1e", 0.01) == " 1.0e-02" +string.format("%0# 6.1e", 0.0001) == " 1.0e-04" +string.format("%0# 6.1e", 1e-05) == " 1.0e-05" +string.format("%0# 6.1e", 1e-06) == " 1.0e-06" +string.format("%0# 6.1e", 1e-07) == " 1.0e-07" +string.format("%0# 6.1e", 123.456) == " 1.2e+02" +string.format("%0# 6.1e", 1234560000) == " 1.2e+09" +string.format("%0# 6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# 6.1e", 123.456789123) == " 1.2e+02" +string.format("%0# 6.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# 6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# 6.6e", nan) == " nan" +string.format("%0# 6.6e", inf) == " inf" +string.format("%0# 6.6e", -inf) == " -inf" +string.format("%0# 20e", 0) == " 00000000.000000e+00" +string.format("%0# 20e", 1) == " 00000001.000000e+00" +string.format("%0# 20e", -1) == "-00000001.000000e+00" +string.format("%0# 20e", 2) == " 00000002.000000e+00" +string.format("%0# 20e", -2) == "-00000002.000000e+00" +string.format("%0# 20e", 3) == " 00000003.000000e+00" +string.format("%0# 20e", -3) == "-00000003.000000e+00" +string.format("%0# 20e", nan) == " nan" +string.format("%0# 20e", inf) == " inf" +string.format("%0# 20e", -inf) == " -inf" +string.format("%0# 20e", 100) == " 00000001.000000e+02" +string.format("%0# 20e", 10000) == " 00000001.000000e+04" +string.format("%0# 20e", 100000) == " 00000001.000000e+05" +string.format("%0# 20e", 1000000) == " 00000001.000000e+06" +string.format("%0# 20e", 10000000) == " 00000001.000000e+07" +string.format("%0# 20e", 0.01) == " 00000001.000000e-02" +string.format("%0# 20e", 0.0001) == " 00000001.000000e-04" +string.format("%0# 20e", 1e-05) == " 00000001.000000e-05" +string.format("%0# 20e", 1e-06) == " 00000001.000000e-06" +string.format("%0# 20e", 1e-07) == " 00000001.000000e-07" +string.format("%0# 20e", 123.456) == " 00000001.234560e+02" +string.format("%0# 20e", 1234560000) == " 00000001.234560e+09" +string.format("%0# 20e", 1.23456e-05) == " 00000001.234560e-05" +string.format("%0# 20e", 123.456789123) == " 00000001.234568e+02" +string.format("%0# 20e", 1234567891.23) == " 00000001.234568e+09" +string.format("%0# 20e", 1.23456789123e-05) == " 00000001.234568e-05" +string.format("%0# 20.0e", 0) == " 00000000000000.e+00" +string.format("%0# 20.0e", 1) == " 00000000000001.e+00" +string.format("%0# 20.0e", -1) == "-00000000000001.e+00" +string.format("%0# 20.0e", 2) == " 00000000000002.e+00" +string.format("%0# 20.0e", -2) == "-00000000000002.e+00" +string.format("%0# 20.0e", 3) == " 00000000000003.e+00" +string.format("%0# 20.0e", -3) == "-00000000000003.e+00" +string.format("%0# 20.0e", nan) == " nan" +string.format("%0# 20.0e", inf) == " inf" +string.format("%0# 20.0e", -inf) == " -inf" +string.format("%0# 20.0e", 100) == " 00000000000001.e+02" +string.format("%0# 20.0e", 10000) == " 00000000000001.e+04" +string.format("%0# 20.0e", 100000) == " 00000000000001.e+05" +string.format("%0# 20.0e", 1000000) == " 00000000000001.e+06" +string.format("%0# 20.0e", 10000000) == " 00000000000001.e+07" +string.format("%0# 20.0e", 0.01) == " 00000000000001.e-02" +string.format("%0# 20.0e", 0.0001) == " 00000000000001.e-04" +string.format("%0# 20.0e", 1e-05) == " 00000000000001.e-05" +string.format("%0# 20.0e", 1e-06) == " 00000000000001.e-06" +string.format("%0# 20.0e", 1e-07) == " 00000000000001.e-07" +string.format("%0# 20.0e", 123.456) == " 00000000000001.e+02" +string.format("%0# 20.0e", 1234560000) == " 00000000000001.e+09" +string.format("%0# 20.0e", 1.23456e-05) == " 00000000000001.e-05" +string.format("%0# 20.0e", 123.456789123) == " 00000000000001.e+02" +string.format("%0# 20.0e", 1234567891.23) == " 00000000000001.e+09" +string.format("%0# 20.0e", 1.23456789123e-05) == " 00000000000001.e-05" +string.format("%0# 20.1e", 0) == " 0000000000000.0e+00" +string.format("%0# 20.1e", 1) == " 0000000000001.0e+00" +string.format("%0# 20.1e", -1) == "-0000000000001.0e+00" +string.format("%0# 20.1e", 2) == " 0000000000002.0e+00" +string.format("%0# 20.1e", -2) == "-0000000000002.0e+00" +string.format("%0# 20.1e", 3) == " 0000000000003.0e+00" +string.format("%0# 20.1e", -3) == "-0000000000003.0e+00" +string.format("%0# 20.1e", nan) == " nan" +string.format("%0# 20.1e", inf) == " inf" +string.format("%0# 20.1e", -inf) == " -inf" +string.format("%0# 20.1e", 100) == " 0000000000001.0e+02" +string.format("%0# 20.1e", 10000) == " 0000000000001.0e+04" +string.format("%0# 20.1e", 100000) == " 0000000000001.0e+05" +string.format("%0# 20.1e", 1000000) == " 0000000000001.0e+06" +string.format("%0# 20.1e", 10000000) == " 0000000000001.0e+07" +string.format("%0# 20.1e", 0.01) == " 0000000000001.0e-02" +string.format("%0# 20.1e", 0.0001) == " 0000000000001.0e-04" +string.format("%0# 20.1e", 1e-05) == " 0000000000001.0e-05" +string.format("%0# 20.1e", 1e-06) == " 0000000000001.0e-06" +string.format("%0# 20.1e", 1e-07) == " 0000000000001.0e-07" +string.format("%0# 20.1e", 123.456) == " 0000000000001.2e+02" +string.format("%0# 20.1e", 1234560000) == " 0000000000001.2e+09" +string.format("%0# 20.1e", 1.23456e-05) == " 0000000000001.2e-05" +string.format("%0# 20.1e", 123.456789123) == " 0000000000001.2e+02" +string.format("%0# 20.1e", 1234567891.23) == " 0000000000001.2e+09" +string.format("%0# 20.1e", 1.23456789123e-05) == " 0000000000001.2e-05" +string.format("%0# 20.6e", 0) == " 00000000.000000e+00" +string.format("%0# 20.6e", 1) == " 00000001.000000e+00" +string.format("%0# 20.6e", -1) == "-00000001.000000e+00" +string.format("%0# 20.6e", 2) == " 00000002.000000e+00" +string.format("%0# 20.6e", -2) == "-00000002.000000e+00" +string.format("%0# 20.6e", 3) == " 00000003.000000e+00" +string.format("%0# 20.6e", -3) == "-00000003.000000e+00" +string.format("%0# 20.6e", nan) == " nan" +string.format("%0# 20.6e", inf) == " inf" +string.format("%0# 20.6e", -inf) == " -inf" +string.format("%0# 20.6e", 100) == " 00000001.000000e+02" +string.format("%0# 20.6e", 10000) == " 00000001.000000e+04" +string.format("%0# 20.6e", 100000) == " 00000001.000000e+05" +string.format("%0# 20.6e", 1000000) == " 00000001.000000e+06" +string.format("%0# 20.6e", 10000000) == " 00000001.000000e+07" +string.format("%0# 20.6e", 0.01) == " 00000001.000000e-02" +string.format("%0# 20.6e", 0.0001) == " 00000001.000000e-04" +string.format("%0# 20.6e", 1e-05) == " 00000001.000000e-05" +string.format("%0# 20.6e", 1e-06) == " 00000001.000000e-06" +string.format("%0# 20.6e", 1e-07) == " 00000001.000000e-07" +string.format("%0# 20.6e", 123.456) == " 00000001.234560e+02" +string.format("%0# 20.6e", 1234560000) == " 00000001.234560e+09" +string.format("%0# 20.6e", 1.23456e-05) == " 00000001.234560e-05" +string.format("%0# 20.6e", 123.456789123) == " 00000001.234568e+02" +string.format("%0# 20.6e", 1234567891.23) == " 00000001.234568e+09" +string.format("%0# 20.6e", 1.23456789123e-05) == " 00000001.234568e-05" +string.format("%0# +e", 0) == "+0.000000e+00" +string.format("%0# +e", 1) == "+1.000000e+00" +string.format("%0# +e", -1) == "-1.000000e+00" +string.format("%0# +e", 2) == "+2.000000e+00" +string.format("%0# +e", -2) == "-2.000000e+00" +string.format("%0# +e", 3) == "+3.000000e+00" +string.format("%0# +e", -3) == "-3.000000e+00" +string.format("%0# +e", nan) == "+nan" +string.format("%0# +e", inf) == "+inf" +string.format("%0# +e", -inf) == "-inf" +string.format("%0# +e", 100) == "+1.000000e+02" +string.format("%0# +e", 10000) == "+1.000000e+04" +string.format("%0# +e", 100000) == "+1.000000e+05" +string.format("%0# +e", 1000000) == "+1.000000e+06" +string.format("%0# +e", 10000000) == "+1.000000e+07" +string.format("%0# +e", 0.01) == "+1.000000e-02" +string.format("%0# +e", 0.0001) == "+1.000000e-04" +string.format("%0# +e", 1e-05) == "+1.000000e-05" +string.format("%0# +e", 1e-06) == "+1.000000e-06" +string.format("%0# +e", 1e-07) == "+1.000000e-07" +string.format("%0# +e", 123.456) == "+1.234560e+02" +string.format("%0# +e", 1234560000) == "+1.234560e+09" +string.format("%0# +e", 1.23456e-05) == "+1.234560e-05" +string.format("%0# +e", 123.456789123) == "+1.234568e+02" +string.format("%0# +e", 1234567891.23) == "+1.234568e+09" +string.format("%0# +e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0# +.0e", 0) == "+0.e+00" +string.format("%0# +.0e", 1) == "+1.e+00" +string.format("%0# +.0e", -1) == "-1.e+00" +string.format("%0# +.0e", 2) == "+2.e+00" +string.format("%0# +.0e", -2) == "-2.e+00" +string.format("%0# +.0e", 3) == "+3.e+00" +string.format("%0# +.0e", -3) == "-3.e+00" +string.format("%0# +.0e", 100) == "+1.e+02" +string.format("%0# +.0e", 10000) == "+1.e+04" +string.format("%0# +.0e", 100000) == "+1.e+05" +string.format("%0# +.0e", 1000000) == "+1.e+06" +string.format("%0# +.0e", 10000000) == "+1.e+07" +string.format("%0# +.0e", 0.01) == "+1.e-02" +string.format("%0# +.0e", 0.0001) == "+1.e-04" +string.format("%0# +.0e", 1e-05) == "+1.e-05" +string.format("%0# +.0e", 1e-06) == "+1.e-06" +string.format("%0# +.0e", 1e-07) == "+1.e-07" +string.format("%0# +.0e", 123.456) == "+1.e+02" +string.format("%0# +.0e", 1234560000) == "+1.e+09" +string.format("%0# +.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# +.0e", 123.456789123) == "+1.e+02" +string.format("%0# +.0e", 1234567891.23) == "+1.e+09" +string.format("%0# +.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +.1e", 0) == "+0.0e+00" +string.format("%0# +.1e", 1) == "+1.0e+00" +string.format("%0# +.1e", -1) == "-1.0e+00" +string.format("%0# +.1e", 2) == "+2.0e+00" +string.format("%0# +.1e", -2) == "-2.0e+00" +string.format("%0# +.1e", 3) == "+3.0e+00" +string.format("%0# +.1e", -3) == "-3.0e+00" +string.format("%0# +.1e", 100) == "+1.0e+02" +string.format("%0# +.1e", 10000) == "+1.0e+04" +string.format("%0# +.1e", 100000) == "+1.0e+05" +string.format("%0# +.1e", 1000000) == "+1.0e+06" +string.format("%0# +.1e", 10000000) == "+1.0e+07" +string.format("%0# +.1e", 0.01) == "+1.0e-02" +string.format("%0# +.1e", 0.0001) == "+1.0e-04" +string.format("%0# +.1e", 1e-05) == "+1.0e-05" +string.format("%0# +.1e", 1e-06) == "+1.0e-06" +string.format("%0# +.1e", 1e-07) == "+1.0e-07" +string.format("%0# +.1e", 123.456) == "+1.2e+02" +string.format("%0# +.1e", 1234560000) == "+1.2e+09" +string.format("%0# +.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# +.1e", 123.456789123) == "+1.2e+02" +string.format("%0# +.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# +.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# +1.0e", 0) == "+0.e+00" +string.format("%0# +1.0e", 1) == "+1.e+00" +string.format("%0# +1.0e", -1) == "-1.e+00" +string.format("%0# +1.0e", 2) == "+2.e+00" +string.format("%0# +1.0e", -2) == "-2.e+00" +string.format("%0# +1.0e", 3) == "+3.e+00" +string.format("%0# +1.0e", -3) == "-3.e+00" +string.format("%0# +1.0e", 100) == "+1.e+02" +string.format("%0# +1.0e", 10000) == "+1.e+04" +string.format("%0# +1.0e", 100000) == "+1.e+05" +string.format("%0# +1.0e", 1000000) == "+1.e+06" +string.format("%0# +1.0e", 10000000) == "+1.e+07" +string.format("%0# +1.0e", 0.01) == "+1.e-02" +string.format("%0# +1.0e", 0.0001) == "+1.e-04" +string.format("%0# +1.0e", 1e-05) == "+1.e-05" +string.format("%0# +1.0e", 1e-06) == "+1.e-06" +string.format("%0# +1.0e", 1e-07) == "+1.e-07" +string.format("%0# +1.0e", 123.456) == "+1.e+02" +string.format("%0# +1.0e", 1234560000) == "+1.e+09" +string.format("%0# +1.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# +1.0e", 123.456789123) == "+1.e+02" +string.format("%0# +1.0e", 1234567891.23) == "+1.e+09" +string.format("%0# +1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +1.1e", 0) == "+0.0e+00" +string.format("%0# +1.1e", 1) == "+1.0e+00" +string.format("%0# +1.1e", -1) == "-1.0e+00" +string.format("%0# +1.1e", 2) == "+2.0e+00" +string.format("%0# +1.1e", -2) == "-2.0e+00" +string.format("%0# +1.1e", 3) == "+3.0e+00" +string.format("%0# +1.1e", -3) == "-3.0e+00" +string.format("%0# +1.1e", 100) == "+1.0e+02" +string.format("%0# +1.1e", 10000) == "+1.0e+04" +string.format("%0# +1.1e", 100000) == "+1.0e+05" +string.format("%0# +1.1e", 1000000) == "+1.0e+06" +string.format("%0# +1.1e", 10000000) == "+1.0e+07" +string.format("%0# +1.1e", 0.01) == "+1.0e-02" +string.format("%0# +1.1e", 0.0001) == "+1.0e-04" +string.format("%0# +1.1e", 1e-05) == "+1.0e-05" +string.format("%0# +1.1e", 1e-06) == "+1.0e-06" +string.format("%0# +1.1e", 1e-07) == "+1.0e-07" +string.format("%0# +1.1e", 123.456) == "+1.2e+02" +string.format("%0# +1.1e", 1234560000) == "+1.2e+09" +string.format("%0# +1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# +1.1e", 123.456789123) == "+1.2e+02" +string.format("%0# +1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# +1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# +2.0e", 0) == "+0.e+00" +string.format("%0# +2.0e", 1) == "+1.e+00" +string.format("%0# +2.0e", -1) == "-1.e+00" +string.format("%0# +2.0e", 2) == "+2.e+00" +string.format("%0# +2.0e", -2) == "-2.e+00" +string.format("%0# +2.0e", 3) == "+3.e+00" +string.format("%0# +2.0e", -3) == "-3.e+00" +string.format("%0# +2.0e", 100) == "+1.e+02" +string.format("%0# +2.0e", 10000) == "+1.e+04" +string.format("%0# +2.0e", 100000) == "+1.e+05" +string.format("%0# +2.0e", 1000000) == "+1.e+06" +string.format("%0# +2.0e", 10000000) == "+1.e+07" +string.format("%0# +2.0e", 0.01) == "+1.e-02" +string.format("%0# +2.0e", 0.0001) == "+1.e-04" +string.format("%0# +2.0e", 1e-05) == "+1.e-05" +string.format("%0# +2.0e", 1e-06) == "+1.e-06" +string.format("%0# +2.0e", 1e-07) == "+1.e-07" +string.format("%0# +2.0e", 123.456) == "+1.e+02" +string.format("%0# +2.0e", 1234560000) == "+1.e+09" +string.format("%0# +2.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# +2.0e", 123.456789123) == "+1.e+02" +string.format("%0# +2.0e", 1234567891.23) == "+1.e+09" +string.format("%0# +2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +2.1e", 0) == "+0.0e+00" +string.format("%0# +2.1e", 1) == "+1.0e+00" +string.format("%0# +2.1e", -1) == "-1.0e+00" +string.format("%0# +2.1e", 2) == "+2.0e+00" +string.format("%0# +2.1e", -2) == "-2.0e+00" +string.format("%0# +2.1e", 3) == "+3.0e+00" +string.format("%0# +2.1e", -3) == "-3.0e+00" +string.format("%0# +2.1e", 100) == "+1.0e+02" +string.format("%0# +2.1e", 10000) == "+1.0e+04" +string.format("%0# +2.1e", 100000) == "+1.0e+05" +string.format("%0# +2.1e", 1000000) == "+1.0e+06" +string.format("%0# +2.1e", 10000000) == "+1.0e+07" +string.format("%0# +2.1e", 0.01) == "+1.0e-02" +string.format("%0# +2.1e", 0.0001) == "+1.0e-04" +string.format("%0# +2.1e", 1e-05) == "+1.0e-05" +string.format("%0# +2.1e", 1e-06) == "+1.0e-06" +string.format("%0# +2.1e", 1e-07) == "+1.0e-07" +string.format("%0# +2.1e", 123.456) == "+1.2e+02" +string.format("%0# +2.1e", 1234560000) == "+1.2e+09" +string.format("%0# +2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# +2.1e", 123.456789123) == "+1.2e+02" +string.format("%0# +2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# +2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# +6e", nan) == " +nan" +string.format("%0# +6e", inf) == " +inf" +string.format("%0# +6e", -inf) == " -inf" +string.format("%0# +6.0e", 0) == "+0.e+00" +string.format("%0# +6.0e", 1) == "+1.e+00" +string.format("%0# +6.0e", -1) == "-1.e+00" +string.format("%0# +6.0e", 2) == "+2.e+00" +string.format("%0# +6.0e", -2) == "-2.e+00" +string.format("%0# +6.0e", 3) == "+3.e+00" +string.format("%0# +6.0e", -3) == "-3.e+00" +string.format("%0# +6.0e", nan) == " +nan" +string.format("%0# +6.0e", inf) == " +inf" +string.format("%0# +6.0e", -inf) == " -inf" +string.format("%0# +6.0e", 100) == "+1.e+02" +string.format("%0# +6.0e", 10000) == "+1.e+04" +string.format("%0# +6.0e", 100000) == "+1.e+05" +string.format("%0# +6.0e", 1000000) == "+1.e+06" +string.format("%0# +6.0e", 10000000) == "+1.e+07" +string.format("%0# +6.0e", 0.01) == "+1.e-02" +string.format("%0# +6.0e", 0.0001) == "+1.e-04" +string.format("%0# +6.0e", 1e-05) == "+1.e-05" +string.format("%0# +6.0e", 1e-06) == "+1.e-06" +string.format("%0# +6.0e", 1e-07) == "+1.e-07" +string.format("%0# +6.0e", 123.456) == "+1.e+02" +string.format("%0# +6.0e", 1234560000) == "+1.e+09" +string.format("%0# +6.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# +6.0e", 123.456789123) == "+1.e+02" +string.format("%0# +6.0e", 1234567891.23) == "+1.e+09" +string.format("%0# +6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +6.1e", 0) == "+0.0e+00" +string.format("%0# +6.1e", 1) == "+1.0e+00" +string.format("%0# +6.1e", -1) == "-1.0e+00" +string.format("%0# +6.1e", 2) == "+2.0e+00" +string.format("%0# +6.1e", -2) == "-2.0e+00" +string.format("%0# +6.1e", 3) == "+3.0e+00" +string.format("%0# +6.1e", -3) == "-3.0e+00" +string.format("%0# +6.1e", nan) == " +nan" +string.format("%0# +6.1e", inf) == " +inf" +string.format("%0# +6.1e", -inf) == " -inf" +string.format("%0# +6.1e", 100) == "+1.0e+02" +string.format("%0# +6.1e", 10000) == "+1.0e+04" +string.format("%0# +6.1e", 100000) == "+1.0e+05" +string.format("%0# +6.1e", 1000000) == "+1.0e+06" +string.format("%0# +6.1e", 10000000) == "+1.0e+07" +string.format("%0# +6.1e", 0.01) == "+1.0e-02" +string.format("%0# +6.1e", 0.0001) == "+1.0e-04" +string.format("%0# +6.1e", 1e-05) == "+1.0e-05" +string.format("%0# +6.1e", 1e-06) == "+1.0e-06" +string.format("%0# +6.1e", 1e-07) == "+1.0e-07" +string.format("%0# +6.1e", 123.456) == "+1.2e+02" +string.format("%0# +6.1e", 1234560000) == "+1.2e+09" +string.format("%0# +6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# +6.1e", 123.456789123) == "+1.2e+02" +string.format("%0# +6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# +6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# +6.6e", nan) == " +nan" +string.format("%0# +6.6e", inf) == " +inf" +string.format("%0# +6.6e", -inf) == " -inf" +string.format("%0# +20e", 0) == "+00000000.000000e+00" +string.format("%0# +20e", 1) == "+00000001.000000e+00" +string.format("%0# +20e", -1) == "-00000001.000000e+00" +string.format("%0# +20e", 2) == "+00000002.000000e+00" +string.format("%0# +20e", -2) == "-00000002.000000e+00" +string.format("%0# +20e", 3) == "+00000003.000000e+00" +string.format("%0# +20e", -3) == "-00000003.000000e+00" +string.format("%0# +20e", nan) == " +nan" +string.format("%0# +20e", inf) == " +inf" +string.format("%0# +20e", -inf) == " -inf" +string.format("%0# +20e", 100) == "+00000001.000000e+02" +string.format("%0# +20e", 10000) == "+00000001.000000e+04" +string.format("%0# +20e", 100000) == "+00000001.000000e+05" +string.format("%0# +20e", 1000000) == "+00000001.000000e+06" +string.format("%0# +20e", 10000000) == "+00000001.000000e+07" +string.format("%0# +20e", 0.01) == "+00000001.000000e-02" +string.format("%0# +20e", 0.0001) == "+00000001.000000e-04" +string.format("%0# +20e", 1e-05) == "+00000001.000000e-05" +string.format("%0# +20e", 1e-06) == "+00000001.000000e-06" +string.format("%0# +20e", 1e-07) == "+00000001.000000e-07" +string.format("%0# +20e", 123.456) == "+00000001.234560e+02" +string.format("%0# +20e", 1234560000) == "+00000001.234560e+09" +string.format("%0# +20e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0# +20e", 123.456789123) == "+00000001.234568e+02" +string.format("%0# +20e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0# +20e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0# +20.0e", 0) == "+00000000000000.e+00" +string.format("%0# +20.0e", 1) == "+00000000000001.e+00" +string.format("%0# +20.0e", -1) == "-00000000000001.e+00" +string.format("%0# +20.0e", 2) == "+00000000000002.e+00" +string.format("%0# +20.0e", -2) == "-00000000000002.e+00" +string.format("%0# +20.0e", 3) == "+00000000000003.e+00" +string.format("%0# +20.0e", -3) == "-00000000000003.e+00" +string.format("%0# +20.0e", nan) == " +nan" +string.format("%0# +20.0e", inf) == " +inf" +string.format("%0# +20.0e", -inf) == " -inf" +string.format("%0# +20.0e", 100) == "+00000000000001.e+02" +string.format("%0# +20.0e", 10000) == "+00000000000001.e+04" +string.format("%0# +20.0e", 100000) == "+00000000000001.e+05" +string.format("%0# +20.0e", 1000000) == "+00000000000001.e+06" +string.format("%0# +20.0e", 10000000) == "+00000000000001.e+07" +string.format("%0# +20.0e", 0.01) == "+00000000000001.e-02" +string.format("%0# +20.0e", 0.0001) == "+00000000000001.e-04" +string.format("%0# +20.0e", 1e-05) == "+00000000000001.e-05" +string.format("%0# +20.0e", 1e-06) == "+00000000000001.e-06" +string.format("%0# +20.0e", 1e-07) == "+00000000000001.e-07" +string.format("%0# +20.0e", 123.456) == "+00000000000001.e+02" +string.format("%0# +20.0e", 1234560000) == "+00000000000001.e+09" +string.format("%0# +20.0e", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0# +20.0e", 123.456789123) == "+00000000000001.e+02" +string.format("%0# +20.0e", 1234567891.23) == "+00000000000001.e+09" +string.format("%0# +20.0e", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0# +20.1e", 0) == "+0000000000000.0e+00" +string.format("%0# +20.1e", 1) == "+0000000000001.0e+00" +string.format("%0# +20.1e", -1) == "-0000000000001.0e+00" +string.format("%0# +20.1e", 2) == "+0000000000002.0e+00" +string.format("%0# +20.1e", -2) == "-0000000000002.0e+00" +string.format("%0# +20.1e", 3) == "+0000000000003.0e+00" +string.format("%0# +20.1e", -3) == "-0000000000003.0e+00" +string.format("%0# +20.1e", nan) == " +nan" +string.format("%0# +20.1e", inf) == " +inf" +string.format("%0# +20.1e", -inf) == " -inf" +string.format("%0# +20.1e", 100) == "+0000000000001.0e+02" +string.format("%0# +20.1e", 10000) == "+0000000000001.0e+04" +string.format("%0# +20.1e", 100000) == "+0000000000001.0e+05" +string.format("%0# +20.1e", 1000000) == "+0000000000001.0e+06" +string.format("%0# +20.1e", 10000000) == "+0000000000001.0e+07" +string.format("%0# +20.1e", 0.01) == "+0000000000001.0e-02" +string.format("%0# +20.1e", 0.0001) == "+0000000000001.0e-04" +string.format("%0# +20.1e", 1e-05) == "+0000000000001.0e-05" +string.format("%0# +20.1e", 1e-06) == "+0000000000001.0e-06" +string.format("%0# +20.1e", 1e-07) == "+0000000000001.0e-07" +string.format("%0# +20.1e", 123.456) == "+0000000000001.2e+02" +string.format("%0# +20.1e", 1234560000) == "+0000000000001.2e+09" +string.format("%0# +20.1e", 1.23456e-05) == "+0000000000001.2e-05" +string.format("%0# +20.1e", 123.456789123) == "+0000000000001.2e+02" +string.format("%0# +20.1e", 1234567891.23) == "+0000000000001.2e+09" +string.format("%0# +20.1e", 1.23456789123e-05) == "+0000000000001.2e-05" +string.format("%0# +20.6e", 0) == "+00000000.000000e+00" +string.format("%0# +20.6e", 1) == "+00000001.000000e+00" +string.format("%0# +20.6e", -1) == "-00000001.000000e+00" +string.format("%0# +20.6e", 2) == "+00000002.000000e+00" +string.format("%0# +20.6e", -2) == "-00000002.000000e+00" +string.format("%0# +20.6e", 3) == "+00000003.000000e+00" +string.format("%0# +20.6e", -3) == "-00000003.000000e+00" +string.format("%0# +20.6e", nan) == " +nan" +string.format("%0# +20.6e", inf) == " +inf" +string.format("%0# +20.6e", -inf) == " -inf" +string.format("%0# +20.6e", 100) == "+00000001.000000e+02" +string.format("%0# +20.6e", 10000) == "+00000001.000000e+04" +string.format("%0# +20.6e", 100000) == "+00000001.000000e+05" +string.format("%0# +20.6e", 1000000) == "+00000001.000000e+06" +string.format("%0# +20.6e", 10000000) == "+00000001.000000e+07" +string.format("%0# +20.6e", 0.01) == "+00000001.000000e-02" +string.format("%0# +20.6e", 0.0001) == "+00000001.000000e-04" +string.format("%0# +20.6e", 1e-05) == "+00000001.000000e-05" +string.format("%0# +20.6e", 1e-06) == "+00000001.000000e-06" +string.format("%0# +20.6e", 1e-07) == "+00000001.000000e-07" +string.format("%0# +20.6e", 123.456) == "+00000001.234560e+02" +string.format("%0# +20.6e", 1234560000) == "+00000001.234560e+09" +string.format("%0# +20.6e", 1.23456e-05) == "+00000001.234560e-05" +string.format("%0# +20.6e", 123.456789123) == "+00000001.234568e+02" +string.format("%0# +20.6e", 1234567891.23) == "+00000001.234568e+09" +string.format("%0# +20.6e", 1.23456789123e-05) == "+00000001.234568e-05" +string.format("%0# -e", 0) == " 0.000000e+00" +string.format("%0# -e", 1) == " 1.000000e+00" +string.format("%0# -e", -1) == "-1.000000e+00" +string.format("%0# -e", 2) == " 2.000000e+00" +string.format("%0# -e", -2) == "-2.000000e+00" +string.format("%0# -e", 3) == " 3.000000e+00" +string.format("%0# -e", -3) == "-3.000000e+00" +string.format("%0# -e", nan) == " nan" +string.format("%0# -e", inf) == " inf" +string.format("%0# -e", -inf) == "-inf" +string.format("%0# -e", 100) == " 1.000000e+02" +string.format("%0# -e", 10000) == " 1.000000e+04" +string.format("%0# -e", 100000) == " 1.000000e+05" +string.format("%0# -e", 1000000) == " 1.000000e+06" +string.format("%0# -e", 10000000) == " 1.000000e+07" +string.format("%0# -e", 0.01) == " 1.000000e-02" +string.format("%0# -e", 0.0001) == " 1.000000e-04" +string.format("%0# -e", 1e-05) == " 1.000000e-05" +string.format("%0# -e", 1e-06) == " 1.000000e-06" +string.format("%0# -e", 1e-07) == " 1.000000e-07" +string.format("%0# -e", 123.456) == " 1.234560e+02" +string.format("%0# -e", 1234560000) == " 1.234560e+09" +string.format("%0# -e", 1.23456e-05) == " 1.234560e-05" +string.format("%0# -e", 123.456789123) == " 1.234568e+02" +string.format("%0# -e", 1234567891.23) == " 1.234568e+09" +string.format("%0# -e", 1.23456789123e-05) == " 1.234568e-05" +string.format("%0# -.0e", 0) == " 0.e+00" +string.format("%0# -.0e", 1) == " 1.e+00" +string.format("%0# -.0e", -1) == "-1.e+00" +string.format("%0# -.0e", 2) == " 2.e+00" +string.format("%0# -.0e", -2) == "-2.e+00" +string.format("%0# -.0e", 3) == " 3.e+00" +string.format("%0# -.0e", -3) == "-3.e+00" +string.format("%0# -.0e", 100) == " 1.e+02" +string.format("%0# -.0e", 10000) == " 1.e+04" +string.format("%0# -.0e", 100000) == " 1.e+05" +string.format("%0# -.0e", 1000000) == " 1.e+06" +string.format("%0# -.0e", 10000000) == " 1.e+07" +string.format("%0# -.0e", 0.01) == " 1.e-02" +string.format("%0# -.0e", 0.0001) == " 1.e-04" +string.format("%0# -.0e", 1e-05) == " 1.e-05" +string.format("%0# -.0e", 1e-06) == " 1.e-06" +string.format("%0# -.0e", 1e-07) == " 1.e-07" +string.format("%0# -.0e", 123.456) == " 1.e+02" +string.format("%0# -.0e", 1234560000) == " 1.e+09" +string.format("%0# -.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# -.0e", 123.456789123) == " 1.e+02" +string.format("%0# -.0e", 1234567891.23) == " 1.e+09" +string.format("%0# -.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -.1e", 0) == " 0.0e+00" +string.format("%0# -.1e", 1) == " 1.0e+00" +string.format("%0# -.1e", -1) == "-1.0e+00" +string.format("%0# -.1e", 2) == " 2.0e+00" +string.format("%0# -.1e", -2) == "-2.0e+00" +string.format("%0# -.1e", 3) == " 3.0e+00" +string.format("%0# -.1e", -3) == "-3.0e+00" +string.format("%0# -.1e", 100) == " 1.0e+02" +string.format("%0# -.1e", 10000) == " 1.0e+04" +string.format("%0# -.1e", 100000) == " 1.0e+05" +string.format("%0# -.1e", 1000000) == " 1.0e+06" +string.format("%0# -.1e", 10000000) == " 1.0e+07" +string.format("%0# -.1e", 0.01) == " 1.0e-02" +string.format("%0# -.1e", 0.0001) == " 1.0e-04" +string.format("%0# -.1e", 1e-05) == " 1.0e-05" +string.format("%0# -.1e", 1e-06) == " 1.0e-06" +string.format("%0# -.1e", 1e-07) == " 1.0e-07" +string.format("%0# -.1e", 123.456) == " 1.2e+02" +string.format("%0# -.1e", 1234560000) == " 1.2e+09" +string.format("%0# -.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# -.1e", 123.456789123) == " 1.2e+02" +string.format("%0# -.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# -.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# -1.0e", 0) == " 0.e+00" +string.format("%0# -1.0e", 1) == " 1.e+00" +string.format("%0# -1.0e", -1) == "-1.e+00" +string.format("%0# -1.0e", 2) == " 2.e+00" +string.format("%0# -1.0e", -2) == "-2.e+00" +string.format("%0# -1.0e", 3) == " 3.e+00" +string.format("%0# -1.0e", -3) == "-3.e+00" +string.format("%0# -1.0e", 100) == " 1.e+02" +string.format("%0# -1.0e", 10000) == " 1.e+04" +string.format("%0# -1.0e", 100000) == " 1.e+05" +string.format("%0# -1.0e", 1000000) == " 1.e+06" +string.format("%0# -1.0e", 10000000) == " 1.e+07" +string.format("%0# -1.0e", 0.01) == " 1.e-02" +string.format("%0# -1.0e", 0.0001) == " 1.e-04" +string.format("%0# -1.0e", 1e-05) == " 1.e-05" +string.format("%0# -1.0e", 1e-06) == " 1.e-06" +string.format("%0# -1.0e", 1e-07) == " 1.e-07" +string.format("%0# -1.0e", 123.456) == " 1.e+02" +string.format("%0# -1.0e", 1234560000) == " 1.e+09" +string.format("%0# -1.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# -1.0e", 123.456789123) == " 1.e+02" +string.format("%0# -1.0e", 1234567891.23) == " 1.e+09" +string.format("%0# -1.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -1.1e", 0) == " 0.0e+00" +string.format("%0# -1.1e", 1) == " 1.0e+00" +string.format("%0# -1.1e", -1) == "-1.0e+00" +string.format("%0# -1.1e", 2) == " 2.0e+00" +string.format("%0# -1.1e", -2) == "-2.0e+00" +string.format("%0# -1.1e", 3) == " 3.0e+00" +string.format("%0# -1.1e", -3) == "-3.0e+00" +string.format("%0# -1.1e", 100) == " 1.0e+02" +string.format("%0# -1.1e", 10000) == " 1.0e+04" +string.format("%0# -1.1e", 100000) == " 1.0e+05" +string.format("%0# -1.1e", 1000000) == " 1.0e+06" +string.format("%0# -1.1e", 10000000) == " 1.0e+07" +string.format("%0# -1.1e", 0.01) == " 1.0e-02" +string.format("%0# -1.1e", 0.0001) == " 1.0e-04" +string.format("%0# -1.1e", 1e-05) == " 1.0e-05" +string.format("%0# -1.1e", 1e-06) == " 1.0e-06" +string.format("%0# -1.1e", 1e-07) == " 1.0e-07" +string.format("%0# -1.1e", 123.456) == " 1.2e+02" +string.format("%0# -1.1e", 1234560000) == " 1.2e+09" +string.format("%0# -1.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# -1.1e", 123.456789123) == " 1.2e+02" +string.format("%0# -1.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# -1.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# -2.0e", 0) == " 0.e+00" +string.format("%0# -2.0e", 1) == " 1.e+00" +string.format("%0# -2.0e", -1) == "-1.e+00" +string.format("%0# -2.0e", 2) == " 2.e+00" +string.format("%0# -2.0e", -2) == "-2.e+00" +string.format("%0# -2.0e", 3) == " 3.e+00" +string.format("%0# -2.0e", -3) == "-3.e+00" +string.format("%0# -2.0e", 100) == " 1.e+02" +string.format("%0# -2.0e", 10000) == " 1.e+04" +string.format("%0# -2.0e", 100000) == " 1.e+05" +string.format("%0# -2.0e", 1000000) == " 1.e+06" +string.format("%0# -2.0e", 10000000) == " 1.e+07" +string.format("%0# -2.0e", 0.01) == " 1.e-02" +string.format("%0# -2.0e", 0.0001) == " 1.e-04" +string.format("%0# -2.0e", 1e-05) == " 1.e-05" +string.format("%0# -2.0e", 1e-06) == " 1.e-06" +string.format("%0# -2.0e", 1e-07) == " 1.e-07" +string.format("%0# -2.0e", 123.456) == " 1.e+02" +string.format("%0# -2.0e", 1234560000) == " 1.e+09" +string.format("%0# -2.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# -2.0e", 123.456789123) == " 1.e+02" +string.format("%0# -2.0e", 1234567891.23) == " 1.e+09" +string.format("%0# -2.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -2.1e", 0) == " 0.0e+00" +string.format("%0# -2.1e", 1) == " 1.0e+00" +string.format("%0# -2.1e", -1) == "-1.0e+00" +string.format("%0# -2.1e", 2) == " 2.0e+00" +string.format("%0# -2.1e", -2) == "-2.0e+00" +string.format("%0# -2.1e", 3) == " 3.0e+00" +string.format("%0# -2.1e", -3) == "-3.0e+00" +string.format("%0# -2.1e", 100) == " 1.0e+02" +string.format("%0# -2.1e", 10000) == " 1.0e+04" +string.format("%0# -2.1e", 100000) == " 1.0e+05" +string.format("%0# -2.1e", 1000000) == " 1.0e+06" +string.format("%0# -2.1e", 10000000) == " 1.0e+07" +string.format("%0# -2.1e", 0.01) == " 1.0e-02" +string.format("%0# -2.1e", 0.0001) == " 1.0e-04" +string.format("%0# -2.1e", 1e-05) == " 1.0e-05" +string.format("%0# -2.1e", 1e-06) == " 1.0e-06" +string.format("%0# -2.1e", 1e-07) == " 1.0e-07" +string.format("%0# -2.1e", 123.456) == " 1.2e+02" +string.format("%0# -2.1e", 1234560000) == " 1.2e+09" +string.format("%0# -2.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# -2.1e", 123.456789123) == " 1.2e+02" +string.format("%0# -2.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# -2.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# -6e", nan) == " nan " +string.format("%0# -6e", inf) == " inf " +string.format("%0# -6e", -inf) == "-inf " +string.format("%0# -6.0e", 0) == " 0.e+00" +string.format("%0# -6.0e", 1) == " 1.e+00" +string.format("%0# -6.0e", -1) == "-1.e+00" +string.format("%0# -6.0e", 2) == " 2.e+00" +string.format("%0# -6.0e", -2) == "-2.e+00" +string.format("%0# -6.0e", 3) == " 3.e+00" +string.format("%0# -6.0e", -3) == "-3.e+00" +string.format("%0# -6.0e", nan) == " nan " +string.format("%0# -6.0e", inf) == " inf " +string.format("%0# -6.0e", -inf) == "-inf " +string.format("%0# -6.0e", 100) == " 1.e+02" +string.format("%0# -6.0e", 10000) == " 1.e+04" +string.format("%0# -6.0e", 100000) == " 1.e+05" +string.format("%0# -6.0e", 1000000) == " 1.e+06" +string.format("%0# -6.0e", 10000000) == " 1.e+07" +string.format("%0# -6.0e", 0.01) == " 1.e-02" +string.format("%0# -6.0e", 0.0001) == " 1.e-04" +string.format("%0# -6.0e", 1e-05) == " 1.e-05" +string.format("%0# -6.0e", 1e-06) == " 1.e-06" +string.format("%0# -6.0e", 1e-07) == " 1.e-07" +string.format("%0# -6.0e", 123.456) == " 1.e+02" +string.format("%0# -6.0e", 1234560000) == " 1.e+09" +string.format("%0# -6.0e", 1.23456e-05) == " 1.e-05" +string.format("%0# -6.0e", 123.456789123) == " 1.e+02" +string.format("%0# -6.0e", 1234567891.23) == " 1.e+09" +string.format("%0# -6.0e", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -6.1e", 0) == " 0.0e+00" +string.format("%0# -6.1e", 1) == " 1.0e+00" +string.format("%0# -6.1e", -1) == "-1.0e+00" +string.format("%0# -6.1e", 2) == " 2.0e+00" +string.format("%0# -6.1e", -2) == "-2.0e+00" +string.format("%0# -6.1e", 3) == " 3.0e+00" +string.format("%0# -6.1e", -3) == "-3.0e+00" +string.format("%0# -6.1e", nan) == " nan " +string.format("%0# -6.1e", inf) == " inf " +string.format("%0# -6.1e", -inf) == "-inf " +string.format("%0# -6.1e", 100) == " 1.0e+02" +string.format("%0# -6.1e", 10000) == " 1.0e+04" +string.format("%0# -6.1e", 100000) == " 1.0e+05" +string.format("%0# -6.1e", 1000000) == " 1.0e+06" +string.format("%0# -6.1e", 10000000) == " 1.0e+07" +string.format("%0# -6.1e", 0.01) == " 1.0e-02" +string.format("%0# -6.1e", 0.0001) == " 1.0e-04" +string.format("%0# -6.1e", 1e-05) == " 1.0e-05" +string.format("%0# -6.1e", 1e-06) == " 1.0e-06" +string.format("%0# -6.1e", 1e-07) == " 1.0e-07" +string.format("%0# -6.1e", 123.456) == " 1.2e+02" +string.format("%0# -6.1e", 1234560000) == " 1.2e+09" +string.format("%0# -6.1e", 1.23456e-05) == " 1.2e-05" +string.format("%0# -6.1e", 123.456789123) == " 1.2e+02" +string.format("%0# -6.1e", 1234567891.23) == " 1.2e+09" +string.format("%0# -6.1e", 1.23456789123e-05) == " 1.2e-05" +string.format("%0# -6.6e", nan) == " nan " +string.format("%0# -6.6e", inf) == " inf " +string.format("%0# -6.6e", -inf) == "-inf " +string.format("%0# -20e", 0) == " 0.000000e+00 " +string.format("%0# -20e", 1) == " 1.000000e+00 " +string.format("%0# -20e", -1) == "-1.000000e+00 " +string.format("%0# -20e", 2) == " 2.000000e+00 " +string.format("%0# -20e", -2) == "-2.000000e+00 " +string.format("%0# -20e", 3) == " 3.000000e+00 " +string.format("%0# -20e", -3) == "-3.000000e+00 " +string.format("%0# -20e", nan) == " nan " +string.format("%0# -20e", inf) == " inf " +string.format("%0# -20e", -inf) == "-inf " +string.format("%0# -20e", 100) == " 1.000000e+02 " +string.format("%0# -20e", 10000) == " 1.000000e+04 " +string.format("%0# -20e", 100000) == " 1.000000e+05 " +string.format("%0# -20e", 1000000) == " 1.000000e+06 " +string.format("%0# -20e", 10000000) == " 1.000000e+07 " +string.format("%0# -20e", 0.01) == " 1.000000e-02 " +string.format("%0# -20e", 0.0001) == " 1.000000e-04 " +string.format("%0# -20e", 1e-05) == " 1.000000e-05 " +string.format("%0# -20e", 1e-06) == " 1.000000e-06 " +string.format("%0# -20e", 1e-07) == " 1.000000e-07 " +string.format("%0# -20e", 123.456) == " 1.234560e+02 " +string.format("%0# -20e", 1234560000) == " 1.234560e+09 " +string.format("%0# -20e", 1.23456e-05) == " 1.234560e-05 " +string.format("%0# -20e", 123.456789123) == " 1.234568e+02 " +string.format("%0# -20e", 1234567891.23) == " 1.234568e+09 " +string.format("%0# -20e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%0# -20.0e", 0) == " 0.e+00 " +string.format("%0# -20.0e", 1) == " 1.e+00 " +string.format("%0# -20.0e", -1) == "-1.e+00 " +string.format("%0# -20.0e", 2) == " 2.e+00 " +string.format("%0# -20.0e", -2) == "-2.e+00 " +string.format("%0# -20.0e", 3) == " 3.e+00 " +string.format("%0# -20.0e", -3) == "-3.e+00 " +string.format("%0# -20.0e", nan) == " nan " +string.format("%0# -20.0e", inf) == " inf " +string.format("%0# -20.0e", -inf) == "-inf " +string.format("%0# -20.0e", 100) == " 1.e+02 " +string.format("%0# -20.0e", 10000) == " 1.e+04 " +string.format("%0# -20.0e", 100000) == " 1.e+05 " +string.format("%0# -20.0e", 1000000) == " 1.e+06 " +string.format("%0# -20.0e", 10000000) == " 1.e+07 " +string.format("%0# -20.0e", 0.01) == " 1.e-02 " +string.format("%0# -20.0e", 0.0001) == " 1.e-04 " +string.format("%0# -20.0e", 1e-05) == " 1.e-05 " +string.format("%0# -20.0e", 1e-06) == " 1.e-06 " +string.format("%0# -20.0e", 1e-07) == " 1.e-07 " +string.format("%0# -20.0e", 123.456) == " 1.e+02 " +string.format("%0# -20.0e", 1234560000) == " 1.e+09 " +string.format("%0# -20.0e", 1.23456e-05) == " 1.e-05 " +string.format("%0# -20.0e", 123.456789123) == " 1.e+02 " +string.format("%0# -20.0e", 1234567891.23) == " 1.e+09 " +string.format("%0# -20.0e", 1.23456789123e-05) == " 1.e-05 " +string.format("%0# -20.1e", 0) == " 0.0e+00 " +string.format("%0# -20.1e", 1) == " 1.0e+00 " +string.format("%0# -20.1e", -1) == "-1.0e+00 " +string.format("%0# -20.1e", 2) == " 2.0e+00 " +string.format("%0# -20.1e", -2) == "-2.0e+00 " +string.format("%0# -20.1e", 3) == " 3.0e+00 " +string.format("%0# -20.1e", -3) == "-3.0e+00 " +string.format("%0# -20.1e", nan) == " nan " +string.format("%0# -20.1e", inf) == " inf " +string.format("%0# -20.1e", -inf) == "-inf " +string.format("%0# -20.1e", 100) == " 1.0e+02 " +string.format("%0# -20.1e", 10000) == " 1.0e+04 " +string.format("%0# -20.1e", 100000) == " 1.0e+05 " +string.format("%0# -20.1e", 1000000) == " 1.0e+06 " +string.format("%0# -20.1e", 10000000) == " 1.0e+07 " +string.format("%0# -20.1e", 0.01) == " 1.0e-02 " +string.format("%0# -20.1e", 0.0001) == " 1.0e-04 " +string.format("%0# -20.1e", 1e-05) == " 1.0e-05 " +string.format("%0# -20.1e", 1e-06) == " 1.0e-06 " +string.format("%0# -20.1e", 1e-07) == " 1.0e-07 " +string.format("%0# -20.1e", 123.456) == " 1.2e+02 " +string.format("%0# -20.1e", 1234560000) == " 1.2e+09 " +string.format("%0# -20.1e", 1.23456e-05) == " 1.2e-05 " +string.format("%0# -20.1e", 123.456789123) == " 1.2e+02 " +string.format("%0# -20.1e", 1234567891.23) == " 1.2e+09 " +string.format("%0# -20.1e", 1.23456789123e-05) == " 1.2e-05 " +string.format("%0# -20.6e", 0) == " 0.000000e+00 " +string.format("%0# -20.6e", 1) == " 1.000000e+00 " +string.format("%0# -20.6e", -1) == "-1.000000e+00 " +string.format("%0# -20.6e", 2) == " 2.000000e+00 " +string.format("%0# -20.6e", -2) == "-2.000000e+00 " +string.format("%0# -20.6e", 3) == " 3.000000e+00 " +string.format("%0# -20.6e", -3) == "-3.000000e+00 " +string.format("%0# -20.6e", nan) == " nan " +string.format("%0# -20.6e", inf) == " inf " +string.format("%0# -20.6e", -inf) == "-inf " +string.format("%0# -20.6e", 100) == " 1.000000e+02 " +string.format("%0# -20.6e", 10000) == " 1.000000e+04 " +string.format("%0# -20.6e", 100000) == " 1.000000e+05 " +string.format("%0# -20.6e", 1000000) == " 1.000000e+06 " +string.format("%0# -20.6e", 10000000) == " 1.000000e+07 " +string.format("%0# -20.6e", 0.01) == " 1.000000e-02 " +string.format("%0# -20.6e", 0.0001) == " 1.000000e-04 " +string.format("%0# -20.6e", 1e-05) == " 1.000000e-05 " +string.format("%0# -20.6e", 1e-06) == " 1.000000e-06 " +string.format("%0# -20.6e", 1e-07) == " 1.000000e-07 " +string.format("%0# -20.6e", 123.456) == " 1.234560e+02 " +string.format("%0# -20.6e", 1234560000) == " 1.234560e+09 " +string.format("%0# -20.6e", 1.23456e-05) == " 1.234560e-05 " +string.format("%0# -20.6e", 123.456789123) == " 1.234568e+02 " +string.format("%0# -20.6e", 1234567891.23) == " 1.234568e+09 " +string.format("%0# -20.6e", 1.23456789123e-05) == " 1.234568e-05 " +string.format("%0# -+e", 0) == "+0.000000e+00" +string.format("%0# -+e", 1) == "+1.000000e+00" +string.format("%0# -+e", -1) == "-1.000000e+00" +string.format("%0# -+e", 2) == "+2.000000e+00" +string.format("%0# -+e", -2) == "-2.000000e+00" +string.format("%0# -+e", 3) == "+3.000000e+00" +string.format("%0# -+e", -3) == "-3.000000e+00" +string.format("%0# -+e", nan) == "+nan" +string.format("%0# -+e", inf) == "+inf" +string.format("%0# -+e", -inf) == "-inf" +string.format("%0# -+e", 100) == "+1.000000e+02" +string.format("%0# -+e", 10000) == "+1.000000e+04" +string.format("%0# -+e", 100000) == "+1.000000e+05" +string.format("%0# -+e", 1000000) == "+1.000000e+06" +string.format("%0# -+e", 10000000) == "+1.000000e+07" +string.format("%0# -+e", 0.01) == "+1.000000e-02" +string.format("%0# -+e", 0.0001) == "+1.000000e-04" +string.format("%0# -+e", 1e-05) == "+1.000000e-05" +string.format("%0# -+e", 1e-06) == "+1.000000e-06" +string.format("%0# -+e", 1e-07) == "+1.000000e-07" +string.format("%0# -+e", 123.456) == "+1.234560e+02" +string.format("%0# -+e", 1234560000) == "+1.234560e+09" +string.format("%0# -+e", 1.23456e-05) == "+1.234560e-05" +string.format("%0# -+e", 123.456789123) == "+1.234568e+02" +string.format("%0# -+e", 1234567891.23) == "+1.234568e+09" +string.format("%0# -+e", 1.23456789123e-05) == "+1.234568e-05" +string.format("%0# -+.0e", 0) == "+0.e+00" +string.format("%0# -+.0e", 1) == "+1.e+00" +string.format("%0# -+.0e", -1) == "-1.e+00" +string.format("%0# -+.0e", 2) == "+2.e+00" +string.format("%0# -+.0e", -2) == "-2.e+00" +string.format("%0# -+.0e", 3) == "+3.e+00" +string.format("%0# -+.0e", -3) == "-3.e+00" +string.format("%0# -+.0e", 100) == "+1.e+02" +string.format("%0# -+.0e", 10000) == "+1.e+04" +string.format("%0# -+.0e", 100000) == "+1.e+05" +string.format("%0# -+.0e", 1000000) == "+1.e+06" +string.format("%0# -+.0e", 10000000) == "+1.e+07" +string.format("%0# -+.0e", 0.01) == "+1.e-02" +string.format("%0# -+.0e", 0.0001) == "+1.e-04" +string.format("%0# -+.0e", 1e-05) == "+1.e-05" +string.format("%0# -+.0e", 1e-06) == "+1.e-06" +string.format("%0# -+.0e", 1e-07) == "+1.e-07" +string.format("%0# -+.0e", 123.456) == "+1.e+02" +string.format("%0# -+.0e", 1234560000) == "+1.e+09" +string.format("%0# -+.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# -+.0e", 123.456789123) == "+1.e+02" +string.format("%0# -+.0e", 1234567891.23) == "+1.e+09" +string.format("%0# -+.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+.1e", 0) == "+0.0e+00" +string.format("%0# -+.1e", 1) == "+1.0e+00" +string.format("%0# -+.1e", -1) == "-1.0e+00" +string.format("%0# -+.1e", 2) == "+2.0e+00" +string.format("%0# -+.1e", -2) == "-2.0e+00" +string.format("%0# -+.1e", 3) == "+3.0e+00" +string.format("%0# -+.1e", -3) == "-3.0e+00" +string.format("%0# -+.1e", 100) == "+1.0e+02" +string.format("%0# -+.1e", 10000) == "+1.0e+04" +string.format("%0# -+.1e", 100000) == "+1.0e+05" +string.format("%0# -+.1e", 1000000) == "+1.0e+06" +string.format("%0# -+.1e", 10000000) == "+1.0e+07" +string.format("%0# -+.1e", 0.01) == "+1.0e-02" +string.format("%0# -+.1e", 0.0001) == "+1.0e-04" +string.format("%0# -+.1e", 1e-05) == "+1.0e-05" +string.format("%0# -+.1e", 1e-06) == "+1.0e-06" +string.format("%0# -+.1e", 1e-07) == "+1.0e-07" +string.format("%0# -+.1e", 123.456) == "+1.2e+02" +string.format("%0# -+.1e", 1234560000) == "+1.2e+09" +string.format("%0# -+.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# -+.1e", 123.456789123) == "+1.2e+02" +string.format("%0# -+.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# -+.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# -+1.0e", 0) == "+0.e+00" +string.format("%0# -+1.0e", 1) == "+1.e+00" +string.format("%0# -+1.0e", -1) == "-1.e+00" +string.format("%0# -+1.0e", 2) == "+2.e+00" +string.format("%0# -+1.0e", -2) == "-2.e+00" +string.format("%0# -+1.0e", 3) == "+3.e+00" +string.format("%0# -+1.0e", -3) == "-3.e+00" +string.format("%0# -+1.0e", 100) == "+1.e+02" +string.format("%0# -+1.0e", 10000) == "+1.e+04" +string.format("%0# -+1.0e", 100000) == "+1.e+05" +string.format("%0# -+1.0e", 1000000) == "+1.e+06" +string.format("%0# -+1.0e", 10000000) == "+1.e+07" +string.format("%0# -+1.0e", 0.01) == "+1.e-02" +string.format("%0# -+1.0e", 0.0001) == "+1.e-04" +string.format("%0# -+1.0e", 1e-05) == "+1.e-05" +string.format("%0# -+1.0e", 1e-06) == "+1.e-06" +string.format("%0# -+1.0e", 1e-07) == "+1.e-07" +string.format("%0# -+1.0e", 123.456) == "+1.e+02" +string.format("%0# -+1.0e", 1234560000) == "+1.e+09" +string.format("%0# -+1.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# -+1.0e", 123.456789123) == "+1.e+02" +string.format("%0# -+1.0e", 1234567891.23) == "+1.e+09" +string.format("%0# -+1.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+1.1e", 0) == "+0.0e+00" +string.format("%0# -+1.1e", 1) == "+1.0e+00" +string.format("%0# -+1.1e", -1) == "-1.0e+00" +string.format("%0# -+1.1e", 2) == "+2.0e+00" +string.format("%0# -+1.1e", -2) == "-2.0e+00" +string.format("%0# -+1.1e", 3) == "+3.0e+00" +string.format("%0# -+1.1e", -3) == "-3.0e+00" +string.format("%0# -+1.1e", 100) == "+1.0e+02" +string.format("%0# -+1.1e", 10000) == "+1.0e+04" +string.format("%0# -+1.1e", 100000) == "+1.0e+05" +string.format("%0# -+1.1e", 1000000) == "+1.0e+06" +string.format("%0# -+1.1e", 10000000) == "+1.0e+07" +string.format("%0# -+1.1e", 0.01) == "+1.0e-02" +string.format("%0# -+1.1e", 0.0001) == "+1.0e-04" +string.format("%0# -+1.1e", 1e-05) == "+1.0e-05" +string.format("%0# -+1.1e", 1e-06) == "+1.0e-06" +string.format("%0# -+1.1e", 1e-07) == "+1.0e-07" +string.format("%0# -+1.1e", 123.456) == "+1.2e+02" +string.format("%0# -+1.1e", 1234560000) == "+1.2e+09" +string.format("%0# -+1.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# -+1.1e", 123.456789123) == "+1.2e+02" +string.format("%0# -+1.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# -+1.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# -+2.0e", 0) == "+0.e+00" +string.format("%0# -+2.0e", 1) == "+1.e+00" +string.format("%0# -+2.0e", -1) == "-1.e+00" +string.format("%0# -+2.0e", 2) == "+2.e+00" +string.format("%0# -+2.0e", -2) == "-2.e+00" +string.format("%0# -+2.0e", 3) == "+3.e+00" +string.format("%0# -+2.0e", -3) == "-3.e+00" +string.format("%0# -+2.0e", 100) == "+1.e+02" +string.format("%0# -+2.0e", 10000) == "+1.e+04" +string.format("%0# -+2.0e", 100000) == "+1.e+05" +string.format("%0# -+2.0e", 1000000) == "+1.e+06" +string.format("%0# -+2.0e", 10000000) == "+1.e+07" +string.format("%0# -+2.0e", 0.01) == "+1.e-02" +string.format("%0# -+2.0e", 0.0001) == "+1.e-04" +string.format("%0# -+2.0e", 1e-05) == "+1.e-05" +string.format("%0# -+2.0e", 1e-06) == "+1.e-06" +string.format("%0# -+2.0e", 1e-07) == "+1.e-07" +string.format("%0# -+2.0e", 123.456) == "+1.e+02" +string.format("%0# -+2.0e", 1234560000) == "+1.e+09" +string.format("%0# -+2.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# -+2.0e", 123.456789123) == "+1.e+02" +string.format("%0# -+2.0e", 1234567891.23) == "+1.e+09" +string.format("%0# -+2.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+2.1e", 0) == "+0.0e+00" +string.format("%0# -+2.1e", 1) == "+1.0e+00" +string.format("%0# -+2.1e", -1) == "-1.0e+00" +string.format("%0# -+2.1e", 2) == "+2.0e+00" +string.format("%0# -+2.1e", -2) == "-2.0e+00" +string.format("%0# -+2.1e", 3) == "+3.0e+00" +string.format("%0# -+2.1e", -3) == "-3.0e+00" +string.format("%0# -+2.1e", 100) == "+1.0e+02" +string.format("%0# -+2.1e", 10000) == "+1.0e+04" +string.format("%0# -+2.1e", 100000) == "+1.0e+05" +string.format("%0# -+2.1e", 1000000) == "+1.0e+06" +string.format("%0# -+2.1e", 10000000) == "+1.0e+07" +string.format("%0# -+2.1e", 0.01) == "+1.0e-02" +string.format("%0# -+2.1e", 0.0001) == "+1.0e-04" +string.format("%0# -+2.1e", 1e-05) == "+1.0e-05" +string.format("%0# -+2.1e", 1e-06) == "+1.0e-06" +string.format("%0# -+2.1e", 1e-07) == "+1.0e-07" +string.format("%0# -+2.1e", 123.456) == "+1.2e+02" +string.format("%0# -+2.1e", 1234560000) == "+1.2e+09" +string.format("%0# -+2.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# -+2.1e", 123.456789123) == "+1.2e+02" +string.format("%0# -+2.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# -+2.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# -+6e", nan) == "+nan " +string.format("%0# -+6e", inf) == "+inf " +string.format("%0# -+6e", -inf) == "-inf " +string.format("%0# -+6.0e", 0) == "+0.e+00" +string.format("%0# -+6.0e", 1) == "+1.e+00" +string.format("%0# -+6.0e", -1) == "-1.e+00" +string.format("%0# -+6.0e", 2) == "+2.e+00" +string.format("%0# -+6.0e", -2) == "-2.e+00" +string.format("%0# -+6.0e", 3) == "+3.e+00" +string.format("%0# -+6.0e", -3) == "-3.e+00" +string.format("%0# -+6.0e", nan) == "+nan " +string.format("%0# -+6.0e", inf) == "+inf " +string.format("%0# -+6.0e", -inf) == "-inf " +string.format("%0# -+6.0e", 100) == "+1.e+02" +string.format("%0# -+6.0e", 10000) == "+1.e+04" +string.format("%0# -+6.0e", 100000) == "+1.e+05" +string.format("%0# -+6.0e", 1000000) == "+1.e+06" +string.format("%0# -+6.0e", 10000000) == "+1.e+07" +string.format("%0# -+6.0e", 0.01) == "+1.e-02" +string.format("%0# -+6.0e", 0.0001) == "+1.e-04" +string.format("%0# -+6.0e", 1e-05) == "+1.e-05" +string.format("%0# -+6.0e", 1e-06) == "+1.e-06" +string.format("%0# -+6.0e", 1e-07) == "+1.e-07" +string.format("%0# -+6.0e", 123.456) == "+1.e+02" +string.format("%0# -+6.0e", 1234560000) == "+1.e+09" +string.format("%0# -+6.0e", 1.23456e-05) == "+1.e-05" +string.format("%0# -+6.0e", 123.456789123) == "+1.e+02" +string.format("%0# -+6.0e", 1234567891.23) == "+1.e+09" +string.format("%0# -+6.0e", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+6.1e", 0) == "+0.0e+00" +string.format("%0# -+6.1e", 1) == "+1.0e+00" +string.format("%0# -+6.1e", -1) == "-1.0e+00" +string.format("%0# -+6.1e", 2) == "+2.0e+00" +string.format("%0# -+6.1e", -2) == "-2.0e+00" +string.format("%0# -+6.1e", 3) == "+3.0e+00" +string.format("%0# -+6.1e", -3) == "-3.0e+00" +string.format("%0# -+6.1e", nan) == "+nan " +string.format("%0# -+6.1e", inf) == "+inf " +string.format("%0# -+6.1e", -inf) == "-inf " +string.format("%0# -+6.1e", 100) == "+1.0e+02" +string.format("%0# -+6.1e", 10000) == "+1.0e+04" +string.format("%0# -+6.1e", 100000) == "+1.0e+05" +string.format("%0# -+6.1e", 1000000) == "+1.0e+06" +string.format("%0# -+6.1e", 10000000) == "+1.0e+07" +string.format("%0# -+6.1e", 0.01) == "+1.0e-02" +string.format("%0# -+6.1e", 0.0001) == "+1.0e-04" +string.format("%0# -+6.1e", 1e-05) == "+1.0e-05" +string.format("%0# -+6.1e", 1e-06) == "+1.0e-06" +string.format("%0# -+6.1e", 1e-07) == "+1.0e-07" +string.format("%0# -+6.1e", 123.456) == "+1.2e+02" +string.format("%0# -+6.1e", 1234560000) == "+1.2e+09" +string.format("%0# -+6.1e", 1.23456e-05) == "+1.2e-05" +string.format("%0# -+6.1e", 123.456789123) == "+1.2e+02" +string.format("%0# -+6.1e", 1234567891.23) == "+1.2e+09" +string.format("%0# -+6.1e", 1.23456789123e-05) == "+1.2e-05" +string.format("%0# -+6.6e", nan) == "+nan " +string.format("%0# -+6.6e", inf) == "+inf " +string.format("%0# -+6.6e", -inf) == "-inf " +string.format("%0# -+20e", 0) == "+0.000000e+00 " +string.format("%0# -+20e", 1) == "+1.000000e+00 " +string.format("%0# -+20e", -1) == "-1.000000e+00 " +string.format("%0# -+20e", 2) == "+2.000000e+00 " +string.format("%0# -+20e", -2) == "-2.000000e+00 " +string.format("%0# -+20e", 3) == "+3.000000e+00 " +string.format("%0# -+20e", -3) == "-3.000000e+00 " +string.format("%0# -+20e", nan) == "+nan " +string.format("%0# -+20e", inf) == "+inf " +string.format("%0# -+20e", -inf) == "-inf " +string.format("%0# -+20e", 100) == "+1.000000e+02 " +string.format("%0# -+20e", 10000) == "+1.000000e+04 " +string.format("%0# -+20e", 100000) == "+1.000000e+05 " +string.format("%0# -+20e", 1000000) == "+1.000000e+06 " +string.format("%0# -+20e", 10000000) == "+1.000000e+07 " +string.format("%0# -+20e", 0.01) == "+1.000000e-02 " +string.format("%0# -+20e", 0.0001) == "+1.000000e-04 " +string.format("%0# -+20e", 1e-05) == "+1.000000e-05 " +string.format("%0# -+20e", 1e-06) == "+1.000000e-06 " +string.format("%0# -+20e", 1e-07) == "+1.000000e-07 " +string.format("%0# -+20e", 123.456) == "+1.234560e+02 " +string.format("%0# -+20e", 1234560000) == "+1.234560e+09 " +string.format("%0# -+20e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0# -+20e", 123.456789123) == "+1.234568e+02 " +string.format("%0# -+20e", 1234567891.23) == "+1.234568e+09 " +string.format("%0# -+20e", 1.23456789123e-05) == "+1.234568e-05 " +string.format("%0# -+20.0e", 0) == "+0.e+00 " +string.format("%0# -+20.0e", 1) == "+1.e+00 " +string.format("%0# -+20.0e", -1) == "-1.e+00 " +string.format("%0# -+20.0e", 2) == "+2.e+00 " +string.format("%0# -+20.0e", -2) == "-2.e+00 " +string.format("%0# -+20.0e", 3) == "+3.e+00 " +string.format("%0# -+20.0e", -3) == "-3.e+00 " +string.format("%0# -+20.0e", nan) == "+nan " +string.format("%0# -+20.0e", inf) == "+inf " +string.format("%0# -+20.0e", -inf) == "-inf " +string.format("%0# -+20.0e", 100) == "+1.e+02 " +string.format("%0# -+20.0e", 10000) == "+1.e+04 " +string.format("%0# -+20.0e", 100000) == "+1.e+05 " +string.format("%0# -+20.0e", 1000000) == "+1.e+06 " +string.format("%0# -+20.0e", 10000000) == "+1.e+07 " +string.format("%0# -+20.0e", 0.01) == "+1.e-02 " +string.format("%0# -+20.0e", 0.0001) == "+1.e-04 " +string.format("%0# -+20.0e", 1e-05) == "+1.e-05 " +string.format("%0# -+20.0e", 1e-06) == "+1.e-06 " +string.format("%0# -+20.0e", 1e-07) == "+1.e-07 " +string.format("%0# -+20.0e", 123.456) == "+1.e+02 " +string.format("%0# -+20.0e", 1234560000) == "+1.e+09 " +string.format("%0# -+20.0e", 1.23456e-05) == "+1.e-05 " +string.format("%0# -+20.0e", 123.456789123) == "+1.e+02 " +string.format("%0# -+20.0e", 1234567891.23) == "+1.e+09 " +string.format("%0# -+20.0e", 1.23456789123e-05) == "+1.e-05 " +string.format("%0# -+20.1e", 0) == "+0.0e+00 " +string.format("%0# -+20.1e", 1) == "+1.0e+00 " +string.format("%0# -+20.1e", -1) == "-1.0e+00 " +string.format("%0# -+20.1e", 2) == "+2.0e+00 " +string.format("%0# -+20.1e", -2) == "-2.0e+00 " +string.format("%0# -+20.1e", 3) == "+3.0e+00 " +string.format("%0# -+20.1e", -3) == "-3.0e+00 " +string.format("%0# -+20.1e", nan) == "+nan " +string.format("%0# -+20.1e", inf) == "+inf " +string.format("%0# -+20.1e", -inf) == "-inf " +string.format("%0# -+20.1e", 100) == "+1.0e+02 " +string.format("%0# -+20.1e", 10000) == "+1.0e+04 " +string.format("%0# -+20.1e", 100000) == "+1.0e+05 " +string.format("%0# -+20.1e", 1000000) == "+1.0e+06 " +string.format("%0# -+20.1e", 10000000) == "+1.0e+07 " +string.format("%0# -+20.1e", 0.01) == "+1.0e-02 " +string.format("%0# -+20.1e", 0.0001) == "+1.0e-04 " +string.format("%0# -+20.1e", 1e-05) == "+1.0e-05 " +string.format("%0# -+20.1e", 1e-06) == "+1.0e-06 " +string.format("%0# -+20.1e", 1e-07) == "+1.0e-07 " +string.format("%0# -+20.1e", 123.456) == "+1.2e+02 " +string.format("%0# -+20.1e", 1234560000) == "+1.2e+09 " +string.format("%0# -+20.1e", 1.23456e-05) == "+1.2e-05 " +string.format("%0# -+20.1e", 123.456789123) == "+1.2e+02 " +string.format("%0# -+20.1e", 1234567891.23) == "+1.2e+09 " +string.format("%0# -+20.1e", 1.23456789123e-05) == "+1.2e-05 " +string.format("%0# -+20.6e", 0) == "+0.000000e+00 " +string.format("%0# -+20.6e", 1) == "+1.000000e+00 " +string.format("%0# -+20.6e", -1) == "-1.000000e+00 " +string.format("%0# -+20.6e", 2) == "+2.000000e+00 " +string.format("%0# -+20.6e", -2) == "-2.000000e+00 " +string.format("%0# -+20.6e", 3) == "+3.000000e+00 " +string.format("%0# -+20.6e", -3) == "-3.000000e+00 " +string.format("%0# -+20.6e", nan) == "+nan " +string.format("%0# -+20.6e", inf) == "+inf " +string.format("%0# -+20.6e", -inf) == "-inf " +string.format("%0# -+20.6e", 100) == "+1.000000e+02 " +string.format("%0# -+20.6e", 10000) == "+1.000000e+04 " +string.format("%0# -+20.6e", 100000) == "+1.000000e+05 " +string.format("%0# -+20.6e", 1000000) == "+1.000000e+06 " +string.format("%0# -+20.6e", 10000000) == "+1.000000e+07 " +string.format("%0# -+20.6e", 0.01) == "+1.000000e-02 " +string.format("%0# -+20.6e", 0.0001) == "+1.000000e-04 " +string.format("%0# -+20.6e", 1e-05) == "+1.000000e-05 " +string.format("%0# -+20.6e", 1e-06) == "+1.000000e-06 " +string.format("%0# -+20.6e", 1e-07) == "+1.000000e-07 " +string.format("%0# -+20.6e", 123.456) == "+1.234560e+02 " +string.format("%0# -+20.6e", 1234560000) == "+1.234560e+09 " +string.format("%0# -+20.6e", 1.23456e-05) == "+1.234560e-05 " +string.format("%0# -+20.6e", 123.456789123) == "+1.234568e+02 " +string.format("%0# -+20.6e", 1234567891.23) == "+1.234568e+09 " +string.format("%0# -+20.6e", 1.23456789123e-05) == "+1.234568e-05 " += E = +string.format("%E", 0) == "0.000000E+00" +string.format("%E", 1) == "1.000000E+00" +string.format("%E", -1) == "-1.000000E+00" +string.format("%E", 2) == "2.000000E+00" +string.format("%E", -2) == "-2.000000E+00" +string.format("%E", 3) == "3.000000E+00" +string.format("%E", -3) == "-3.000000E+00" +string.format("%E", nan) == "NAN" +string.format("%E", inf) == "INF" +string.format("%E", -inf) == "-INF" +string.format("%E", 100) == "1.000000E+02" +string.format("%E", 10000) == "1.000000E+04" +string.format("%E", 100000) == "1.000000E+05" +string.format("%E", 1000000) == "1.000000E+06" +string.format("%E", 10000000) == "1.000000E+07" +string.format("%E", 0.01) == "1.000000E-02" +string.format("%E", 0.0001) == "1.000000E-04" +string.format("%E", 1e-05) == "1.000000E-05" +string.format("%E", 1e-06) == "1.000000E-06" +string.format("%E", 1e-07) == "1.000000E-07" +string.format("%E", 123.456) == "1.234560E+02" +string.format("%E", 1234560000) == "1.234560E+09" +string.format("%E", 1.23456e-05) == "1.234560E-05" +string.format("%E", 123.456789123) == "1.234568E+02" +string.format("%E", 1234567891.23) == "1.234568E+09" +string.format("%E", 1.23456789123e-05) == "1.234568E-05" +string.format("%.0E", 0) == "0E+00" +string.format("%.0E", 1) == "1E+00" +string.format("%.0E", -1) == "-1E+00" +string.format("%.0E", 2) == "2E+00" +string.format("%.0E", -2) == "-2E+00" +string.format("%.0E", 3) == "3E+00" +string.format("%.0E", -3) == "-3E+00" +string.format("%.0E", 100) == "1E+02" +string.format("%.0E", 10000) == "1E+04" +string.format("%.0E", 100000) == "1E+05" +string.format("%.0E", 1000000) == "1E+06" +string.format("%.0E", 10000000) == "1E+07" +string.format("%.0E", 0.01) == "1E-02" +string.format("%.0E", 0.0001) == "1E-04" +string.format("%.0E", 1e-05) == "1E-05" +string.format("%.0E", 1e-06) == "1E-06" +string.format("%.0E", 1e-07) == "1E-07" +string.format("%.0E", 123.456) == "1E+02" +string.format("%.0E", 1234560000) == "1E+09" +string.format("%.0E", 1.23456e-05) == "1E-05" +string.format("%.0E", 123.456789123) == "1E+02" +string.format("%.0E", 1234567891.23) == "1E+09" +string.format("%.0E", 1.23456789123e-05) == "1E-05" +string.format("%.1E", 0) == "0.0E+00" +string.format("%.1E", 1) == "1.0E+00" +string.format("%.1E", -1) == "-1.0E+00" +string.format("%.1E", 2) == "2.0E+00" +string.format("%.1E", -2) == "-2.0E+00" +string.format("%.1E", 3) == "3.0E+00" +string.format("%.1E", -3) == "-3.0E+00" +string.format("%.1E", 100) == "1.0E+02" +string.format("%.1E", 10000) == "1.0E+04" +string.format("%.1E", 100000) == "1.0E+05" +string.format("%.1E", 1000000) == "1.0E+06" +string.format("%.1E", 10000000) == "1.0E+07" +string.format("%.1E", 0.01) == "1.0E-02" +string.format("%.1E", 0.0001) == "1.0E-04" +string.format("%.1E", 1e-05) == "1.0E-05" +string.format("%.1E", 1e-06) == "1.0E-06" +string.format("%.1E", 1e-07) == "1.0E-07" +string.format("%.1E", 123.456) == "1.2E+02" +string.format("%.1E", 1234560000) == "1.2E+09" +string.format("%.1E", 1.23456e-05) == "1.2E-05" +string.format("%.1E", 123.456789123) == "1.2E+02" +string.format("%.1E", 1234567891.23) == "1.2E+09" +string.format("%.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%1.0E", 0) == "0E+00" +string.format("%1.0E", 1) == "1E+00" +string.format("%1.0E", -1) == "-1E+00" +string.format("%1.0E", 2) == "2E+00" +string.format("%1.0E", -2) == "-2E+00" +string.format("%1.0E", 3) == "3E+00" +string.format("%1.0E", -3) == "-3E+00" +string.format("%1.0E", 100) == "1E+02" +string.format("%1.0E", 10000) == "1E+04" +string.format("%1.0E", 100000) == "1E+05" +string.format("%1.0E", 1000000) == "1E+06" +string.format("%1.0E", 10000000) == "1E+07" +string.format("%1.0E", 0.01) == "1E-02" +string.format("%1.0E", 0.0001) == "1E-04" +string.format("%1.0E", 1e-05) == "1E-05" +string.format("%1.0E", 1e-06) == "1E-06" +string.format("%1.0E", 1e-07) == "1E-07" +string.format("%1.0E", 123.456) == "1E+02" +string.format("%1.0E", 1234560000) == "1E+09" +string.format("%1.0E", 1.23456e-05) == "1E-05" +string.format("%1.0E", 123.456789123) == "1E+02" +string.format("%1.0E", 1234567891.23) == "1E+09" +string.format("%1.0E", 1.23456789123e-05) == "1E-05" +string.format("%1.1E", 0) == "0.0E+00" +string.format("%1.1E", 1) == "1.0E+00" +string.format("%1.1E", -1) == "-1.0E+00" +string.format("%1.1E", 2) == "2.0E+00" +string.format("%1.1E", -2) == "-2.0E+00" +string.format("%1.1E", 3) == "3.0E+00" +string.format("%1.1E", -3) == "-3.0E+00" +string.format("%1.1E", 100) == "1.0E+02" +string.format("%1.1E", 10000) == "1.0E+04" +string.format("%1.1E", 100000) == "1.0E+05" +string.format("%1.1E", 1000000) == "1.0E+06" +string.format("%1.1E", 10000000) == "1.0E+07" +string.format("%1.1E", 0.01) == "1.0E-02" +string.format("%1.1E", 0.0001) == "1.0E-04" +string.format("%1.1E", 1e-05) == "1.0E-05" +string.format("%1.1E", 1e-06) == "1.0E-06" +string.format("%1.1E", 1e-07) == "1.0E-07" +string.format("%1.1E", 123.456) == "1.2E+02" +string.format("%1.1E", 1234560000) == "1.2E+09" +string.format("%1.1E", 1.23456e-05) == "1.2E-05" +string.format("%1.1E", 123.456789123) == "1.2E+02" +string.format("%1.1E", 1234567891.23) == "1.2E+09" +string.format("%1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%2.0E", 0) == "0E+00" +string.format("%2.0E", 1) == "1E+00" +string.format("%2.0E", -1) == "-1E+00" +string.format("%2.0E", 2) == "2E+00" +string.format("%2.0E", -2) == "-2E+00" +string.format("%2.0E", 3) == "3E+00" +string.format("%2.0E", -3) == "-3E+00" +string.format("%2.0E", 100) == "1E+02" +string.format("%2.0E", 10000) == "1E+04" +string.format("%2.0E", 100000) == "1E+05" +string.format("%2.0E", 1000000) == "1E+06" +string.format("%2.0E", 10000000) == "1E+07" +string.format("%2.0E", 0.01) == "1E-02" +string.format("%2.0E", 0.0001) == "1E-04" +string.format("%2.0E", 1e-05) == "1E-05" +string.format("%2.0E", 1e-06) == "1E-06" +string.format("%2.0E", 1e-07) == "1E-07" +string.format("%2.0E", 123.456) == "1E+02" +string.format("%2.0E", 1234560000) == "1E+09" +string.format("%2.0E", 1.23456e-05) == "1E-05" +string.format("%2.0E", 123.456789123) == "1E+02" +string.format("%2.0E", 1234567891.23) == "1E+09" +string.format("%2.0E", 1.23456789123e-05) == "1E-05" +string.format("%2.1E", 0) == "0.0E+00" +string.format("%2.1E", 1) == "1.0E+00" +string.format("%2.1E", -1) == "-1.0E+00" +string.format("%2.1E", 2) == "2.0E+00" +string.format("%2.1E", -2) == "-2.0E+00" +string.format("%2.1E", 3) == "3.0E+00" +string.format("%2.1E", -3) == "-3.0E+00" +string.format("%2.1E", 100) == "1.0E+02" +string.format("%2.1E", 10000) == "1.0E+04" +string.format("%2.1E", 100000) == "1.0E+05" +string.format("%2.1E", 1000000) == "1.0E+06" +string.format("%2.1E", 10000000) == "1.0E+07" +string.format("%2.1E", 0.01) == "1.0E-02" +string.format("%2.1E", 0.0001) == "1.0E-04" +string.format("%2.1E", 1e-05) == "1.0E-05" +string.format("%2.1E", 1e-06) == "1.0E-06" +string.format("%2.1E", 1e-07) == "1.0E-07" +string.format("%2.1E", 123.456) == "1.2E+02" +string.format("%2.1E", 1234560000) == "1.2E+09" +string.format("%2.1E", 1.23456e-05) == "1.2E-05" +string.format("%2.1E", 123.456789123) == "1.2E+02" +string.format("%2.1E", 1234567891.23) == "1.2E+09" +string.format("%2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%6E", nan) == " NAN" +string.format("%6E", inf) == " INF" +string.format("%6E", -inf) == " -INF" +string.format("%6.0E", 0) == " 0E+00" +string.format("%6.0E", 1) == " 1E+00" +string.format("%6.0E", -1) == "-1E+00" +string.format("%6.0E", 2) == " 2E+00" +string.format("%6.0E", -2) == "-2E+00" +string.format("%6.0E", 3) == " 3E+00" +string.format("%6.0E", -3) == "-3E+00" +string.format("%6.0E", nan) == " NAN" +string.format("%6.0E", inf) == " INF" +string.format("%6.0E", -inf) == " -INF" +string.format("%6.0E", 100) == " 1E+02" +string.format("%6.0E", 10000) == " 1E+04" +string.format("%6.0E", 100000) == " 1E+05" +string.format("%6.0E", 1000000) == " 1E+06" +string.format("%6.0E", 10000000) == " 1E+07" +string.format("%6.0E", 0.01) == " 1E-02" +string.format("%6.0E", 0.0001) == " 1E-04" +string.format("%6.0E", 1e-05) == " 1E-05" +string.format("%6.0E", 1e-06) == " 1E-06" +string.format("%6.0E", 1e-07) == " 1E-07" +string.format("%6.0E", 123.456) == " 1E+02" +string.format("%6.0E", 1234560000) == " 1E+09" +string.format("%6.0E", 1.23456e-05) == " 1E-05" +string.format("%6.0E", 123.456789123) == " 1E+02" +string.format("%6.0E", 1234567891.23) == " 1E+09" +string.format("%6.0E", 1.23456789123e-05) == " 1E-05" +string.format("%6.1E", 0) == "0.0E+00" +string.format("%6.1E", 1) == "1.0E+00" +string.format("%6.1E", -1) == "-1.0E+00" +string.format("%6.1E", 2) == "2.0E+00" +string.format("%6.1E", -2) == "-2.0E+00" +string.format("%6.1E", 3) == "3.0E+00" +string.format("%6.1E", -3) == "-3.0E+00" +string.format("%6.1E", nan) == " NAN" +string.format("%6.1E", inf) == " INF" +string.format("%6.1E", -inf) == " -INF" +string.format("%6.1E", 100) == "1.0E+02" +string.format("%6.1E", 10000) == "1.0E+04" +string.format("%6.1E", 100000) == "1.0E+05" +string.format("%6.1E", 1000000) == "1.0E+06" +string.format("%6.1E", 10000000) == "1.0E+07" +string.format("%6.1E", 0.01) == "1.0E-02" +string.format("%6.1E", 0.0001) == "1.0E-04" +string.format("%6.1E", 1e-05) == "1.0E-05" +string.format("%6.1E", 1e-06) == "1.0E-06" +string.format("%6.1E", 1e-07) == "1.0E-07" +string.format("%6.1E", 123.456) == "1.2E+02" +string.format("%6.1E", 1234560000) == "1.2E+09" +string.format("%6.1E", 1.23456e-05) == "1.2E-05" +string.format("%6.1E", 123.456789123) == "1.2E+02" +string.format("%6.1E", 1234567891.23) == "1.2E+09" +string.format("%6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%6.6E", nan) == " NAN" +string.format("%6.6E", inf) == " INF" +string.format("%6.6E", -inf) == " -INF" +string.format("%20E", 0) == " 0.000000E+00" +string.format("%20E", 1) == " 1.000000E+00" +string.format("%20E", -1) == " -1.000000E+00" +string.format("%20E", 2) == " 2.000000E+00" +string.format("%20E", -2) == " -2.000000E+00" +string.format("%20E", 3) == " 3.000000E+00" +string.format("%20E", -3) == " -3.000000E+00" +string.format("%20E", nan) == " NAN" +string.format("%20E", inf) == " INF" +string.format("%20E", -inf) == " -INF" +string.format("%20E", 100) == " 1.000000E+02" +string.format("%20E", 10000) == " 1.000000E+04" +string.format("%20E", 100000) == " 1.000000E+05" +string.format("%20E", 1000000) == " 1.000000E+06" +string.format("%20E", 10000000) == " 1.000000E+07" +string.format("%20E", 0.01) == " 1.000000E-02" +string.format("%20E", 0.0001) == " 1.000000E-04" +string.format("%20E", 1e-05) == " 1.000000E-05" +string.format("%20E", 1e-06) == " 1.000000E-06" +string.format("%20E", 1e-07) == " 1.000000E-07" +string.format("%20E", 123.456) == " 1.234560E+02" +string.format("%20E", 1234560000) == " 1.234560E+09" +string.format("%20E", 1.23456e-05) == " 1.234560E-05" +string.format("%20E", 123.456789123) == " 1.234568E+02" +string.format("%20E", 1234567891.23) == " 1.234568E+09" +string.format("%20E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%20.0E", 0) == " 0E+00" +string.format("%20.0E", 1) == " 1E+00" +string.format("%20.0E", -1) == " -1E+00" +string.format("%20.0E", 2) == " 2E+00" +string.format("%20.0E", -2) == " -2E+00" +string.format("%20.0E", 3) == " 3E+00" +string.format("%20.0E", -3) == " -3E+00" +string.format("%20.0E", nan) == " NAN" +string.format("%20.0E", inf) == " INF" +string.format("%20.0E", -inf) == " -INF" +string.format("%20.0E", 100) == " 1E+02" +string.format("%20.0E", 10000) == " 1E+04" +string.format("%20.0E", 100000) == " 1E+05" +string.format("%20.0E", 1000000) == " 1E+06" +string.format("%20.0E", 10000000) == " 1E+07" +string.format("%20.0E", 0.01) == " 1E-02" +string.format("%20.0E", 0.0001) == " 1E-04" +string.format("%20.0E", 1e-05) == " 1E-05" +string.format("%20.0E", 1e-06) == " 1E-06" +string.format("%20.0E", 1e-07) == " 1E-07" +string.format("%20.0E", 123.456) == " 1E+02" +string.format("%20.0E", 1234560000) == " 1E+09" +string.format("%20.0E", 1.23456e-05) == " 1E-05" +string.format("%20.0E", 123.456789123) == " 1E+02" +string.format("%20.0E", 1234567891.23) == " 1E+09" +string.format("%20.0E", 1.23456789123e-05) == " 1E-05" +string.format("%20.1E", 0) == " 0.0E+00" +string.format("%20.1E", 1) == " 1.0E+00" +string.format("%20.1E", -1) == " -1.0E+00" +string.format("%20.1E", 2) == " 2.0E+00" +string.format("%20.1E", -2) == " -2.0E+00" +string.format("%20.1E", 3) == " 3.0E+00" +string.format("%20.1E", -3) == " -3.0E+00" +string.format("%20.1E", nan) == " NAN" +string.format("%20.1E", inf) == " INF" +string.format("%20.1E", -inf) == " -INF" +string.format("%20.1E", 100) == " 1.0E+02" +string.format("%20.1E", 10000) == " 1.0E+04" +string.format("%20.1E", 100000) == " 1.0E+05" +string.format("%20.1E", 1000000) == " 1.0E+06" +string.format("%20.1E", 10000000) == " 1.0E+07" +string.format("%20.1E", 0.01) == " 1.0E-02" +string.format("%20.1E", 0.0001) == " 1.0E-04" +string.format("%20.1E", 1e-05) == " 1.0E-05" +string.format("%20.1E", 1e-06) == " 1.0E-06" +string.format("%20.1E", 1e-07) == " 1.0E-07" +string.format("%20.1E", 123.456) == " 1.2E+02" +string.format("%20.1E", 1234560000) == " 1.2E+09" +string.format("%20.1E", 1.23456e-05) == " 1.2E-05" +string.format("%20.1E", 123.456789123) == " 1.2E+02" +string.format("%20.1E", 1234567891.23) == " 1.2E+09" +string.format("%20.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%20.6E", 0) == " 0.000000E+00" +string.format("%20.6E", 1) == " 1.000000E+00" +string.format("%20.6E", -1) == " -1.000000E+00" +string.format("%20.6E", 2) == " 2.000000E+00" +string.format("%20.6E", -2) == " -2.000000E+00" +string.format("%20.6E", 3) == " 3.000000E+00" +string.format("%20.6E", -3) == " -3.000000E+00" +string.format("%20.6E", nan) == " NAN" +string.format("%20.6E", inf) == " INF" +string.format("%20.6E", -inf) == " -INF" +string.format("%20.6E", 100) == " 1.000000E+02" +string.format("%20.6E", 10000) == " 1.000000E+04" +string.format("%20.6E", 100000) == " 1.000000E+05" +string.format("%20.6E", 1000000) == " 1.000000E+06" +string.format("%20.6E", 10000000) == " 1.000000E+07" +string.format("%20.6E", 0.01) == " 1.000000E-02" +string.format("%20.6E", 0.0001) == " 1.000000E-04" +string.format("%20.6E", 1e-05) == " 1.000000E-05" +string.format("%20.6E", 1e-06) == " 1.000000E-06" +string.format("%20.6E", 1e-07) == " 1.000000E-07" +string.format("%20.6E", 123.456) == " 1.234560E+02" +string.format("%20.6E", 1234560000) == " 1.234560E+09" +string.format("%20.6E", 1.23456e-05) == " 1.234560E-05" +string.format("%20.6E", 123.456789123) == " 1.234568E+02" +string.format("%20.6E", 1234567891.23) == " 1.234568E+09" +string.format("%20.6E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%+E", 0) == "+0.000000E+00" +string.format("%+E", 1) == "+1.000000E+00" +string.format("%+E", -1) == "-1.000000E+00" +string.format("%+E", 2) == "+2.000000E+00" +string.format("%+E", -2) == "-2.000000E+00" +string.format("%+E", 3) == "+3.000000E+00" +string.format("%+E", -3) == "-3.000000E+00" +string.format("%+E", nan) == "+NAN" +string.format("%+E", inf) == "+INF" +string.format("%+E", -inf) == "-INF" +string.format("%+E", 100) == "+1.000000E+02" +string.format("%+E", 10000) == "+1.000000E+04" +string.format("%+E", 100000) == "+1.000000E+05" +string.format("%+E", 1000000) == "+1.000000E+06" +string.format("%+E", 10000000) == "+1.000000E+07" +string.format("%+E", 0.01) == "+1.000000E-02" +string.format("%+E", 0.0001) == "+1.000000E-04" +string.format("%+E", 1e-05) == "+1.000000E-05" +string.format("%+E", 1e-06) == "+1.000000E-06" +string.format("%+E", 1e-07) == "+1.000000E-07" +string.format("%+E", 123.456) == "+1.234560E+02" +string.format("%+E", 1234560000) == "+1.234560E+09" +string.format("%+E", 1.23456e-05) == "+1.234560E-05" +string.format("%+E", 123.456789123) == "+1.234568E+02" +string.format("%+E", 1234567891.23) == "+1.234568E+09" +string.format("%+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%+.0E", 0) == "+0E+00" +string.format("%+.0E", 1) == "+1E+00" +string.format("%+.0E", -1) == "-1E+00" +string.format("%+.0E", 2) == "+2E+00" +string.format("%+.0E", -2) == "-2E+00" +string.format("%+.0E", 3) == "+3E+00" +string.format("%+.0E", -3) == "-3E+00" +string.format("%+.0E", 100) == "+1E+02" +string.format("%+.0E", 10000) == "+1E+04" +string.format("%+.0E", 100000) == "+1E+05" +string.format("%+.0E", 1000000) == "+1E+06" +string.format("%+.0E", 10000000) == "+1E+07" +string.format("%+.0E", 0.01) == "+1E-02" +string.format("%+.0E", 0.0001) == "+1E-04" +string.format("%+.0E", 1e-05) == "+1E-05" +string.format("%+.0E", 1e-06) == "+1E-06" +string.format("%+.0E", 1e-07) == "+1E-07" +string.format("%+.0E", 123.456) == "+1E+02" +string.format("%+.0E", 1234560000) == "+1E+09" +string.format("%+.0E", 1.23456e-05) == "+1E-05" +string.format("%+.0E", 123.456789123) == "+1E+02" +string.format("%+.0E", 1234567891.23) == "+1E+09" +string.format("%+.0E", 1.23456789123e-05) == "+1E-05" +string.format("%+.1E", 0) == "+0.0E+00" +string.format("%+.1E", 1) == "+1.0E+00" +string.format("%+.1E", -1) == "-1.0E+00" +string.format("%+.1E", 2) == "+2.0E+00" +string.format("%+.1E", -2) == "-2.0E+00" +string.format("%+.1E", 3) == "+3.0E+00" +string.format("%+.1E", -3) == "-3.0E+00" +string.format("%+.1E", 100) == "+1.0E+02" +string.format("%+.1E", 10000) == "+1.0E+04" +string.format("%+.1E", 100000) == "+1.0E+05" +string.format("%+.1E", 1000000) == "+1.0E+06" +string.format("%+.1E", 10000000) == "+1.0E+07" +string.format("%+.1E", 0.01) == "+1.0E-02" +string.format("%+.1E", 0.0001) == "+1.0E-04" +string.format("%+.1E", 1e-05) == "+1.0E-05" +string.format("%+.1E", 1e-06) == "+1.0E-06" +string.format("%+.1E", 1e-07) == "+1.0E-07" +string.format("%+.1E", 123.456) == "+1.2E+02" +string.format("%+.1E", 1234560000) == "+1.2E+09" +string.format("%+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%+.1E", 123.456789123) == "+1.2E+02" +string.format("%+.1E", 1234567891.23) == "+1.2E+09" +string.format("%+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%+1.0E", 0) == "+0E+00" +string.format("%+1.0E", 1) == "+1E+00" +string.format("%+1.0E", -1) == "-1E+00" +string.format("%+1.0E", 2) == "+2E+00" +string.format("%+1.0E", -2) == "-2E+00" +string.format("%+1.0E", 3) == "+3E+00" +string.format("%+1.0E", -3) == "-3E+00" +string.format("%+1.0E", 100) == "+1E+02" +string.format("%+1.0E", 10000) == "+1E+04" +string.format("%+1.0E", 100000) == "+1E+05" +string.format("%+1.0E", 1000000) == "+1E+06" +string.format("%+1.0E", 10000000) == "+1E+07" +string.format("%+1.0E", 0.01) == "+1E-02" +string.format("%+1.0E", 0.0001) == "+1E-04" +string.format("%+1.0E", 1e-05) == "+1E-05" +string.format("%+1.0E", 1e-06) == "+1E-06" +string.format("%+1.0E", 1e-07) == "+1E-07" +string.format("%+1.0E", 123.456) == "+1E+02" +string.format("%+1.0E", 1234560000) == "+1E+09" +string.format("%+1.0E", 1.23456e-05) == "+1E-05" +string.format("%+1.0E", 123.456789123) == "+1E+02" +string.format("%+1.0E", 1234567891.23) == "+1E+09" +string.format("%+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%+1.1E", 0) == "+0.0E+00" +string.format("%+1.1E", 1) == "+1.0E+00" +string.format("%+1.1E", -1) == "-1.0E+00" +string.format("%+1.1E", 2) == "+2.0E+00" +string.format("%+1.1E", -2) == "-2.0E+00" +string.format("%+1.1E", 3) == "+3.0E+00" +string.format("%+1.1E", -3) == "-3.0E+00" +string.format("%+1.1E", 100) == "+1.0E+02" +string.format("%+1.1E", 10000) == "+1.0E+04" +string.format("%+1.1E", 100000) == "+1.0E+05" +string.format("%+1.1E", 1000000) == "+1.0E+06" +string.format("%+1.1E", 10000000) == "+1.0E+07" +string.format("%+1.1E", 0.01) == "+1.0E-02" +string.format("%+1.1E", 0.0001) == "+1.0E-04" +string.format("%+1.1E", 1e-05) == "+1.0E-05" +string.format("%+1.1E", 1e-06) == "+1.0E-06" +string.format("%+1.1E", 1e-07) == "+1.0E-07" +string.format("%+1.1E", 123.456) == "+1.2E+02" +string.format("%+1.1E", 1234560000) == "+1.2E+09" +string.format("%+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%+1.1E", 123.456789123) == "+1.2E+02" +string.format("%+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%+2.0E", 0) == "+0E+00" +string.format("%+2.0E", 1) == "+1E+00" +string.format("%+2.0E", -1) == "-1E+00" +string.format("%+2.0E", 2) == "+2E+00" +string.format("%+2.0E", -2) == "-2E+00" +string.format("%+2.0E", 3) == "+3E+00" +string.format("%+2.0E", -3) == "-3E+00" +string.format("%+2.0E", 100) == "+1E+02" +string.format("%+2.0E", 10000) == "+1E+04" +string.format("%+2.0E", 100000) == "+1E+05" +string.format("%+2.0E", 1000000) == "+1E+06" +string.format("%+2.0E", 10000000) == "+1E+07" +string.format("%+2.0E", 0.01) == "+1E-02" +string.format("%+2.0E", 0.0001) == "+1E-04" +string.format("%+2.0E", 1e-05) == "+1E-05" +string.format("%+2.0E", 1e-06) == "+1E-06" +string.format("%+2.0E", 1e-07) == "+1E-07" +string.format("%+2.0E", 123.456) == "+1E+02" +string.format("%+2.0E", 1234560000) == "+1E+09" +string.format("%+2.0E", 1.23456e-05) == "+1E-05" +string.format("%+2.0E", 123.456789123) == "+1E+02" +string.format("%+2.0E", 1234567891.23) == "+1E+09" +string.format("%+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%+2.1E", 0) == "+0.0E+00" +string.format("%+2.1E", 1) == "+1.0E+00" +string.format("%+2.1E", -1) == "-1.0E+00" +string.format("%+2.1E", 2) == "+2.0E+00" +string.format("%+2.1E", -2) == "-2.0E+00" +string.format("%+2.1E", 3) == "+3.0E+00" +string.format("%+2.1E", -3) == "-3.0E+00" +string.format("%+2.1E", 100) == "+1.0E+02" +string.format("%+2.1E", 10000) == "+1.0E+04" +string.format("%+2.1E", 100000) == "+1.0E+05" +string.format("%+2.1E", 1000000) == "+1.0E+06" +string.format("%+2.1E", 10000000) == "+1.0E+07" +string.format("%+2.1E", 0.01) == "+1.0E-02" +string.format("%+2.1E", 0.0001) == "+1.0E-04" +string.format("%+2.1E", 1e-05) == "+1.0E-05" +string.format("%+2.1E", 1e-06) == "+1.0E-06" +string.format("%+2.1E", 1e-07) == "+1.0E-07" +string.format("%+2.1E", 123.456) == "+1.2E+02" +string.format("%+2.1E", 1234560000) == "+1.2E+09" +string.format("%+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%+2.1E", 123.456789123) == "+1.2E+02" +string.format("%+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%+6E", nan) == " +NAN" +string.format("%+6E", inf) == " +INF" +string.format("%+6E", -inf) == " -INF" +string.format("%+6.0E", 0) == "+0E+00" +string.format("%+6.0E", 1) == "+1E+00" +string.format("%+6.0E", -1) == "-1E+00" +string.format("%+6.0E", 2) == "+2E+00" +string.format("%+6.0E", -2) == "-2E+00" +string.format("%+6.0E", 3) == "+3E+00" +string.format("%+6.0E", -3) == "-3E+00" +string.format("%+6.0E", nan) == " +NAN" +string.format("%+6.0E", inf) == " +INF" +string.format("%+6.0E", -inf) == " -INF" +string.format("%+6.0E", 100) == "+1E+02" +string.format("%+6.0E", 10000) == "+1E+04" +string.format("%+6.0E", 100000) == "+1E+05" +string.format("%+6.0E", 1000000) == "+1E+06" +string.format("%+6.0E", 10000000) == "+1E+07" +string.format("%+6.0E", 0.01) == "+1E-02" +string.format("%+6.0E", 0.0001) == "+1E-04" +string.format("%+6.0E", 1e-05) == "+1E-05" +string.format("%+6.0E", 1e-06) == "+1E-06" +string.format("%+6.0E", 1e-07) == "+1E-07" +string.format("%+6.0E", 123.456) == "+1E+02" +string.format("%+6.0E", 1234560000) == "+1E+09" +string.format("%+6.0E", 1.23456e-05) == "+1E-05" +string.format("%+6.0E", 123.456789123) == "+1E+02" +string.format("%+6.0E", 1234567891.23) == "+1E+09" +string.format("%+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%+6.1E", 0) == "+0.0E+00" +string.format("%+6.1E", 1) == "+1.0E+00" +string.format("%+6.1E", -1) == "-1.0E+00" +string.format("%+6.1E", 2) == "+2.0E+00" +string.format("%+6.1E", -2) == "-2.0E+00" +string.format("%+6.1E", 3) == "+3.0E+00" +string.format("%+6.1E", -3) == "-3.0E+00" +string.format("%+6.1E", nan) == " +NAN" +string.format("%+6.1E", inf) == " +INF" +string.format("%+6.1E", -inf) == " -INF" +string.format("%+6.1E", 100) == "+1.0E+02" +string.format("%+6.1E", 10000) == "+1.0E+04" +string.format("%+6.1E", 100000) == "+1.0E+05" +string.format("%+6.1E", 1000000) == "+1.0E+06" +string.format("%+6.1E", 10000000) == "+1.0E+07" +string.format("%+6.1E", 0.01) == "+1.0E-02" +string.format("%+6.1E", 0.0001) == "+1.0E-04" +string.format("%+6.1E", 1e-05) == "+1.0E-05" +string.format("%+6.1E", 1e-06) == "+1.0E-06" +string.format("%+6.1E", 1e-07) == "+1.0E-07" +string.format("%+6.1E", 123.456) == "+1.2E+02" +string.format("%+6.1E", 1234560000) == "+1.2E+09" +string.format("%+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%+6.1E", 123.456789123) == "+1.2E+02" +string.format("%+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%+6.6E", nan) == " +NAN" +string.format("%+6.6E", inf) == " +INF" +string.format("%+6.6E", -inf) == " -INF" +string.format("%+20E", 0) == " +0.000000E+00" +string.format("%+20E", 1) == " +1.000000E+00" +string.format("%+20E", -1) == " -1.000000E+00" +string.format("%+20E", 2) == " +2.000000E+00" +string.format("%+20E", -2) == " -2.000000E+00" +string.format("%+20E", 3) == " +3.000000E+00" +string.format("%+20E", -3) == " -3.000000E+00" +string.format("%+20E", nan) == " +NAN" +string.format("%+20E", inf) == " +INF" +string.format("%+20E", -inf) == " -INF" +string.format("%+20E", 100) == " +1.000000E+02" +string.format("%+20E", 10000) == " +1.000000E+04" +string.format("%+20E", 100000) == " +1.000000E+05" +string.format("%+20E", 1000000) == " +1.000000E+06" +string.format("%+20E", 10000000) == " +1.000000E+07" +string.format("%+20E", 0.01) == " +1.000000E-02" +string.format("%+20E", 0.0001) == " +1.000000E-04" +string.format("%+20E", 1e-05) == " +1.000000E-05" +string.format("%+20E", 1e-06) == " +1.000000E-06" +string.format("%+20E", 1e-07) == " +1.000000E-07" +string.format("%+20E", 123.456) == " +1.234560E+02" +string.format("%+20E", 1234560000) == " +1.234560E+09" +string.format("%+20E", 1.23456e-05) == " +1.234560E-05" +string.format("%+20E", 123.456789123) == " +1.234568E+02" +string.format("%+20E", 1234567891.23) == " +1.234568E+09" +string.format("%+20E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%+20.0E", 0) == " +0E+00" +string.format("%+20.0E", 1) == " +1E+00" +string.format("%+20.0E", -1) == " -1E+00" +string.format("%+20.0E", 2) == " +2E+00" +string.format("%+20.0E", -2) == " -2E+00" +string.format("%+20.0E", 3) == " +3E+00" +string.format("%+20.0E", -3) == " -3E+00" +string.format("%+20.0E", nan) == " +NAN" +string.format("%+20.0E", inf) == " +INF" +string.format("%+20.0E", -inf) == " -INF" +string.format("%+20.0E", 100) == " +1E+02" +string.format("%+20.0E", 10000) == " +1E+04" +string.format("%+20.0E", 100000) == " +1E+05" +string.format("%+20.0E", 1000000) == " +1E+06" +string.format("%+20.0E", 10000000) == " +1E+07" +string.format("%+20.0E", 0.01) == " +1E-02" +string.format("%+20.0E", 0.0001) == " +1E-04" +string.format("%+20.0E", 1e-05) == " +1E-05" +string.format("%+20.0E", 1e-06) == " +1E-06" +string.format("%+20.0E", 1e-07) == " +1E-07" +string.format("%+20.0E", 123.456) == " +1E+02" +string.format("%+20.0E", 1234560000) == " +1E+09" +string.format("%+20.0E", 1.23456e-05) == " +1E-05" +string.format("%+20.0E", 123.456789123) == " +1E+02" +string.format("%+20.0E", 1234567891.23) == " +1E+09" +string.format("%+20.0E", 1.23456789123e-05) == " +1E-05" +string.format("%+20.1E", 0) == " +0.0E+00" +string.format("%+20.1E", 1) == " +1.0E+00" +string.format("%+20.1E", -1) == " -1.0E+00" +string.format("%+20.1E", 2) == " +2.0E+00" +string.format("%+20.1E", -2) == " -2.0E+00" +string.format("%+20.1E", 3) == " +3.0E+00" +string.format("%+20.1E", -3) == " -3.0E+00" +string.format("%+20.1E", nan) == " +NAN" +string.format("%+20.1E", inf) == " +INF" +string.format("%+20.1E", -inf) == " -INF" +string.format("%+20.1E", 100) == " +1.0E+02" +string.format("%+20.1E", 10000) == " +1.0E+04" +string.format("%+20.1E", 100000) == " +1.0E+05" +string.format("%+20.1E", 1000000) == " +1.0E+06" +string.format("%+20.1E", 10000000) == " +1.0E+07" +string.format("%+20.1E", 0.01) == " +1.0E-02" +string.format("%+20.1E", 0.0001) == " +1.0E-04" +string.format("%+20.1E", 1e-05) == " +1.0E-05" +string.format("%+20.1E", 1e-06) == " +1.0E-06" +string.format("%+20.1E", 1e-07) == " +1.0E-07" +string.format("%+20.1E", 123.456) == " +1.2E+02" +string.format("%+20.1E", 1234560000) == " +1.2E+09" +string.format("%+20.1E", 1.23456e-05) == " +1.2E-05" +string.format("%+20.1E", 123.456789123) == " +1.2E+02" +string.format("%+20.1E", 1234567891.23) == " +1.2E+09" +string.format("%+20.1E", 1.23456789123e-05) == " +1.2E-05" +string.format("%+20.6E", 0) == " +0.000000E+00" +string.format("%+20.6E", 1) == " +1.000000E+00" +string.format("%+20.6E", -1) == " -1.000000E+00" +string.format("%+20.6E", 2) == " +2.000000E+00" +string.format("%+20.6E", -2) == " -2.000000E+00" +string.format("%+20.6E", 3) == " +3.000000E+00" +string.format("%+20.6E", -3) == " -3.000000E+00" +string.format("%+20.6E", nan) == " +NAN" +string.format("%+20.6E", inf) == " +INF" +string.format("%+20.6E", -inf) == " -INF" +string.format("%+20.6E", 100) == " +1.000000E+02" +string.format("%+20.6E", 10000) == " +1.000000E+04" +string.format("%+20.6E", 100000) == " +1.000000E+05" +string.format("%+20.6E", 1000000) == " +1.000000E+06" +string.format("%+20.6E", 10000000) == " +1.000000E+07" +string.format("%+20.6E", 0.01) == " +1.000000E-02" +string.format("%+20.6E", 0.0001) == " +1.000000E-04" +string.format("%+20.6E", 1e-05) == " +1.000000E-05" +string.format("%+20.6E", 1e-06) == " +1.000000E-06" +string.format("%+20.6E", 1e-07) == " +1.000000E-07" +string.format("%+20.6E", 123.456) == " +1.234560E+02" +string.format("%+20.6E", 1234560000) == " +1.234560E+09" +string.format("%+20.6E", 1.23456e-05) == " +1.234560E-05" +string.format("%+20.6E", 123.456789123) == " +1.234568E+02" +string.format("%+20.6E", 1234567891.23) == " +1.234568E+09" +string.format("%+20.6E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%-E", 0) == "0.000000E+00" +string.format("%-E", 1) == "1.000000E+00" +string.format("%-E", -1) == "-1.000000E+00" +string.format("%-E", 2) == "2.000000E+00" +string.format("%-E", -2) == "-2.000000E+00" +string.format("%-E", 3) == "3.000000E+00" +string.format("%-E", -3) == "-3.000000E+00" +string.format("%-E", nan) == "NAN" +string.format("%-E", inf) == "INF" +string.format("%-E", -inf) == "-INF" +string.format("%-E", 100) == "1.000000E+02" +string.format("%-E", 10000) == "1.000000E+04" +string.format("%-E", 100000) == "1.000000E+05" +string.format("%-E", 1000000) == "1.000000E+06" +string.format("%-E", 10000000) == "1.000000E+07" +string.format("%-E", 0.01) == "1.000000E-02" +string.format("%-E", 0.0001) == "1.000000E-04" +string.format("%-E", 1e-05) == "1.000000E-05" +string.format("%-E", 1e-06) == "1.000000E-06" +string.format("%-E", 1e-07) == "1.000000E-07" +string.format("%-E", 123.456) == "1.234560E+02" +string.format("%-E", 1234560000) == "1.234560E+09" +string.format("%-E", 1.23456e-05) == "1.234560E-05" +string.format("%-E", 123.456789123) == "1.234568E+02" +string.format("%-E", 1234567891.23) == "1.234568E+09" +string.format("%-E", 1.23456789123e-05) == "1.234568E-05" +string.format("%-.0E", 0) == "0E+00" +string.format("%-.0E", 1) == "1E+00" +string.format("%-.0E", -1) == "-1E+00" +string.format("%-.0E", 2) == "2E+00" +string.format("%-.0E", -2) == "-2E+00" +string.format("%-.0E", 3) == "3E+00" +string.format("%-.0E", -3) == "-3E+00" +string.format("%-.0E", 100) == "1E+02" +string.format("%-.0E", 10000) == "1E+04" +string.format("%-.0E", 100000) == "1E+05" +string.format("%-.0E", 1000000) == "1E+06" +string.format("%-.0E", 10000000) == "1E+07" +string.format("%-.0E", 0.01) == "1E-02" +string.format("%-.0E", 0.0001) == "1E-04" +string.format("%-.0E", 1e-05) == "1E-05" +string.format("%-.0E", 1e-06) == "1E-06" +string.format("%-.0E", 1e-07) == "1E-07" +string.format("%-.0E", 123.456) == "1E+02" +string.format("%-.0E", 1234560000) == "1E+09" +string.format("%-.0E", 1.23456e-05) == "1E-05" +string.format("%-.0E", 123.456789123) == "1E+02" +string.format("%-.0E", 1234567891.23) == "1E+09" +string.format("%-.0E", 1.23456789123e-05) == "1E-05" +string.format("%-.1E", 0) == "0.0E+00" +string.format("%-.1E", 1) == "1.0E+00" +string.format("%-.1E", -1) == "-1.0E+00" +string.format("%-.1E", 2) == "2.0E+00" +string.format("%-.1E", -2) == "-2.0E+00" +string.format("%-.1E", 3) == "3.0E+00" +string.format("%-.1E", -3) == "-3.0E+00" +string.format("%-.1E", 100) == "1.0E+02" +string.format("%-.1E", 10000) == "1.0E+04" +string.format("%-.1E", 100000) == "1.0E+05" +string.format("%-.1E", 1000000) == "1.0E+06" +string.format("%-.1E", 10000000) == "1.0E+07" +string.format("%-.1E", 0.01) == "1.0E-02" +string.format("%-.1E", 0.0001) == "1.0E-04" +string.format("%-.1E", 1e-05) == "1.0E-05" +string.format("%-.1E", 1e-06) == "1.0E-06" +string.format("%-.1E", 1e-07) == "1.0E-07" +string.format("%-.1E", 123.456) == "1.2E+02" +string.format("%-.1E", 1234560000) == "1.2E+09" +string.format("%-.1E", 1.23456e-05) == "1.2E-05" +string.format("%-.1E", 123.456789123) == "1.2E+02" +string.format("%-.1E", 1234567891.23) == "1.2E+09" +string.format("%-.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%-1.0E", 0) == "0E+00" +string.format("%-1.0E", 1) == "1E+00" +string.format("%-1.0E", -1) == "-1E+00" +string.format("%-1.0E", 2) == "2E+00" +string.format("%-1.0E", -2) == "-2E+00" +string.format("%-1.0E", 3) == "3E+00" +string.format("%-1.0E", -3) == "-3E+00" +string.format("%-1.0E", 100) == "1E+02" +string.format("%-1.0E", 10000) == "1E+04" +string.format("%-1.0E", 100000) == "1E+05" +string.format("%-1.0E", 1000000) == "1E+06" +string.format("%-1.0E", 10000000) == "1E+07" +string.format("%-1.0E", 0.01) == "1E-02" +string.format("%-1.0E", 0.0001) == "1E-04" +string.format("%-1.0E", 1e-05) == "1E-05" +string.format("%-1.0E", 1e-06) == "1E-06" +string.format("%-1.0E", 1e-07) == "1E-07" +string.format("%-1.0E", 123.456) == "1E+02" +string.format("%-1.0E", 1234560000) == "1E+09" +string.format("%-1.0E", 1.23456e-05) == "1E-05" +string.format("%-1.0E", 123.456789123) == "1E+02" +string.format("%-1.0E", 1234567891.23) == "1E+09" +string.format("%-1.0E", 1.23456789123e-05) == "1E-05" +string.format("%-1.1E", 0) == "0.0E+00" +string.format("%-1.1E", 1) == "1.0E+00" +string.format("%-1.1E", -1) == "-1.0E+00" +string.format("%-1.1E", 2) == "2.0E+00" +string.format("%-1.1E", -2) == "-2.0E+00" +string.format("%-1.1E", 3) == "3.0E+00" +string.format("%-1.1E", -3) == "-3.0E+00" +string.format("%-1.1E", 100) == "1.0E+02" +string.format("%-1.1E", 10000) == "1.0E+04" +string.format("%-1.1E", 100000) == "1.0E+05" +string.format("%-1.1E", 1000000) == "1.0E+06" +string.format("%-1.1E", 10000000) == "1.0E+07" +string.format("%-1.1E", 0.01) == "1.0E-02" +string.format("%-1.1E", 0.0001) == "1.0E-04" +string.format("%-1.1E", 1e-05) == "1.0E-05" +string.format("%-1.1E", 1e-06) == "1.0E-06" +string.format("%-1.1E", 1e-07) == "1.0E-07" +string.format("%-1.1E", 123.456) == "1.2E+02" +string.format("%-1.1E", 1234560000) == "1.2E+09" +string.format("%-1.1E", 1.23456e-05) == "1.2E-05" +string.format("%-1.1E", 123.456789123) == "1.2E+02" +string.format("%-1.1E", 1234567891.23) == "1.2E+09" +string.format("%-1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%-2.0E", 0) == "0E+00" +string.format("%-2.0E", 1) == "1E+00" +string.format("%-2.0E", -1) == "-1E+00" +string.format("%-2.0E", 2) == "2E+00" +string.format("%-2.0E", -2) == "-2E+00" +string.format("%-2.0E", 3) == "3E+00" +string.format("%-2.0E", -3) == "-3E+00" +string.format("%-2.0E", 100) == "1E+02" +string.format("%-2.0E", 10000) == "1E+04" +string.format("%-2.0E", 100000) == "1E+05" +string.format("%-2.0E", 1000000) == "1E+06" +string.format("%-2.0E", 10000000) == "1E+07" +string.format("%-2.0E", 0.01) == "1E-02" +string.format("%-2.0E", 0.0001) == "1E-04" +string.format("%-2.0E", 1e-05) == "1E-05" +string.format("%-2.0E", 1e-06) == "1E-06" +string.format("%-2.0E", 1e-07) == "1E-07" +string.format("%-2.0E", 123.456) == "1E+02" +string.format("%-2.0E", 1234560000) == "1E+09" +string.format("%-2.0E", 1.23456e-05) == "1E-05" +string.format("%-2.0E", 123.456789123) == "1E+02" +string.format("%-2.0E", 1234567891.23) == "1E+09" +string.format("%-2.0E", 1.23456789123e-05) == "1E-05" +string.format("%-2.1E", 0) == "0.0E+00" +string.format("%-2.1E", 1) == "1.0E+00" +string.format("%-2.1E", -1) == "-1.0E+00" +string.format("%-2.1E", 2) == "2.0E+00" +string.format("%-2.1E", -2) == "-2.0E+00" +string.format("%-2.1E", 3) == "3.0E+00" +string.format("%-2.1E", -3) == "-3.0E+00" +string.format("%-2.1E", 100) == "1.0E+02" +string.format("%-2.1E", 10000) == "1.0E+04" +string.format("%-2.1E", 100000) == "1.0E+05" +string.format("%-2.1E", 1000000) == "1.0E+06" +string.format("%-2.1E", 10000000) == "1.0E+07" +string.format("%-2.1E", 0.01) == "1.0E-02" +string.format("%-2.1E", 0.0001) == "1.0E-04" +string.format("%-2.1E", 1e-05) == "1.0E-05" +string.format("%-2.1E", 1e-06) == "1.0E-06" +string.format("%-2.1E", 1e-07) == "1.0E-07" +string.format("%-2.1E", 123.456) == "1.2E+02" +string.format("%-2.1E", 1234560000) == "1.2E+09" +string.format("%-2.1E", 1.23456e-05) == "1.2E-05" +string.format("%-2.1E", 123.456789123) == "1.2E+02" +string.format("%-2.1E", 1234567891.23) == "1.2E+09" +string.format("%-2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%-6E", nan) == "NAN " +string.format("%-6E", inf) == "INF " +string.format("%-6E", -inf) == "-INF " +string.format("%-6.0E", 0) == "0E+00 " +string.format("%-6.0E", 1) == "1E+00 " +string.format("%-6.0E", -1) == "-1E+00" +string.format("%-6.0E", 2) == "2E+00 " +string.format("%-6.0E", -2) == "-2E+00" +string.format("%-6.0E", 3) == "3E+00 " +string.format("%-6.0E", -3) == "-3E+00" +string.format("%-6.0E", nan) == "NAN " +string.format("%-6.0E", inf) == "INF " +string.format("%-6.0E", -inf) == "-INF " +string.format("%-6.0E", 100) == "1E+02 " +string.format("%-6.0E", 10000) == "1E+04 " +string.format("%-6.0E", 100000) == "1E+05 " +string.format("%-6.0E", 1000000) == "1E+06 " +string.format("%-6.0E", 10000000) == "1E+07 " +string.format("%-6.0E", 0.01) == "1E-02 " +string.format("%-6.0E", 0.0001) == "1E-04 " +string.format("%-6.0E", 1e-05) == "1E-05 " +string.format("%-6.0E", 1e-06) == "1E-06 " +string.format("%-6.0E", 1e-07) == "1E-07 " +string.format("%-6.0E", 123.456) == "1E+02 " +string.format("%-6.0E", 1234560000) == "1E+09 " +string.format("%-6.0E", 1.23456e-05) == "1E-05 " +string.format("%-6.0E", 123.456789123) == "1E+02 " +string.format("%-6.0E", 1234567891.23) == "1E+09 " +string.format("%-6.0E", 1.23456789123e-05) == "1E-05 " +string.format("%-6.1E", 0) == "0.0E+00" +string.format("%-6.1E", 1) == "1.0E+00" +string.format("%-6.1E", -1) == "-1.0E+00" +string.format("%-6.1E", 2) == "2.0E+00" +string.format("%-6.1E", -2) == "-2.0E+00" +string.format("%-6.1E", 3) == "3.0E+00" +string.format("%-6.1E", -3) == "-3.0E+00" +string.format("%-6.1E", nan) == "NAN " +string.format("%-6.1E", inf) == "INF " +string.format("%-6.1E", -inf) == "-INF " +string.format("%-6.1E", 100) == "1.0E+02" +string.format("%-6.1E", 10000) == "1.0E+04" +string.format("%-6.1E", 100000) == "1.0E+05" +string.format("%-6.1E", 1000000) == "1.0E+06" +string.format("%-6.1E", 10000000) == "1.0E+07" +string.format("%-6.1E", 0.01) == "1.0E-02" +string.format("%-6.1E", 0.0001) == "1.0E-04" +string.format("%-6.1E", 1e-05) == "1.0E-05" +string.format("%-6.1E", 1e-06) == "1.0E-06" +string.format("%-6.1E", 1e-07) == "1.0E-07" +string.format("%-6.1E", 123.456) == "1.2E+02" +string.format("%-6.1E", 1234560000) == "1.2E+09" +string.format("%-6.1E", 1.23456e-05) == "1.2E-05" +string.format("%-6.1E", 123.456789123) == "1.2E+02" +string.format("%-6.1E", 1234567891.23) == "1.2E+09" +string.format("%-6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%-6.6E", nan) == "NAN " +string.format("%-6.6E", inf) == "INF " +string.format("%-6.6E", -inf) == "-INF " +string.format("%-20E", 0) == "0.000000E+00 " +string.format("%-20E", 1) == "1.000000E+00 " +string.format("%-20E", -1) == "-1.000000E+00 " +string.format("%-20E", 2) == "2.000000E+00 " +string.format("%-20E", -2) == "-2.000000E+00 " +string.format("%-20E", 3) == "3.000000E+00 " +string.format("%-20E", -3) == "-3.000000E+00 " +string.format("%-20E", nan) == "NAN " +string.format("%-20E", inf) == "INF " +string.format("%-20E", -inf) == "-INF " +string.format("%-20E", 100) == "1.000000E+02 " +string.format("%-20E", 10000) == "1.000000E+04 " +string.format("%-20E", 100000) == "1.000000E+05 " +string.format("%-20E", 1000000) == "1.000000E+06 " +string.format("%-20E", 10000000) == "1.000000E+07 " +string.format("%-20E", 0.01) == "1.000000E-02 " +string.format("%-20E", 0.0001) == "1.000000E-04 " +string.format("%-20E", 1e-05) == "1.000000E-05 " +string.format("%-20E", 1e-06) == "1.000000E-06 " +string.format("%-20E", 1e-07) == "1.000000E-07 " +string.format("%-20E", 123.456) == "1.234560E+02 " +string.format("%-20E", 1234560000) == "1.234560E+09 " +string.format("%-20E", 1.23456e-05) == "1.234560E-05 " +string.format("%-20E", 123.456789123) == "1.234568E+02 " +string.format("%-20E", 1234567891.23) == "1.234568E+09 " +string.format("%-20E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%-20.0E", 0) == "0E+00 " +string.format("%-20.0E", 1) == "1E+00 " +string.format("%-20.0E", -1) == "-1E+00 " +string.format("%-20.0E", 2) == "2E+00 " +string.format("%-20.0E", -2) == "-2E+00 " +string.format("%-20.0E", 3) == "3E+00 " +string.format("%-20.0E", -3) == "-3E+00 " +string.format("%-20.0E", nan) == "NAN " +string.format("%-20.0E", inf) == "INF " +string.format("%-20.0E", -inf) == "-INF " +string.format("%-20.0E", 100) == "1E+02 " +string.format("%-20.0E", 10000) == "1E+04 " +string.format("%-20.0E", 100000) == "1E+05 " +string.format("%-20.0E", 1000000) == "1E+06 " +string.format("%-20.0E", 10000000) == "1E+07 " +string.format("%-20.0E", 0.01) == "1E-02 " +string.format("%-20.0E", 0.0001) == "1E-04 " +string.format("%-20.0E", 1e-05) == "1E-05 " +string.format("%-20.0E", 1e-06) == "1E-06 " +string.format("%-20.0E", 1e-07) == "1E-07 " +string.format("%-20.0E", 123.456) == "1E+02 " +string.format("%-20.0E", 1234560000) == "1E+09 " +string.format("%-20.0E", 1.23456e-05) == "1E-05 " +string.format("%-20.0E", 123.456789123) == "1E+02 " +string.format("%-20.0E", 1234567891.23) == "1E+09 " +string.format("%-20.0E", 1.23456789123e-05) == "1E-05 " +string.format("%-20.1E", 0) == "0.0E+00 " +string.format("%-20.1E", 1) == "1.0E+00 " +string.format("%-20.1E", -1) == "-1.0E+00 " +string.format("%-20.1E", 2) == "2.0E+00 " +string.format("%-20.1E", -2) == "-2.0E+00 " +string.format("%-20.1E", 3) == "3.0E+00 " +string.format("%-20.1E", -3) == "-3.0E+00 " +string.format("%-20.1E", nan) == "NAN " +string.format("%-20.1E", inf) == "INF " +string.format("%-20.1E", -inf) == "-INF " +string.format("%-20.1E", 100) == "1.0E+02 " +string.format("%-20.1E", 10000) == "1.0E+04 " +string.format("%-20.1E", 100000) == "1.0E+05 " +string.format("%-20.1E", 1000000) == "1.0E+06 " +string.format("%-20.1E", 10000000) == "1.0E+07 " +string.format("%-20.1E", 0.01) == "1.0E-02 " +string.format("%-20.1E", 0.0001) == "1.0E-04 " +string.format("%-20.1E", 1e-05) == "1.0E-05 " +string.format("%-20.1E", 1e-06) == "1.0E-06 " +string.format("%-20.1E", 1e-07) == "1.0E-07 " +string.format("%-20.1E", 123.456) == "1.2E+02 " +string.format("%-20.1E", 1234560000) == "1.2E+09 " +string.format("%-20.1E", 1.23456e-05) == "1.2E-05 " +string.format("%-20.1E", 123.456789123) == "1.2E+02 " +string.format("%-20.1E", 1234567891.23) == "1.2E+09 " +string.format("%-20.1E", 1.23456789123e-05) == "1.2E-05 " +string.format("%-20.6E", 0) == "0.000000E+00 " +string.format("%-20.6E", 1) == "1.000000E+00 " +string.format("%-20.6E", -1) == "-1.000000E+00 " +string.format("%-20.6E", 2) == "2.000000E+00 " +string.format("%-20.6E", -2) == "-2.000000E+00 " +string.format("%-20.6E", 3) == "3.000000E+00 " +string.format("%-20.6E", -3) == "-3.000000E+00 " +string.format("%-20.6E", nan) == "NAN " +string.format("%-20.6E", inf) == "INF " +string.format("%-20.6E", -inf) == "-INF " +string.format("%-20.6E", 100) == "1.000000E+02 " +string.format("%-20.6E", 10000) == "1.000000E+04 " +string.format("%-20.6E", 100000) == "1.000000E+05 " +string.format("%-20.6E", 1000000) == "1.000000E+06 " +string.format("%-20.6E", 10000000) == "1.000000E+07 " +string.format("%-20.6E", 0.01) == "1.000000E-02 " +string.format("%-20.6E", 0.0001) == "1.000000E-04 " +string.format("%-20.6E", 1e-05) == "1.000000E-05 " +string.format("%-20.6E", 1e-06) == "1.000000E-06 " +string.format("%-20.6E", 1e-07) == "1.000000E-07 " +string.format("%-20.6E", 123.456) == "1.234560E+02 " +string.format("%-20.6E", 1234560000) == "1.234560E+09 " +string.format("%-20.6E", 1.23456e-05) == "1.234560E-05 " +string.format("%-20.6E", 123.456789123) == "1.234568E+02 " +string.format("%-20.6E", 1234567891.23) == "1.234568E+09 " +string.format("%-20.6E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%-+E", 0) == "+0.000000E+00" +string.format("%-+E", 1) == "+1.000000E+00" +string.format("%-+E", -1) == "-1.000000E+00" +string.format("%-+E", 2) == "+2.000000E+00" +string.format("%-+E", -2) == "-2.000000E+00" +string.format("%-+E", 3) == "+3.000000E+00" +string.format("%-+E", -3) == "-3.000000E+00" +string.format("%-+E", nan) == "+NAN" +string.format("%-+E", inf) == "+INF" +string.format("%-+E", -inf) == "-INF" +string.format("%-+E", 100) == "+1.000000E+02" +string.format("%-+E", 10000) == "+1.000000E+04" +string.format("%-+E", 100000) == "+1.000000E+05" +string.format("%-+E", 1000000) == "+1.000000E+06" +string.format("%-+E", 10000000) == "+1.000000E+07" +string.format("%-+E", 0.01) == "+1.000000E-02" +string.format("%-+E", 0.0001) == "+1.000000E-04" +string.format("%-+E", 1e-05) == "+1.000000E-05" +string.format("%-+E", 1e-06) == "+1.000000E-06" +string.format("%-+E", 1e-07) == "+1.000000E-07" +string.format("%-+E", 123.456) == "+1.234560E+02" +string.format("%-+E", 1234560000) == "+1.234560E+09" +string.format("%-+E", 1.23456e-05) == "+1.234560E-05" +string.format("%-+E", 123.456789123) == "+1.234568E+02" +string.format("%-+E", 1234567891.23) == "+1.234568E+09" +string.format("%-+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%-+.0E", 0) == "+0E+00" +string.format("%-+.0E", 1) == "+1E+00" +string.format("%-+.0E", -1) == "-1E+00" +string.format("%-+.0E", 2) == "+2E+00" +string.format("%-+.0E", -2) == "-2E+00" +string.format("%-+.0E", 3) == "+3E+00" +string.format("%-+.0E", -3) == "-3E+00" +string.format("%-+.0E", 100) == "+1E+02" +string.format("%-+.0E", 10000) == "+1E+04" +string.format("%-+.0E", 100000) == "+1E+05" +string.format("%-+.0E", 1000000) == "+1E+06" +string.format("%-+.0E", 10000000) == "+1E+07" +string.format("%-+.0E", 0.01) == "+1E-02" +string.format("%-+.0E", 0.0001) == "+1E-04" +string.format("%-+.0E", 1e-05) == "+1E-05" +string.format("%-+.0E", 1e-06) == "+1E-06" +string.format("%-+.0E", 1e-07) == "+1E-07" +string.format("%-+.0E", 123.456) == "+1E+02" +string.format("%-+.0E", 1234560000) == "+1E+09" +string.format("%-+.0E", 1.23456e-05) == "+1E-05" +string.format("%-+.0E", 123.456789123) == "+1E+02" +string.format("%-+.0E", 1234567891.23) == "+1E+09" +string.format("%-+.0E", 1.23456789123e-05) == "+1E-05" +string.format("%-+.1E", 0) == "+0.0E+00" +string.format("%-+.1E", 1) == "+1.0E+00" +string.format("%-+.1E", -1) == "-1.0E+00" +string.format("%-+.1E", 2) == "+2.0E+00" +string.format("%-+.1E", -2) == "-2.0E+00" +string.format("%-+.1E", 3) == "+3.0E+00" +string.format("%-+.1E", -3) == "-3.0E+00" +string.format("%-+.1E", 100) == "+1.0E+02" +string.format("%-+.1E", 10000) == "+1.0E+04" +string.format("%-+.1E", 100000) == "+1.0E+05" +string.format("%-+.1E", 1000000) == "+1.0E+06" +string.format("%-+.1E", 10000000) == "+1.0E+07" +string.format("%-+.1E", 0.01) == "+1.0E-02" +string.format("%-+.1E", 0.0001) == "+1.0E-04" +string.format("%-+.1E", 1e-05) == "+1.0E-05" +string.format("%-+.1E", 1e-06) == "+1.0E-06" +string.format("%-+.1E", 1e-07) == "+1.0E-07" +string.format("%-+.1E", 123.456) == "+1.2E+02" +string.format("%-+.1E", 1234560000) == "+1.2E+09" +string.format("%-+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%-+.1E", 123.456789123) == "+1.2E+02" +string.format("%-+.1E", 1234567891.23) == "+1.2E+09" +string.format("%-+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%-+1.0E", 0) == "+0E+00" +string.format("%-+1.0E", 1) == "+1E+00" +string.format("%-+1.0E", -1) == "-1E+00" +string.format("%-+1.0E", 2) == "+2E+00" +string.format("%-+1.0E", -2) == "-2E+00" +string.format("%-+1.0E", 3) == "+3E+00" +string.format("%-+1.0E", -3) == "-3E+00" +string.format("%-+1.0E", 100) == "+1E+02" +string.format("%-+1.0E", 10000) == "+1E+04" +string.format("%-+1.0E", 100000) == "+1E+05" +string.format("%-+1.0E", 1000000) == "+1E+06" +string.format("%-+1.0E", 10000000) == "+1E+07" +string.format("%-+1.0E", 0.01) == "+1E-02" +string.format("%-+1.0E", 0.0001) == "+1E-04" +string.format("%-+1.0E", 1e-05) == "+1E-05" +string.format("%-+1.0E", 1e-06) == "+1E-06" +string.format("%-+1.0E", 1e-07) == "+1E-07" +string.format("%-+1.0E", 123.456) == "+1E+02" +string.format("%-+1.0E", 1234560000) == "+1E+09" +string.format("%-+1.0E", 1.23456e-05) == "+1E-05" +string.format("%-+1.0E", 123.456789123) == "+1E+02" +string.format("%-+1.0E", 1234567891.23) == "+1E+09" +string.format("%-+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%-+1.1E", 0) == "+0.0E+00" +string.format("%-+1.1E", 1) == "+1.0E+00" +string.format("%-+1.1E", -1) == "-1.0E+00" +string.format("%-+1.1E", 2) == "+2.0E+00" +string.format("%-+1.1E", -2) == "-2.0E+00" +string.format("%-+1.1E", 3) == "+3.0E+00" +string.format("%-+1.1E", -3) == "-3.0E+00" +string.format("%-+1.1E", 100) == "+1.0E+02" +string.format("%-+1.1E", 10000) == "+1.0E+04" +string.format("%-+1.1E", 100000) == "+1.0E+05" +string.format("%-+1.1E", 1000000) == "+1.0E+06" +string.format("%-+1.1E", 10000000) == "+1.0E+07" +string.format("%-+1.1E", 0.01) == "+1.0E-02" +string.format("%-+1.1E", 0.0001) == "+1.0E-04" +string.format("%-+1.1E", 1e-05) == "+1.0E-05" +string.format("%-+1.1E", 1e-06) == "+1.0E-06" +string.format("%-+1.1E", 1e-07) == "+1.0E-07" +string.format("%-+1.1E", 123.456) == "+1.2E+02" +string.format("%-+1.1E", 1234560000) == "+1.2E+09" +string.format("%-+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%-+1.1E", 123.456789123) == "+1.2E+02" +string.format("%-+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%-+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%-+2.0E", 0) == "+0E+00" +string.format("%-+2.0E", 1) == "+1E+00" +string.format("%-+2.0E", -1) == "-1E+00" +string.format("%-+2.0E", 2) == "+2E+00" +string.format("%-+2.0E", -2) == "-2E+00" +string.format("%-+2.0E", 3) == "+3E+00" +string.format("%-+2.0E", -3) == "-3E+00" +string.format("%-+2.0E", 100) == "+1E+02" +string.format("%-+2.0E", 10000) == "+1E+04" +string.format("%-+2.0E", 100000) == "+1E+05" +string.format("%-+2.0E", 1000000) == "+1E+06" +string.format("%-+2.0E", 10000000) == "+1E+07" +string.format("%-+2.0E", 0.01) == "+1E-02" +string.format("%-+2.0E", 0.0001) == "+1E-04" +string.format("%-+2.0E", 1e-05) == "+1E-05" +string.format("%-+2.0E", 1e-06) == "+1E-06" +string.format("%-+2.0E", 1e-07) == "+1E-07" +string.format("%-+2.0E", 123.456) == "+1E+02" +string.format("%-+2.0E", 1234560000) == "+1E+09" +string.format("%-+2.0E", 1.23456e-05) == "+1E-05" +string.format("%-+2.0E", 123.456789123) == "+1E+02" +string.format("%-+2.0E", 1234567891.23) == "+1E+09" +string.format("%-+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%-+2.1E", 0) == "+0.0E+00" +string.format("%-+2.1E", 1) == "+1.0E+00" +string.format("%-+2.1E", -1) == "-1.0E+00" +string.format("%-+2.1E", 2) == "+2.0E+00" +string.format("%-+2.1E", -2) == "-2.0E+00" +string.format("%-+2.1E", 3) == "+3.0E+00" +string.format("%-+2.1E", -3) == "-3.0E+00" +string.format("%-+2.1E", 100) == "+1.0E+02" +string.format("%-+2.1E", 10000) == "+1.0E+04" +string.format("%-+2.1E", 100000) == "+1.0E+05" +string.format("%-+2.1E", 1000000) == "+1.0E+06" +string.format("%-+2.1E", 10000000) == "+1.0E+07" +string.format("%-+2.1E", 0.01) == "+1.0E-02" +string.format("%-+2.1E", 0.0001) == "+1.0E-04" +string.format("%-+2.1E", 1e-05) == "+1.0E-05" +string.format("%-+2.1E", 1e-06) == "+1.0E-06" +string.format("%-+2.1E", 1e-07) == "+1.0E-07" +string.format("%-+2.1E", 123.456) == "+1.2E+02" +string.format("%-+2.1E", 1234560000) == "+1.2E+09" +string.format("%-+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%-+2.1E", 123.456789123) == "+1.2E+02" +string.format("%-+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%-+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%-+6E", nan) == "+NAN " +string.format("%-+6E", inf) == "+INF " +string.format("%-+6E", -inf) == "-INF " +string.format("%-+6.0E", 0) == "+0E+00" +string.format("%-+6.0E", 1) == "+1E+00" +string.format("%-+6.0E", -1) == "-1E+00" +string.format("%-+6.0E", 2) == "+2E+00" +string.format("%-+6.0E", -2) == "-2E+00" +string.format("%-+6.0E", 3) == "+3E+00" +string.format("%-+6.0E", -3) == "-3E+00" +string.format("%-+6.0E", nan) == "+NAN " +string.format("%-+6.0E", inf) == "+INF " +string.format("%-+6.0E", -inf) == "-INF " +string.format("%-+6.0E", 100) == "+1E+02" +string.format("%-+6.0E", 10000) == "+1E+04" +string.format("%-+6.0E", 100000) == "+1E+05" +string.format("%-+6.0E", 1000000) == "+1E+06" +string.format("%-+6.0E", 10000000) == "+1E+07" +string.format("%-+6.0E", 0.01) == "+1E-02" +string.format("%-+6.0E", 0.0001) == "+1E-04" +string.format("%-+6.0E", 1e-05) == "+1E-05" +string.format("%-+6.0E", 1e-06) == "+1E-06" +string.format("%-+6.0E", 1e-07) == "+1E-07" +string.format("%-+6.0E", 123.456) == "+1E+02" +string.format("%-+6.0E", 1234560000) == "+1E+09" +string.format("%-+6.0E", 1.23456e-05) == "+1E-05" +string.format("%-+6.0E", 123.456789123) == "+1E+02" +string.format("%-+6.0E", 1234567891.23) == "+1E+09" +string.format("%-+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%-+6.1E", 0) == "+0.0E+00" +string.format("%-+6.1E", 1) == "+1.0E+00" +string.format("%-+6.1E", -1) == "-1.0E+00" +string.format("%-+6.1E", 2) == "+2.0E+00" +string.format("%-+6.1E", -2) == "-2.0E+00" +string.format("%-+6.1E", 3) == "+3.0E+00" +string.format("%-+6.1E", -3) == "-3.0E+00" +string.format("%-+6.1E", nan) == "+NAN " +string.format("%-+6.1E", inf) == "+INF " +string.format("%-+6.1E", -inf) == "-INF " +string.format("%-+6.1E", 100) == "+1.0E+02" +string.format("%-+6.1E", 10000) == "+1.0E+04" +string.format("%-+6.1E", 100000) == "+1.0E+05" +string.format("%-+6.1E", 1000000) == "+1.0E+06" +string.format("%-+6.1E", 10000000) == "+1.0E+07" +string.format("%-+6.1E", 0.01) == "+1.0E-02" +string.format("%-+6.1E", 0.0001) == "+1.0E-04" +string.format("%-+6.1E", 1e-05) == "+1.0E-05" +string.format("%-+6.1E", 1e-06) == "+1.0E-06" +string.format("%-+6.1E", 1e-07) == "+1.0E-07" +string.format("%-+6.1E", 123.456) == "+1.2E+02" +string.format("%-+6.1E", 1234560000) == "+1.2E+09" +string.format("%-+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%-+6.1E", 123.456789123) == "+1.2E+02" +string.format("%-+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%-+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%-+6.6E", nan) == "+NAN " +string.format("%-+6.6E", inf) == "+INF " +string.format("%-+6.6E", -inf) == "-INF " +string.format("%-+20E", 0) == "+0.000000E+00 " +string.format("%-+20E", 1) == "+1.000000E+00 " +string.format("%-+20E", -1) == "-1.000000E+00 " +string.format("%-+20E", 2) == "+2.000000E+00 " +string.format("%-+20E", -2) == "-2.000000E+00 " +string.format("%-+20E", 3) == "+3.000000E+00 " +string.format("%-+20E", -3) == "-3.000000E+00 " +string.format("%-+20E", nan) == "+NAN " +string.format("%-+20E", inf) == "+INF " +string.format("%-+20E", -inf) == "-INF " +string.format("%-+20E", 100) == "+1.000000E+02 " +string.format("%-+20E", 10000) == "+1.000000E+04 " +string.format("%-+20E", 100000) == "+1.000000E+05 " +string.format("%-+20E", 1000000) == "+1.000000E+06 " +string.format("%-+20E", 10000000) == "+1.000000E+07 " +string.format("%-+20E", 0.01) == "+1.000000E-02 " +string.format("%-+20E", 0.0001) == "+1.000000E-04 " +string.format("%-+20E", 1e-05) == "+1.000000E-05 " +string.format("%-+20E", 1e-06) == "+1.000000E-06 " +string.format("%-+20E", 1e-07) == "+1.000000E-07 " +string.format("%-+20E", 123.456) == "+1.234560E+02 " +string.format("%-+20E", 1234560000) == "+1.234560E+09 " +string.format("%-+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%-+20E", 123.456789123) == "+1.234568E+02 " +string.format("%-+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%-+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%-+20.0E", 0) == "+0E+00 " +string.format("%-+20.0E", 1) == "+1E+00 " +string.format("%-+20.0E", -1) == "-1E+00 " +string.format("%-+20.0E", 2) == "+2E+00 " +string.format("%-+20.0E", -2) == "-2E+00 " +string.format("%-+20.0E", 3) == "+3E+00 " +string.format("%-+20.0E", -3) == "-3E+00 " +string.format("%-+20.0E", nan) == "+NAN " +string.format("%-+20.0E", inf) == "+INF " +string.format("%-+20.0E", -inf) == "-INF " +string.format("%-+20.0E", 100) == "+1E+02 " +string.format("%-+20.0E", 10000) == "+1E+04 " +string.format("%-+20.0E", 100000) == "+1E+05 " +string.format("%-+20.0E", 1000000) == "+1E+06 " +string.format("%-+20.0E", 10000000) == "+1E+07 " +string.format("%-+20.0E", 0.01) == "+1E-02 " +string.format("%-+20.0E", 0.0001) == "+1E-04 " +string.format("%-+20.0E", 1e-05) == "+1E-05 " +string.format("%-+20.0E", 1e-06) == "+1E-06 " +string.format("%-+20.0E", 1e-07) == "+1E-07 " +string.format("%-+20.0E", 123.456) == "+1E+02 " +string.format("%-+20.0E", 1234560000) == "+1E+09 " +string.format("%-+20.0E", 1.23456e-05) == "+1E-05 " +string.format("%-+20.0E", 123.456789123) == "+1E+02 " +string.format("%-+20.0E", 1234567891.23) == "+1E+09 " +string.format("%-+20.0E", 1.23456789123e-05) == "+1E-05 " +string.format("%-+20.1E", 0) == "+0.0E+00 " +string.format("%-+20.1E", 1) == "+1.0E+00 " +string.format("%-+20.1E", -1) == "-1.0E+00 " +string.format("%-+20.1E", 2) == "+2.0E+00 " +string.format("%-+20.1E", -2) == "-2.0E+00 " +string.format("%-+20.1E", 3) == "+3.0E+00 " +string.format("%-+20.1E", -3) == "-3.0E+00 " +string.format("%-+20.1E", nan) == "+NAN " +string.format("%-+20.1E", inf) == "+INF " +string.format("%-+20.1E", -inf) == "-INF " +string.format("%-+20.1E", 100) == "+1.0E+02 " +string.format("%-+20.1E", 10000) == "+1.0E+04 " +string.format("%-+20.1E", 100000) == "+1.0E+05 " +string.format("%-+20.1E", 1000000) == "+1.0E+06 " +string.format("%-+20.1E", 10000000) == "+1.0E+07 " +string.format("%-+20.1E", 0.01) == "+1.0E-02 " +string.format("%-+20.1E", 0.0001) == "+1.0E-04 " +string.format("%-+20.1E", 1e-05) == "+1.0E-05 " +string.format("%-+20.1E", 1e-06) == "+1.0E-06 " +string.format("%-+20.1E", 1e-07) == "+1.0E-07 " +string.format("%-+20.1E", 123.456) == "+1.2E+02 " +string.format("%-+20.1E", 1234560000) == "+1.2E+09 " +string.format("%-+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%-+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%-+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%-+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%-+20.6E", 0) == "+0.000000E+00 " +string.format("%-+20.6E", 1) == "+1.000000E+00 " +string.format("%-+20.6E", -1) == "-1.000000E+00 " +string.format("%-+20.6E", 2) == "+2.000000E+00 " +string.format("%-+20.6E", -2) == "-2.000000E+00 " +string.format("%-+20.6E", 3) == "+3.000000E+00 " +string.format("%-+20.6E", -3) == "-3.000000E+00 " +string.format("%-+20.6E", nan) == "+NAN " +string.format("%-+20.6E", inf) == "+INF " +string.format("%-+20.6E", -inf) == "-INF " +string.format("%-+20.6E", 100) == "+1.000000E+02 " +string.format("%-+20.6E", 10000) == "+1.000000E+04 " +string.format("%-+20.6E", 100000) == "+1.000000E+05 " +string.format("%-+20.6E", 1000000) == "+1.000000E+06 " +string.format("%-+20.6E", 10000000) == "+1.000000E+07 " +string.format("%-+20.6E", 0.01) == "+1.000000E-02 " +string.format("%-+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%-+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%-+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%-+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%-+20.6E", 123.456) == "+1.234560E+02 " +string.format("%-+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%-+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%-+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%-+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%-+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("% E", 0) == " 0.000000E+00" +string.format("% E", 1) == " 1.000000E+00" +string.format("% E", -1) == "-1.000000E+00" +string.format("% E", 2) == " 2.000000E+00" +string.format("% E", -2) == "-2.000000E+00" +string.format("% E", 3) == " 3.000000E+00" +string.format("% E", -3) == "-3.000000E+00" +string.format("% E", nan) == " NAN" +string.format("% E", inf) == " INF" +string.format("% E", -inf) == "-INF" +string.format("% E", 100) == " 1.000000E+02" +string.format("% E", 10000) == " 1.000000E+04" +string.format("% E", 100000) == " 1.000000E+05" +string.format("% E", 1000000) == " 1.000000E+06" +string.format("% E", 10000000) == " 1.000000E+07" +string.format("% E", 0.01) == " 1.000000E-02" +string.format("% E", 0.0001) == " 1.000000E-04" +string.format("% E", 1e-05) == " 1.000000E-05" +string.format("% E", 1e-06) == " 1.000000E-06" +string.format("% E", 1e-07) == " 1.000000E-07" +string.format("% E", 123.456) == " 1.234560E+02" +string.format("% E", 1234560000) == " 1.234560E+09" +string.format("% E", 1.23456e-05) == " 1.234560E-05" +string.format("% E", 123.456789123) == " 1.234568E+02" +string.format("% E", 1234567891.23) == " 1.234568E+09" +string.format("% E", 1.23456789123e-05) == " 1.234568E-05" +string.format("% .0E", 0) == " 0E+00" +string.format("% .0E", 1) == " 1E+00" +string.format("% .0E", -1) == "-1E+00" +string.format("% .0E", 2) == " 2E+00" +string.format("% .0E", -2) == "-2E+00" +string.format("% .0E", 3) == " 3E+00" +string.format("% .0E", -3) == "-3E+00" +string.format("% .0E", 100) == " 1E+02" +string.format("% .0E", 10000) == " 1E+04" +string.format("% .0E", 100000) == " 1E+05" +string.format("% .0E", 1000000) == " 1E+06" +string.format("% .0E", 10000000) == " 1E+07" +string.format("% .0E", 0.01) == " 1E-02" +string.format("% .0E", 0.0001) == " 1E-04" +string.format("% .0E", 1e-05) == " 1E-05" +string.format("% .0E", 1e-06) == " 1E-06" +string.format("% .0E", 1e-07) == " 1E-07" +string.format("% .0E", 123.456) == " 1E+02" +string.format("% .0E", 1234560000) == " 1E+09" +string.format("% .0E", 1.23456e-05) == " 1E-05" +string.format("% .0E", 123.456789123) == " 1E+02" +string.format("% .0E", 1234567891.23) == " 1E+09" +string.format("% .0E", 1.23456789123e-05) == " 1E-05" +string.format("% .1E", 0) == " 0.0E+00" +string.format("% .1E", 1) == " 1.0E+00" +string.format("% .1E", -1) == "-1.0E+00" +string.format("% .1E", 2) == " 2.0E+00" +string.format("% .1E", -2) == "-2.0E+00" +string.format("% .1E", 3) == " 3.0E+00" +string.format("% .1E", -3) == "-3.0E+00" +string.format("% .1E", 100) == " 1.0E+02" +string.format("% .1E", 10000) == " 1.0E+04" +string.format("% .1E", 100000) == " 1.0E+05" +string.format("% .1E", 1000000) == " 1.0E+06" +string.format("% .1E", 10000000) == " 1.0E+07" +string.format("% .1E", 0.01) == " 1.0E-02" +string.format("% .1E", 0.0001) == " 1.0E-04" +string.format("% .1E", 1e-05) == " 1.0E-05" +string.format("% .1E", 1e-06) == " 1.0E-06" +string.format("% .1E", 1e-07) == " 1.0E-07" +string.format("% .1E", 123.456) == " 1.2E+02" +string.format("% .1E", 1234560000) == " 1.2E+09" +string.format("% .1E", 1.23456e-05) == " 1.2E-05" +string.format("% .1E", 123.456789123) == " 1.2E+02" +string.format("% .1E", 1234567891.23) == " 1.2E+09" +string.format("% .1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% 1.0E", 0) == " 0E+00" +string.format("% 1.0E", 1) == " 1E+00" +string.format("% 1.0E", -1) == "-1E+00" +string.format("% 1.0E", 2) == " 2E+00" +string.format("% 1.0E", -2) == "-2E+00" +string.format("% 1.0E", 3) == " 3E+00" +string.format("% 1.0E", -3) == "-3E+00" +string.format("% 1.0E", 100) == " 1E+02" +string.format("% 1.0E", 10000) == " 1E+04" +string.format("% 1.0E", 100000) == " 1E+05" +string.format("% 1.0E", 1000000) == " 1E+06" +string.format("% 1.0E", 10000000) == " 1E+07" +string.format("% 1.0E", 0.01) == " 1E-02" +string.format("% 1.0E", 0.0001) == " 1E-04" +string.format("% 1.0E", 1e-05) == " 1E-05" +string.format("% 1.0E", 1e-06) == " 1E-06" +string.format("% 1.0E", 1e-07) == " 1E-07" +string.format("% 1.0E", 123.456) == " 1E+02" +string.format("% 1.0E", 1234560000) == " 1E+09" +string.format("% 1.0E", 1.23456e-05) == " 1E-05" +string.format("% 1.0E", 123.456789123) == " 1E+02" +string.format("% 1.0E", 1234567891.23) == " 1E+09" +string.format("% 1.0E", 1.23456789123e-05) == " 1E-05" +string.format("% 1.1E", 0) == " 0.0E+00" +string.format("% 1.1E", 1) == " 1.0E+00" +string.format("% 1.1E", -1) == "-1.0E+00" +string.format("% 1.1E", 2) == " 2.0E+00" +string.format("% 1.1E", -2) == "-2.0E+00" +string.format("% 1.1E", 3) == " 3.0E+00" +string.format("% 1.1E", -3) == "-3.0E+00" +string.format("% 1.1E", 100) == " 1.0E+02" +string.format("% 1.1E", 10000) == " 1.0E+04" +string.format("% 1.1E", 100000) == " 1.0E+05" +string.format("% 1.1E", 1000000) == " 1.0E+06" +string.format("% 1.1E", 10000000) == " 1.0E+07" +string.format("% 1.1E", 0.01) == " 1.0E-02" +string.format("% 1.1E", 0.0001) == " 1.0E-04" +string.format("% 1.1E", 1e-05) == " 1.0E-05" +string.format("% 1.1E", 1e-06) == " 1.0E-06" +string.format("% 1.1E", 1e-07) == " 1.0E-07" +string.format("% 1.1E", 123.456) == " 1.2E+02" +string.format("% 1.1E", 1234560000) == " 1.2E+09" +string.format("% 1.1E", 1.23456e-05) == " 1.2E-05" +string.format("% 1.1E", 123.456789123) == " 1.2E+02" +string.format("% 1.1E", 1234567891.23) == " 1.2E+09" +string.format("% 1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% 2.0E", 0) == " 0E+00" +string.format("% 2.0E", 1) == " 1E+00" +string.format("% 2.0E", -1) == "-1E+00" +string.format("% 2.0E", 2) == " 2E+00" +string.format("% 2.0E", -2) == "-2E+00" +string.format("% 2.0E", 3) == " 3E+00" +string.format("% 2.0E", -3) == "-3E+00" +string.format("% 2.0E", 100) == " 1E+02" +string.format("% 2.0E", 10000) == " 1E+04" +string.format("% 2.0E", 100000) == " 1E+05" +string.format("% 2.0E", 1000000) == " 1E+06" +string.format("% 2.0E", 10000000) == " 1E+07" +string.format("% 2.0E", 0.01) == " 1E-02" +string.format("% 2.0E", 0.0001) == " 1E-04" +string.format("% 2.0E", 1e-05) == " 1E-05" +string.format("% 2.0E", 1e-06) == " 1E-06" +string.format("% 2.0E", 1e-07) == " 1E-07" +string.format("% 2.0E", 123.456) == " 1E+02" +string.format("% 2.0E", 1234560000) == " 1E+09" +string.format("% 2.0E", 1.23456e-05) == " 1E-05" +string.format("% 2.0E", 123.456789123) == " 1E+02" +string.format("% 2.0E", 1234567891.23) == " 1E+09" +string.format("% 2.0E", 1.23456789123e-05) == " 1E-05" +string.format("% 2.1E", 0) == " 0.0E+00" +string.format("% 2.1E", 1) == " 1.0E+00" +string.format("% 2.1E", -1) == "-1.0E+00" +string.format("% 2.1E", 2) == " 2.0E+00" +string.format("% 2.1E", -2) == "-2.0E+00" +string.format("% 2.1E", 3) == " 3.0E+00" +string.format("% 2.1E", -3) == "-3.0E+00" +string.format("% 2.1E", 100) == " 1.0E+02" +string.format("% 2.1E", 10000) == " 1.0E+04" +string.format("% 2.1E", 100000) == " 1.0E+05" +string.format("% 2.1E", 1000000) == " 1.0E+06" +string.format("% 2.1E", 10000000) == " 1.0E+07" +string.format("% 2.1E", 0.01) == " 1.0E-02" +string.format("% 2.1E", 0.0001) == " 1.0E-04" +string.format("% 2.1E", 1e-05) == " 1.0E-05" +string.format("% 2.1E", 1e-06) == " 1.0E-06" +string.format("% 2.1E", 1e-07) == " 1.0E-07" +string.format("% 2.1E", 123.456) == " 1.2E+02" +string.format("% 2.1E", 1234560000) == " 1.2E+09" +string.format("% 2.1E", 1.23456e-05) == " 1.2E-05" +string.format("% 2.1E", 123.456789123) == " 1.2E+02" +string.format("% 2.1E", 1234567891.23) == " 1.2E+09" +string.format("% 2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% 6E", nan) == " NAN" +string.format("% 6E", inf) == " INF" +string.format("% 6E", -inf) == " -INF" +string.format("% 6.0E", 0) == " 0E+00" +string.format("% 6.0E", 1) == " 1E+00" +string.format("% 6.0E", -1) == "-1E+00" +string.format("% 6.0E", 2) == " 2E+00" +string.format("% 6.0E", -2) == "-2E+00" +string.format("% 6.0E", 3) == " 3E+00" +string.format("% 6.0E", -3) == "-3E+00" +string.format("% 6.0E", nan) == " NAN" +string.format("% 6.0E", inf) == " INF" +string.format("% 6.0E", -inf) == " -INF" +string.format("% 6.0E", 100) == " 1E+02" +string.format("% 6.0E", 10000) == " 1E+04" +string.format("% 6.0E", 100000) == " 1E+05" +string.format("% 6.0E", 1000000) == " 1E+06" +string.format("% 6.0E", 10000000) == " 1E+07" +string.format("% 6.0E", 0.01) == " 1E-02" +string.format("% 6.0E", 0.0001) == " 1E-04" +string.format("% 6.0E", 1e-05) == " 1E-05" +string.format("% 6.0E", 1e-06) == " 1E-06" +string.format("% 6.0E", 1e-07) == " 1E-07" +string.format("% 6.0E", 123.456) == " 1E+02" +string.format("% 6.0E", 1234560000) == " 1E+09" +string.format("% 6.0E", 1.23456e-05) == " 1E-05" +string.format("% 6.0E", 123.456789123) == " 1E+02" +string.format("% 6.0E", 1234567891.23) == " 1E+09" +string.format("% 6.0E", 1.23456789123e-05) == " 1E-05" +string.format("% 6.1E", 0) == " 0.0E+00" +string.format("% 6.1E", 1) == " 1.0E+00" +string.format("% 6.1E", -1) == "-1.0E+00" +string.format("% 6.1E", 2) == " 2.0E+00" +string.format("% 6.1E", -2) == "-2.0E+00" +string.format("% 6.1E", 3) == " 3.0E+00" +string.format("% 6.1E", -3) == "-3.0E+00" +string.format("% 6.1E", nan) == " NAN" +string.format("% 6.1E", inf) == " INF" +string.format("% 6.1E", -inf) == " -INF" +string.format("% 6.1E", 100) == " 1.0E+02" +string.format("% 6.1E", 10000) == " 1.0E+04" +string.format("% 6.1E", 100000) == " 1.0E+05" +string.format("% 6.1E", 1000000) == " 1.0E+06" +string.format("% 6.1E", 10000000) == " 1.0E+07" +string.format("% 6.1E", 0.01) == " 1.0E-02" +string.format("% 6.1E", 0.0001) == " 1.0E-04" +string.format("% 6.1E", 1e-05) == " 1.0E-05" +string.format("% 6.1E", 1e-06) == " 1.0E-06" +string.format("% 6.1E", 1e-07) == " 1.0E-07" +string.format("% 6.1E", 123.456) == " 1.2E+02" +string.format("% 6.1E", 1234560000) == " 1.2E+09" +string.format("% 6.1E", 1.23456e-05) == " 1.2E-05" +string.format("% 6.1E", 123.456789123) == " 1.2E+02" +string.format("% 6.1E", 1234567891.23) == " 1.2E+09" +string.format("% 6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% 6.6E", nan) == " NAN" +string.format("% 6.6E", inf) == " INF" +string.format("% 6.6E", -inf) == " -INF" +string.format("% 20E", 0) == " 0.000000E+00" +string.format("% 20E", 1) == " 1.000000E+00" +string.format("% 20E", -1) == " -1.000000E+00" +string.format("% 20E", 2) == " 2.000000E+00" +string.format("% 20E", -2) == " -2.000000E+00" +string.format("% 20E", 3) == " 3.000000E+00" +string.format("% 20E", -3) == " -3.000000E+00" +string.format("% 20E", nan) == " NAN" +string.format("% 20E", inf) == " INF" +string.format("% 20E", -inf) == " -INF" +string.format("% 20E", 100) == " 1.000000E+02" +string.format("% 20E", 10000) == " 1.000000E+04" +string.format("% 20E", 100000) == " 1.000000E+05" +string.format("% 20E", 1000000) == " 1.000000E+06" +string.format("% 20E", 10000000) == " 1.000000E+07" +string.format("% 20E", 0.01) == " 1.000000E-02" +string.format("% 20E", 0.0001) == " 1.000000E-04" +string.format("% 20E", 1e-05) == " 1.000000E-05" +string.format("% 20E", 1e-06) == " 1.000000E-06" +string.format("% 20E", 1e-07) == " 1.000000E-07" +string.format("% 20E", 123.456) == " 1.234560E+02" +string.format("% 20E", 1234560000) == " 1.234560E+09" +string.format("% 20E", 1.23456e-05) == " 1.234560E-05" +string.format("% 20E", 123.456789123) == " 1.234568E+02" +string.format("% 20E", 1234567891.23) == " 1.234568E+09" +string.format("% 20E", 1.23456789123e-05) == " 1.234568E-05" +string.format("% 20.0E", 0) == " 0E+00" +string.format("% 20.0E", 1) == " 1E+00" +string.format("% 20.0E", -1) == " -1E+00" +string.format("% 20.0E", 2) == " 2E+00" +string.format("% 20.0E", -2) == " -2E+00" +string.format("% 20.0E", 3) == " 3E+00" +string.format("% 20.0E", -3) == " -3E+00" +string.format("% 20.0E", nan) == " NAN" +string.format("% 20.0E", inf) == " INF" +string.format("% 20.0E", -inf) == " -INF" +string.format("% 20.0E", 100) == " 1E+02" +string.format("% 20.0E", 10000) == " 1E+04" +string.format("% 20.0E", 100000) == " 1E+05" +string.format("% 20.0E", 1000000) == " 1E+06" +string.format("% 20.0E", 10000000) == " 1E+07" +string.format("% 20.0E", 0.01) == " 1E-02" +string.format("% 20.0E", 0.0001) == " 1E-04" +string.format("% 20.0E", 1e-05) == " 1E-05" +string.format("% 20.0E", 1e-06) == " 1E-06" +string.format("% 20.0E", 1e-07) == " 1E-07" +string.format("% 20.0E", 123.456) == " 1E+02" +string.format("% 20.0E", 1234560000) == " 1E+09" +string.format("% 20.0E", 1.23456e-05) == " 1E-05" +string.format("% 20.0E", 123.456789123) == " 1E+02" +string.format("% 20.0E", 1234567891.23) == " 1E+09" +string.format("% 20.0E", 1.23456789123e-05) == " 1E-05" +string.format("% 20.1E", 0) == " 0.0E+00" +string.format("% 20.1E", 1) == " 1.0E+00" +string.format("% 20.1E", -1) == " -1.0E+00" +string.format("% 20.1E", 2) == " 2.0E+00" +string.format("% 20.1E", -2) == " -2.0E+00" +string.format("% 20.1E", 3) == " 3.0E+00" +string.format("% 20.1E", -3) == " -3.0E+00" +string.format("% 20.1E", nan) == " NAN" +string.format("% 20.1E", inf) == " INF" +string.format("% 20.1E", -inf) == " -INF" +string.format("% 20.1E", 100) == " 1.0E+02" +string.format("% 20.1E", 10000) == " 1.0E+04" +string.format("% 20.1E", 100000) == " 1.0E+05" +string.format("% 20.1E", 1000000) == " 1.0E+06" +string.format("% 20.1E", 10000000) == " 1.0E+07" +string.format("% 20.1E", 0.01) == " 1.0E-02" +string.format("% 20.1E", 0.0001) == " 1.0E-04" +string.format("% 20.1E", 1e-05) == " 1.0E-05" +string.format("% 20.1E", 1e-06) == " 1.0E-06" +string.format("% 20.1E", 1e-07) == " 1.0E-07" +string.format("% 20.1E", 123.456) == " 1.2E+02" +string.format("% 20.1E", 1234560000) == " 1.2E+09" +string.format("% 20.1E", 1.23456e-05) == " 1.2E-05" +string.format("% 20.1E", 123.456789123) == " 1.2E+02" +string.format("% 20.1E", 1234567891.23) == " 1.2E+09" +string.format("% 20.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% 20.6E", 0) == " 0.000000E+00" +string.format("% 20.6E", 1) == " 1.000000E+00" +string.format("% 20.6E", -1) == " -1.000000E+00" +string.format("% 20.6E", 2) == " 2.000000E+00" +string.format("% 20.6E", -2) == " -2.000000E+00" +string.format("% 20.6E", 3) == " 3.000000E+00" +string.format("% 20.6E", -3) == " -3.000000E+00" +string.format("% 20.6E", nan) == " NAN" +string.format("% 20.6E", inf) == " INF" +string.format("% 20.6E", -inf) == " -INF" +string.format("% 20.6E", 100) == " 1.000000E+02" +string.format("% 20.6E", 10000) == " 1.000000E+04" +string.format("% 20.6E", 100000) == " 1.000000E+05" +string.format("% 20.6E", 1000000) == " 1.000000E+06" +string.format("% 20.6E", 10000000) == " 1.000000E+07" +string.format("% 20.6E", 0.01) == " 1.000000E-02" +string.format("% 20.6E", 0.0001) == " 1.000000E-04" +string.format("% 20.6E", 1e-05) == " 1.000000E-05" +string.format("% 20.6E", 1e-06) == " 1.000000E-06" +string.format("% 20.6E", 1e-07) == " 1.000000E-07" +string.format("% 20.6E", 123.456) == " 1.234560E+02" +string.format("% 20.6E", 1234560000) == " 1.234560E+09" +string.format("% 20.6E", 1.23456e-05) == " 1.234560E-05" +string.format("% 20.6E", 123.456789123) == " 1.234568E+02" +string.format("% 20.6E", 1234567891.23) == " 1.234568E+09" +string.format("% 20.6E", 1.23456789123e-05) == " 1.234568E-05" +string.format("% +E", 0) == "+0.000000E+00" +string.format("% +E", 1) == "+1.000000E+00" +string.format("% +E", -1) == "-1.000000E+00" +string.format("% +E", 2) == "+2.000000E+00" +string.format("% +E", -2) == "-2.000000E+00" +string.format("% +E", 3) == "+3.000000E+00" +string.format("% +E", -3) == "-3.000000E+00" +string.format("% +E", nan) == "+NAN" +string.format("% +E", inf) == "+INF" +string.format("% +E", -inf) == "-INF" +string.format("% +E", 100) == "+1.000000E+02" +string.format("% +E", 10000) == "+1.000000E+04" +string.format("% +E", 100000) == "+1.000000E+05" +string.format("% +E", 1000000) == "+1.000000E+06" +string.format("% +E", 10000000) == "+1.000000E+07" +string.format("% +E", 0.01) == "+1.000000E-02" +string.format("% +E", 0.0001) == "+1.000000E-04" +string.format("% +E", 1e-05) == "+1.000000E-05" +string.format("% +E", 1e-06) == "+1.000000E-06" +string.format("% +E", 1e-07) == "+1.000000E-07" +string.format("% +E", 123.456) == "+1.234560E+02" +string.format("% +E", 1234560000) == "+1.234560E+09" +string.format("% +E", 1.23456e-05) == "+1.234560E-05" +string.format("% +E", 123.456789123) == "+1.234568E+02" +string.format("% +E", 1234567891.23) == "+1.234568E+09" +string.format("% +E", 1.23456789123e-05) == "+1.234568E-05" +string.format("% +.0E", 0) == "+0E+00" +string.format("% +.0E", 1) == "+1E+00" +string.format("% +.0E", -1) == "-1E+00" +string.format("% +.0E", 2) == "+2E+00" +string.format("% +.0E", -2) == "-2E+00" +string.format("% +.0E", 3) == "+3E+00" +string.format("% +.0E", -3) == "-3E+00" +string.format("% +.0E", 100) == "+1E+02" +string.format("% +.0E", 10000) == "+1E+04" +string.format("% +.0E", 100000) == "+1E+05" +string.format("% +.0E", 1000000) == "+1E+06" +string.format("% +.0E", 10000000) == "+1E+07" +string.format("% +.0E", 0.01) == "+1E-02" +string.format("% +.0E", 0.0001) == "+1E-04" +string.format("% +.0E", 1e-05) == "+1E-05" +string.format("% +.0E", 1e-06) == "+1E-06" +string.format("% +.0E", 1e-07) == "+1E-07" +string.format("% +.0E", 123.456) == "+1E+02" +string.format("% +.0E", 1234560000) == "+1E+09" +string.format("% +.0E", 1.23456e-05) == "+1E-05" +string.format("% +.0E", 123.456789123) == "+1E+02" +string.format("% +.0E", 1234567891.23) == "+1E+09" +string.format("% +.0E", 1.23456789123e-05) == "+1E-05" +string.format("% +.1E", 0) == "+0.0E+00" +string.format("% +.1E", 1) == "+1.0E+00" +string.format("% +.1E", -1) == "-1.0E+00" +string.format("% +.1E", 2) == "+2.0E+00" +string.format("% +.1E", -2) == "-2.0E+00" +string.format("% +.1E", 3) == "+3.0E+00" +string.format("% +.1E", -3) == "-3.0E+00" +string.format("% +.1E", 100) == "+1.0E+02" +string.format("% +.1E", 10000) == "+1.0E+04" +string.format("% +.1E", 100000) == "+1.0E+05" +string.format("% +.1E", 1000000) == "+1.0E+06" +string.format("% +.1E", 10000000) == "+1.0E+07" +string.format("% +.1E", 0.01) == "+1.0E-02" +string.format("% +.1E", 0.0001) == "+1.0E-04" +string.format("% +.1E", 1e-05) == "+1.0E-05" +string.format("% +.1E", 1e-06) == "+1.0E-06" +string.format("% +.1E", 1e-07) == "+1.0E-07" +string.format("% +.1E", 123.456) == "+1.2E+02" +string.format("% +.1E", 1234560000) == "+1.2E+09" +string.format("% +.1E", 1.23456e-05) == "+1.2E-05" +string.format("% +.1E", 123.456789123) == "+1.2E+02" +string.format("% +.1E", 1234567891.23) == "+1.2E+09" +string.format("% +.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% +1.0E", 0) == "+0E+00" +string.format("% +1.0E", 1) == "+1E+00" +string.format("% +1.0E", -1) == "-1E+00" +string.format("% +1.0E", 2) == "+2E+00" +string.format("% +1.0E", -2) == "-2E+00" +string.format("% +1.0E", 3) == "+3E+00" +string.format("% +1.0E", -3) == "-3E+00" +string.format("% +1.0E", 100) == "+1E+02" +string.format("% +1.0E", 10000) == "+1E+04" +string.format("% +1.0E", 100000) == "+1E+05" +string.format("% +1.0E", 1000000) == "+1E+06" +string.format("% +1.0E", 10000000) == "+1E+07" +string.format("% +1.0E", 0.01) == "+1E-02" +string.format("% +1.0E", 0.0001) == "+1E-04" +string.format("% +1.0E", 1e-05) == "+1E-05" +string.format("% +1.0E", 1e-06) == "+1E-06" +string.format("% +1.0E", 1e-07) == "+1E-07" +string.format("% +1.0E", 123.456) == "+1E+02" +string.format("% +1.0E", 1234560000) == "+1E+09" +string.format("% +1.0E", 1.23456e-05) == "+1E-05" +string.format("% +1.0E", 123.456789123) == "+1E+02" +string.format("% +1.0E", 1234567891.23) == "+1E+09" +string.format("% +1.0E", 1.23456789123e-05) == "+1E-05" +string.format("% +1.1E", 0) == "+0.0E+00" +string.format("% +1.1E", 1) == "+1.0E+00" +string.format("% +1.1E", -1) == "-1.0E+00" +string.format("% +1.1E", 2) == "+2.0E+00" +string.format("% +1.1E", -2) == "-2.0E+00" +string.format("% +1.1E", 3) == "+3.0E+00" +string.format("% +1.1E", -3) == "-3.0E+00" +string.format("% +1.1E", 100) == "+1.0E+02" +string.format("% +1.1E", 10000) == "+1.0E+04" +string.format("% +1.1E", 100000) == "+1.0E+05" +string.format("% +1.1E", 1000000) == "+1.0E+06" +string.format("% +1.1E", 10000000) == "+1.0E+07" +string.format("% +1.1E", 0.01) == "+1.0E-02" +string.format("% +1.1E", 0.0001) == "+1.0E-04" +string.format("% +1.1E", 1e-05) == "+1.0E-05" +string.format("% +1.1E", 1e-06) == "+1.0E-06" +string.format("% +1.1E", 1e-07) == "+1.0E-07" +string.format("% +1.1E", 123.456) == "+1.2E+02" +string.format("% +1.1E", 1234560000) == "+1.2E+09" +string.format("% +1.1E", 1.23456e-05) == "+1.2E-05" +string.format("% +1.1E", 123.456789123) == "+1.2E+02" +string.format("% +1.1E", 1234567891.23) == "+1.2E+09" +string.format("% +1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% +2.0E", 0) == "+0E+00" +string.format("% +2.0E", 1) == "+1E+00" +string.format("% +2.0E", -1) == "-1E+00" +string.format("% +2.0E", 2) == "+2E+00" +string.format("% +2.0E", -2) == "-2E+00" +string.format("% +2.0E", 3) == "+3E+00" +string.format("% +2.0E", -3) == "-3E+00" +string.format("% +2.0E", 100) == "+1E+02" +string.format("% +2.0E", 10000) == "+1E+04" +string.format("% +2.0E", 100000) == "+1E+05" +string.format("% +2.0E", 1000000) == "+1E+06" +string.format("% +2.0E", 10000000) == "+1E+07" +string.format("% +2.0E", 0.01) == "+1E-02" +string.format("% +2.0E", 0.0001) == "+1E-04" +string.format("% +2.0E", 1e-05) == "+1E-05" +string.format("% +2.0E", 1e-06) == "+1E-06" +string.format("% +2.0E", 1e-07) == "+1E-07" +string.format("% +2.0E", 123.456) == "+1E+02" +string.format("% +2.0E", 1234560000) == "+1E+09" +string.format("% +2.0E", 1.23456e-05) == "+1E-05" +string.format("% +2.0E", 123.456789123) == "+1E+02" +string.format("% +2.0E", 1234567891.23) == "+1E+09" +string.format("% +2.0E", 1.23456789123e-05) == "+1E-05" +string.format("% +2.1E", 0) == "+0.0E+00" +string.format("% +2.1E", 1) == "+1.0E+00" +string.format("% +2.1E", -1) == "-1.0E+00" +string.format("% +2.1E", 2) == "+2.0E+00" +string.format("% +2.1E", -2) == "-2.0E+00" +string.format("% +2.1E", 3) == "+3.0E+00" +string.format("% +2.1E", -3) == "-3.0E+00" +string.format("% +2.1E", 100) == "+1.0E+02" +string.format("% +2.1E", 10000) == "+1.0E+04" +string.format("% +2.1E", 100000) == "+1.0E+05" +string.format("% +2.1E", 1000000) == "+1.0E+06" +string.format("% +2.1E", 10000000) == "+1.0E+07" +string.format("% +2.1E", 0.01) == "+1.0E-02" +string.format("% +2.1E", 0.0001) == "+1.0E-04" +string.format("% +2.1E", 1e-05) == "+1.0E-05" +string.format("% +2.1E", 1e-06) == "+1.0E-06" +string.format("% +2.1E", 1e-07) == "+1.0E-07" +string.format("% +2.1E", 123.456) == "+1.2E+02" +string.format("% +2.1E", 1234560000) == "+1.2E+09" +string.format("% +2.1E", 1.23456e-05) == "+1.2E-05" +string.format("% +2.1E", 123.456789123) == "+1.2E+02" +string.format("% +2.1E", 1234567891.23) == "+1.2E+09" +string.format("% +2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% +6E", nan) == " +NAN" +string.format("% +6E", inf) == " +INF" +string.format("% +6E", -inf) == " -INF" +string.format("% +6.0E", 0) == "+0E+00" +string.format("% +6.0E", 1) == "+1E+00" +string.format("% +6.0E", -1) == "-1E+00" +string.format("% +6.0E", 2) == "+2E+00" +string.format("% +6.0E", -2) == "-2E+00" +string.format("% +6.0E", 3) == "+3E+00" +string.format("% +6.0E", -3) == "-3E+00" +string.format("% +6.0E", nan) == " +NAN" +string.format("% +6.0E", inf) == " +INF" +string.format("% +6.0E", -inf) == " -INF" +string.format("% +6.0E", 100) == "+1E+02" +string.format("% +6.0E", 10000) == "+1E+04" +string.format("% +6.0E", 100000) == "+1E+05" +string.format("% +6.0E", 1000000) == "+1E+06" +string.format("% +6.0E", 10000000) == "+1E+07" +string.format("% +6.0E", 0.01) == "+1E-02" +string.format("% +6.0E", 0.0001) == "+1E-04" +string.format("% +6.0E", 1e-05) == "+1E-05" +string.format("% +6.0E", 1e-06) == "+1E-06" +string.format("% +6.0E", 1e-07) == "+1E-07" +string.format("% +6.0E", 123.456) == "+1E+02" +string.format("% +6.0E", 1234560000) == "+1E+09" +string.format("% +6.0E", 1.23456e-05) == "+1E-05" +string.format("% +6.0E", 123.456789123) == "+1E+02" +string.format("% +6.0E", 1234567891.23) == "+1E+09" +string.format("% +6.0E", 1.23456789123e-05) == "+1E-05" +string.format("% +6.1E", 0) == "+0.0E+00" +string.format("% +6.1E", 1) == "+1.0E+00" +string.format("% +6.1E", -1) == "-1.0E+00" +string.format("% +6.1E", 2) == "+2.0E+00" +string.format("% +6.1E", -2) == "-2.0E+00" +string.format("% +6.1E", 3) == "+3.0E+00" +string.format("% +6.1E", -3) == "-3.0E+00" +string.format("% +6.1E", nan) == " +NAN" +string.format("% +6.1E", inf) == " +INF" +string.format("% +6.1E", -inf) == " -INF" +string.format("% +6.1E", 100) == "+1.0E+02" +string.format("% +6.1E", 10000) == "+1.0E+04" +string.format("% +6.1E", 100000) == "+1.0E+05" +string.format("% +6.1E", 1000000) == "+1.0E+06" +string.format("% +6.1E", 10000000) == "+1.0E+07" +string.format("% +6.1E", 0.01) == "+1.0E-02" +string.format("% +6.1E", 0.0001) == "+1.0E-04" +string.format("% +6.1E", 1e-05) == "+1.0E-05" +string.format("% +6.1E", 1e-06) == "+1.0E-06" +string.format("% +6.1E", 1e-07) == "+1.0E-07" +string.format("% +6.1E", 123.456) == "+1.2E+02" +string.format("% +6.1E", 1234560000) == "+1.2E+09" +string.format("% +6.1E", 1.23456e-05) == "+1.2E-05" +string.format("% +6.1E", 123.456789123) == "+1.2E+02" +string.format("% +6.1E", 1234567891.23) == "+1.2E+09" +string.format("% +6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% +6.6E", nan) == " +NAN" +string.format("% +6.6E", inf) == " +INF" +string.format("% +6.6E", -inf) == " -INF" +string.format("% +20E", 0) == " +0.000000E+00" +string.format("% +20E", 1) == " +1.000000E+00" +string.format("% +20E", -1) == " -1.000000E+00" +string.format("% +20E", 2) == " +2.000000E+00" +string.format("% +20E", -2) == " -2.000000E+00" +string.format("% +20E", 3) == " +3.000000E+00" +string.format("% +20E", -3) == " -3.000000E+00" +string.format("% +20E", nan) == " +NAN" +string.format("% +20E", inf) == " +INF" +string.format("% +20E", -inf) == " -INF" +string.format("% +20E", 100) == " +1.000000E+02" +string.format("% +20E", 10000) == " +1.000000E+04" +string.format("% +20E", 100000) == " +1.000000E+05" +string.format("% +20E", 1000000) == " +1.000000E+06" +string.format("% +20E", 10000000) == " +1.000000E+07" +string.format("% +20E", 0.01) == " +1.000000E-02" +string.format("% +20E", 0.0001) == " +1.000000E-04" +string.format("% +20E", 1e-05) == " +1.000000E-05" +string.format("% +20E", 1e-06) == " +1.000000E-06" +string.format("% +20E", 1e-07) == " +1.000000E-07" +string.format("% +20E", 123.456) == " +1.234560E+02" +string.format("% +20E", 1234560000) == " +1.234560E+09" +string.format("% +20E", 1.23456e-05) == " +1.234560E-05" +string.format("% +20E", 123.456789123) == " +1.234568E+02" +string.format("% +20E", 1234567891.23) == " +1.234568E+09" +string.format("% +20E", 1.23456789123e-05) == " +1.234568E-05" +string.format("% +20.0E", 0) == " +0E+00" +string.format("% +20.0E", 1) == " +1E+00" +string.format("% +20.0E", -1) == " -1E+00" +string.format("% +20.0E", 2) == " +2E+00" +string.format("% +20.0E", -2) == " -2E+00" +string.format("% +20.0E", 3) == " +3E+00" +string.format("% +20.0E", -3) == " -3E+00" +string.format("% +20.0E", nan) == " +NAN" +string.format("% +20.0E", inf) == " +INF" +string.format("% +20.0E", -inf) == " -INF" +string.format("% +20.0E", 100) == " +1E+02" +string.format("% +20.0E", 10000) == " +1E+04" +string.format("% +20.0E", 100000) == " +1E+05" +string.format("% +20.0E", 1000000) == " +1E+06" +string.format("% +20.0E", 10000000) == " +1E+07" +string.format("% +20.0E", 0.01) == " +1E-02" +string.format("% +20.0E", 0.0001) == " +1E-04" +string.format("% +20.0E", 1e-05) == " +1E-05" +string.format("% +20.0E", 1e-06) == " +1E-06" +string.format("% +20.0E", 1e-07) == " +1E-07" +string.format("% +20.0E", 123.456) == " +1E+02" +string.format("% +20.0E", 1234560000) == " +1E+09" +string.format("% +20.0E", 1.23456e-05) == " +1E-05" +string.format("% +20.0E", 123.456789123) == " +1E+02" +string.format("% +20.0E", 1234567891.23) == " +1E+09" +string.format("% +20.0E", 1.23456789123e-05) == " +1E-05" +string.format("% +20.1E", 0) == " +0.0E+00" +string.format("% +20.1E", 1) == " +1.0E+00" +string.format("% +20.1E", -1) == " -1.0E+00" +string.format("% +20.1E", 2) == " +2.0E+00" +string.format("% +20.1E", -2) == " -2.0E+00" +string.format("% +20.1E", 3) == " +3.0E+00" +string.format("% +20.1E", -3) == " -3.0E+00" +string.format("% +20.1E", nan) == " +NAN" +string.format("% +20.1E", inf) == " +INF" +string.format("% +20.1E", -inf) == " -INF" +string.format("% +20.1E", 100) == " +1.0E+02" +string.format("% +20.1E", 10000) == " +1.0E+04" +string.format("% +20.1E", 100000) == " +1.0E+05" +string.format("% +20.1E", 1000000) == " +1.0E+06" +string.format("% +20.1E", 10000000) == " +1.0E+07" +string.format("% +20.1E", 0.01) == " +1.0E-02" +string.format("% +20.1E", 0.0001) == " +1.0E-04" +string.format("% +20.1E", 1e-05) == " +1.0E-05" +string.format("% +20.1E", 1e-06) == " +1.0E-06" +string.format("% +20.1E", 1e-07) == " +1.0E-07" +string.format("% +20.1E", 123.456) == " +1.2E+02" +string.format("% +20.1E", 1234560000) == " +1.2E+09" +string.format("% +20.1E", 1.23456e-05) == " +1.2E-05" +string.format("% +20.1E", 123.456789123) == " +1.2E+02" +string.format("% +20.1E", 1234567891.23) == " +1.2E+09" +string.format("% +20.1E", 1.23456789123e-05) == " +1.2E-05" +string.format("% +20.6E", 0) == " +0.000000E+00" +string.format("% +20.6E", 1) == " +1.000000E+00" +string.format("% +20.6E", -1) == " -1.000000E+00" +string.format("% +20.6E", 2) == " +2.000000E+00" +string.format("% +20.6E", -2) == " -2.000000E+00" +string.format("% +20.6E", 3) == " +3.000000E+00" +string.format("% +20.6E", -3) == " -3.000000E+00" +string.format("% +20.6E", nan) == " +NAN" +string.format("% +20.6E", inf) == " +INF" +string.format("% +20.6E", -inf) == " -INF" +string.format("% +20.6E", 100) == " +1.000000E+02" +string.format("% +20.6E", 10000) == " +1.000000E+04" +string.format("% +20.6E", 100000) == " +1.000000E+05" +string.format("% +20.6E", 1000000) == " +1.000000E+06" +string.format("% +20.6E", 10000000) == " +1.000000E+07" +string.format("% +20.6E", 0.01) == " +1.000000E-02" +string.format("% +20.6E", 0.0001) == " +1.000000E-04" +string.format("% +20.6E", 1e-05) == " +1.000000E-05" +string.format("% +20.6E", 1e-06) == " +1.000000E-06" +string.format("% +20.6E", 1e-07) == " +1.000000E-07" +string.format("% +20.6E", 123.456) == " +1.234560E+02" +string.format("% +20.6E", 1234560000) == " +1.234560E+09" +string.format("% +20.6E", 1.23456e-05) == " +1.234560E-05" +string.format("% +20.6E", 123.456789123) == " +1.234568E+02" +string.format("% +20.6E", 1234567891.23) == " +1.234568E+09" +string.format("% +20.6E", 1.23456789123e-05) == " +1.234568E-05" +string.format("% -E", 0) == " 0.000000E+00" +string.format("% -E", 1) == " 1.000000E+00" +string.format("% -E", -1) == "-1.000000E+00" +string.format("% -E", 2) == " 2.000000E+00" +string.format("% -E", -2) == "-2.000000E+00" +string.format("% -E", 3) == " 3.000000E+00" +string.format("% -E", -3) == "-3.000000E+00" +string.format("% -E", nan) == " NAN" +string.format("% -E", inf) == " INF" +string.format("% -E", -inf) == "-INF" +string.format("% -E", 100) == " 1.000000E+02" +string.format("% -E", 10000) == " 1.000000E+04" +string.format("% -E", 100000) == " 1.000000E+05" +string.format("% -E", 1000000) == " 1.000000E+06" +string.format("% -E", 10000000) == " 1.000000E+07" +string.format("% -E", 0.01) == " 1.000000E-02" +string.format("% -E", 0.0001) == " 1.000000E-04" +string.format("% -E", 1e-05) == " 1.000000E-05" +string.format("% -E", 1e-06) == " 1.000000E-06" +string.format("% -E", 1e-07) == " 1.000000E-07" +string.format("% -E", 123.456) == " 1.234560E+02" +string.format("% -E", 1234560000) == " 1.234560E+09" +string.format("% -E", 1.23456e-05) == " 1.234560E-05" +string.format("% -E", 123.456789123) == " 1.234568E+02" +string.format("% -E", 1234567891.23) == " 1.234568E+09" +string.format("% -E", 1.23456789123e-05) == " 1.234568E-05" +string.format("% -.0E", 0) == " 0E+00" +string.format("% -.0E", 1) == " 1E+00" +string.format("% -.0E", -1) == "-1E+00" +string.format("% -.0E", 2) == " 2E+00" +string.format("% -.0E", -2) == "-2E+00" +string.format("% -.0E", 3) == " 3E+00" +string.format("% -.0E", -3) == "-3E+00" +string.format("% -.0E", 100) == " 1E+02" +string.format("% -.0E", 10000) == " 1E+04" +string.format("% -.0E", 100000) == " 1E+05" +string.format("% -.0E", 1000000) == " 1E+06" +string.format("% -.0E", 10000000) == " 1E+07" +string.format("% -.0E", 0.01) == " 1E-02" +string.format("% -.0E", 0.0001) == " 1E-04" +string.format("% -.0E", 1e-05) == " 1E-05" +string.format("% -.0E", 1e-06) == " 1E-06" +string.format("% -.0E", 1e-07) == " 1E-07" +string.format("% -.0E", 123.456) == " 1E+02" +string.format("% -.0E", 1234560000) == " 1E+09" +string.format("% -.0E", 1.23456e-05) == " 1E-05" +string.format("% -.0E", 123.456789123) == " 1E+02" +string.format("% -.0E", 1234567891.23) == " 1E+09" +string.format("% -.0E", 1.23456789123e-05) == " 1E-05" +string.format("% -.1E", 0) == " 0.0E+00" +string.format("% -.1E", 1) == " 1.0E+00" +string.format("% -.1E", -1) == "-1.0E+00" +string.format("% -.1E", 2) == " 2.0E+00" +string.format("% -.1E", -2) == "-2.0E+00" +string.format("% -.1E", 3) == " 3.0E+00" +string.format("% -.1E", -3) == "-3.0E+00" +string.format("% -.1E", 100) == " 1.0E+02" +string.format("% -.1E", 10000) == " 1.0E+04" +string.format("% -.1E", 100000) == " 1.0E+05" +string.format("% -.1E", 1000000) == " 1.0E+06" +string.format("% -.1E", 10000000) == " 1.0E+07" +string.format("% -.1E", 0.01) == " 1.0E-02" +string.format("% -.1E", 0.0001) == " 1.0E-04" +string.format("% -.1E", 1e-05) == " 1.0E-05" +string.format("% -.1E", 1e-06) == " 1.0E-06" +string.format("% -.1E", 1e-07) == " 1.0E-07" +string.format("% -.1E", 123.456) == " 1.2E+02" +string.format("% -.1E", 1234560000) == " 1.2E+09" +string.format("% -.1E", 1.23456e-05) == " 1.2E-05" +string.format("% -.1E", 123.456789123) == " 1.2E+02" +string.format("% -.1E", 1234567891.23) == " 1.2E+09" +string.format("% -.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% -1.0E", 0) == " 0E+00" +string.format("% -1.0E", 1) == " 1E+00" +string.format("% -1.0E", -1) == "-1E+00" +string.format("% -1.0E", 2) == " 2E+00" +string.format("% -1.0E", -2) == "-2E+00" +string.format("% -1.0E", 3) == " 3E+00" +string.format("% -1.0E", -3) == "-3E+00" +string.format("% -1.0E", 100) == " 1E+02" +string.format("% -1.0E", 10000) == " 1E+04" +string.format("% -1.0E", 100000) == " 1E+05" +string.format("% -1.0E", 1000000) == " 1E+06" +string.format("% -1.0E", 10000000) == " 1E+07" +string.format("% -1.0E", 0.01) == " 1E-02" +string.format("% -1.0E", 0.0001) == " 1E-04" +string.format("% -1.0E", 1e-05) == " 1E-05" +string.format("% -1.0E", 1e-06) == " 1E-06" +string.format("% -1.0E", 1e-07) == " 1E-07" +string.format("% -1.0E", 123.456) == " 1E+02" +string.format("% -1.0E", 1234560000) == " 1E+09" +string.format("% -1.0E", 1.23456e-05) == " 1E-05" +string.format("% -1.0E", 123.456789123) == " 1E+02" +string.format("% -1.0E", 1234567891.23) == " 1E+09" +string.format("% -1.0E", 1.23456789123e-05) == " 1E-05" +string.format("% -1.1E", 0) == " 0.0E+00" +string.format("% -1.1E", 1) == " 1.0E+00" +string.format("% -1.1E", -1) == "-1.0E+00" +string.format("% -1.1E", 2) == " 2.0E+00" +string.format("% -1.1E", -2) == "-2.0E+00" +string.format("% -1.1E", 3) == " 3.0E+00" +string.format("% -1.1E", -3) == "-3.0E+00" +string.format("% -1.1E", 100) == " 1.0E+02" +string.format("% -1.1E", 10000) == " 1.0E+04" +string.format("% -1.1E", 100000) == " 1.0E+05" +string.format("% -1.1E", 1000000) == " 1.0E+06" +string.format("% -1.1E", 10000000) == " 1.0E+07" +string.format("% -1.1E", 0.01) == " 1.0E-02" +string.format("% -1.1E", 0.0001) == " 1.0E-04" +string.format("% -1.1E", 1e-05) == " 1.0E-05" +string.format("% -1.1E", 1e-06) == " 1.0E-06" +string.format("% -1.1E", 1e-07) == " 1.0E-07" +string.format("% -1.1E", 123.456) == " 1.2E+02" +string.format("% -1.1E", 1234560000) == " 1.2E+09" +string.format("% -1.1E", 1.23456e-05) == " 1.2E-05" +string.format("% -1.1E", 123.456789123) == " 1.2E+02" +string.format("% -1.1E", 1234567891.23) == " 1.2E+09" +string.format("% -1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% -2.0E", 0) == " 0E+00" +string.format("% -2.0E", 1) == " 1E+00" +string.format("% -2.0E", -1) == "-1E+00" +string.format("% -2.0E", 2) == " 2E+00" +string.format("% -2.0E", -2) == "-2E+00" +string.format("% -2.0E", 3) == " 3E+00" +string.format("% -2.0E", -3) == "-3E+00" +string.format("% -2.0E", 100) == " 1E+02" +string.format("% -2.0E", 10000) == " 1E+04" +string.format("% -2.0E", 100000) == " 1E+05" +string.format("% -2.0E", 1000000) == " 1E+06" +string.format("% -2.0E", 10000000) == " 1E+07" +string.format("% -2.0E", 0.01) == " 1E-02" +string.format("% -2.0E", 0.0001) == " 1E-04" +string.format("% -2.0E", 1e-05) == " 1E-05" +string.format("% -2.0E", 1e-06) == " 1E-06" +string.format("% -2.0E", 1e-07) == " 1E-07" +string.format("% -2.0E", 123.456) == " 1E+02" +string.format("% -2.0E", 1234560000) == " 1E+09" +string.format("% -2.0E", 1.23456e-05) == " 1E-05" +string.format("% -2.0E", 123.456789123) == " 1E+02" +string.format("% -2.0E", 1234567891.23) == " 1E+09" +string.format("% -2.0E", 1.23456789123e-05) == " 1E-05" +string.format("% -2.1E", 0) == " 0.0E+00" +string.format("% -2.1E", 1) == " 1.0E+00" +string.format("% -2.1E", -1) == "-1.0E+00" +string.format("% -2.1E", 2) == " 2.0E+00" +string.format("% -2.1E", -2) == "-2.0E+00" +string.format("% -2.1E", 3) == " 3.0E+00" +string.format("% -2.1E", -3) == "-3.0E+00" +string.format("% -2.1E", 100) == " 1.0E+02" +string.format("% -2.1E", 10000) == " 1.0E+04" +string.format("% -2.1E", 100000) == " 1.0E+05" +string.format("% -2.1E", 1000000) == " 1.0E+06" +string.format("% -2.1E", 10000000) == " 1.0E+07" +string.format("% -2.1E", 0.01) == " 1.0E-02" +string.format("% -2.1E", 0.0001) == " 1.0E-04" +string.format("% -2.1E", 1e-05) == " 1.0E-05" +string.format("% -2.1E", 1e-06) == " 1.0E-06" +string.format("% -2.1E", 1e-07) == " 1.0E-07" +string.format("% -2.1E", 123.456) == " 1.2E+02" +string.format("% -2.1E", 1234560000) == " 1.2E+09" +string.format("% -2.1E", 1.23456e-05) == " 1.2E-05" +string.format("% -2.1E", 123.456789123) == " 1.2E+02" +string.format("% -2.1E", 1234567891.23) == " 1.2E+09" +string.format("% -2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% -6E", nan) == " NAN " +string.format("% -6E", inf) == " INF " +string.format("% -6E", -inf) == "-INF " +string.format("% -6.0E", 0) == " 0E+00" +string.format("% -6.0E", 1) == " 1E+00" +string.format("% -6.0E", -1) == "-1E+00" +string.format("% -6.0E", 2) == " 2E+00" +string.format("% -6.0E", -2) == "-2E+00" +string.format("% -6.0E", 3) == " 3E+00" +string.format("% -6.0E", -3) == "-3E+00" +string.format("% -6.0E", nan) == " NAN " +string.format("% -6.0E", inf) == " INF " +string.format("% -6.0E", -inf) == "-INF " +string.format("% -6.0E", 100) == " 1E+02" +string.format("% -6.0E", 10000) == " 1E+04" +string.format("% -6.0E", 100000) == " 1E+05" +string.format("% -6.0E", 1000000) == " 1E+06" +string.format("% -6.0E", 10000000) == " 1E+07" +string.format("% -6.0E", 0.01) == " 1E-02" +string.format("% -6.0E", 0.0001) == " 1E-04" +string.format("% -6.0E", 1e-05) == " 1E-05" +string.format("% -6.0E", 1e-06) == " 1E-06" +string.format("% -6.0E", 1e-07) == " 1E-07" +string.format("% -6.0E", 123.456) == " 1E+02" +string.format("% -6.0E", 1234560000) == " 1E+09" +string.format("% -6.0E", 1.23456e-05) == " 1E-05" +string.format("% -6.0E", 123.456789123) == " 1E+02" +string.format("% -6.0E", 1234567891.23) == " 1E+09" +string.format("% -6.0E", 1.23456789123e-05) == " 1E-05" +string.format("% -6.1E", 0) == " 0.0E+00" +string.format("% -6.1E", 1) == " 1.0E+00" +string.format("% -6.1E", -1) == "-1.0E+00" +string.format("% -6.1E", 2) == " 2.0E+00" +string.format("% -6.1E", -2) == "-2.0E+00" +string.format("% -6.1E", 3) == " 3.0E+00" +string.format("% -6.1E", -3) == "-3.0E+00" +string.format("% -6.1E", nan) == " NAN " +string.format("% -6.1E", inf) == " INF " +string.format("% -6.1E", -inf) == "-INF " +string.format("% -6.1E", 100) == " 1.0E+02" +string.format("% -6.1E", 10000) == " 1.0E+04" +string.format("% -6.1E", 100000) == " 1.0E+05" +string.format("% -6.1E", 1000000) == " 1.0E+06" +string.format("% -6.1E", 10000000) == " 1.0E+07" +string.format("% -6.1E", 0.01) == " 1.0E-02" +string.format("% -6.1E", 0.0001) == " 1.0E-04" +string.format("% -6.1E", 1e-05) == " 1.0E-05" +string.format("% -6.1E", 1e-06) == " 1.0E-06" +string.format("% -6.1E", 1e-07) == " 1.0E-07" +string.format("% -6.1E", 123.456) == " 1.2E+02" +string.format("% -6.1E", 1234560000) == " 1.2E+09" +string.format("% -6.1E", 1.23456e-05) == " 1.2E-05" +string.format("% -6.1E", 123.456789123) == " 1.2E+02" +string.format("% -6.1E", 1234567891.23) == " 1.2E+09" +string.format("% -6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("% -6.6E", nan) == " NAN " +string.format("% -6.6E", inf) == " INF " +string.format("% -6.6E", -inf) == "-INF " +string.format("% -20E", 0) == " 0.000000E+00 " +string.format("% -20E", 1) == " 1.000000E+00 " +string.format("% -20E", -1) == "-1.000000E+00 " +string.format("% -20E", 2) == " 2.000000E+00 " +string.format("% -20E", -2) == "-2.000000E+00 " +string.format("% -20E", 3) == " 3.000000E+00 " +string.format("% -20E", -3) == "-3.000000E+00 " +string.format("% -20E", nan) == " NAN " +string.format("% -20E", inf) == " INF " +string.format("% -20E", -inf) == "-INF " +string.format("% -20E", 100) == " 1.000000E+02 " +string.format("% -20E", 10000) == " 1.000000E+04 " +string.format("% -20E", 100000) == " 1.000000E+05 " +string.format("% -20E", 1000000) == " 1.000000E+06 " +string.format("% -20E", 10000000) == " 1.000000E+07 " +string.format("% -20E", 0.01) == " 1.000000E-02 " +string.format("% -20E", 0.0001) == " 1.000000E-04 " +string.format("% -20E", 1e-05) == " 1.000000E-05 " +string.format("% -20E", 1e-06) == " 1.000000E-06 " +string.format("% -20E", 1e-07) == " 1.000000E-07 " +string.format("% -20E", 123.456) == " 1.234560E+02 " +string.format("% -20E", 1234560000) == " 1.234560E+09 " +string.format("% -20E", 1.23456e-05) == " 1.234560E-05 " +string.format("% -20E", 123.456789123) == " 1.234568E+02 " +string.format("% -20E", 1234567891.23) == " 1.234568E+09 " +string.format("% -20E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("% -20.0E", 0) == " 0E+00 " +string.format("% -20.0E", 1) == " 1E+00 " +string.format("% -20.0E", -1) == "-1E+00 " +string.format("% -20.0E", 2) == " 2E+00 " +string.format("% -20.0E", -2) == "-2E+00 " +string.format("% -20.0E", 3) == " 3E+00 " +string.format("% -20.0E", -3) == "-3E+00 " +string.format("% -20.0E", nan) == " NAN " +string.format("% -20.0E", inf) == " INF " +string.format("% -20.0E", -inf) == "-INF " +string.format("% -20.0E", 100) == " 1E+02 " +string.format("% -20.0E", 10000) == " 1E+04 " +string.format("% -20.0E", 100000) == " 1E+05 " +string.format("% -20.0E", 1000000) == " 1E+06 " +string.format("% -20.0E", 10000000) == " 1E+07 " +string.format("% -20.0E", 0.01) == " 1E-02 " +string.format("% -20.0E", 0.0001) == " 1E-04 " +string.format("% -20.0E", 1e-05) == " 1E-05 " +string.format("% -20.0E", 1e-06) == " 1E-06 " +string.format("% -20.0E", 1e-07) == " 1E-07 " +string.format("% -20.0E", 123.456) == " 1E+02 " +string.format("% -20.0E", 1234560000) == " 1E+09 " +string.format("% -20.0E", 1.23456e-05) == " 1E-05 " +string.format("% -20.0E", 123.456789123) == " 1E+02 " +string.format("% -20.0E", 1234567891.23) == " 1E+09 " +string.format("% -20.0E", 1.23456789123e-05) == " 1E-05 " +string.format("% -20.1E", 0) == " 0.0E+00 " +string.format("% -20.1E", 1) == " 1.0E+00 " +string.format("% -20.1E", -1) == "-1.0E+00 " +string.format("% -20.1E", 2) == " 2.0E+00 " +string.format("% -20.1E", -2) == "-2.0E+00 " +string.format("% -20.1E", 3) == " 3.0E+00 " +string.format("% -20.1E", -3) == "-3.0E+00 " +string.format("% -20.1E", nan) == " NAN " +string.format("% -20.1E", inf) == " INF " +string.format("% -20.1E", -inf) == "-INF " +string.format("% -20.1E", 100) == " 1.0E+02 " +string.format("% -20.1E", 10000) == " 1.0E+04 " +string.format("% -20.1E", 100000) == " 1.0E+05 " +string.format("% -20.1E", 1000000) == " 1.0E+06 " +string.format("% -20.1E", 10000000) == " 1.0E+07 " +string.format("% -20.1E", 0.01) == " 1.0E-02 " +string.format("% -20.1E", 0.0001) == " 1.0E-04 " +string.format("% -20.1E", 1e-05) == " 1.0E-05 " +string.format("% -20.1E", 1e-06) == " 1.0E-06 " +string.format("% -20.1E", 1e-07) == " 1.0E-07 " +string.format("% -20.1E", 123.456) == " 1.2E+02 " +string.format("% -20.1E", 1234560000) == " 1.2E+09 " +string.format("% -20.1E", 1.23456e-05) == " 1.2E-05 " +string.format("% -20.1E", 123.456789123) == " 1.2E+02 " +string.format("% -20.1E", 1234567891.23) == " 1.2E+09 " +string.format("% -20.1E", 1.23456789123e-05) == " 1.2E-05 " +string.format("% -20.6E", 0) == " 0.000000E+00 " +string.format("% -20.6E", 1) == " 1.000000E+00 " +string.format("% -20.6E", -1) == "-1.000000E+00 " +string.format("% -20.6E", 2) == " 2.000000E+00 " +string.format("% -20.6E", -2) == "-2.000000E+00 " +string.format("% -20.6E", 3) == " 3.000000E+00 " +string.format("% -20.6E", -3) == "-3.000000E+00 " +string.format("% -20.6E", nan) == " NAN " +string.format("% -20.6E", inf) == " INF " +string.format("% -20.6E", -inf) == "-INF " +string.format("% -20.6E", 100) == " 1.000000E+02 " +string.format("% -20.6E", 10000) == " 1.000000E+04 " +string.format("% -20.6E", 100000) == " 1.000000E+05 " +string.format("% -20.6E", 1000000) == " 1.000000E+06 " +string.format("% -20.6E", 10000000) == " 1.000000E+07 " +string.format("% -20.6E", 0.01) == " 1.000000E-02 " +string.format("% -20.6E", 0.0001) == " 1.000000E-04 " +string.format("% -20.6E", 1e-05) == " 1.000000E-05 " +string.format("% -20.6E", 1e-06) == " 1.000000E-06 " +string.format("% -20.6E", 1e-07) == " 1.000000E-07 " +string.format("% -20.6E", 123.456) == " 1.234560E+02 " +string.format("% -20.6E", 1234560000) == " 1.234560E+09 " +string.format("% -20.6E", 1.23456e-05) == " 1.234560E-05 " +string.format("% -20.6E", 123.456789123) == " 1.234568E+02 " +string.format("% -20.6E", 1234567891.23) == " 1.234568E+09 " +string.format("% -20.6E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("% -+E", 0) == "+0.000000E+00" +string.format("% -+E", 1) == "+1.000000E+00" +string.format("% -+E", -1) == "-1.000000E+00" +string.format("% -+E", 2) == "+2.000000E+00" +string.format("% -+E", -2) == "-2.000000E+00" +string.format("% -+E", 3) == "+3.000000E+00" +string.format("% -+E", -3) == "-3.000000E+00" +string.format("% -+E", nan) == "+NAN" +string.format("% -+E", inf) == "+INF" +string.format("% -+E", -inf) == "-INF" +string.format("% -+E", 100) == "+1.000000E+02" +string.format("% -+E", 10000) == "+1.000000E+04" +string.format("% -+E", 100000) == "+1.000000E+05" +string.format("% -+E", 1000000) == "+1.000000E+06" +string.format("% -+E", 10000000) == "+1.000000E+07" +string.format("% -+E", 0.01) == "+1.000000E-02" +string.format("% -+E", 0.0001) == "+1.000000E-04" +string.format("% -+E", 1e-05) == "+1.000000E-05" +string.format("% -+E", 1e-06) == "+1.000000E-06" +string.format("% -+E", 1e-07) == "+1.000000E-07" +string.format("% -+E", 123.456) == "+1.234560E+02" +string.format("% -+E", 1234560000) == "+1.234560E+09" +string.format("% -+E", 1.23456e-05) == "+1.234560E-05" +string.format("% -+E", 123.456789123) == "+1.234568E+02" +string.format("% -+E", 1234567891.23) == "+1.234568E+09" +string.format("% -+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("% -+.0E", 0) == "+0E+00" +string.format("% -+.0E", 1) == "+1E+00" +string.format("% -+.0E", -1) == "-1E+00" +string.format("% -+.0E", 2) == "+2E+00" +string.format("% -+.0E", -2) == "-2E+00" +string.format("% -+.0E", 3) == "+3E+00" +string.format("% -+.0E", -3) == "-3E+00" +string.format("% -+.0E", 100) == "+1E+02" +string.format("% -+.0E", 10000) == "+1E+04" +string.format("% -+.0E", 100000) == "+1E+05" +string.format("% -+.0E", 1000000) == "+1E+06" +string.format("% -+.0E", 10000000) == "+1E+07" +string.format("% -+.0E", 0.01) == "+1E-02" +string.format("% -+.0E", 0.0001) == "+1E-04" +string.format("% -+.0E", 1e-05) == "+1E-05" +string.format("% -+.0E", 1e-06) == "+1E-06" +string.format("% -+.0E", 1e-07) == "+1E-07" +string.format("% -+.0E", 123.456) == "+1E+02" +string.format("% -+.0E", 1234560000) == "+1E+09" +string.format("% -+.0E", 1.23456e-05) == "+1E-05" +string.format("% -+.0E", 123.456789123) == "+1E+02" +string.format("% -+.0E", 1234567891.23) == "+1E+09" +string.format("% -+.0E", 1.23456789123e-05) == "+1E-05" +string.format("% -+.1E", 0) == "+0.0E+00" +string.format("% -+.1E", 1) == "+1.0E+00" +string.format("% -+.1E", -1) == "-1.0E+00" +string.format("% -+.1E", 2) == "+2.0E+00" +string.format("% -+.1E", -2) == "-2.0E+00" +string.format("% -+.1E", 3) == "+3.0E+00" +string.format("% -+.1E", -3) == "-3.0E+00" +string.format("% -+.1E", 100) == "+1.0E+02" +string.format("% -+.1E", 10000) == "+1.0E+04" +string.format("% -+.1E", 100000) == "+1.0E+05" +string.format("% -+.1E", 1000000) == "+1.0E+06" +string.format("% -+.1E", 10000000) == "+1.0E+07" +string.format("% -+.1E", 0.01) == "+1.0E-02" +string.format("% -+.1E", 0.0001) == "+1.0E-04" +string.format("% -+.1E", 1e-05) == "+1.0E-05" +string.format("% -+.1E", 1e-06) == "+1.0E-06" +string.format("% -+.1E", 1e-07) == "+1.0E-07" +string.format("% -+.1E", 123.456) == "+1.2E+02" +string.format("% -+.1E", 1234560000) == "+1.2E+09" +string.format("% -+.1E", 1.23456e-05) == "+1.2E-05" +string.format("% -+.1E", 123.456789123) == "+1.2E+02" +string.format("% -+.1E", 1234567891.23) == "+1.2E+09" +string.format("% -+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% -+1.0E", 0) == "+0E+00" +string.format("% -+1.0E", 1) == "+1E+00" +string.format("% -+1.0E", -1) == "-1E+00" +string.format("% -+1.0E", 2) == "+2E+00" +string.format("% -+1.0E", -2) == "-2E+00" +string.format("% -+1.0E", 3) == "+3E+00" +string.format("% -+1.0E", -3) == "-3E+00" +string.format("% -+1.0E", 100) == "+1E+02" +string.format("% -+1.0E", 10000) == "+1E+04" +string.format("% -+1.0E", 100000) == "+1E+05" +string.format("% -+1.0E", 1000000) == "+1E+06" +string.format("% -+1.0E", 10000000) == "+1E+07" +string.format("% -+1.0E", 0.01) == "+1E-02" +string.format("% -+1.0E", 0.0001) == "+1E-04" +string.format("% -+1.0E", 1e-05) == "+1E-05" +string.format("% -+1.0E", 1e-06) == "+1E-06" +string.format("% -+1.0E", 1e-07) == "+1E-07" +string.format("% -+1.0E", 123.456) == "+1E+02" +string.format("% -+1.0E", 1234560000) == "+1E+09" +string.format("% -+1.0E", 1.23456e-05) == "+1E-05" +string.format("% -+1.0E", 123.456789123) == "+1E+02" +string.format("% -+1.0E", 1234567891.23) == "+1E+09" +string.format("% -+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("% -+1.1E", 0) == "+0.0E+00" +string.format("% -+1.1E", 1) == "+1.0E+00" +string.format("% -+1.1E", -1) == "-1.0E+00" +string.format("% -+1.1E", 2) == "+2.0E+00" +string.format("% -+1.1E", -2) == "-2.0E+00" +string.format("% -+1.1E", 3) == "+3.0E+00" +string.format("% -+1.1E", -3) == "-3.0E+00" +string.format("% -+1.1E", 100) == "+1.0E+02" +string.format("% -+1.1E", 10000) == "+1.0E+04" +string.format("% -+1.1E", 100000) == "+1.0E+05" +string.format("% -+1.1E", 1000000) == "+1.0E+06" +string.format("% -+1.1E", 10000000) == "+1.0E+07" +string.format("% -+1.1E", 0.01) == "+1.0E-02" +string.format("% -+1.1E", 0.0001) == "+1.0E-04" +string.format("% -+1.1E", 1e-05) == "+1.0E-05" +string.format("% -+1.1E", 1e-06) == "+1.0E-06" +string.format("% -+1.1E", 1e-07) == "+1.0E-07" +string.format("% -+1.1E", 123.456) == "+1.2E+02" +string.format("% -+1.1E", 1234560000) == "+1.2E+09" +string.format("% -+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("% -+1.1E", 123.456789123) == "+1.2E+02" +string.format("% -+1.1E", 1234567891.23) == "+1.2E+09" +string.format("% -+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% -+2.0E", 0) == "+0E+00" +string.format("% -+2.0E", 1) == "+1E+00" +string.format("% -+2.0E", -1) == "-1E+00" +string.format("% -+2.0E", 2) == "+2E+00" +string.format("% -+2.0E", -2) == "-2E+00" +string.format("% -+2.0E", 3) == "+3E+00" +string.format("% -+2.0E", -3) == "-3E+00" +string.format("% -+2.0E", 100) == "+1E+02" +string.format("% -+2.0E", 10000) == "+1E+04" +string.format("% -+2.0E", 100000) == "+1E+05" +string.format("% -+2.0E", 1000000) == "+1E+06" +string.format("% -+2.0E", 10000000) == "+1E+07" +string.format("% -+2.0E", 0.01) == "+1E-02" +string.format("% -+2.0E", 0.0001) == "+1E-04" +string.format("% -+2.0E", 1e-05) == "+1E-05" +string.format("% -+2.0E", 1e-06) == "+1E-06" +string.format("% -+2.0E", 1e-07) == "+1E-07" +string.format("% -+2.0E", 123.456) == "+1E+02" +string.format("% -+2.0E", 1234560000) == "+1E+09" +string.format("% -+2.0E", 1.23456e-05) == "+1E-05" +string.format("% -+2.0E", 123.456789123) == "+1E+02" +string.format("% -+2.0E", 1234567891.23) == "+1E+09" +string.format("% -+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("% -+2.1E", 0) == "+0.0E+00" +string.format("% -+2.1E", 1) == "+1.0E+00" +string.format("% -+2.1E", -1) == "-1.0E+00" +string.format("% -+2.1E", 2) == "+2.0E+00" +string.format("% -+2.1E", -2) == "-2.0E+00" +string.format("% -+2.1E", 3) == "+3.0E+00" +string.format("% -+2.1E", -3) == "-3.0E+00" +string.format("% -+2.1E", 100) == "+1.0E+02" +string.format("% -+2.1E", 10000) == "+1.0E+04" +string.format("% -+2.1E", 100000) == "+1.0E+05" +string.format("% -+2.1E", 1000000) == "+1.0E+06" +string.format("% -+2.1E", 10000000) == "+1.0E+07" +string.format("% -+2.1E", 0.01) == "+1.0E-02" +string.format("% -+2.1E", 0.0001) == "+1.0E-04" +string.format("% -+2.1E", 1e-05) == "+1.0E-05" +string.format("% -+2.1E", 1e-06) == "+1.0E-06" +string.format("% -+2.1E", 1e-07) == "+1.0E-07" +string.format("% -+2.1E", 123.456) == "+1.2E+02" +string.format("% -+2.1E", 1234560000) == "+1.2E+09" +string.format("% -+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("% -+2.1E", 123.456789123) == "+1.2E+02" +string.format("% -+2.1E", 1234567891.23) == "+1.2E+09" +string.format("% -+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% -+6E", nan) == "+NAN " +string.format("% -+6E", inf) == "+INF " +string.format("% -+6E", -inf) == "-INF " +string.format("% -+6.0E", 0) == "+0E+00" +string.format("% -+6.0E", 1) == "+1E+00" +string.format("% -+6.0E", -1) == "-1E+00" +string.format("% -+6.0E", 2) == "+2E+00" +string.format("% -+6.0E", -2) == "-2E+00" +string.format("% -+6.0E", 3) == "+3E+00" +string.format("% -+6.0E", -3) == "-3E+00" +string.format("% -+6.0E", nan) == "+NAN " +string.format("% -+6.0E", inf) == "+INF " +string.format("% -+6.0E", -inf) == "-INF " +string.format("% -+6.0E", 100) == "+1E+02" +string.format("% -+6.0E", 10000) == "+1E+04" +string.format("% -+6.0E", 100000) == "+1E+05" +string.format("% -+6.0E", 1000000) == "+1E+06" +string.format("% -+6.0E", 10000000) == "+1E+07" +string.format("% -+6.0E", 0.01) == "+1E-02" +string.format("% -+6.0E", 0.0001) == "+1E-04" +string.format("% -+6.0E", 1e-05) == "+1E-05" +string.format("% -+6.0E", 1e-06) == "+1E-06" +string.format("% -+6.0E", 1e-07) == "+1E-07" +string.format("% -+6.0E", 123.456) == "+1E+02" +string.format("% -+6.0E", 1234560000) == "+1E+09" +string.format("% -+6.0E", 1.23456e-05) == "+1E-05" +string.format("% -+6.0E", 123.456789123) == "+1E+02" +string.format("% -+6.0E", 1234567891.23) == "+1E+09" +string.format("% -+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("% -+6.1E", 0) == "+0.0E+00" +string.format("% -+6.1E", 1) == "+1.0E+00" +string.format("% -+6.1E", -1) == "-1.0E+00" +string.format("% -+6.1E", 2) == "+2.0E+00" +string.format("% -+6.1E", -2) == "-2.0E+00" +string.format("% -+6.1E", 3) == "+3.0E+00" +string.format("% -+6.1E", -3) == "-3.0E+00" +string.format("% -+6.1E", nan) == "+NAN " +string.format("% -+6.1E", inf) == "+INF " +string.format("% -+6.1E", -inf) == "-INF " +string.format("% -+6.1E", 100) == "+1.0E+02" +string.format("% -+6.1E", 10000) == "+1.0E+04" +string.format("% -+6.1E", 100000) == "+1.0E+05" +string.format("% -+6.1E", 1000000) == "+1.0E+06" +string.format("% -+6.1E", 10000000) == "+1.0E+07" +string.format("% -+6.1E", 0.01) == "+1.0E-02" +string.format("% -+6.1E", 0.0001) == "+1.0E-04" +string.format("% -+6.1E", 1e-05) == "+1.0E-05" +string.format("% -+6.1E", 1e-06) == "+1.0E-06" +string.format("% -+6.1E", 1e-07) == "+1.0E-07" +string.format("% -+6.1E", 123.456) == "+1.2E+02" +string.format("% -+6.1E", 1234560000) == "+1.2E+09" +string.format("% -+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("% -+6.1E", 123.456789123) == "+1.2E+02" +string.format("% -+6.1E", 1234567891.23) == "+1.2E+09" +string.format("% -+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("% -+6.6E", nan) == "+NAN " +string.format("% -+6.6E", inf) == "+INF " +string.format("% -+6.6E", -inf) == "-INF " +string.format("% -+20E", 0) == "+0.000000E+00 " +string.format("% -+20E", 1) == "+1.000000E+00 " +string.format("% -+20E", -1) == "-1.000000E+00 " +string.format("% -+20E", 2) == "+2.000000E+00 " +string.format("% -+20E", -2) == "-2.000000E+00 " +string.format("% -+20E", 3) == "+3.000000E+00 " +string.format("% -+20E", -3) == "-3.000000E+00 " +string.format("% -+20E", nan) == "+NAN " +string.format("% -+20E", inf) == "+INF " +string.format("% -+20E", -inf) == "-INF " +string.format("% -+20E", 100) == "+1.000000E+02 " +string.format("% -+20E", 10000) == "+1.000000E+04 " +string.format("% -+20E", 100000) == "+1.000000E+05 " +string.format("% -+20E", 1000000) == "+1.000000E+06 " +string.format("% -+20E", 10000000) == "+1.000000E+07 " +string.format("% -+20E", 0.01) == "+1.000000E-02 " +string.format("% -+20E", 0.0001) == "+1.000000E-04 " +string.format("% -+20E", 1e-05) == "+1.000000E-05 " +string.format("% -+20E", 1e-06) == "+1.000000E-06 " +string.format("% -+20E", 1e-07) == "+1.000000E-07 " +string.format("% -+20E", 123.456) == "+1.234560E+02 " +string.format("% -+20E", 1234560000) == "+1.234560E+09 " +string.format("% -+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("% -+20E", 123.456789123) == "+1.234568E+02 " +string.format("% -+20E", 1234567891.23) == "+1.234568E+09 " +string.format("% -+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("% -+20.0E", 0) == "+0E+00 " +string.format("% -+20.0E", 1) == "+1E+00 " +string.format("% -+20.0E", -1) == "-1E+00 " +string.format("% -+20.0E", 2) == "+2E+00 " +string.format("% -+20.0E", -2) == "-2E+00 " +string.format("% -+20.0E", 3) == "+3E+00 " +string.format("% -+20.0E", -3) == "-3E+00 " +string.format("% -+20.0E", nan) == "+NAN " +string.format("% -+20.0E", inf) == "+INF " +string.format("% -+20.0E", -inf) == "-INF " +string.format("% -+20.0E", 100) == "+1E+02 " +string.format("% -+20.0E", 10000) == "+1E+04 " +string.format("% -+20.0E", 100000) == "+1E+05 " +string.format("% -+20.0E", 1000000) == "+1E+06 " +string.format("% -+20.0E", 10000000) == "+1E+07 " +string.format("% -+20.0E", 0.01) == "+1E-02 " +string.format("% -+20.0E", 0.0001) == "+1E-04 " +string.format("% -+20.0E", 1e-05) == "+1E-05 " +string.format("% -+20.0E", 1e-06) == "+1E-06 " +string.format("% -+20.0E", 1e-07) == "+1E-07 " +string.format("% -+20.0E", 123.456) == "+1E+02 " +string.format("% -+20.0E", 1234560000) == "+1E+09 " +string.format("% -+20.0E", 1.23456e-05) == "+1E-05 " +string.format("% -+20.0E", 123.456789123) == "+1E+02 " +string.format("% -+20.0E", 1234567891.23) == "+1E+09 " +string.format("% -+20.0E", 1.23456789123e-05) == "+1E-05 " +string.format("% -+20.1E", 0) == "+0.0E+00 " +string.format("% -+20.1E", 1) == "+1.0E+00 " +string.format("% -+20.1E", -1) == "-1.0E+00 " +string.format("% -+20.1E", 2) == "+2.0E+00 " +string.format("% -+20.1E", -2) == "-2.0E+00 " +string.format("% -+20.1E", 3) == "+3.0E+00 " +string.format("% -+20.1E", -3) == "-3.0E+00 " +string.format("% -+20.1E", nan) == "+NAN " +string.format("% -+20.1E", inf) == "+INF " +string.format("% -+20.1E", -inf) == "-INF " +string.format("% -+20.1E", 100) == "+1.0E+02 " +string.format("% -+20.1E", 10000) == "+1.0E+04 " +string.format("% -+20.1E", 100000) == "+1.0E+05 " +string.format("% -+20.1E", 1000000) == "+1.0E+06 " +string.format("% -+20.1E", 10000000) == "+1.0E+07 " +string.format("% -+20.1E", 0.01) == "+1.0E-02 " +string.format("% -+20.1E", 0.0001) == "+1.0E-04 " +string.format("% -+20.1E", 1e-05) == "+1.0E-05 " +string.format("% -+20.1E", 1e-06) == "+1.0E-06 " +string.format("% -+20.1E", 1e-07) == "+1.0E-07 " +string.format("% -+20.1E", 123.456) == "+1.2E+02 " +string.format("% -+20.1E", 1234560000) == "+1.2E+09 " +string.format("% -+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("% -+20.1E", 123.456789123) == "+1.2E+02 " +string.format("% -+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("% -+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("% -+20.6E", 0) == "+0.000000E+00 " +string.format("% -+20.6E", 1) == "+1.000000E+00 " +string.format("% -+20.6E", -1) == "-1.000000E+00 " +string.format("% -+20.6E", 2) == "+2.000000E+00 " +string.format("% -+20.6E", -2) == "-2.000000E+00 " +string.format("% -+20.6E", 3) == "+3.000000E+00 " +string.format("% -+20.6E", -3) == "-3.000000E+00 " +string.format("% -+20.6E", nan) == "+NAN " +string.format("% -+20.6E", inf) == "+INF " +string.format("% -+20.6E", -inf) == "-INF " +string.format("% -+20.6E", 100) == "+1.000000E+02 " +string.format("% -+20.6E", 10000) == "+1.000000E+04 " +string.format("% -+20.6E", 100000) == "+1.000000E+05 " +string.format("% -+20.6E", 1000000) == "+1.000000E+06 " +string.format("% -+20.6E", 10000000) == "+1.000000E+07 " +string.format("% -+20.6E", 0.01) == "+1.000000E-02 " +string.format("% -+20.6E", 0.0001) == "+1.000000E-04 " +string.format("% -+20.6E", 1e-05) == "+1.000000E-05 " +string.format("% -+20.6E", 1e-06) == "+1.000000E-06 " +string.format("% -+20.6E", 1e-07) == "+1.000000E-07 " +string.format("% -+20.6E", 123.456) == "+1.234560E+02 " +string.format("% -+20.6E", 1234560000) == "+1.234560E+09 " +string.format("% -+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("% -+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("% -+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("% -+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%#E", 0) == "0.000000E+00" +string.format("%#E", 1) == "1.000000E+00" +string.format("%#E", -1) == "-1.000000E+00" +string.format("%#E", 2) == "2.000000E+00" +string.format("%#E", -2) == "-2.000000E+00" +string.format("%#E", 3) == "3.000000E+00" +string.format("%#E", -3) == "-3.000000E+00" +string.format("%#E", nan) == "NAN" +string.format("%#E", inf) == "INF" +string.format("%#E", -inf) == "-INF" +string.format("%#E", 100) == "1.000000E+02" +string.format("%#E", 10000) == "1.000000E+04" +string.format("%#E", 100000) == "1.000000E+05" +string.format("%#E", 1000000) == "1.000000E+06" +string.format("%#E", 10000000) == "1.000000E+07" +string.format("%#E", 0.01) == "1.000000E-02" +string.format("%#E", 0.0001) == "1.000000E-04" +string.format("%#E", 1e-05) == "1.000000E-05" +string.format("%#E", 1e-06) == "1.000000E-06" +string.format("%#E", 1e-07) == "1.000000E-07" +string.format("%#E", 123.456) == "1.234560E+02" +string.format("%#E", 1234560000) == "1.234560E+09" +string.format("%#E", 1.23456e-05) == "1.234560E-05" +string.format("%#E", 123.456789123) == "1.234568E+02" +string.format("%#E", 1234567891.23) == "1.234568E+09" +string.format("%#E", 1.23456789123e-05) == "1.234568E-05" +string.format("%#.0E", 0) == "0.E+00" +string.format("%#.0E", 1) == "1.E+00" +string.format("%#.0E", -1) == "-1.E+00" +string.format("%#.0E", 2) == "2.E+00" +string.format("%#.0E", -2) == "-2.E+00" +string.format("%#.0E", 3) == "3.E+00" +string.format("%#.0E", -3) == "-3.E+00" +string.format("%#.0E", 100) == "1.E+02" +string.format("%#.0E", 10000) == "1.E+04" +string.format("%#.0E", 100000) == "1.E+05" +string.format("%#.0E", 1000000) == "1.E+06" +string.format("%#.0E", 10000000) == "1.E+07" +string.format("%#.0E", 0.01) == "1.E-02" +string.format("%#.0E", 0.0001) == "1.E-04" +string.format("%#.0E", 1e-05) == "1.E-05" +string.format("%#.0E", 1e-06) == "1.E-06" +string.format("%#.0E", 1e-07) == "1.E-07" +string.format("%#.0E", 123.456) == "1.E+02" +string.format("%#.0E", 1234560000) == "1.E+09" +string.format("%#.0E", 1.23456e-05) == "1.E-05" +string.format("%#.0E", 123.456789123) == "1.E+02" +string.format("%#.0E", 1234567891.23) == "1.E+09" +string.format("%#.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#.1E", 0) == "0.0E+00" +string.format("%#.1E", 1) == "1.0E+00" +string.format("%#.1E", -1) == "-1.0E+00" +string.format("%#.1E", 2) == "2.0E+00" +string.format("%#.1E", -2) == "-2.0E+00" +string.format("%#.1E", 3) == "3.0E+00" +string.format("%#.1E", -3) == "-3.0E+00" +string.format("%#.1E", 100) == "1.0E+02" +string.format("%#.1E", 10000) == "1.0E+04" +string.format("%#.1E", 100000) == "1.0E+05" +string.format("%#.1E", 1000000) == "1.0E+06" +string.format("%#.1E", 10000000) == "1.0E+07" +string.format("%#.1E", 0.01) == "1.0E-02" +string.format("%#.1E", 0.0001) == "1.0E-04" +string.format("%#.1E", 1e-05) == "1.0E-05" +string.format("%#.1E", 1e-06) == "1.0E-06" +string.format("%#.1E", 1e-07) == "1.0E-07" +string.format("%#.1E", 123.456) == "1.2E+02" +string.format("%#.1E", 1234560000) == "1.2E+09" +string.format("%#.1E", 1.23456e-05) == "1.2E-05" +string.format("%#.1E", 123.456789123) == "1.2E+02" +string.format("%#.1E", 1234567891.23) == "1.2E+09" +string.format("%#.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#1.0E", 0) == "0.E+00" +string.format("%#1.0E", 1) == "1.E+00" +string.format("%#1.0E", -1) == "-1.E+00" +string.format("%#1.0E", 2) == "2.E+00" +string.format("%#1.0E", -2) == "-2.E+00" +string.format("%#1.0E", 3) == "3.E+00" +string.format("%#1.0E", -3) == "-3.E+00" +string.format("%#1.0E", 100) == "1.E+02" +string.format("%#1.0E", 10000) == "1.E+04" +string.format("%#1.0E", 100000) == "1.E+05" +string.format("%#1.0E", 1000000) == "1.E+06" +string.format("%#1.0E", 10000000) == "1.E+07" +string.format("%#1.0E", 0.01) == "1.E-02" +string.format("%#1.0E", 0.0001) == "1.E-04" +string.format("%#1.0E", 1e-05) == "1.E-05" +string.format("%#1.0E", 1e-06) == "1.E-06" +string.format("%#1.0E", 1e-07) == "1.E-07" +string.format("%#1.0E", 123.456) == "1.E+02" +string.format("%#1.0E", 1234560000) == "1.E+09" +string.format("%#1.0E", 1.23456e-05) == "1.E-05" +string.format("%#1.0E", 123.456789123) == "1.E+02" +string.format("%#1.0E", 1234567891.23) == "1.E+09" +string.format("%#1.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#1.1E", 0) == "0.0E+00" +string.format("%#1.1E", 1) == "1.0E+00" +string.format("%#1.1E", -1) == "-1.0E+00" +string.format("%#1.1E", 2) == "2.0E+00" +string.format("%#1.1E", -2) == "-2.0E+00" +string.format("%#1.1E", 3) == "3.0E+00" +string.format("%#1.1E", -3) == "-3.0E+00" +string.format("%#1.1E", 100) == "1.0E+02" +string.format("%#1.1E", 10000) == "1.0E+04" +string.format("%#1.1E", 100000) == "1.0E+05" +string.format("%#1.1E", 1000000) == "1.0E+06" +string.format("%#1.1E", 10000000) == "1.0E+07" +string.format("%#1.1E", 0.01) == "1.0E-02" +string.format("%#1.1E", 0.0001) == "1.0E-04" +string.format("%#1.1E", 1e-05) == "1.0E-05" +string.format("%#1.1E", 1e-06) == "1.0E-06" +string.format("%#1.1E", 1e-07) == "1.0E-07" +string.format("%#1.1E", 123.456) == "1.2E+02" +string.format("%#1.1E", 1234560000) == "1.2E+09" +string.format("%#1.1E", 1.23456e-05) == "1.2E-05" +string.format("%#1.1E", 123.456789123) == "1.2E+02" +string.format("%#1.1E", 1234567891.23) == "1.2E+09" +string.format("%#1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#2.0E", 0) == "0.E+00" +string.format("%#2.0E", 1) == "1.E+00" +string.format("%#2.0E", -1) == "-1.E+00" +string.format("%#2.0E", 2) == "2.E+00" +string.format("%#2.0E", -2) == "-2.E+00" +string.format("%#2.0E", 3) == "3.E+00" +string.format("%#2.0E", -3) == "-3.E+00" +string.format("%#2.0E", 100) == "1.E+02" +string.format("%#2.0E", 10000) == "1.E+04" +string.format("%#2.0E", 100000) == "1.E+05" +string.format("%#2.0E", 1000000) == "1.E+06" +string.format("%#2.0E", 10000000) == "1.E+07" +string.format("%#2.0E", 0.01) == "1.E-02" +string.format("%#2.0E", 0.0001) == "1.E-04" +string.format("%#2.0E", 1e-05) == "1.E-05" +string.format("%#2.0E", 1e-06) == "1.E-06" +string.format("%#2.0E", 1e-07) == "1.E-07" +string.format("%#2.0E", 123.456) == "1.E+02" +string.format("%#2.0E", 1234560000) == "1.E+09" +string.format("%#2.0E", 1.23456e-05) == "1.E-05" +string.format("%#2.0E", 123.456789123) == "1.E+02" +string.format("%#2.0E", 1234567891.23) == "1.E+09" +string.format("%#2.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#2.1E", 0) == "0.0E+00" +string.format("%#2.1E", 1) == "1.0E+00" +string.format("%#2.1E", -1) == "-1.0E+00" +string.format("%#2.1E", 2) == "2.0E+00" +string.format("%#2.1E", -2) == "-2.0E+00" +string.format("%#2.1E", 3) == "3.0E+00" +string.format("%#2.1E", -3) == "-3.0E+00" +string.format("%#2.1E", 100) == "1.0E+02" +string.format("%#2.1E", 10000) == "1.0E+04" +string.format("%#2.1E", 100000) == "1.0E+05" +string.format("%#2.1E", 1000000) == "1.0E+06" +string.format("%#2.1E", 10000000) == "1.0E+07" +string.format("%#2.1E", 0.01) == "1.0E-02" +string.format("%#2.1E", 0.0001) == "1.0E-04" +string.format("%#2.1E", 1e-05) == "1.0E-05" +string.format("%#2.1E", 1e-06) == "1.0E-06" +string.format("%#2.1E", 1e-07) == "1.0E-07" +string.format("%#2.1E", 123.456) == "1.2E+02" +string.format("%#2.1E", 1234560000) == "1.2E+09" +string.format("%#2.1E", 1.23456e-05) == "1.2E-05" +string.format("%#2.1E", 123.456789123) == "1.2E+02" +string.format("%#2.1E", 1234567891.23) == "1.2E+09" +string.format("%#2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#6E", nan) == " NAN" +string.format("%#6E", inf) == " INF" +string.format("%#6E", -inf) == " -INF" +string.format("%#6.0E", 0) == "0.E+00" +string.format("%#6.0E", 1) == "1.E+00" +string.format("%#6.0E", -1) == "-1.E+00" +string.format("%#6.0E", 2) == "2.E+00" +string.format("%#6.0E", -2) == "-2.E+00" +string.format("%#6.0E", 3) == "3.E+00" +string.format("%#6.0E", -3) == "-3.E+00" +string.format("%#6.0E", nan) == " NAN" +string.format("%#6.0E", inf) == " INF" +string.format("%#6.0E", -inf) == " -INF" +string.format("%#6.0E", 100) == "1.E+02" +string.format("%#6.0E", 10000) == "1.E+04" +string.format("%#6.0E", 100000) == "1.E+05" +string.format("%#6.0E", 1000000) == "1.E+06" +string.format("%#6.0E", 10000000) == "1.E+07" +string.format("%#6.0E", 0.01) == "1.E-02" +string.format("%#6.0E", 0.0001) == "1.E-04" +string.format("%#6.0E", 1e-05) == "1.E-05" +string.format("%#6.0E", 1e-06) == "1.E-06" +string.format("%#6.0E", 1e-07) == "1.E-07" +string.format("%#6.0E", 123.456) == "1.E+02" +string.format("%#6.0E", 1234560000) == "1.E+09" +string.format("%#6.0E", 1.23456e-05) == "1.E-05" +string.format("%#6.0E", 123.456789123) == "1.E+02" +string.format("%#6.0E", 1234567891.23) == "1.E+09" +string.format("%#6.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#6.1E", 0) == "0.0E+00" +string.format("%#6.1E", 1) == "1.0E+00" +string.format("%#6.1E", -1) == "-1.0E+00" +string.format("%#6.1E", 2) == "2.0E+00" +string.format("%#6.1E", -2) == "-2.0E+00" +string.format("%#6.1E", 3) == "3.0E+00" +string.format("%#6.1E", -3) == "-3.0E+00" +string.format("%#6.1E", nan) == " NAN" +string.format("%#6.1E", inf) == " INF" +string.format("%#6.1E", -inf) == " -INF" +string.format("%#6.1E", 100) == "1.0E+02" +string.format("%#6.1E", 10000) == "1.0E+04" +string.format("%#6.1E", 100000) == "1.0E+05" +string.format("%#6.1E", 1000000) == "1.0E+06" +string.format("%#6.1E", 10000000) == "1.0E+07" +string.format("%#6.1E", 0.01) == "1.0E-02" +string.format("%#6.1E", 0.0001) == "1.0E-04" +string.format("%#6.1E", 1e-05) == "1.0E-05" +string.format("%#6.1E", 1e-06) == "1.0E-06" +string.format("%#6.1E", 1e-07) == "1.0E-07" +string.format("%#6.1E", 123.456) == "1.2E+02" +string.format("%#6.1E", 1234560000) == "1.2E+09" +string.format("%#6.1E", 1.23456e-05) == "1.2E-05" +string.format("%#6.1E", 123.456789123) == "1.2E+02" +string.format("%#6.1E", 1234567891.23) == "1.2E+09" +string.format("%#6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#6.6E", nan) == " NAN" +string.format("%#6.6E", inf) == " INF" +string.format("%#6.6E", -inf) == " -INF" +string.format("%#20E", 0) == " 0.000000E+00" +string.format("%#20E", 1) == " 1.000000E+00" +string.format("%#20E", -1) == " -1.000000E+00" +string.format("%#20E", 2) == " 2.000000E+00" +string.format("%#20E", -2) == " -2.000000E+00" +string.format("%#20E", 3) == " 3.000000E+00" +string.format("%#20E", -3) == " -3.000000E+00" +string.format("%#20E", nan) == " NAN" +string.format("%#20E", inf) == " INF" +string.format("%#20E", -inf) == " -INF" +string.format("%#20E", 100) == " 1.000000E+02" +string.format("%#20E", 10000) == " 1.000000E+04" +string.format("%#20E", 100000) == " 1.000000E+05" +string.format("%#20E", 1000000) == " 1.000000E+06" +string.format("%#20E", 10000000) == " 1.000000E+07" +string.format("%#20E", 0.01) == " 1.000000E-02" +string.format("%#20E", 0.0001) == " 1.000000E-04" +string.format("%#20E", 1e-05) == " 1.000000E-05" +string.format("%#20E", 1e-06) == " 1.000000E-06" +string.format("%#20E", 1e-07) == " 1.000000E-07" +string.format("%#20E", 123.456) == " 1.234560E+02" +string.format("%#20E", 1234560000) == " 1.234560E+09" +string.format("%#20E", 1.23456e-05) == " 1.234560E-05" +string.format("%#20E", 123.456789123) == " 1.234568E+02" +string.format("%#20E", 1234567891.23) == " 1.234568E+09" +string.format("%#20E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%#20.0E", 0) == " 0.E+00" +string.format("%#20.0E", 1) == " 1.E+00" +string.format("%#20.0E", -1) == " -1.E+00" +string.format("%#20.0E", 2) == " 2.E+00" +string.format("%#20.0E", -2) == " -2.E+00" +string.format("%#20.0E", 3) == " 3.E+00" +string.format("%#20.0E", -3) == " -3.E+00" +string.format("%#20.0E", nan) == " NAN" +string.format("%#20.0E", inf) == " INF" +string.format("%#20.0E", -inf) == " -INF" +string.format("%#20.0E", 100) == " 1.E+02" +string.format("%#20.0E", 10000) == " 1.E+04" +string.format("%#20.0E", 100000) == " 1.E+05" +string.format("%#20.0E", 1000000) == " 1.E+06" +string.format("%#20.0E", 10000000) == " 1.E+07" +string.format("%#20.0E", 0.01) == " 1.E-02" +string.format("%#20.0E", 0.0001) == " 1.E-04" +string.format("%#20.0E", 1e-05) == " 1.E-05" +string.format("%#20.0E", 1e-06) == " 1.E-06" +string.format("%#20.0E", 1e-07) == " 1.E-07" +string.format("%#20.0E", 123.456) == " 1.E+02" +string.format("%#20.0E", 1234560000) == " 1.E+09" +string.format("%#20.0E", 1.23456e-05) == " 1.E-05" +string.format("%#20.0E", 123.456789123) == " 1.E+02" +string.format("%#20.0E", 1234567891.23) == " 1.E+09" +string.format("%#20.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%#20.1E", 0) == " 0.0E+00" +string.format("%#20.1E", 1) == " 1.0E+00" +string.format("%#20.1E", -1) == " -1.0E+00" +string.format("%#20.1E", 2) == " 2.0E+00" +string.format("%#20.1E", -2) == " -2.0E+00" +string.format("%#20.1E", 3) == " 3.0E+00" +string.format("%#20.1E", -3) == " -3.0E+00" +string.format("%#20.1E", nan) == " NAN" +string.format("%#20.1E", inf) == " INF" +string.format("%#20.1E", -inf) == " -INF" +string.format("%#20.1E", 100) == " 1.0E+02" +string.format("%#20.1E", 10000) == " 1.0E+04" +string.format("%#20.1E", 100000) == " 1.0E+05" +string.format("%#20.1E", 1000000) == " 1.0E+06" +string.format("%#20.1E", 10000000) == " 1.0E+07" +string.format("%#20.1E", 0.01) == " 1.0E-02" +string.format("%#20.1E", 0.0001) == " 1.0E-04" +string.format("%#20.1E", 1e-05) == " 1.0E-05" +string.format("%#20.1E", 1e-06) == " 1.0E-06" +string.format("%#20.1E", 1e-07) == " 1.0E-07" +string.format("%#20.1E", 123.456) == " 1.2E+02" +string.format("%#20.1E", 1234560000) == " 1.2E+09" +string.format("%#20.1E", 1.23456e-05) == " 1.2E-05" +string.format("%#20.1E", 123.456789123) == " 1.2E+02" +string.format("%#20.1E", 1234567891.23) == " 1.2E+09" +string.format("%#20.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%#20.6E", 0) == " 0.000000E+00" +string.format("%#20.6E", 1) == " 1.000000E+00" +string.format("%#20.6E", -1) == " -1.000000E+00" +string.format("%#20.6E", 2) == " 2.000000E+00" +string.format("%#20.6E", -2) == " -2.000000E+00" +string.format("%#20.6E", 3) == " 3.000000E+00" +string.format("%#20.6E", -3) == " -3.000000E+00" +string.format("%#20.6E", nan) == " NAN" +string.format("%#20.6E", inf) == " INF" +string.format("%#20.6E", -inf) == " -INF" +string.format("%#20.6E", 100) == " 1.000000E+02" +string.format("%#20.6E", 10000) == " 1.000000E+04" +string.format("%#20.6E", 100000) == " 1.000000E+05" +string.format("%#20.6E", 1000000) == " 1.000000E+06" +string.format("%#20.6E", 10000000) == " 1.000000E+07" +string.format("%#20.6E", 0.01) == " 1.000000E-02" +string.format("%#20.6E", 0.0001) == " 1.000000E-04" +string.format("%#20.6E", 1e-05) == " 1.000000E-05" +string.format("%#20.6E", 1e-06) == " 1.000000E-06" +string.format("%#20.6E", 1e-07) == " 1.000000E-07" +string.format("%#20.6E", 123.456) == " 1.234560E+02" +string.format("%#20.6E", 1234560000) == " 1.234560E+09" +string.format("%#20.6E", 1.23456e-05) == " 1.234560E-05" +string.format("%#20.6E", 123.456789123) == " 1.234568E+02" +string.format("%#20.6E", 1234567891.23) == " 1.234568E+09" +string.format("%#20.6E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%#+E", 0) == "+0.000000E+00" +string.format("%#+E", 1) == "+1.000000E+00" +string.format("%#+E", -1) == "-1.000000E+00" +string.format("%#+E", 2) == "+2.000000E+00" +string.format("%#+E", -2) == "-2.000000E+00" +string.format("%#+E", 3) == "+3.000000E+00" +string.format("%#+E", -3) == "-3.000000E+00" +string.format("%#+E", nan) == "+NAN" +string.format("%#+E", inf) == "+INF" +string.format("%#+E", -inf) == "-INF" +string.format("%#+E", 100) == "+1.000000E+02" +string.format("%#+E", 10000) == "+1.000000E+04" +string.format("%#+E", 100000) == "+1.000000E+05" +string.format("%#+E", 1000000) == "+1.000000E+06" +string.format("%#+E", 10000000) == "+1.000000E+07" +string.format("%#+E", 0.01) == "+1.000000E-02" +string.format("%#+E", 0.0001) == "+1.000000E-04" +string.format("%#+E", 1e-05) == "+1.000000E-05" +string.format("%#+E", 1e-06) == "+1.000000E-06" +string.format("%#+E", 1e-07) == "+1.000000E-07" +string.format("%#+E", 123.456) == "+1.234560E+02" +string.format("%#+E", 1234560000) == "+1.234560E+09" +string.format("%#+E", 1.23456e-05) == "+1.234560E-05" +string.format("%#+E", 123.456789123) == "+1.234568E+02" +string.format("%#+E", 1234567891.23) == "+1.234568E+09" +string.format("%#+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%#+.0E", 0) == "+0.E+00" +string.format("%#+.0E", 1) == "+1.E+00" +string.format("%#+.0E", -1) == "-1.E+00" +string.format("%#+.0E", 2) == "+2.E+00" +string.format("%#+.0E", -2) == "-2.E+00" +string.format("%#+.0E", 3) == "+3.E+00" +string.format("%#+.0E", -3) == "-3.E+00" +string.format("%#+.0E", 100) == "+1.E+02" +string.format("%#+.0E", 10000) == "+1.E+04" +string.format("%#+.0E", 100000) == "+1.E+05" +string.format("%#+.0E", 1000000) == "+1.E+06" +string.format("%#+.0E", 10000000) == "+1.E+07" +string.format("%#+.0E", 0.01) == "+1.E-02" +string.format("%#+.0E", 0.0001) == "+1.E-04" +string.format("%#+.0E", 1e-05) == "+1.E-05" +string.format("%#+.0E", 1e-06) == "+1.E-06" +string.format("%#+.0E", 1e-07) == "+1.E-07" +string.format("%#+.0E", 123.456) == "+1.E+02" +string.format("%#+.0E", 1234560000) == "+1.E+09" +string.format("%#+.0E", 1.23456e-05) == "+1.E-05" +string.format("%#+.0E", 123.456789123) == "+1.E+02" +string.format("%#+.0E", 1234567891.23) == "+1.E+09" +string.format("%#+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#+.1E", 0) == "+0.0E+00" +string.format("%#+.1E", 1) == "+1.0E+00" +string.format("%#+.1E", -1) == "-1.0E+00" +string.format("%#+.1E", 2) == "+2.0E+00" +string.format("%#+.1E", -2) == "-2.0E+00" +string.format("%#+.1E", 3) == "+3.0E+00" +string.format("%#+.1E", -3) == "-3.0E+00" +string.format("%#+.1E", 100) == "+1.0E+02" +string.format("%#+.1E", 10000) == "+1.0E+04" +string.format("%#+.1E", 100000) == "+1.0E+05" +string.format("%#+.1E", 1000000) == "+1.0E+06" +string.format("%#+.1E", 10000000) == "+1.0E+07" +string.format("%#+.1E", 0.01) == "+1.0E-02" +string.format("%#+.1E", 0.0001) == "+1.0E-04" +string.format("%#+.1E", 1e-05) == "+1.0E-05" +string.format("%#+.1E", 1e-06) == "+1.0E-06" +string.format("%#+.1E", 1e-07) == "+1.0E-07" +string.format("%#+.1E", 123.456) == "+1.2E+02" +string.format("%#+.1E", 1234560000) == "+1.2E+09" +string.format("%#+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#+.1E", 123.456789123) == "+1.2E+02" +string.format("%#+.1E", 1234567891.23) == "+1.2E+09" +string.format("%#+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#+1.0E", 0) == "+0.E+00" +string.format("%#+1.0E", 1) == "+1.E+00" +string.format("%#+1.0E", -1) == "-1.E+00" +string.format("%#+1.0E", 2) == "+2.E+00" +string.format("%#+1.0E", -2) == "-2.E+00" +string.format("%#+1.0E", 3) == "+3.E+00" +string.format("%#+1.0E", -3) == "-3.E+00" +string.format("%#+1.0E", 100) == "+1.E+02" +string.format("%#+1.0E", 10000) == "+1.E+04" +string.format("%#+1.0E", 100000) == "+1.E+05" +string.format("%#+1.0E", 1000000) == "+1.E+06" +string.format("%#+1.0E", 10000000) == "+1.E+07" +string.format("%#+1.0E", 0.01) == "+1.E-02" +string.format("%#+1.0E", 0.0001) == "+1.E-04" +string.format("%#+1.0E", 1e-05) == "+1.E-05" +string.format("%#+1.0E", 1e-06) == "+1.E-06" +string.format("%#+1.0E", 1e-07) == "+1.E-07" +string.format("%#+1.0E", 123.456) == "+1.E+02" +string.format("%#+1.0E", 1234560000) == "+1.E+09" +string.format("%#+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%#+1.0E", 123.456789123) == "+1.E+02" +string.format("%#+1.0E", 1234567891.23) == "+1.E+09" +string.format("%#+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#+1.1E", 0) == "+0.0E+00" +string.format("%#+1.1E", 1) == "+1.0E+00" +string.format("%#+1.1E", -1) == "-1.0E+00" +string.format("%#+1.1E", 2) == "+2.0E+00" +string.format("%#+1.1E", -2) == "-2.0E+00" +string.format("%#+1.1E", 3) == "+3.0E+00" +string.format("%#+1.1E", -3) == "-3.0E+00" +string.format("%#+1.1E", 100) == "+1.0E+02" +string.format("%#+1.1E", 10000) == "+1.0E+04" +string.format("%#+1.1E", 100000) == "+1.0E+05" +string.format("%#+1.1E", 1000000) == "+1.0E+06" +string.format("%#+1.1E", 10000000) == "+1.0E+07" +string.format("%#+1.1E", 0.01) == "+1.0E-02" +string.format("%#+1.1E", 0.0001) == "+1.0E-04" +string.format("%#+1.1E", 1e-05) == "+1.0E-05" +string.format("%#+1.1E", 1e-06) == "+1.0E-06" +string.format("%#+1.1E", 1e-07) == "+1.0E-07" +string.format("%#+1.1E", 123.456) == "+1.2E+02" +string.format("%#+1.1E", 1234560000) == "+1.2E+09" +string.format("%#+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#+1.1E", 123.456789123) == "+1.2E+02" +string.format("%#+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%#+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#+2.0E", 0) == "+0.E+00" +string.format("%#+2.0E", 1) == "+1.E+00" +string.format("%#+2.0E", -1) == "-1.E+00" +string.format("%#+2.0E", 2) == "+2.E+00" +string.format("%#+2.0E", -2) == "-2.E+00" +string.format("%#+2.0E", 3) == "+3.E+00" +string.format("%#+2.0E", -3) == "-3.E+00" +string.format("%#+2.0E", 100) == "+1.E+02" +string.format("%#+2.0E", 10000) == "+1.E+04" +string.format("%#+2.0E", 100000) == "+1.E+05" +string.format("%#+2.0E", 1000000) == "+1.E+06" +string.format("%#+2.0E", 10000000) == "+1.E+07" +string.format("%#+2.0E", 0.01) == "+1.E-02" +string.format("%#+2.0E", 0.0001) == "+1.E-04" +string.format("%#+2.0E", 1e-05) == "+1.E-05" +string.format("%#+2.0E", 1e-06) == "+1.E-06" +string.format("%#+2.0E", 1e-07) == "+1.E-07" +string.format("%#+2.0E", 123.456) == "+1.E+02" +string.format("%#+2.0E", 1234560000) == "+1.E+09" +string.format("%#+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%#+2.0E", 123.456789123) == "+1.E+02" +string.format("%#+2.0E", 1234567891.23) == "+1.E+09" +string.format("%#+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#+2.1E", 0) == "+0.0E+00" +string.format("%#+2.1E", 1) == "+1.0E+00" +string.format("%#+2.1E", -1) == "-1.0E+00" +string.format("%#+2.1E", 2) == "+2.0E+00" +string.format("%#+2.1E", -2) == "-2.0E+00" +string.format("%#+2.1E", 3) == "+3.0E+00" +string.format("%#+2.1E", -3) == "-3.0E+00" +string.format("%#+2.1E", 100) == "+1.0E+02" +string.format("%#+2.1E", 10000) == "+1.0E+04" +string.format("%#+2.1E", 100000) == "+1.0E+05" +string.format("%#+2.1E", 1000000) == "+1.0E+06" +string.format("%#+2.1E", 10000000) == "+1.0E+07" +string.format("%#+2.1E", 0.01) == "+1.0E-02" +string.format("%#+2.1E", 0.0001) == "+1.0E-04" +string.format("%#+2.1E", 1e-05) == "+1.0E-05" +string.format("%#+2.1E", 1e-06) == "+1.0E-06" +string.format("%#+2.1E", 1e-07) == "+1.0E-07" +string.format("%#+2.1E", 123.456) == "+1.2E+02" +string.format("%#+2.1E", 1234560000) == "+1.2E+09" +string.format("%#+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#+2.1E", 123.456789123) == "+1.2E+02" +string.format("%#+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%#+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#+6E", nan) == " +NAN" +string.format("%#+6E", inf) == " +INF" +string.format("%#+6E", -inf) == " -INF" +string.format("%#+6.0E", 0) == "+0.E+00" +string.format("%#+6.0E", 1) == "+1.E+00" +string.format("%#+6.0E", -1) == "-1.E+00" +string.format("%#+6.0E", 2) == "+2.E+00" +string.format("%#+6.0E", -2) == "-2.E+00" +string.format("%#+6.0E", 3) == "+3.E+00" +string.format("%#+6.0E", -3) == "-3.E+00" +string.format("%#+6.0E", nan) == " +NAN" +string.format("%#+6.0E", inf) == " +INF" +string.format("%#+6.0E", -inf) == " -INF" +string.format("%#+6.0E", 100) == "+1.E+02" +string.format("%#+6.0E", 10000) == "+1.E+04" +string.format("%#+6.0E", 100000) == "+1.E+05" +string.format("%#+6.0E", 1000000) == "+1.E+06" +string.format("%#+6.0E", 10000000) == "+1.E+07" +string.format("%#+6.0E", 0.01) == "+1.E-02" +string.format("%#+6.0E", 0.0001) == "+1.E-04" +string.format("%#+6.0E", 1e-05) == "+1.E-05" +string.format("%#+6.0E", 1e-06) == "+1.E-06" +string.format("%#+6.0E", 1e-07) == "+1.E-07" +string.format("%#+6.0E", 123.456) == "+1.E+02" +string.format("%#+6.0E", 1234560000) == "+1.E+09" +string.format("%#+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%#+6.0E", 123.456789123) == "+1.E+02" +string.format("%#+6.0E", 1234567891.23) == "+1.E+09" +string.format("%#+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#+6.1E", 0) == "+0.0E+00" +string.format("%#+6.1E", 1) == "+1.0E+00" +string.format("%#+6.1E", -1) == "-1.0E+00" +string.format("%#+6.1E", 2) == "+2.0E+00" +string.format("%#+6.1E", -2) == "-2.0E+00" +string.format("%#+6.1E", 3) == "+3.0E+00" +string.format("%#+6.1E", -3) == "-3.0E+00" +string.format("%#+6.1E", nan) == " +NAN" +string.format("%#+6.1E", inf) == " +INF" +string.format("%#+6.1E", -inf) == " -INF" +string.format("%#+6.1E", 100) == "+1.0E+02" +string.format("%#+6.1E", 10000) == "+1.0E+04" +string.format("%#+6.1E", 100000) == "+1.0E+05" +string.format("%#+6.1E", 1000000) == "+1.0E+06" +string.format("%#+6.1E", 10000000) == "+1.0E+07" +string.format("%#+6.1E", 0.01) == "+1.0E-02" +string.format("%#+6.1E", 0.0001) == "+1.0E-04" +string.format("%#+6.1E", 1e-05) == "+1.0E-05" +string.format("%#+6.1E", 1e-06) == "+1.0E-06" +string.format("%#+6.1E", 1e-07) == "+1.0E-07" +string.format("%#+6.1E", 123.456) == "+1.2E+02" +string.format("%#+6.1E", 1234560000) == "+1.2E+09" +string.format("%#+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#+6.1E", 123.456789123) == "+1.2E+02" +string.format("%#+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%#+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#+6.6E", nan) == " +NAN" +string.format("%#+6.6E", inf) == " +INF" +string.format("%#+6.6E", -inf) == " -INF" +string.format("%#+20E", 0) == " +0.000000E+00" +string.format("%#+20E", 1) == " +1.000000E+00" +string.format("%#+20E", -1) == " -1.000000E+00" +string.format("%#+20E", 2) == " +2.000000E+00" +string.format("%#+20E", -2) == " -2.000000E+00" +string.format("%#+20E", 3) == " +3.000000E+00" +string.format("%#+20E", -3) == " -3.000000E+00" +string.format("%#+20E", nan) == " +NAN" +string.format("%#+20E", inf) == " +INF" +string.format("%#+20E", -inf) == " -INF" +string.format("%#+20E", 100) == " +1.000000E+02" +string.format("%#+20E", 10000) == " +1.000000E+04" +string.format("%#+20E", 100000) == " +1.000000E+05" +string.format("%#+20E", 1000000) == " +1.000000E+06" +string.format("%#+20E", 10000000) == " +1.000000E+07" +string.format("%#+20E", 0.01) == " +1.000000E-02" +string.format("%#+20E", 0.0001) == " +1.000000E-04" +string.format("%#+20E", 1e-05) == " +1.000000E-05" +string.format("%#+20E", 1e-06) == " +1.000000E-06" +string.format("%#+20E", 1e-07) == " +1.000000E-07" +string.format("%#+20E", 123.456) == " +1.234560E+02" +string.format("%#+20E", 1234560000) == " +1.234560E+09" +string.format("%#+20E", 1.23456e-05) == " +1.234560E-05" +string.format("%#+20E", 123.456789123) == " +1.234568E+02" +string.format("%#+20E", 1234567891.23) == " +1.234568E+09" +string.format("%#+20E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%#+20.0E", 0) == " +0.E+00" +string.format("%#+20.0E", 1) == " +1.E+00" +string.format("%#+20.0E", -1) == " -1.E+00" +string.format("%#+20.0E", 2) == " +2.E+00" +string.format("%#+20.0E", -2) == " -2.E+00" +string.format("%#+20.0E", 3) == " +3.E+00" +string.format("%#+20.0E", -3) == " -3.E+00" +string.format("%#+20.0E", nan) == " +NAN" +string.format("%#+20.0E", inf) == " +INF" +string.format("%#+20.0E", -inf) == " -INF" +string.format("%#+20.0E", 100) == " +1.E+02" +string.format("%#+20.0E", 10000) == " +1.E+04" +string.format("%#+20.0E", 100000) == " +1.E+05" +string.format("%#+20.0E", 1000000) == " +1.E+06" +string.format("%#+20.0E", 10000000) == " +1.E+07" +string.format("%#+20.0E", 0.01) == " +1.E-02" +string.format("%#+20.0E", 0.0001) == " +1.E-04" +string.format("%#+20.0E", 1e-05) == " +1.E-05" +string.format("%#+20.0E", 1e-06) == " +1.E-06" +string.format("%#+20.0E", 1e-07) == " +1.E-07" +string.format("%#+20.0E", 123.456) == " +1.E+02" +string.format("%#+20.0E", 1234560000) == " +1.E+09" +string.format("%#+20.0E", 1.23456e-05) == " +1.E-05" +string.format("%#+20.0E", 123.456789123) == " +1.E+02" +string.format("%#+20.0E", 1234567891.23) == " +1.E+09" +string.format("%#+20.0E", 1.23456789123e-05) == " +1.E-05" +string.format("%#+20.1E", 0) == " +0.0E+00" +string.format("%#+20.1E", 1) == " +1.0E+00" +string.format("%#+20.1E", -1) == " -1.0E+00" +string.format("%#+20.1E", 2) == " +2.0E+00" +string.format("%#+20.1E", -2) == " -2.0E+00" +string.format("%#+20.1E", 3) == " +3.0E+00" +string.format("%#+20.1E", -3) == " -3.0E+00" +string.format("%#+20.1E", nan) == " +NAN" +string.format("%#+20.1E", inf) == " +INF" +string.format("%#+20.1E", -inf) == " -INF" +string.format("%#+20.1E", 100) == " +1.0E+02" +string.format("%#+20.1E", 10000) == " +1.0E+04" +string.format("%#+20.1E", 100000) == " +1.0E+05" +string.format("%#+20.1E", 1000000) == " +1.0E+06" +string.format("%#+20.1E", 10000000) == " +1.0E+07" +string.format("%#+20.1E", 0.01) == " +1.0E-02" +string.format("%#+20.1E", 0.0001) == " +1.0E-04" +string.format("%#+20.1E", 1e-05) == " +1.0E-05" +string.format("%#+20.1E", 1e-06) == " +1.0E-06" +string.format("%#+20.1E", 1e-07) == " +1.0E-07" +string.format("%#+20.1E", 123.456) == " +1.2E+02" +string.format("%#+20.1E", 1234560000) == " +1.2E+09" +string.format("%#+20.1E", 1.23456e-05) == " +1.2E-05" +string.format("%#+20.1E", 123.456789123) == " +1.2E+02" +string.format("%#+20.1E", 1234567891.23) == " +1.2E+09" +string.format("%#+20.1E", 1.23456789123e-05) == " +1.2E-05" +string.format("%#+20.6E", 0) == " +0.000000E+00" +string.format("%#+20.6E", 1) == " +1.000000E+00" +string.format("%#+20.6E", -1) == " -1.000000E+00" +string.format("%#+20.6E", 2) == " +2.000000E+00" +string.format("%#+20.6E", -2) == " -2.000000E+00" +string.format("%#+20.6E", 3) == " +3.000000E+00" +string.format("%#+20.6E", -3) == " -3.000000E+00" +string.format("%#+20.6E", nan) == " +NAN" +string.format("%#+20.6E", inf) == " +INF" +string.format("%#+20.6E", -inf) == " -INF" +string.format("%#+20.6E", 100) == " +1.000000E+02" +string.format("%#+20.6E", 10000) == " +1.000000E+04" +string.format("%#+20.6E", 100000) == " +1.000000E+05" +string.format("%#+20.6E", 1000000) == " +1.000000E+06" +string.format("%#+20.6E", 10000000) == " +1.000000E+07" +string.format("%#+20.6E", 0.01) == " +1.000000E-02" +string.format("%#+20.6E", 0.0001) == " +1.000000E-04" +string.format("%#+20.6E", 1e-05) == " +1.000000E-05" +string.format("%#+20.6E", 1e-06) == " +1.000000E-06" +string.format("%#+20.6E", 1e-07) == " +1.000000E-07" +string.format("%#+20.6E", 123.456) == " +1.234560E+02" +string.format("%#+20.6E", 1234560000) == " +1.234560E+09" +string.format("%#+20.6E", 1.23456e-05) == " +1.234560E-05" +string.format("%#+20.6E", 123.456789123) == " +1.234568E+02" +string.format("%#+20.6E", 1234567891.23) == " +1.234568E+09" +string.format("%#+20.6E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%#-E", 0) == "0.000000E+00" +string.format("%#-E", 1) == "1.000000E+00" +string.format("%#-E", -1) == "-1.000000E+00" +string.format("%#-E", 2) == "2.000000E+00" +string.format("%#-E", -2) == "-2.000000E+00" +string.format("%#-E", 3) == "3.000000E+00" +string.format("%#-E", -3) == "-3.000000E+00" +string.format("%#-E", nan) == "NAN" +string.format("%#-E", inf) == "INF" +string.format("%#-E", -inf) == "-INF" +string.format("%#-E", 100) == "1.000000E+02" +string.format("%#-E", 10000) == "1.000000E+04" +string.format("%#-E", 100000) == "1.000000E+05" +string.format("%#-E", 1000000) == "1.000000E+06" +string.format("%#-E", 10000000) == "1.000000E+07" +string.format("%#-E", 0.01) == "1.000000E-02" +string.format("%#-E", 0.0001) == "1.000000E-04" +string.format("%#-E", 1e-05) == "1.000000E-05" +string.format("%#-E", 1e-06) == "1.000000E-06" +string.format("%#-E", 1e-07) == "1.000000E-07" +string.format("%#-E", 123.456) == "1.234560E+02" +string.format("%#-E", 1234560000) == "1.234560E+09" +string.format("%#-E", 1.23456e-05) == "1.234560E-05" +string.format("%#-E", 123.456789123) == "1.234568E+02" +string.format("%#-E", 1234567891.23) == "1.234568E+09" +string.format("%#-E", 1.23456789123e-05) == "1.234568E-05" +string.format("%#-.0E", 0) == "0.E+00" +string.format("%#-.0E", 1) == "1.E+00" +string.format("%#-.0E", -1) == "-1.E+00" +string.format("%#-.0E", 2) == "2.E+00" +string.format("%#-.0E", -2) == "-2.E+00" +string.format("%#-.0E", 3) == "3.E+00" +string.format("%#-.0E", -3) == "-3.E+00" +string.format("%#-.0E", 100) == "1.E+02" +string.format("%#-.0E", 10000) == "1.E+04" +string.format("%#-.0E", 100000) == "1.E+05" +string.format("%#-.0E", 1000000) == "1.E+06" +string.format("%#-.0E", 10000000) == "1.E+07" +string.format("%#-.0E", 0.01) == "1.E-02" +string.format("%#-.0E", 0.0001) == "1.E-04" +string.format("%#-.0E", 1e-05) == "1.E-05" +string.format("%#-.0E", 1e-06) == "1.E-06" +string.format("%#-.0E", 1e-07) == "1.E-07" +string.format("%#-.0E", 123.456) == "1.E+02" +string.format("%#-.0E", 1234560000) == "1.E+09" +string.format("%#-.0E", 1.23456e-05) == "1.E-05" +string.format("%#-.0E", 123.456789123) == "1.E+02" +string.format("%#-.0E", 1234567891.23) == "1.E+09" +string.format("%#-.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#-.1E", 0) == "0.0E+00" +string.format("%#-.1E", 1) == "1.0E+00" +string.format("%#-.1E", -1) == "-1.0E+00" +string.format("%#-.1E", 2) == "2.0E+00" +string.format("%#-.1E", -2) == "-2.0E+00" +string.format("%#-.1E", 3) == "3.0E+00" +string.format("%#-.1E", -3) == "-3.0E+00" +string.format("%#-.1E", 100) == "1.0E+02" +string.format("%#-.1E", 10000) == "1.0E+04" +string.format("%#-.1E", 100000) == "1.0E+05" +string.format("%#-.1E", 1000000) == "1.0E+06" +string.format("%#-.1E", 10000000) == "1.0E+07" +string.format("%#-.1E", 0.01) == "1.0E-02" +string.format("%#-.1E", 0.0001) == "1.0E-04" +string.format("%#-.1E", 1e-05) == "1.0E-05" +string.format("%#-.1E", 1e-06) == "1.0E-06" +string.format("%#-.1E", 1e-07) == "1.0E-07" +string.format("%#-.1E", 123.456) == "1.2E+02" +string.format("%#-.1E", 1234560000) == "1.2E+09" +string.format("%#-.1E", 1.23456e-05) == "1.2E-05" +string.format("%#-.1E", 123.456789123) == "1.2E+02" +string.format("%#-.1E", 1234567891.23) == "1.2E+09" +string.format("%#-.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#-1.0E", 0) == "0.E+00" +string.format("%#-1.0E", 1) == "1.E+00" +string.format("%#-1.0E", -1) == "-1.E+00" +string.format("%#-1.0E", 2) == "2.E+00" +string.format("%#-1.0E", -2) == "-2.E+00" +string.format("%#-1.0E", 3) == "3.E+00" +string.format("%#-1.0E", -3) == "-3.E+00" +string.format("%#-1.0E", 100) == "1.E+02" +string.format("%#-1.0E", 10000) == "1.E+04" +string.format("%#-1.0E", 100000) == "1.E+05" +string.format("%#-1.0E", 1000000) == "1.E+06" +string.format("%#-1.0E", 10000000) == "1.E+07" +string.format("%#-1.0E", 0.01) == "1.E-02" +string.format("%#-1.0E", 0.0001) == "1.E-04" +string.format("%#-1.0E", 1e-05) == "1.E-05" +string.format("%#-1.0E", 1e-06) == "1.E-06" +string.format("%#-1.0E", 1e-07) == "1.E-07" +string.format("%#-1.0E", 123.456) == "1.E+02" +string.format("%#-1.0E", 1234560000) == "1.E+09" +string.format("%#-1.0E", 1.23456e-05) == "1.E-05" +string.format("%#-1.0E", 123.456789123) == "1.E+02" +string.format("%#-1.0E", 1234567891.23) == "1.E+09" +string.format("%#-1.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#-1.1E", 0) == "0.0E+00" +string.format("%#-1.1E", 1) == "1.0E+00" +string.format("%#-1.1E", -1) == "-1.0E+00" +string.format("%#-1.1E", 2) == "2.0E+00" +string.format("%#-1.1E", -2) == "-2.0E+00" +string.format("%#-1.1E", 3) == "3.0E+00" +string.format("%#-1.1E", -3) == "-3.0E+00" +string.format("%#-1.1E", 100) == "1.0E+02" +string.format("%#-1.1E", 10000) == "1.0E+04" +string.format("%#-1.1E", 100000) == "1.0E+05" +string.format("%#-1.1E", 1000000) == "1.0E+06" +string.format("%#-1.1E", 10000000) == "1.0E+07" +string.format("%#-1.1E", 0.01) == "1.0E-02" +string.format("%#-1.1E", 0.0001) == "1.0E-04" +string.format("%#-1.1E", 1e-05) == "1.0E-05" +string.format("%#-1.1E", 1e-06) == "1.0E-06" +string.format("%#-1.1E", 1e-07) == "1.0E-07" +string.format("%#-1.1E", 123.456) == "1.2E+02" +string.format("%#-1.1E", 1234560000) == "1.2E+09" +string.format("%#-1.1E", 1.23456e-05) == "1.2E-05" +string.format("%#-1.1E", 123.456789123) == "1.2E+02" +string.format("%#-1.1E", 1234567891.23) == "1.2E+09" +string.format("%#-1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#-2.0E", 0) == "0.E+00" +string.format("%#-2.0E", 1) == "1.E+00" +string.format("%#-2.0E", -1) == "-1.E+00" +string.format("%#-2.0E", 2) == "2.E+00" +string.format("%#-2.0E", -2) == "-2.E+00" +string.format("%#-2.0E", 3) == "3.E+00" +string.format("%#-2.0E", -3) == "-3.E+00" +string.format("%#-2.0E", 100) == "1.E+02" +string.format("%#-2.0E", 10000) == "1.E+04" +string.format("%#-2.0E", 100000) == "1.E+05" +string.format("%#-2.0E", 1000000) == "1.E+06" +string.format("%#-2.0E", 10000000) == "1.E+07" +string.format("%#-2.0E", 0.01) == "1.E-02" +string.format("%#-2.0E", 0.0001) == "1.E-04" +string.format("%#-2.0E", 1e-05) == "1.E-05" +string.format("%#-2.0E", 1e-06) == "1.E-06" +string.format("%#-2.0E", 1e-07) == "1.E-07" +string.format("%#-2.0E", 123.456) == "1.E+02" +string.format("%#-2.0E", 1234560000) == "1.E+09" +string.format("%#-2.0E", 1.23456e-05) == "1.E-05" +string.format("%#-2.0E", 123.456789123) == "1.E+02" +string.format("%#-2.0E", 1234567891.23) == "1.E+09" +string.format("%#-2.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#-2.1E", 0) == "0.0E+00" +string.format("%#-2.1E", 1) == "1.0E+00" +string.format("%#-2.1E", -1) == "-1.0E+00" +string.format("%#-2.1E", 2) == "2.0E+00" +string.format("%#-2.1E", -2) == "-2.0E+00" +string.format("%#-2.1E", 3) == "3.0E+00" +string.format("%#-2.1E", -3) == "-3.0E+00" +string.format("%#-2.1E", 100) == "1.0E+02" +string.format("%#-2.1E", 10000) == "1.0E+04" +string.format("%#-2.1E", 100000) == "1.0E+05" +string.format("%#-2.1E", 1000000) == "1.0E+06" +string.format("%#-2.1E", 10000000) == "1.0E+07" +string.format("%#-2.1E", 0.01) == "1.0E-02" +string.format("%#-2.1E", 0.0001) == "1.0E-04" +string.format("%#-2.1E", 1e-05) == "1.0E-05" +string.format("%#-2.1E", 1e-06) == "1.0E-06" +string.format("%#-2.1E", 1e-07) == "1.0E-07" +string.format("%#-2.1E", 123.456) == "1.2E+02" +string.format("%#-2.1E", 1234560000) == "1.2E+09" +string.format("%#-2.1E", 1.23456e-05) == "1.2E-05" +string.format("%#-2.1E", 123.456789123) == "1.2E+02" +string.format("%#-2.1E", 1234567891.23) == "1.2E+09" +string.format("%#-2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#-6E", nan) == "NAN " +string.format("%#-6E", inf) == "INF " +string.format("%#-6E", -inf) == "-INF " +string.format("%#-6.0E", 0) == "0.E+00" +string.format("%#-6.0E", 1) == "1.E+00" +string.format("%#-6.0E", -1) == "-1.E+00" +string.format("%#-6.0E", 2) == "2.E+00" +string.format("%#-6.0E", -2) == "-2.E+00" +string.format("%#-6.0E", 3) == "3.E+00" +string.format("%#-6.0E", -3) == "-3.E+00" +string.format("%#-6.0E", nan) == "NAN " +string.format("%#-6.0E", inf) == "INF " +string.format("%#-6.0E", -inf) == "-INF " +string.format("%#-6.0E", 100) == "1.E+02" +string.format("%#-6.0E", 10000) == "1.E+04" +string.format("%#-6.0E", 100000) == "1.E+05" +string.format("%#-6.0E", 1000000) == "1.E+06" +string.format("%#-6.0E", 10000000) == "1.E+07" +string.format("%#-6.0E", 0.01) == "1.E-02" +string.format("%#-6.0E", 0.0001) == "1.E-04" +string.format("%#-6.0E", 1e-05) == "1.E-05" +string.format("%#-6.0E", 1e-06) == "1.E-06" +string.format("%#-6.0E", 1e-07) == "1.E-07" +string.format("%#-6.0E", 123.456) == "1.E+02" +string.format("%#-6.0E", 1234560000) == "1.E+09" +string.format("%#-6.0E", 1.23456e-05) == "1.E-05" +string.format("%#-6.0E", 123.456789123) == "1.E+02" +string.format("%#-6.0E", 1234567891.23) == "1.E+09" +string.format("%#-6.0E", 1.23456789123e-05) == "1.E-05" +string.format("%#-6.1E", 0) == "0.0E+00" +string.format("%#-6.1E", 1) == "1.0E+00" +string.format("%#-6.1E", -1) == "-1.0E+00" +string.format("%#-6.1E", 2) == "2.0E+00" +string.format("%#-6.1E", -2) == "-2.0E+00" +string.format("%#-6.1E", 3) == "3.0E+00" +string.format("%#-6.1E", -3) == "-3.0E+00" +string.format("%#-6.1E", nan) == "NAN " +string.format("%#-6.1E", inf) == "INF " +string.format("%#-6.1E", -inf) == "-INF " +string.format("%#-6.1E", 100) == "1.0E+02" +string.format("%#-6.1E", 10000) == "1.0E+04" +string.format("%#-6.1E", 100000) == "1.0E+05" +string.format("%#-6.1E", 1000000) == "1.0E+06" +string.format("%#-6.1E", 10000000) == "1.0E+07" +string.format("%#-6.1E", 0.01) == "1.0E-02" +string.format("%#-6.1E", 0.0001) == "1.0E-04" +string.format("%#-6.1E", 1e-05) == "1.0E-05" +string.format("%#-6.1E", 1e-06) == "1.0E-06" +string.format("%#-6.1E", 1e-07) == "1.0E-07" +string.format("%#-6.1E", 123.456) == "1.2E+02" +string.format("%#-6.1E", 1234560000) == "1.2E+09" +string.format("%#-6.1E", 1.23456e-05) == "1.2E-05" +string.format("%#-6.1E", 123.456789123) == "1.2E+02" +string.format("%#-6.1E", 1234567891.23) == "1.2E+09" +string.format("%#-6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%#-6.6E", nan) == "NAN " +string.format("%#-6.6E", inf) == "INF " +string.format("%#-6.6E", -inf) == "-INF " +string.format("%#-20E", 0) == "0.000000E+00 " +string.format("%#-20E", 1) == "1.000000E+00 " +string.format("%#-20E", -1) == "-1.000000E+00 " +string.format("%#-20E", 2) == "2.000000E+00 " +string.format("%#-20E", -2) == "-2.000000E+00 " +string.format("%#-20E", 3) == "3.000000E+00 " +string.format("%#-20E", -3) == "-3.000000E+00 " +string.format("%#-20E", nan) == "NAN " +string.format("%#-20E", inf) == "INF " +string.format("%#-20E", -inf) == "-INF " +string.format("%#-20E", 100) == "1.000000E+02 " +string.format("%#-20E", 10000) == "1.000000E+04 " +string.format("%#-20E", 100000) == "1.000000E+05 " +string.format("%#-20E", 1000000) == "1.000000E+06 " +string.format("%#-20E", 10000000) == "1.000000E+07 " +string.format("%#-20E", 0.01) == "1.000000E-02 " +string.format("%#-20E", 0.0001) == "1.000000E-04 " +string.format("%#-20E", 1e-05) == "1.000000E-05 " +string.format("%#-20E", 1e-06) == "1.000000E-06 " +string.format("%#-20E", 1e-07) == "1.000000E-07 " +string.format("%#-20E", 123.456) == "1.234560E+02 " +string.format("%#-20E", 1234560000) == "1.234560E+09 " +string.format("%#-20E", 1.23456e-05) == "1.234560E-05 " +string.format("%#-20E", 123.456789123) == "1.234568E+02 " +string.format("%#-20E", 1234567891.23) == "1.234568E+09 " +string.format("%#-20E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%#-20.0E", 0) == "0.E+00 " +string.format("%#-20.0E", 1) == "1.E+00 " +string.format("%#-20.0E", -1) == "-1.E+00 " +string.format("%#-20.0E", 2) == "2.E+00 " +string.format("%#-20.0E", -2) == "-2.E+00 " +string.format("%#-20.0E", 3) == "3.E+00 " +string.format("%#-20.0E", -3) == "-3.E+00 " +string.format("%#-20.0E", nan) == "NAN " +string.format("%#-20.0E", inf) == "INF " +string.format("%#-20.0E", -inf) == "-INF " +string.format("%#-20.0E", 100) == "1.E+02 " +string.format("%#-20.0E", 10000) == "1.E+04 " +string.format("%#-20.0E", 100000) == "1.E+05 " +string.format("%#-20.0E", 1000000) == "1.E+06 " +string.format("%#-20.0E", 10000000) == "1.E+07 " +string.format("%#-20.0E", 0.01) == "1.E-02 " +string.format("%#-20.0E", 0.0001) == "1.E-04 " +string.format("%#-20.0E", 1e-05) == "1.E-05 " +string.format("%#-20.0E", 1e-06) == "1.E-06 " +string.format("%#-20.0E", 1e-07) == "1.E-07 " +string.format("%#-20.0E", 123.456) == "1.E+02 " +string.format("%#-20.0E", 1234560000) == "1.E+09 " +string.format("%#-20.0E", 1.23456e-05) == "1.E-05 " +string.format("%#-20.0E", 123.456789123) == "1.E+02 " +string.format("%#-20.0E", 1234567891.23) == "1.E+09 " +string.format("%#-20.0E", 1.23456789123e-05) == "1.E-05 " +string.format("%#-20.1E", 0) == "0.0E+00 " +string.format("%#-20.1E", 1) == "1.0E+00 " +string.format("%#-20.1E", -1) == "-1.0E+00 " +string.format("%#-20.1E", 2) == "2.0E+00 " +string.format("%#-20.1E", -2) == "-2.0E+00 " +string.format("%#-20.1E", 3) == "3.0E+00 " +string.format("%#-20.1E", -3) == "-3.0E+00 " +string.format("%#-20.1E", nan) == "NAN " +string.format("%#-20.1E", inf) == "INF " +string.format("%#-20.1E", -inf) == "-INF " +string.format("%#-20.1E", 100) == "1.0E+02 " +string.format("%#-20.1E", 10000) == "1.0E+04 " +string.format("%#-20.1E", 100000) == "1.0E+05 " +string.format("%#-20.1E", 1000000) == "1.0E+06 " +string.format("%#-20.1E", 10000000) == "1.0E+07 " +string.format("%#-20.1E", 0.01) == "1.0E-02 " +string.format("%#-20.1E", 0.0001) == "1.0E-04 " +string.format("%#-20.1E", 1e-05) == "1.0E-05 " +string.format("%#-20.1E", 1e-06) == "1.0E-06 " +string.format("%#-20.1E", 1e-07) == "1.0E-07 " +string.format("%#-20.1E", 123.456) == "1.2E+02 " +string.format("%#-20.1E", 1234560000) == "1.2E+09 " +string.format("%#-20.1E", 1.23456e-05) == "1.2E-05 " +string.format("%#-20.1E", 123.456789123) == "1.2E+02 " +string.format("%#-20.1E", 1234567891.23) == "1.2E+09 " +string.format("%#-20.1E", 1.23456789123e-05) == "1.2E-05 " +string.format("%#-20.6E", 0) == "0.000000E+00 " +string.format("%#-20.6E", 1) == "1.000000E+00 " +string.format("%#-20.6E", -1) == "-1.000000E+00 " +string.format("%#-20.6E", 2) == "2.000000E+00 " +string.format("%#-20.6E", -2) == "-2.000000E+00 " +string.format("%#-20.6E", 3) == "3.000000E+00 " +string.format("%#-20.6E", -3) == "-3.000000E+00 " +string.format("%#-20.6E", nan) == "NAN " +string.format("%#-20.6E", inf) == "INF " +string.format("%#-20.6E", -inf) == "-INF " +string.format("%#-20.6E", 100) == "1.000000E+02 " +string.format("%#-20.6E", 10000) == "1.000000E+04 " +string.format("%#-20.6E", 100000) == "1.000000E+05 " +string.format("%#-20.6E", 1000000) == "1.000000E+06 " +string.format("%#-20.6E", 10000000) == "1.000000E+07 " +string.format("%#-20.6E", 0.01) == "1.000000E-02 " +string.format("%#-20.6E", 0.0001) == "1.000000E-04 " +string.format("%#-20.6E", 1e-05) == "1.000000E-05 " +string.format("%#-20.6E", 1e-06) == "1.000000E-06 " +string.format("%#-20.6E", 1e-07) == "1.000000E-07 " +string.format("%#-20.6E", 123.456) == "1.234560E+02 " +string.format("%#-20.6E", 1234560000) == "1.234560E+09 " +string.format("%#-20.6E", 1.23456e-05) == "1.234560E-05 " +string.format("%#-20.6E", 123.456789123) == "1.234568E+02 " +string.format("%#-20.6E", 1234567891.23) == "1.234568E+09 " +string.format("%#-20.6E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%#-+E", 0) == "+0.000000E+00" +string.format("%#-+E", 1) == "+1.000000E+00" +string.format("%#-+E", -1) == "-1.000000E+00" +string.format("%#-+E", 2) == "+2.000000E+00" +string.format("%#-+E", -2) == "-2.000000E+00" +string.format("%#-+E", 3) == "+3.000000E+00" +string.format("%#-+E", -3) == "-3.000000E+00" +string.format("%#-+E", nan) == "+NAN" +string.format("%#-+E", inf) == "+INF" +string.format("%#-+E", -inf) == "-INF" +string.format("%#-+E", 100) == "+1.000000E+02" +string.format("%#-+E", 10000) == "+1.000000E+04" +string.format("%#-+E", 100000) == "+1.000000E+05" +string.format("%#-+E", 1000000) == "+1.000000E+06" +string.format("%#-+E", 10000000) == "+1.000000E+07" +string.format("%#-+E", 0.01) == "+1.000000E-02" +string.format("%#-+E", 0.0001) == "+1.000000E-04" +string.format("%#-+E", 1e-05) == "+1.000000E-05" +string.format("%#-+E", 1e-06) == "+1.000000E-06" +string.format("%#-+E", 1e-07) == "+1.000000E-07" +string.format("%#-+E", 123.456) == "+1.234560E+02" +string.format("%#-+E", 1234560000) == "+1.234560E+09" +string.format("%#-+E", 1.23456e-05) == "+1.234560E-05" +string.format("%#-+E", 123.456789123) == "+1.234568E+02" +string.format("%#-+E", 1234567891.23) == "+1.234568E+09" +string.format("%#-+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%#-+.0E", 0) == "+0.E+00" +string.format("%#-+.0E", 1) == "+1.E+00" +string.format("%#-+.0E", -1) == "-1.E+00" +string.format("%#-+.0E", 2) == "+2.E+00" +string.format("%#-+.0E", -2) == "-2.E+00" +string.format("%#-+.0E", 3) == "+3.E+00" +string.format("%#-+.0E", -3) == "-3.E+00" +string.format("%#-+.0E", 100) == "+1.E+02" +string.format("%#-+.0E", 10000) == "+1.E+04" +string.format("%#-+.0E", 100000) == "+1.E+05" +string.format("%#-+.0E", 1000000) == "+1.E+06" +string.format("%#-+.0E", 10000000) == "+1.E+07" +string.format("%#-+.0E", 0.01) == "+1.E-02" +string.format("%#-+.0E", 0.0001) == "+1.E-04" +string.format("%#-+.0E", 1e-05) == "+1.E-05" +string.format("%#-+.0E", 1e-06) == "+1.E-06" +string.format("%#-+.0E", 1e-07) == "+1.E-07" +string.format("%#-+.0E", 123.456) == "+1.E+02" +string.format("%#-+.0E", 1234560000) == "+1.E+09" +string.format("%#-+.0E", 1.23456e-05) == "+1.E-05" +string.format("%#-+.0E", 123.456789123) == "+1.E+02" +string.format("%#-+.0E", 1234567891.23) == "+1.E+09" +string.format("%#-+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+.1E", 0) == "+0.0E+00" +string.format("%#-+.1E", 1) == "+1.0E+00" +string.format("%#-+.1E", -1) == "-1.0E+00" +string.format("%#-+.1E", 2) == "+2.0E+00" +string.format("%#-+.1E", -2) == "-2.0E+00" +string.format("%#-+.1E", 3) == "+3.0E+00" +string.format("%#-+.1E", -3) == "-3.0E+00" +string.format("%#-+.1E", 100) == "+1.0E+02" +string.format("%#-+.1E", 10000) == "+1.0E+04" +string.format("%#-+.1E", 100000) == "+1.0E+05" +string.format("%#-+.1E", 1000000) == "+1.0E+06" +string.format("%#-+.1E", 10000000) == "+1.0E+07" +string.format("%#-+.1E", 0.01) == "+1.0E-02" +string.format("%#-+.1E", 0.0001) == "+1.0E-04" +string.format("%#-+.1E", 1e-05) == "+1.0E-05" +string.format("%#-+.1E", 1e-06) == "+1.0E-06" +string.format("%#-+.1E", 1e-07) == "+1.0E-07" +string.format("%#-+.1E", 123.456) == "+1.2E+02" +string.format("%#-+.1E", 1234560000) == "+1.2E+09" +string.format("%#-+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#-+.1E", 123.456789123) == "+1.2E+02" +string.format("%#-+.1E", 1234567891.23) == "+1.2E+09" +string.format("%#-+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#-+1.0E", 0) == "+0.E+00" +string.format("%#-+1.0E", 1) == "+1.E+00" +string.format("%#-+1.0E", -1) == "-1.E+00" +string.format("%#-+1.0E", 2) == "+2.E+00" +string.format("%#-+1.0E", -2) == "-2.E+00" +string.format("%#-+1.0E", 3) == "+3.E+00" +string.format("%#-+1.0E", -3) == "-3.E+00" +string.format("%#-+1.0E", 100) == "+1.E+02" +string.format("%#-+1.0E", 10000) == "+1.E+04" +string.format("%#-+1.0E", 100000) == "+1.E+05" +string.format("%#-+1.0E", 1000000) == "+1.E+06" +string.format("%#-+1.0E", 10000000) == "+1.E+07" +string.format("%#-+1.0E", 0.01) == "+1.E-02" +string.format("%#-+1.0E", 0.0001) == "+1.E-04" +string.format("%#-+1.0E", 1e-05) == "+1.E-05" +string.format("%#-+1.0E", 1e-06) == "+1.E-06" +string.format("%#-+1.0E", 1e-07) == "+1.E-07" +string.format("%#-+1.0E", 123.456) == "+1.E+02" +string.format("%#-+1.0E", 1234560000) == "+1.E+09" +string.format("%#-+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%#-+1.0E", 123.456789123) == "+1.E+02" +string.format("%#-+1.0E", 1234567891.23) == "+1.E+09" +string.format("%#-+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+1.1E", 0) == "+0.0E+00" +string.format("%#-+1.1E", 1) == "+1.0E+00" +string.format("%#-+1.1E", -1) == "-1.0E+00" +string.format("%#-+1.1E", 2) == "+2.0E+00" +string.format("%#-+1.1E", -2) == "-2.0E+00" +string.format("%#-+1.1E", 3) == "+3.0E+00" +string.format("%#-+1.1E", -3) == "-3.0E+00" +string.format("%#-+1.1E", 100) == "+1.0E+02" +string.format("%#-+1.1E", 10000) == "+1.0E+04" +string.format("%#-+1.1E", 100000) == "+1.0E+05" +string.format("%#-+1.1E", 1000000) == "+1.0E+06" +string.format("%#-+1.1E", 10000000) == "+1.0E+07" +string.format("%#-+1.1E", 0.01) == "+1.0E-02" +string.format("%#-+1.1E", 0.0001) == "+1.0E-04" +string.format("%#-+1.1E", 1e-05) == "+1.0E-05" +string.format("%#-+1.1E", 1e-06) == "+1.0E-06" +string.format("%#-+1.1E", 1e-07) == "+1.0E-07" +string.format("%#-+1.1E", 123.456) == "+1.2E+02" +string.format("%#-+1.1E", 1234560000) == "+1.2E+09" +string.format("%#-+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#-+1.1E", 123.456789123) == "+1.2E+02" +string.format("%#-+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%#-+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#-+2.0E", 0) == "+0.E+00" +string.format("%#-+2.0E", 1) == "+1.E+00" +string.format("%#-+2.0E", -1) == "-1.E+00" +string.format("%#-+2.0E", 2) == "+2.E+00" +string.format("%#-+2.0E", -2) == "-2.E+00" +string.format("%#-+2.0E", 3) == "+3.E+00" +string.format("%#-+2.0E", -3) == "-3.E+00" +string.format("%#-+2.0E", 100) == "+1.E+02" +string.format("%#-+2.0E", 10000) == "+1.E+04" +string.format("%#-+2.0E", 100000) == "+1.E+05" +string.format("%#-+2.0E", 1000000) == "+1.E+06" +string.format("%#-+2.0E", 10000000) == "+1.E+07" +string.format("%#-+2.0E", 0.01) == "+1.E-02" +string.format("%#-+2.0E", 0.0001) == "+1.E-04" +string.format("%#-+2.0E", 1e-05) == "+1.E-05" +string.format("%#-+2.0E", 1e-06) == "+1.E-06" +string.format("%#-+2.0E", 1e-07) == "+1.E-07" +string.format("%#-+2.0E", 123.456) == "+1.E+02" +string.format("%#-+2.0E", 1234560000) == "+1.E+09" +string.format("%#-+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%#-+2.0E", 123.456789123) == "+1.E+02" +string.format("%#-+2.0E", 1234567891.23) == "+1.E+09" +string.format("%#-+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+2.1E", 0) == "+0.0E+00" +string.format("%#-+2.1E", 1) == "+1.0E+00" +string.format("%#-+2.1E", -1) == "-1.0E+00" +string.format("%#-+2.1E", 2) == "+2.0E+00" +string.format("%#-+2.1E", -2) == "-2.0E+00" +string.format("%#-+2.1E", 3) == "+3.0E+00" +string.format("%#-+2.1E", -3) == "-3.0E+00" +string.format("%#-+2.1E", 100) == "+1.0E+02" +string.format("%#-+2.1E", 10000) == "+1.0E+04" +string.format("%#-+2.1E", 100000) == "+1.0E+05" +string.format("%#-+2.1E", 1000000) == "+1.0E+06" +string.format("%#-+2.1E", 10000000) == "+1.0E+07" +string.format("%#-+2.1E", 0.01) == "+1.0E-02" +string.format("%#-+2.1E", 0.0001) == "+1.0E-04" +string.format("%#-+2.1E", 1e-05) == "+1.0E-05" +string.format("%#-+2.1E", 1e-06) == "+1.0E-06" +string.format("%#-+2.1E", 1e-07) == "+1.0E-07" +string.format("%#-+2.1E", 123.456) == "+1.2E+02" +string.format("%#-+2.1E", 1234560000) == "+1.2E+09" +string.format("%#-+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#-+2.1E", 123.456789123) == "+1.2E+02" +string.format("%#-+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%#-+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#-+6E", nan) == "+NAN " +string.format("%#-+6E", inf) == "+INF " +string.format("%#-+6E", -inf) == "-INF " +string.format("%#-+6.0E", 0) == "+0.E+00" +string.format("%#-+6.0E", 1) == "+1.E+00" +string.format("%#-+6.0E", -1) == "-1.E+00" +string.format("%#-+6.0E", 2) == "+2.E+00" +string.format("%#-+6.0E", -2) == "-2.E+00" +string.format("%#-+6.0E", 3) == "+3.E+00" +string.format("%#-+6.0E", -3) == "-3.E+00" +string.format("%#-+6.0E", nan) == "+NAN " +string.format("%#-+6.0E", inf) == "+INF " +string.format("%#-+6.0E", -inf) == "-INF " +string.format("%#-+6.0E", 100) == "+1.E+02" +string.format("%#-+6.0E", 10000) == "+1.E+04" +string.format("%#-+6.0E", 100000) == "+1.E+05" +string.format("%#-+6.0E", 1000000) == "+1.E+06" +string.format("%#-+6.0E", 10000000) == "+1.E+07" +string.format("%#-+6.0E", 0.01) == "+1.E-02" +string.format("%#-+6.0E", 0.0001) == "+1.E-04" +string.format("%#-+6.0E", 1e-05) == "+1.E-05" +string.format("%#-+6.0E", 1e-06) == "+1.E-06" +string.format("%#-+6.0E", 1e-07) == "+1.E-07" +string.format("%#-+6.0E", 123.456) == "+1.E+02" +string.format("%#-+6.0E", 1234560000) == "+1.E+09" +string.format("%#-+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%#-+6.0E", 123.456789123) == "+1.E+02" +string.format("%#-+6.0E", 1234567891.23) == "+1.E+09" +string.format("%#-+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+6.1E", 0) == "+0.0E+00" +string.format("%#-+6.1E", 1) == "+1.0E+00" +string.format("%#-+6.1E", -1) == "-1.0E+00" +string.format("%#-+6.1E", 2) == "+2.0E+00" +string.format("%#-+6.1E", -2) == "-2.0E+00" +string.format("%#-+6.1E", 3) == "+3.0E+00" +string.format("%#-+6.1E", -3) == "-3.0E+00" +string.format("%#-+6.1E", nan) == "+NAN " +string.format("%#-+6.1E", inf) == "+INF " +string.format("%#-+6.1E", -inf) == "-INF " +string.format("%#-+6.1E", 100) == "+1.0E+02" +string.format("%#-+6.1E", 10000) == "+1.0E+04" +string.format("%#-+6.1E", 100000) == "+1.0E+05" +string.format("%#-+6.1E", 1000000) == "+1.0E+06" +string.format("%#-+6.1E", 10000000) == "+1.0E+07" +string.format("%#-+6.1E", 0.01) == "+1.0E-02" +string.format("%#-+6.1E", 0.0001) == "+1.0E-04" +string.format("%#-+6.1E", 1e-05) == "+1.0E-05" +string.format("%#-+6.1E", 1e-06) == "+1.0E-06" +string.format("%#-+6.1E", 1e-07) == "+1.0E-07" +string.format("%#-+6.1E", 123.456) == "+1.2E+02" +string.format("%#-+6.1E", 1234560000) == "+1.2E+09" +string.format("%#-+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%#-+6.1E", 123.456789123) == "+1.2E+02" +string.format("%#-+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%#-+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%#-+6.6E", nan) == "+NAN " +string.format("%#-+6.6E", inf) == "+INF " +string.format("%#-+6.6E", -inf) == "-INF " +string.format("%#-+20E", 0) == "+0.000000E+00 " +string.format("%#-+20E", 1) == "+1.000000E+00 " +string.format("%#-+20E", -1) == "-1.000000E+00 " +string.format("%#-+20E", 2) == "+2.000000E+00 " +string.format("%#-+20E", -2) == "-2.000000E+00 " +string.format("%#-+20E", 3) == "+3.000000E+00 " +string.format("%#-+20E", -3) == "-3.000000E+00 " +string.format("%#-+20E", nan) == "+NAN " +string.format("%#-+20E", inf) == "+INF " +string.format("%#-+20E", -inf) == "-INF " +string.format("%#-+20E", 100) == "+1.000000E+02 " +string.format("%#-+20E", 10000) == "+1.000000E+04 " +string.format("%#-+20E", 100000) == "+1.000000E+05 " +string.format("%#-+20E", 1000000) == "+1.000000E+06 " +string.format("%#-+20E", 10000000) == "+1.000000E+07 " +string.format("%#-+20E", 0.01) == "+1.000000E-02 " +string.format("%#-+20E", 0.0001) == "+1.000000E-04 " +string.format("%#-+20E", 1e-05) == "+1.000000E-05 " +string.format("%#-+20E", 1e-06) == "+1.000000E-06 " +string.format("%#-+20E", 1e-07) == "+1.000000E-07 " +string.format("%#-+20E", 123.456) == "+1.234560E+02 " +string.format("%#-+20E", 1234560000) == "+1.234560E+09 " +string.format("%#-+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%#-+20E", 123.456789123) == "+1.234568E+02 " +string.format("%#-+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%#-+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%#-+20.0E", 0) == "+0.E+00 " +string.format("%#-+20.0E", 1) == "+1.E+00 " +string.format("%#-+20.0E", -1) == "-1.E+00 " +string.format("%#-+20.0E", 2) == "+2.E+00 " +string.format("%#-+20.0E", -2) == "-2.E+00 " +string.format("%#-+20.0E", 3) == "+3.E+00 " +string.format("%#-+20.0E", -3) == "-3.E+00 " +string.format("%#-+20.0E", nan) == "+NAN " +string.format("%#-+20.0E", inf) == "+INF " +string.format("%#-+20.0E", -inf) == "-INF " +string.format("%#-+20.0E", 100) == "+1.E+02 " +string.format("%#-+20.0E", 10000) == "+1.E+04 " +string.format("%#-+20.0E", 100000) == "+1.E+05 " +string.format("%#-+20.0E", 1000000) == "+1.E+06 " +string.format("%#-+20.0E", 10000000) == "+1.E+07 " +string.format("%#-+20.0E", 0.01) == "+1.E-02 " +string.format("%#-+20.0E", 0.0001) == "+1.E-04 " +string.format("%#-+20.0E", 1e-05) == "+1.E-05 " +string.format("%#-+20.0E", 1e-06) == "+1.E-06 " +string.format("%#-+20.0E", 1e-07) == "+1.E-07 " +string.format("%#-+20.0E", 123.456) == "+1.E+02 " +string.format("%#-+20.0E", 1234560000) == "+1.E+09 " +string.format("%#-+20.0E", 1.23456e-05) == "+1.E-05 " +string.format("%#-+20.0E", 123.456789123) == "+1.E+02 " +string.format("%#-+20.0E", 1234567891.23) == "+1.E+09 " +string.format("%#-+20.0E", 1.23456789123e-05) == "+1.E-05 " +string.format("%#-+20.1E", 0) == "+0.0E+00 " +string.format("%#-+20.1E", 1) == "+1.0E+00 " +string.format("%#-+20.1E", -1) == "-1.0E+00 " +string.format("%#-+20.1E", 2) == "+2.0E+00 " +string.format("%#-+20.1E", -2) == "-2.0E+00 " +string.format("%#-+20.1E", 3) == "+3.0E+00 " +string.format("%#-+20.1E", -3) == "-3.0E+00 " +string.format("%#-+20.1E", nan) == "+NAN " +string.format("%#-+20.1E", inf) == "+INF " +string.format("%#-+20.1E", -inf) == "-INF " +string.format("%#-+20.1E", 100) == "+1.0E+02 " +string.format("%#-+20.1E", 10000) == "+1.0E+04 " +string.format("%#-+20.1E", 100000) == "+1.0E+05 " +string.format("%#-+20.1E", 1000000) == "+1.0E+06 " +string.format("%#-+20.1E", 10000000) == "+1.0E+07 " +string.format("%#-+20.1E", 0.01) == "+1.0E-02 " +string.format("%#-+20.1E", 0.0001) == "+1.0E-04 " +string.format("%#-+20.1E", 1e-05) == "+1.0E-05 " +string.format("%#-+20.1E", 1e-06) == "+1.0E-06 " +string.format("%#-+20.1E", 1e-07) == "+1.0E-07 " +string.format("%#-+20.1E", 123.456) == "+1.2E+02 " +string.format("%#-+20.1E", 1234560000) == "+1.2E+09 " +string.format("%#-+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%#-+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%#-+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%#-+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%#-+20.6E", 0) == "+0.000000E+00 " +string.format("%#-+20.6E", 1) == "+1.000000E+00 " +string.format("%#-+20.6E", -1) == "-1.000000E+00 " +string.format("%#-+20.6E", 2) == "+2.000000E+00 " +string.format("%#-+20.6E", -2) == "-2.000000E+00 " +string.format("%#-+20.6E", 3) == "+3.000000E+00 " +string.format("%#-+20.6E", -3) == "-3.000000E+00 " +string.format("%#-+20.6E", nan) == "+NAN " +string.format("%#-+20.6E", inf) == "+INF " +string.format("%#-+20.6E", -inf) == "-INF " +string.format("%#-+20.6E", 100) == "+1.000000E+02 " +string.format("%#-+20.6E", 10000) == "+1.000000E+04 " +string.format("%#-+20.6E", 100000) == "+1.000000E+05 " +string.format("%#-+20.6E", 1000000) == "+1.000000E+06 " +string.format("%#-+20.6E", 10000000) == "+1.000000E+07 " +string.format("%#-+20.6E", 0.01) == "+1.000000E-02 " +string.format("%#-+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%#-+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%#-+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%#-+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%#-+20.6E", 123.456) == "+1.234560E+02 " +string.format("%#-+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%#-+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%#-+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%#-+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%#-+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%# E", 0) == " 0.000000E+00" +string.format("%# E", 1) == " 1.000000E+00" +string.format("%# E", -1) == "-1.000000E+00" +string.format("%# E", 2) == " 2.000000E+00" +string.format("%# E", -2) == "-2.000000E+00" +string.format("%# E", 3) == " 3.000000E+00" +string.format("%# E", -3) == "-3.000000E+00" +string.format("%# E", nan) == " NAN" +string.format("%# E", inf) == " INF" +string.format("%# E", -inf) == "-INF" +string.format("%# E", 100) == " 1.000000E+02" +string.format("%# E", 10000) == " 1.000000E+04" +string.format("%# E", 100000) == " 1.000000E+05" +string.format("%# E", 1000000) == " 1.000000E+06" +string.format("%# E", 10000000) == " 1.000000E+07" +string.format("%# E", 0.01) == " 1.000000E-02" +string.format("%# E", 0.0001) == " 1.000000E-04" +string.format("%# E", 1e-05) == " 1.000000E-05" +string.format("%# E", 1e-06) == " 1.000000E-06" +string.format("%# E", 1e-07) == " 1.000000E-07" +string.format("%# E", 123.456) == " 1.234560E+02" +string.format("%# E", 1234560000) == " 1.234560E+09" +string.format("%# E", 1.23456e-05) == " 1.234560E-05" +string.format("%# E", 123.456789123) == " 1.234568E+02" +string.format("%# E", 1234567891.23) == " 1.234568E+09" +string.format("%# E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%# .0E", 0) == " 0.E+00" +string.format("%# .0E", 1) == " 1.E+00" +string.format("%# .0E", -1) == "-1.E+00" +string.format("%# .0E", 2) == " 2.E+00" +string.format("%# .0E", -2) == "-2.E+00" +string.format("%# .0E", 3) == " 3.E+00" +string.format("%# .0E", -3) == "-3.E+00" +string.format("%# .0E", 100) == " 1.E+02" +string.format("%# .0E", 10000) == " 1.E+04" +string.format("%# .0E", 100000) == " 1.E+05" +string.format("%# .0E", 1000000) == " 1.E+06" +string.format("%# .0E", 10000000) == " 1.E+07" +string.format("%# .0E", 0.01) == " 1.E-02" +string.format("%# .0E", 0.0001) == " 1.E-04" +string.format("%# .0E", 1e-05) == " 1.E-05" +string.format("%# .0E", 1e-06) == " 1.E-06" +string.format("%# .0E", 1e-07) == " 1.E-07" +string.format("%# .0E", 123.456) == " 1.E+02" +string.format("%# .0E", 1234560000) == " 1.E+09" +string.format("%# .0E", 1.23456e-05) == " 1.E-05" +string.format("%# .0E", 123.456789123) == " 1.E+02" +string.format("%# .0E", 1234567891.23) == " 1.E+09" +string.format("%# .0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# .1E", 0) == " 0.0E+00" +string.format("%# .1E", 1) == " 1.0E+00" +string.format("%# .1E", -1) == "-1.0E+00" +string.format("%# .1E", 2) == " 2.0E+00" +string.format("%# .1E", -2) == "-2.0E+00" +string.format("%# .1E", 3) == " 3.0E+00" +string.format("%# .1E", -3) == "-3.0E+00" +string.format("%# .1E", 100) == " 1.0E+02" +string.format("%# .1E", 10000) == " 1.0E+04" +string.format("%# .1E", 100000) == " 1.0E+05" +string.format("%# .1E", 1000000) == " 1.0E+06" +string.format("%# .1E", 10000000) == " 1.0E+07" +string.format("%# .1E", 0.01) == " 1.0E-02" +string.format("%# .1E", 0.0001) == " 1.0E-04" +string.format("%# .1E", 1e-05) == " 1.0E-05" +string.format("%# .1E", 1e-06) == " 1.0E-06" +string.format("%# .1E", 1e-07) == " 1.0E-07" +string.format("%# .1E", 123.456) == " 1.2E+02" +string.format("%# .1E", 1234560000) == " 1.2E+09" +string.format("%# .1E", 1.23456e-05) == " 1.2E-05" +string.format("%# .1E", 123.456789123) == " 1.2E+02" +string.format("%# .1E", 1234567891.23) == " 1.2E+09" +string.format("%# .1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# 1.0E", 0) == " 0.E+00" +string.format("%# 1.0E", 1) == " 1.E+00" +string.format("%# 1.0E", -1) == "-1.E+00" +string.format("%# 1.0E", 2) == " 2.E+00" +string.format("%# 1.0E", -2) == "-2.E+00" +string.format("%# 1.0E", 3) == " 3.E+00" +string.format("%# 1.0E", -3) == "-3.E+00" +string.format("%# 1.0E", 100) == " 1.E+02" +string.format("%# 1.0E", 10000) == " 1.E+04" +string.format("%# 1.0E", 100000) == " 1.E+05" +string.format("%# 1.0E", 1000000) == " 1.E+06" +string.format("%# 1.0E", 10000000) == " 1.E+07" +string.format("%# 1.0E", 0.01) == " 1.E-02" +string.format("%# 1.0E", 0.0001) == " 1.E-04" +string.format("%# 1.0E", 1e-05) == " 1.E-05" +string.format("%# 1.0E", 1e-06) == " 1.E-06" +string.format("%# 1.0E", 1e-07) == " 1.E-07" +string.format("%# 1.0E", 123.456) == " 1.E+02" +string.format("%# 1.0E", 1234560000) == " 1.E+09" +string.format("%# 1.0E", 1.23456e-05) == " 1.E-05" +string.format("%# 1.0E", 123.456789123) == " 1.E+02" +string.format("%# 1.0E", 1234567891.23) == " 1.E+09" +string.format("%# 1.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# 1.1E", 0) == " 0.0E+00" +string.format("%# 1.1E", 1) == " 1.0E+00" +string.format("%# 1.1E", -1) == "-1.0E+00" +string.format("%# 1.1E", 2) == " 2.0E+00" +string.format("%# 1.1E", -2) == "-2.0E+00" +string.format("%# 1.1E", 3) == " 3.0E+00" +string.format("%# 1.1E", -3) == "-3.0E+00" +string.format("%# 1.1E", 100) == " 1.0E+02" +string.format("%# 1.1E", 10000) == " 1.0E+04" +string.format("%# 1.1E", 100000) == " 1.0E+05" +string.format("%# 1.1E", 1000000) == " 1.0E+06" +string.format("%# 1.1E", 10000000) == " 1.0E+07" +string.format("%# 1.1E", 0.01) == " 1.0E-02" +string.format("%# 1.1E", 0.0001) == " 1.0E-04" +string.format("%# 1.1E", 1e-05) == " 1.0E-05" +string.format("%# 1.1E", 1e-06) == " 1.0E-06" +string.format("%# 1.1E", 1e-07) == " 1.0E-07" +string.format("%# 1.1E", 123.456) == " 1.2E+02" +string.format("%# 1.1E", 1234560000) == " 1.2E+09" +string.format("%# 1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# 1.1E", 123.456789123) == " 1.2E+02" +string.format("%# 1.1E", 1234567891.23) == " 1.2E+09" +string.format("%# 1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# 2.0E", 0) == " 0.E+00" +string.format("%# 2.0E", 1) == " 1.E+00" +string.format("%# 2.0E", -1) == "-1.E+00" +string.format("%# 2.0E", 2) == " 2.E+00" +string.format("%# 2.0E", -2) == "-2.E+00" +string.format("%# 2.0E", 3) == " 3.E+00" +string.format("%# 2.0E", -3) == "-3.E+00" +string.format("%# 2.0E", 100) == " 1.E+02" +string.format("%# 2.0E", 10000) == " 1.E+04" +string.format("%# 2.0E", 100000) == " 1.E+05" +string.format("%# 2.0E", 1000000) == " 1.E+06" +string.format("%# 2.0E", 10000000) == " 1.E+07" +string.format("%# 2.0E", 0.01) == " 1.E-02" +string.format("%# 2.0E", 0.0001) == " 1.E-04" +string.format("%# 2.0E", 1e-05) == " 1.E-05" +string.format("%# 2.0E", 1e-06) == " 1.E-06" +string.format("%# 2.0E", 1e-07) == " 1.E-07" +string.format("%# 2.0E", 123.456) == " 1.E+02" +string.format("%# 2.0E", 1234560000) == " 1.E+09" +string.format("%# 2.0E", 1.23456e-05) == " 1.E-05" +string.format("%# 2.0E", 123.456789123) == " 1.E+02" +string.format("%# 2.0E", 1234567891.23) == " 1.E+09" +string.format("%# 2.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# 2.1E", 0) == " 0.0E+00" +string.format("%# 2.1E", 1) == " 1.0E+00" +string.format("%# 2.1E", -1) == "-1.0E+00" +string.format("%# 2.1E", 2) == " 2.0E+00" +string.format("%# 2.1E", -2) == "-2.0E+00" +string.format("%# 2.1E", 3) == " 3.0E+00" +string.format("%# 2.1E", -3) == "-3.0E+00" +string.format("%# 2.1E", 100) == " 1.0E+02" +string.format("%# 2.1E", 10000) == " 1.0E+04" +string.format("%# 2.1E", 100000) == " 1.0E+05" +string.format("%# 2.1E", 1000000) == " 1.0E+06" +string.format("%# 2.1E", 10000000) == " 1.0E+07" +string.format("%# 2.1E", 0.01) == " 1.0E-02" +string.format("%# 2.1E", 0.0001) == " 1.0E-04" +string.format("%# 2.1E", 1e-05) == " 1.0E-05" +string.format("%# 2.1E", 1e-06) == " 1.0E-06" +string.format("%# 2.1E", 1e-07) == " 1.0E-07" +string.format("%# 2.1E", 123.456) == " 1.2E+02" +string.format("%# 2.1E", 1234560000) == " 1.2E+09" +string.format("%# 2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# 2.1E", 123.456789123) == " 1.2E+02" +string.format("%# 2.1E", 1234567891.23) == " 1.2E+09" +string.format("%# 2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# 6E", nan) == " NAN" +string.format("%# 6E", inf) == " INF" +string.format("%# 6E", -inf) == " -INF" +string.format("%# 6.0E", 0) == " 0.E+00" +string.format("%# 6.0E", 1) == " 1.E+00" +string.format("%# 6.0E", -1) == "-1.E+00" +string.format("%# 6.0E", 2) == " 2.E+00" +string.format("%# 6.0E", -2) == "-2.E+00" +string.format("%# 6.0E", 3) == " 3.E+00" +string.format("%# 6.0E", -3) == "-3.E+00" +string.format("%# 6.0E", nan) == " NAN" +string.format("%# 6.0E", inf) == " INF" +string.format("%# 6.0E", -inf) == " -INF" +string.format("%# 6.0E", 100) == " 1.E+02" +string.format("%# 6.0E", 10000) == " 1.E+04" +string.format("%# 6.0E", 100000) == " 1.E+05" +string.format("%# 6.0E", 1000000) == " 1.E+06" +string.format("%# 6.0E", 10000000) == " 1.E+07" +string.format("%# 6.0E", 0.01) == " 1.E-02" +string.format("%# 6.0E", 0.0001) == " 1.E-04" +string.format("%# 6.0E", 1e-05) == " 1.E-05" +string.format("%# 6.0E", 1e-06) == " 1.E-06" +string.format("%# 6.0E", 1e-07) == " 1.E-07" +string.format("%# 6.0E", 123.456) == " 1.E+02" +string.format("%# 6.0E", 1234560000) == " 1.E+09" +string.format("%# 6.0E", 1.23456e-05) == " 1.E-05" +string.format("%# 6.0E", 123.456789123) == " 1.E+02" +string.format("%# 6.0E", 1234567891.23) == " 1.E+09" +string.format("%# 6.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# 6.1E", 0) == " 0.0E+00" +string.format("%# 6.1E", 1) == " 1.0E+00" +string.format("%# 6.1E", -1) == "-1.0E+00" +string.format("%# 6.1E", 2) == " 2.0E+00" +string.format("%# 6.1E", -2) == "-2.0E+00" +string.format("%# 6.1E", 3) == " 3.0E+00" +string.format("%# 6.1E", -3) == "-3.0E+00" +string.format("%# 6.1E", nan) == " NAN" +string.format("%# 6.1E", inf) == " INF" +string.format("%# 6.1E", -inf) == " -INF" +string.format("%# 6.1E", 100) == " 1.0E+02" +string.format("%# 6.1E", 10000) == " 1.0E+04" +string.format("%# 6.1E", 100000) == " 1.0E+05" +string.format("%# 6.1E", 1000000) == " 1.0E+06" +string.format("%# 6.1E", 10000000) == " 1.0E+07" +string.format("%# 6.1E", 0.01) == " 1.0E-02" +string.format("%# 6.1E", 0.0001) == " 1.0E-04" +string.format("%# 6.1E", 1e-05) == " 1.0E-05" +string.format("%# 6.1E", 1e-06) == " 1.0E-06" +string.format("%# 6.1E", 1e-07) == " 1.0E-07" +string.format("%# 6.1E", 123.456) == " 1.2E+02" +string.format("%# 6.1E", 1234560000) == " 1.2E+09" +string.format("%# 6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# 6.1E", 123.456789123) == " 1.2E+02" +string.format("%# 6.1E", 1234567891.23) == " 1.2E+09" +string.format("%# 6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# 6.6E", nan) == " NAN" +string.format("%# 6.6E", inf) == " INF" +string.format("%# 6.6E", -inf) == " -INF" +string.format("%# 20E", 0) == " 0.000000E+00" +string.format("%# 20E", 1) == " 1.000000E+00" +string.format("%# 20E", -1) == " -1.000000E+00" +string.format("%# 20E", 2) == " 2.000000E+00" +string.format("%# 20E", -2) == " -2.000000E+00" +string.format("%# 20E", 3) == " 3.000000E+00" +string.format("%# 20E", -3) == " -3.000000E+00" +string.format("%# 20E", nan) == " NAN" +string.format("%# 20E", inf) == " INF" +string.format("%# 20E", -inf) == " -INF" +string.format("%# 20E", 100) == " 1.000000E+02" +string.format("%# 20E", 10000) == " 1.000000E+04" +string.format("%# 20E", 100000) == " 1.000000E+05" +string.format("%# 20E", 1000000) == " 1.000000E+06" +string.format("%# 20E", 10000000) == " 1.000000E+07" +string.format("%# 20E", 0.01) == " 1.000000E-02" +string.format("%# 20E", 0.0001) == " 1.000000E-04" +string.format("%# 20E", 1e-05) == " 1.000000E-05" +string.format("%# 20E", 1e-06) == " 1.000000E-06" +string.format("%# 20E", 1e-07) == " 1.000000E-07" +string.format("%# 20E", 123.456) == " 1.234560E+02" +string.format("%# 20E", 1234560000) == " 1.234560E+09" +string.format("%# 20E", 1.23456e-05) == " 1.234560E-05" +string.format("%# 20E", 123.456789123) == " 1.234568E+02" +string.format("%# 20E", 1234567891.23) == " 1.234568E+09" +string.format("%# 20E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%# 20.0E", 0) == " 0.E+00" +string.format("%# 20.0E", 1) == " 1.E+00" +string.format("%# 20.0E", -1) == " -1.E+00" +string.format("%# 20.0E", 2) == " 2.E+00" +string.format("%# 20.0E", -2) == " -2.E+00" +string.format("%# 20.0E", 3) == " 3.E+00" +string.format("%# 20.0E", -3) == " -3.E+00" +string.format("%# 20.0E", nan) == " NAN" +string.format("%# 20.0E", inf) == " INF" +string.format("%# 20.0E", -inf) == " -INF" +string.format("%# 20.0E", 100) == " 1.E+02" +string.format("%# 20.0E", 10000) == " 1.E+04" +string.format("%# 20.0E", 100000) == " 1.E+05" +string.format("%# 20.0E", 1000000) == " 1.E+06" +string.format("%# 20.0E", 10000000) == " 1.E+07" +string.format("%# 20.0E", 0.01) == " 1.E-02" +string.format("%# 20.0E", 0.0001) == " 1.E-04" +string.format("%# 20.0E", 1e-05) == " 1.E-05" +string.format("%# 20.0E", 1e-06) == " 1.E-06" +string.format("%# 20.0E", 1e-07) == " 1.E-07" +string.format("%# 20.0E", 123.456) == " 1.E+02" +string.format("%# 20.0E", 1234560000) == " 1.E+09" +string.format("%# 20.0E", 1.23456e-05) == " 1.E-05" +string.format("%# 20.0E", 123.456789123) == " 1.E+02" +string.format("%# 20.0E", 1234567891.23) == " 1.E+09" +string.format("%# 20.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# 20.1E", 0) == " 0.0E+00" +string.format("%# 20.1E", 1) == " 1.0E+00" +string.format("%# 20.1E", -1) == " -1.0E+00" +string.format("%# 20.1E", 2) == " 2.0E+00" +string.format("%# 20.1E", -2) == " -2.0E+00" +string.format("%# 20.1E", 3) == " 3.0E+00" +string.format("%# 20.1E", -3) == " -3.0E+00" +string.format("%# 20.1E", nan) == " NAN" +string.format("%# 20.1E", inf) == " INF" +string.format("%# 20.1E", -inf) == " -INF" +string.format("%# 20.1E", 100) == " 1.0E+02" +string.format("%# 20.1E", 10000) == " 1.0E+04" +string.format("%# 20.1E", 100000) == " 1.0E+05" +string.format("%# 20.1E", 1000000) == " 1.0E+06" +string.format("%# 20.1E", 10000000) == " 1.0E+07" +string.format("%# 20.1E", 0.01) == " 1.0E-02" +string.format("%# 20.1E", 0.0001) == " 1.0E-04" +string.format("%# 20.1E", 1e-05) == " 1.0E-05" +string.format("%# 20.1E", 1e-06) == " 1.0E-06" +string.format("%# 20.1E", 1e-07) == " 1.0E-07" +string.format("%# 20.1E", 123.456) == " 1.2E+02" +string.format("%# 20.1E", 1234560000) == " 1.2E+09" +string.format("%# 20.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# 20.1E", 123.456789123) == " 1.2E+02" +string.format("%# 20.1E", 1234567891.23) == " 1.2E+09" +string.format("%# 20.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# 20.6E", 0) == " 0.000000E+00" +string.format("%# 20.6E", 1) == " 1.000000E+00" +string.format("%# 20.6E", -1) == " -1.000000E+00" +string.format("%# 20.6E", 2) == " 2.000000E+00" +string.format("%# 20.6E", -2) == " -2.000000E+00" +string.format("%# 20.6E", 3) == " 3.000000E+00" +string.format("%# 20.6E", -3) == " -3.000000E+00" +string.format("%# 20.6E", nan) == " NAN" +string.format("%# 20.6E", inf) == " INF" +string.format("%# 20.6E", -inf) == " -INF" +string.format("%# 20.6E", 100) == " 1.000000E+02" +string.format("%# 20.6E", 10000) == " 1.000000E+04" +string.format("%# 20.6E", 100000) == " 1.000000E+05" +string.format("%# 20.6E", 1000000) == " 1.000000E+06" +string.format("%# 20.6E", 10000000) == " 1.000000E+07" +string.format("%# 20.6E", 0.01) == " 1.000000E-02" +string.format("%# 20.6E", 0.0001) == " 1.000000E-04" +string.format("%# 20.6E", 1e-05) == " 1.000000E-05" +string.format("%# 20.6E", 1e-06) == " 1.000000E-06" +string.format("%# 20.6E", 1e-07) == " 1.000000E-07" +string.format("%# 20.6E", 123.456) == " 1.234560E+02" +string.format("%# 20.6E", 1234560000) == " 1.234560E+09" +string.format("%# 20.6E", 1.23456e-05) == " 1.234560E-05" +string.format("%# 20.6E", 123.456789123) == " 1.234568E+02" +string.format("%# 20.6E", 1234567891.23) == " 1.234568E+09" +string.format("%# 20.6E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%# +E", 0) == "+0.000000E+00" +string.format("%# +E", 1) == "+1.000000E+00" +string.format("%# +E", -1) == "-1.000000E+00" +string.format("%# +E", 2) == "+2.000000E+00" +string.format("%# +E", -2) == "-2.000000E+00" +string.format("%# +E", 3) == "+3.000000E+00" +string.format("%# +E", -3) == "-3.000000E+00" +string.format("%# +E", nan) == "+NAN" +string.format("%# +E", inf) == "+INF" +string.format("%# +E", -inf) == "-INF" +string.format("%# +E", 100) == "+1.000000E+02" +string.format("%# +E", 10000) == "+1.000000E+04" +string.format("%# +E", 100000) == "+1.000000E+05" +string.format("%# +E", 1000000) == "+1.000000E+06" +string.format("%# +E", 10000000) == "+1.000000E+07" +string.format("%# +E", 0.01) == "+1.000000E-02" +string.format("%# +E", 0.0001) == "+1.000000E-04" +string.format("%# +E", 1e-05) == "+1.000000E-05" +string.format("%# +E", 1e-06) == "+1.000000E-06" +string.format("%# +E", 1e-07) == "+1.000000E-07" +string.format("%# +E", 123.456) == "+1.234560E+02" +string.format("%# +E", 1234560000) == "+1.234560E+09" +string.format("%# +E", 1.23456e-05) == "+1.234560E-05" +string.format("%# +E", 123.456789123) == "+1.234568E+02" +string.format("%# +E", 1234567891.23) == "+1.234568E+09" +string.format("%# +E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%# +.0E", 0) == "+0.E+00" +string.format("%# +.0E", 1) == "+1.E+00" +string.format("%# +.0E", -1) == "-1.E+00" +string.format("%# +.0E", 2) == "+2.E+00" +string.format("%# +.0E", -2) == "-2.E+00" +string.format("%# +.0E", 3) == "+3.E+00" +string.format("%# +.0E", -3) == "-3.E+00" +string.format("%# +.0E", 100) == "+1.E+02" +string.format("%# +.0E", 10000) == "+1.E+04" +string.format("%# +.0E", 100000) == "+1.E+05" +string.format("%# +.0E", 1000000) == "+1.E+06" +string.format("%# +.0E", 10000000) == "+1.E+07" +string.format("%# +.0E", 0.01) == "+1.E-02" +string.format("%# +.0E", 0.0001) == "+1.E-04" +string.format("%# +.0E", 1e-05) == "+1.E-05" +string.format("%# +.0E", 1e-06) == "+1.E-06" +string.format("%# +.0E", 1e-07) == "+1.E-07" +string.format("%# +.0E", 123.456) == "+1.E+02" +string.format("%# +.0E", 1234560000) == "+1.E+09" +string.format("%# +.0E", 1.23456e-05) == "+1.E-05" +string.format("%# +.0E", 123.456789123) == "+1.E+02" +string.format("%# +.0E", 1234567891.23) == "+1.E+09" +string.format("%# +.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# +.1E", 0) == "+0.0E+00" +string.format("%# +.1E", 1) == "+1.0E+00" +string.format("%# +.1E", -1) == "-1.0E+00" +string.format("%# +.1E", 2) == "+2.0E+00" +string.format("%# +.1E", -2) == "-2.0E+00" +string.format("%# +.1E", 3) == "+3.0E+00" +string.format("%# +.1E", -3) == "-3.0E+00" +string.format("%# +.1E", 100) == "+1.0E+02" +string.format("%# +.1E", 10000) == "+1.0E+04" +string.format("%# +.1E", 100000) == "+1.0E+05" +string.format("%# +.1E", 1000000) == "+1.0E+06" +string.format("%# +.1E", 10000000) == "+1.0E+07" +string.format("%# +.1E", 0.01) == "+1.0E-02" +string.format("%# +.1E", 0.0001) == "+1.0E-04" +string.format("%# +.1E", 1e-05) == "+1.0E-05" +string.format("%# +.1E", 1e-06) == "+1.0E-06" +string.format("%# +.1E", 1e-07) == "+1.0E-07" +string.format("%# +.1E", 123.456) == "+1.2E+02" +string.format("%# +.1E", 1234560000) == "+1.2E+09" +string.format("%# +.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# +.1E", 123.456789123) == "+1.2E+02" +string.format("%# +.1E", 1234567891.23) == "+1.2E+09" +string.format("%# +.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# +1.0E", 0) == "+0.E+00" +string.format("%# +1.0E", 1) == "+1.E+00" +string.format("%# +1.0E", -1) == "-1.E+00" +string.format("%# +1.0E", 2) == "+2.E+00" +string.format("%# +1.0E", -2) == "-2.E+00" +string.format("%# +1.0E", 3) == "+3.E+00" +string.format("%# +1.0E", -3) == "-3.E+00" +string.format("%# +1.0E", 100) == "+1.E+02" +string.format("%# +1.0E", 10000) == "+1.E+04" +string.format("%# +1.0E", 100000) == "+1.E+05" +string.format("%# +1.0E", 1000000) == "+1.E+06" +string.format("%# +1.0E", 10000000) == "+1.E+07" +string.format("%# +1.0E", 0.01) == "+1.E-02" +string.format("%# +1.0E", 0.0001) == "+1.E-04" +string.format("%# +1.0E", 1e-05) == "+1.E-05" +string.format("%# +1.0E", 1e-06) == "+1.E-06" +string.format("%# +1.0E", 1e-07) == "+1.E-07" +string.format("%# +1.0E", 123.456) == "+1.E+02" +string.format("%# +1.0E", 1234560000) == "+1.E+09" +string.format("%# +1.0E", 1.23456e-05) == "+1.E-05" +string.format("%# +1.0E", 123.456789123) == "+1.E+02" +string.format("%# +1.0E", 1234567891.23) == "+1.E+09" +string.format("%# +1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# +1.1E", 0) == "+0.0E+00" +string.format("%# +1.1E", 1) == "+1.0E+00" +string.format("%# +1.1E", -1) == "-1.0E+00" +string.format("%# +1.1E", 2) == "+2.0E+00" +string.format("%# +1.1E", -2) == "-2.0E+00" +string.format("%# +1.1E", 3) == "+3.0E+00" +string.format("%# +1.1E", -3) == "-3.0E+00" +string.format("%# +1.1E", 100) == "+1.0E+02" +string.format("%# +1.1E", 10000) == "+1.0E+04" +string.format("%# +1.1E", 100000) == "+1.0E+05" +string.format("%# +1.1E", 1000000) == "+1.0E+06" +string.format("%# +1.1E", 10000000) == "+1.0E+07" +string.format("%# +1.1E", 0.01) == "+1.0E-02" +string.format("%# +1.1E", 0.0001) == "+1.0E-04" +string.format("%# +1.1E", 1e-05) == "+1.0E-05" +string.format("%# +1.1E", 1e-06) == "+1.0E-06" +string.format("%# +1.1E", 1e-07) == "+1.0E-07" +string.format("%# +1.1E", 123.456) == "+1.2E+02" +string.format("%# +1.1E", 1234560000) == "+1.2E+09" +string.format("%# +1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# +1.1E", 123.456789123) == "+1.2E+02" +string.format("%# +1.1E", 1234567891.23) == "+1.2E+09" +string.format("%# +1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# +2.0E", 0) == "+0.E+00" +string.format("%# +2.0E", 1) == "+1.E+00" +string.format("%# +2.0E", -1) == "-1.E+00" +string.format("%# +2.0E", 2) == "+2.E+00" +string.format("%# +2.0E", -2) == "-2.E+00" +string.format("%# +2.0E", 3) == "+3.E+00" +string.format("%# +2.0E", -3) == "-3.E+00" +string.format("%# +2.0E", 100) == "+1.E+02" +string.format("%# +2.0E", 10000) == "+1.E+04" +string.format("%# +2.0E", 100000) == "+1.E+05" +string.format("%# +2.0E", 1000000) == "+1.E+06" +string.format("%# +2.0E", 10000000) == "+1.E+07" +string.format("%# +2.0E", 0.01) == "+1.E-02" +string.format("%# +2.0E", 0.0001) == "+1.E-04" +string.format("%# +2.0E", 1e-05) == "+1.E-05" +string.format("%# +2.0E", 1e-06) == "+1.E-06" +string.format("%# +2.0E", 1e-07) == "+1.E-07" +string.format("%# +2.0E", 123.456) == "+1.E+02" +string.format("%# +2.0E", 1234560000) == "+1.E+09" +string.format("%# +2.0E", 1.23456e-05) == "+1.E-05" +string.format("%# +2.0E", 123.456789123) == "+1.E+02" +string.format("%# +2.0E", 1234567891.23) == "+1.E+09" +string.format("%# +2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# +2.1E", 0) == "+0.0E+00" +string.format("%# +2.1E", 1) == "+1.0E+00" +string.format("%# +2.1E", -1) == "-1.0E+00" +string.format("%# +2.1E", 2) == "+2.0E+00" +string.format("%# +2.1E", -2) == "-2.0E+00" +string.format("%# +2.1E", 3) == "+3.0E+00" +string.format("%# +2.1E", -3) == "-3.0E+00" +string.format("%# +2.1E", 100) == "+1.0E+02" +string.format("%# +2.1E", 10000) == "+1.0E+04" +string.format("%# +2.1E", 100000) == "+1.0E+05" +string.format("%# +2.1E", 1000000) == "+1.0E+06" +string.format("%# +2.1E", 10000000) == "+1.0E+07" +string.format("%# +2.1E", 0.01) == "+1.0E-02" +string.format("%# +2.1E", 0.0001) == "+1.0E-04" +string.format("%# +2.1E", 1e-05) == "+1.0E-05" +string.format("%# +2.1E", 1e-06) == "+1.0E-06" +string.format("%# +2.1E", 1e-07) == "+1.0E-07" +string.format("%# +2.1E", 123.456) == "+1.2E+02" +string.format("%# +2.1E", 1234560000) == "+1.2E+09" +string.format("%# +2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# +2.1E", 123.456789123) == "+1.2E+02" +string.format("%# +2.1E", 1234567891.23) == "+1.2E+09" +string.format("%# +2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# +6E", nan) == " +NAN" +string.format("%# +6E", inf) == " +INF" +string.format("%# +6E", -inf) == " -INF" +string.format("%# +6.0E", 0) == "+0.E+00" +string.format("%# +6.0E", 1) == "+1.E+00" +string.format("%# +6.0E", -1) == "-1.E+00" +string.format("%# +6.0E", 2) == "+2.E+00" +string.format("%# +6.0E", -2) == "-2.E+00" +string.format("%# +6.0E", 3) == "+3.E+00" +string.format("%# +6.0E", -3) == "-3.E+00" +string.format("%# +6.0E", nan) == " +NAN" +string.format("%# +6.0E", inf) == " +INF" +string.format("%# +6.0E", -inf) == " -INF" +string.format("%# +6.0E", 100) == "+1.E+02" +string.format("%# +6.0E", 10000) == "+1.E+04" +string.format("%# +6.0E", 100000) == "+1.E+05" +string.format("%# +6.0E", 1000000) == "+1.E+06" +string.format("%# +6.0E", 10000000) == "+1.E+07" +string.format("%# +6.0E", 0.01) == "+1.E-02" +string.format("%# +6.0E", 0.0001) == "+1.E-04" +string.format("%# +6.0E", 1e-05) == "+1.E-05" +string.format("%# +6.0E", 1e-06) == "+1.E-06" +string.format("%# +6.0E", 1e-07) == "+1.E-07" +string.format("%# +6.0E", 123.456) == "+1.E+02" +string.format("%# +6.0E", 1234560000) == "+1.E+09" +string.format("%# +6.0E", 1.23456e-05) == "+1.E-05" +string.format("%# +6.0E", 123.456789123) == "+1.E+02" +string.format("%# +6.0E", 1234567891.23) == "+1.E+09" +string.format("%# +6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# +6.1E", 0) == "+0.0E+00" +string.format("%# +6.1E", 1) == "+1.0E+00" +string.format("%# +6.1E", -1) == "-1.0E+00" +string.format("%# +6.1E", 2) == "+2.0E+00" +string.format("%# +6.1E", -2) == "-2.0E+00" +string.format("%# +6.1E", 3) == "+3.0E+00" +string.format("%# +6.1E", -3) == "-3.0E+00" +string.format("%# +6.1E", nan) == " +NAN" +string.format("%# +6.1E", inf) == " +INF" +string.format("%# +6.1E", -inf) == " -INF" +string.format("%# +6.1E", 100) == "+1.0E+02" +string.format("%# +6.1E", 10000) == "+1.0E+04" +string.format("%# +6.1E", 100000) == "+1.0E+05" +string.format("%# +6.1E", 1000000) == "+1.0E+06" +string.format("%# +6.1E", 10000000) == "+1.0E+07" +string.format("%# +6.1E", 0.01) == "+1.0E-02" +string.format("%# +6.1E", 0.0001) == "+1.0E-04" +string.format("%# +6.1E", 1e-05) == "+1.0E-05" +string.format("%# +6.1E", 1e-06) == "+1.0E-06" +string.format("%# +6.1E", 1e-07) == "+1.0E-07" +string.format("%# +6.1E", 123.456) == "+1.2E+02" +string.format("%# +6.1E", 1234560000) == "+1.2E+09" +string.format("%# +6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# +6.1E", 123.456789123) == "+1.2E+02" +string.format("%# +6.1E", 1234567891.23) == "+1.2E+09" +string.format("%# +6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# +6.6E", nan) == " +NAN" +string.format("%# +6.6E", inf) == " +INF" +string.format("%# +6.6E", -inf) == " -INF" +string.format("%# +20E", 0) == " +0.000000E+00" +string.format("%# +20E", 1) == " +1.000000E+00" +string.format("%# +20E", -1) == " -1.000000E+00" +string.format("%# +20E", 2) == " +2.000000E+00" +string.format("%# +20E", -2) == " -2.000000E+00" +string.format("%# +20E", 3) == " +3.000000E+00" +string.format("%# +20E", -3) == " -3.000000E+00" +string.format("%# +20E", nan) == " +NAN" +string.format("%# +20E", inf) == " +INF" +string.format("%# +20E", -inf) == " -INF" +string.format("%# +20E", 100) == " +1.000000E+02" +string.format("%# +20E", 10000) == " +1.000000E+04" +string.format("%# +20E", 100000) == " +1.000000E+05" +string.format("%# +20E", 1000000) == " +1.000000E+06" +string.format("%# +20E", 10000000) == " +1.000000E+07" +string.format("%# +20E", 0.01) == " +1.000000E-02" +string.format("%# +20E", 0.0001) == " +1.000000E-04" +string.format("%# +20E", 1e-05) == " +1.000000E-05" +string.format("%# +20E", 1e-06) == " +1.000000E-06" +string.format("%# +20E", 1e-07) == " +1.000000E-07" +string.format("%# +20E", 123.456) == " +1.234560E+02" +string.format("%# +20E", 1234560000) == " +1.234560E+09" +string.format("%# +20E", 1.23456e-05) == " +1.234560E-05" +string.format("%# +20E", 123.456789123) == " +1.234568E+02" +string.format("%# +20E", 1234567891.23) == " +1.234568E+09" +string.format("%# +20E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%# +20.0E", 0) == " +0.E+00" +string.format("%# +20.0E", 1) == " +1.E+00" +string.format("%# +20.0E", -1) == " -1.E+00" +string.format("%# +20.0E", 2) == " +2.E+00" +string.format("%# +20.0E", -2) == " -2.E+00" +string.format("%# +20.0E", 3) == " +3.E+00" +string.format("%# +20.0E", -3) == " -3.E+00" +string.format("%# +20.0E", nan) == " +NAN" +string.format("%# +20.0E", inf) == " +INF" +string.format("%# +20.0E", -inf) == " -INF" +string.format("%# +20.0E", 100) == " +1.E+02" +string.format("%# +20.0E", 10000) == " +1.E+04" +string.format("%# +20.0E", 100000) == " +1.E+05" +string.format("%# +20.0E", 1000000) == " +1.E+06" +string.format("%# +20.0E", 10000000) == " +1.E+07" +string.format("%# +20.0E", 0.01) == " +1.E-02" +string.format("%# +20.0E", 0.0001) == " +1.E-04" +string.format("%# +20.0E", 1e-05) == " +1.E-05" +string.format("%# +20.0E", 1e-06) == " +1.E-06" +string.format("%# +20.0E", 1e-07) == " +1.E-07" +string.format("%# +20.0E", 123.456) == " +1.E+02" +string.format("%# +20.0E", 1234560000) == " +1.E+09" +string.format("%# +20.0E", 1.23456e-05) == " +1.E-05" +string.format("%# +20.0E", 123.456789123) == " +1.E+02" +string.format("%# +20.0E", 1234567891.23) == " +1.E+09" +string.format("%# +20.0E", 1.23456789123e-05) == " +1.E-05" +string.format("%# +20.1E", 0) == " +0.0E+00" +string.format("%# +20.1E", 1) == " +1.0E+00" +string.format("%# +20.1E", -1) == " -1.0E+00" +string.format("%# +20.1E", 2) == " +2.0E+00" +string.format("%# +20.1E", -2) == " -2.0E+00" +string.format("%# +20.1E", 3) == " +3.0E+00" +string.format("%# +20.1E", -3) == " -3.0E+00" +string.format("%# +20.1E", nan) == " +NAN" +string.format("%# +20.1E", inf) == " +INF" +string.format("%# +20.1E", -inf) == " -INF" +string.format("%# +20.1E", 100) == " +1.0E+02" +string.format("%# +20.1E", 10000) == " +1.0E+04" +string.format("%# +20.1E", 100000) == " +1.0E+05" +string.format("%# +20.1E", 1000000) == " +1.0E+06" +string.format("%# +20.1E", 10000000) == " +1.0E+07" +string.format("%# +20.1E", 0.01) == " +1.0E-02" +string.format("%# +20.1E", 0.0001) == " +1.0E-04" +string.format("%# +20.1E", 1e-05) == " +1.0E-05" +string.format("%# +20.1E", 1e-06) == " +1.0E-06" +string.format("%# +20.1E", 1e-07) == " +1.0E-07" +string.format("%# +20.1E", 123.456) == " +1.2E+02" +string.format("%# +20.1E", 1234560000) == " +1.2E+09" +string.format("%# +20.1E", 1.23456e-05) == " +1.2E-05" +string.format("%# +20.1E", 123.456789123) == " +1.2E+02" +string.format("%# +20.1E", 1234567891.23) == " +1.2E+09" +string.format("%# +20.1E", 1.23456789123e-05) == " +1.2E-05" +string.format("%# +20.6E", 0) == " +0.000000E+00" +string.format("%# +20.6E", 1) == " +1.000000E+00" +string.format("%# +20.6E", -1) == " -1.000000E+00" +string.format("%# +20.6E", 2) == " +2.000000E+00" +string.format("%# +20.6E", -2) == " -2.000000E+00" +string.format("%# +20.6E", 3) == " +3.000000E+00" +string.format("%# +20.6E", -3) == " -3.000000E+00" +string.format("%# +20.6E", nan) == " +NAN" +string.format("%# +20.6E", inf) == " +INF" +string.format("%# +20.6E", -inf) == " -INF" +string.format("%# +20.6E", 100) == " +1.000000E+02" +string.format("%# +20.6E", 10000) == " +1.000000E+04" +string.format("%# +20.6E", 100000) == " +1.000000E+05" +string.format("%# +20.6E", 1000000) == " +1.000000E+06" +string.format("%# +20.6E", 10000000) == " +1.000000E+07" +string.format("%# +20.6E", 0.01) == " +1.000000E-02" +string.format("%# +20.6E", 0.0001) == " +1.000000E-04" +string.format("%# +20.6E", 1e-05) == " +1.000000E-05" +string.format("%# +20.6E", 1e-06) == " +1.000000E-06" +string.format("%# +20.6E", 1e-07) == " +1.000000E-07" +string.format("%# +20.6E", 123.456) == " +1.234560E+02" +string.format("%# +20.6E", 1234560000) == " +1.234560E+09" +string.format("%# +20.6E", 1.23456e-05) == " +1.234560E-05" +string.format("%# +20.6E", 123.456789123) == " +1.234568E+02" +string.format("%# +20.6E", 1234567891.23) == " +1.234568E+09" +string.format("%# +20.6E", 1.23456789123e-05) == " +1.234568E-05" +string.format("%# -E", 0) == " 0.000000E+00" +string.format("%# -E", 1) == " 1.000000E+00" +string.format("%# -E", -1) == "-1.000000E+00" +string.format("%# -E", 2) == " 2.000000E+00" +string.format("%# -E", -2) == "-2.000000E+00" +string.format("%# -E", 3) == " 3.000000E+00" +string.format("%# -E", -3) == "-3.000000E+00" +string.format("%# -E", nan) == " NAN" +string.format("%# -E", inf) == " INF" +string.format("%# -E", -inf) == "-INF" +string.format("%# -E", 100) == " 1.000000E+02" +string.format("%# -E", 10000) == " 1.000000E+04" +string.format("%# -E", 100000) == " 1.000000E+05" +string.format("%# -E", 1000000) == " 1.000000E+06" +string.format("%# -E", 10000000) == " 1.000000E+07" +string.format("%# -E", 0.01) == " 1.000000E-02" +string.format("%# -E", 0.0001) == " 1.000000E-04" +string.format("%# -E", 1e-05) == " 1.000000E-05" +string.format("%# -E", 1e-06) == " 1.000000E-06" +string.format("%# -E", 1e-07) == " 1.000000E-07" +string.format("%# -E", 123.456) == " 1.234560E+02" +string.format("%# -E", 1234560000) == " 1.234560E+09" +string.format("%# -E", 1.23456e-05) == " 1.234560E-05" +string.format("%# -E", 123.456789123) == " 1.234568E+02" +string.format("%# -E", 1234567891.23) == " 1.234568E+09" +string.format("%# -E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%# -.0E", 0) == " 0.E+00" +string.format("%# -.0E", 1) == " 1.E+00" +string.format("%# -.0E", -1) == "-1.E+00" +string.format("%# -.0E", 2) == " 2.E+00" +string.format("%# -.0E", -2) == "-2.E+00" +string.format("%# -.0E", 3) == " 3.E+00" +string.format("%# -.0E", -3) == "-3.E+00" +string.format("%# -.0E", 100) == " 1.E+02" +string.format("%# -.0E", 10000) == " 1.E+04" +string.format("%# -.0E", 100000) == " 1.E+05" +string.format("%# -.0E", 1000000) == " 1.E+06" +string.format("%# -.0E", 10000000) == " 1.E+07" +string.format("%# -.0E", 0.01) == " 1.E-02" +string.format("%# -.0E", 0.0001) == " 1.E-04" +string.format("%# -.0E", 1e-05) == " 1.E-05" +string.format("%# -.0E", 1e-06) == " 1.E-06" +string.format("%# -.0E", 1e-07) == " 1.E-07" +string.format("%# -.0E", 123.456) == " 1.E+02" +string.format("%# -.0E", 1234560000) == " 1.E+09" +string.format("%# -.0E", 1.23456e-05) == " 1.E-05" +string.format("%# -.0E", 123.456789123) == " 1.E+02" +string.format("%# -.0E", 1234567891.23) == " 1.E+09" +string.format("%# -.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# -.1E", 0) == " 0.0E+00" +string.format("%# -.1E", 1) == " 1.0E+00" +string.format("%# -.1E", -1) == "-1.0E+00" +string.format("%# -.1E", 2) == " 2.0E+00" +string.format("%# -.1E", -2) == "-2.0E+00" +string.format("%# -.1E", 3) == " 3.0E+00" +string.format("%# -.1E", -3) == "-3.0E+00" +string.format("%# -.1E", 100) == " 1.0E+02" +string.format("%# -.1E", 10000) == " 1.0E+04" +string.format("%# -.1E", 100000) == " 1.0E+05" +string.format("%# -.1E", 1000000) == " 1.0E+06" +string.format("%# -.1E", 10000000) == " 1.0E+07" +string.format("%# -.1E", 0.01) == " 1.0E-02" +string.format("%# -.1E", 0.0001) == " 1.0E-04" +string.format("%# -.1E", 1e-05) == " 1.0E-05" +string.format("%# -.1E", 1e-06) == " 1.0E-06" +string.format("%# -.1E", 1e-07) == " 1.0E-07" +string.format("%# -.1E", 123.456) == " 1.2E+02" +string.format("%# -.1E", 1234560000) == " 1.2E+09" +string.format("%# -.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# -.1E", 123.456789123) == " 1.2E+02" +string.format("%# -.1E", 1234567891.23) == " 1.2E+09" +string.format("%# -.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# -1.0E", 0) == " 0.E+00" +string.format("%# -1.0E", 1) == " 1.E+00" +string.format("%# -1.0E", -1) == "-1.E+00" +string.format("%# -1.0E", 2) == " 2.E+00" +string.format("%# -1.0E", -2) == "-2.E+00" +string.format("%# -1.0E", 3) == " 3.E+00" +string.format("%# -1.0E", -3) == "-3.E+00" +string.format("%# -1.0E", 100) == " 1.E+02" +string.format("%# -1.0E", 10000) == " 1.E+04" +string.format("%# -1.0E", 100000) == " 1.E+05" +string.format("%# -1.0E", 1000000) == " 1.E+06" +string.format("%# -1.0E", 10000000) == " 1.E+07" +string.format("%# -1.0E", 0.01) == " 1.E-02" +string.format("%# -1.0E", 0.0001) == " 1.E-04" +string.format("%# -1.0E", 1e-05) == " 1.E-05" +string.format("%# -1.0E", 1e-06) == " 1.E-06" +string.format("%# -1.0E", 1e-07) == " 1.E-07" +string.format("%# -1.0E", 123.456) == " 1.E+02" +string.format("%# -1.0E", 1234560000) == " 1.E+09" +string.format("%# -1.0E", 1.23456e-05) == " 1.E-05" +string.format("%# -1.0E", 123.456789123) == " 1.E+02" +string.format("%# -1.0E", 1234567891.23) == " 1.E+09" +string.format("%# -1.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# -1.1E", 0) == " 0.0E+00" +string.format("%# -1.1E", 1) == " 1.0E+00" +string.format("%# -1.1E", -1) == "-1.0E+00" +string.format("%# -1.1E", 2) == " 2.0E+00" +string.format("%# -1.1E", -2) == "-2.0E+00" +string.format("%# -1.1E", 3) == " 3.0E+00" +string.format("%# -1.1E", -3) == "-3.0E+00" +string.format("%# -1.1E", 100) == " 1.0E+02" +string.format("%# -1.1E", 10000) == " 1.0E+04" +string.format("%# -1.1E", 100000) == " 1.0E+05" +string.format("%# -1.1E", 1000000) == " 1.0E+06" +string.format("%# -1.1E", 10000000) == " 1.0E+07" +string.format("%# -1.1E", 0.01) == " 1.0E-02" +string.format("%# -1.1E", 0.0001) == " 1.0E-04" +string.format("%# -1.1E", 1e-05) == " 1.0E-05" +string.format("%# -1.1E", 1e-06) == " 1.0E-06" +string.format("%# -1.1E", 1e-07) == " 1.0E-07" +string.format("%# -1.1E", 123.456) == " 1.2E+02" +string.format("%# -1.1E", 1234560000) == " 1.2E+09" +string.format("%# -1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# -1.1E", 123.456789123) == " 1.2E+02" +string.format("%# -1.1E", 1234567891.23) == " 1.2E+09" +string.format("%# -1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# -2.0E", 0) == " 0.E+00" +string.format("%# -2.0E", 1) == " 1.E+00" +string.format("%# -2.0E", -1) == "-1.E+00" +string.format("%# -2.0E", 2) == " 2.E+00" +string.format("%# -2.0E", -2) == "-2.E+00" +string.format("%# -2.0E", 3) == " 3.E+00" +string.format("%# -2.0E", -3) == "-3.E+00" +string.format("%# -2.0E", 100) == " 1.E+02" +string.format("%# -2.0E", 10000) == " 1.E+04" +string.format("%# -2.0E", 100000) == " 1.E+05" +string.format("%# -2.0E", 1000000) == " 1.E+06" +string.format("%# -2.0E", 10000000) == " 1.E+07" +string.format("%# -2.0E", 0.01) == " 1.E-02" +string.format("%# -2.0E", 0.0001) == " 1.E-04" +string.format("%# -2.0E", 1e-05) == " 1.E-05" +string.format("%# -2.0E", 1e-06) == " 1.E-06" +string.format("%# -2.0E", 1e-07) == " 1.E-07" +string.format("%# -2.0E", 123.456) == " 1.E+02" +string.format("%# -2.0E", 1234560000) == " 1.E+09" +string.format("%# -2.0E", 1.23456e-05) == " 1.E-05" +string.format("%# -2.0E", 123.456789123) == " 1.E+02" +string.format("%# -2.0E", 1234567891.23) == " 1.E+09" +string.format("%# -2.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# -2.1E", 0) == " 0.0E+00" +string.format("%# -2.1E", 1) == " 1.0E+00" +string.format("%# -2.1E", -1) == "-1.0E+00" +string.format("%# -2.1E", 2) == " 2.0E+00" +string.format("%# -2.1E", -2) == "-2.0E+00" +string.format("%# -2.1E", 3) == " 3.0E+00" +string.format("%# -2.1E", -3) == "-3.0E+00" +string.format("%# -2.1E", 100) == " 1.0E+02" +string.format("%# -2.1E", 10000) == " 1.0E+04" +string.format("%# -2.1E", 100000) == " 1.0E+05" +string.format("%# -2.1E", 1000000) == " 1.0E+06" +string.format("%# -2.1E", 10000000) == " 1.0E+07" +string.format("%# -2.1E", 0.01) == " 1.0E-02" +string.format("%# -2.1E", 0.0001) == " 1.0E-04" +string.format("%# -2.1E", 1e-05) == " 1.0E-05" +string.format("%# -2.1E", 1e-06) == " 1.0E-06" +string.format("%# -2.1E", 1e-07) == " 1.0E-07" +string.format("%# -2.1E", 123.456) == " 1.2E+02" +string.format("%# -2.1E", 1234560000) == " 1.2E+09" +string.format("%# -2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# -2.1E", 123.456789123) == " 1.2E+02" +string.format("%# -2.1E", 1234567891.23) == " 1.2E+09" +string.format("%# -2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# -6E", nan) == " NAN " +string.format("%# -6E", inf) == " INF " +string.format("%# -6E", -inf) == "-INF " +string.format("%# -6.0E", 0) == " 0.E+00" +string.format("%# -6.0E", 1) == " 1.E+00" +string.format("%# -6.0E", -1) == "-1.E+00" +string.format("%# -6.0E", 2) == " 2.E+00" +string.format("%# -6.0E", -2) == "-2.E+00" +string.format("%# -6.0E", 3) == " 3.E+00" +string.format("%# -6.0E", -3) == "-3.E+00" +string.format("%# -6.0E", nan) == " NAN " +string.format("%# -6.0E", inf) == " INF " +string.format("%# -6.0E", -inf) == "-INF " +string.format("%# -6.0E", 100) == " 1.E+02" +string.format("%# -6.0E", 10000) == " 1.E+04" +string.format("%# -6.0E", 100000) == " 1.E+05" +string.format("%# -6.0E", 1000000) == " 1.E+06" +string.format("%# -6.0E", 10000000) == " 1.E+07" +string.format("%# -6.0E", 0.01) == " 1.E-02" +string.format("%# -6.0E", 0.0001) == " 1.E-04" +string.format("%# -6.0E", 1e-05) == " 1.E-05" +string.format("%# -6.0E", 1e-06) == " 1.E-06" +string.format("%# -6.0E", 1e-07) == " 1.E-07" +string.format("%# -6.0E", 123.456) == " 1.E+02" +string.format("%# -6.0E", 1234560000) == " 1.E+09" +string.format("%# -6.0E", 1.23456e-05) == " 1.E-05" +string.format("%# -6.0E", 123.456789123) == " 1.E+02" +string.format("%# -6.0E", 1234567891.23) == " 1.E+09" +string.format("%# -6.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%# -6.1E", 0) == " 0.0E+00" +string.format("%# -6.1E", 1) == " 1.0E+00" +string.format("%# -6.1E", -1) == "-1.0E+00" +string.format("%# -6.1E", 2) == " 2.0E+00" +string.format("%# -6.1E", -2) == "-2.0E+00" +string.format("%# -6.1E", 3) == " 3.0E+00" +string.format("%# -6.1E", -3) == "-3.0E+00" +string.format("%# -6.1E", nan) == " NAN " +string.format("%# -6.1E", inf) == " INF " +string.format("%# -6.1E", -inf) == "-INF " +string.format("%# -6.1E", 100) == " 1.0E+02" +string.format("%# -6.1E", 10000) == " 1.0E+04" +string.format("%# -6.1E", 100000) == " 1.0E+05" +string.format("%# -6.1E", 1000000) == " 1.0E+06" +string.format("%# -6.1E", 10000000) == " 1.0E+07" +string.format("%# -6.1E", 0.01) == " 1.0E-02" +string.format("%# -6.1E", 0.0001) == " 1.0E-04" +string.format("%# -6.1E", 1e-05) == " 1.0E-05" +string.format("%# -6.1E", 1e-06) == " 1.0E-06" +string.format("%# -6.1E", 1e-07) == " 1.0E-07" +string.format("%# -6.1E", 123.456) == " 1.2E+02" +string.format("%# -6.1E", 1234560000) == " 1.2E+09" +string.format("%# -6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%# -6.1E", 123.456789123) == " 1.2E+02" +string.format("%# -6.1E", 1234567891.23) == " 1.2E+09" +string.format("%# -6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%# -6.6E", nan) == " NAN " +string.format("%# -6.6E", inf) == " INF " +string.format("%# -6.6E", -inf) == "-INF " +string.format("%# -20E", 0) == " 0.000000E+00 " +string.format("%# -20E", 1) == " 1.000000E+00 " +string.format("%# -20E", -1) == "-1.000000E+00 " +string.format("%# -20E", 2) == " 2.000000E+00 " +string.format("%# -20E", -2) == "-2.000000E+00 " +string.format("%# -20E", 3) == " 3.000000E+00 " +string.format("%# -20E", -3) == "-3.000000E+00 " +string.format("%# -20E", nan) == " NAN " +string.format("%# -20E", inf) == " INF " +string.format("%# -20E", -inf) == "-INF " +string.format("%# -20E", 100) == " 1.000000E+02 " +string.format("%# -20E", 10000) == " 1.000000E+04 " +string.format("%# -20E", 100000) == " 1.000000E+05 " +string.format("%# -20E", 1000000) == " 1.000000E+06 " +string.format("%# -20E", 10000000) == " 1.000000E+07 " +string.format("%# -20E", 0.01) == " 1.000000E-02 " +string.format("%# -20E", 0.0001) == " 1.000000E-04 " +string.format("%# -20E", 1e-05) == " 1.000000E-05 " +string.format("%# -20E", 1e-06) == " 1.000000E-06 " +string.format("%# -20E", 1e-07) == " 1.000000E-07 " +string.format("%# -20E", 123.456) == " 1.234560E+02 " +string.format("%# -20E", 1234560000) == " 1.234560E+09 " +string.format("%# -20E", 1.23456e-05) == " 1.234560E-05 " +string.format("%# -20E", 123.456789123) == " 1.234568E+02 " +string.format("%# -20E", 1234567891.23) == " 1.234568E+09 " +string.format("%# -20E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%# -20.0E", 0) == " 0.E+00 " +string.format("%# -20.0E", 1) == " 1.E+00 " +string.format("%# -20.0E", -1) == "-1.E+00 " +string.format("%# -20.0E", 2) == " 2.E+00 " +string.format("%# -20.0E", -2) == "-2.E+00 " +string.format("%# -20.0E", 3) == " 3.E+00 " +string.format("%# -20.0E", -3) == "-3.E+00 " +string.format("%# -20.0E", nan) == " NAN " +string.format("%# -20.0E", inf) == " INF " +string.format("%# -20.0E", -inf) == "-INF " +string.format("%# -20.0E", 100) == " 1.E+02 " +string.format("%# -20.0E", 10000) == " 1.E+04 " +string.format("%# -20.0E", 100000) == " 1.E+05 " +string.format("%# -20.0E", 1000000) == " 1.E+06 " +string.format("%# -20.0E", 10000000) == " 1.E+07 " +string.format("%# -20.0E", 0.01) == " 1.E-02 " +string.format("%# -20.0E", 0.0001) == " 1.E-04 " +string.format("%# -20.0E", 1e-05) == " 1.E-05 " +string.format("%# -20.0E", 1e-06) == " 1.E-06 " +string.format("%# -20.0E", 1e-07) == " 1.E-07 " +string.format("%# -20.0E", 123.456) == " 1.E+02 " +string.format("%# -20.0E", 1234560000) == " 1.E+09 " +string.format("%# -20.0E", 1.23456e-05) == " 1.E-05 " +string.format("%# -20.0E", 123.456789123) == " 1.E+02 " +string.format("%# -20.0E", 1234567891.23) == " 1.E+09 " +string.format("%# -20.0E", 1.23456789123e-05) == " 1.E-05 " +string.format("%# -20.1E", 0) == " 0.0E+00 " +string.format("%# -20.1E", 1) == " 1.0E+00 " +string.format("%# -20.1E", -1) == "-1.0E+00 " +string.format("%# -20.1E", 2) == " 2.0E+00 " +string.format("%# -20.1E", -2) == "-2.0E+00 " +string.format("%# -20.1E", 3) == " 3.0E+00 " +string.format("%# -20.1E", -3) == "-3.0E+00 " +string.format("%# -20.1E", nan) == " NAN " +string.format("%# -20.1E", inf) == " INF " +string.format("%# -20.1E", -inf) == "-INF " +string.format("%# -20.1E", 100) == " 1.0E+02 " +string.format("%# -20.1E", 10000) == " 1.0E+04 " +string.format("%# -20.1E", 100000) == " 1.0E+05 " +string.format("%# -20.1E", 1000000) == " 1.0E+06 " +string.format("%# -20.1E", 10000000) == " 1.0E+07 " +string.format("%# -20.1E", 0.01) == " 1.0E-02 " +string.format("%# -20.1E", 0.0001) == " 1.0E-04 " +string.format("%# -20.1E", 1e-05) == " 1.0E-05 " +string.format("%# -20.1E", 1e-06) == " 1.0E-06 " +string.format("%# -20.1E", 1e-07) == " 1.0E-07 " +string.format("%# -20.1E", 123.456) == " 1.2E+02 " +string.format("%# -20.1E", 1234560000) == " 1.2E+09 " +string.format("%# -20.1E", 1.23456e-05) == " 1.2E-05 " +string.format("%# -20.1E", 123.456789123) == " 1.2E+02 " +string.format("%# -20.1E", 1234567891.23) == " 1.2E+09 " +string.format("%# -20.1E", 1.23456789123e-05) == " 1.2E-05 " +string.format("%# -20.6E", 0) == " 0.000000E+00 " +string.format("%# -20.6E", 1) == " 1.000000E+00 " +string.format("%# -20.6E", -1) == "-1.000000E+00 " +string.format("%# -20.6E", 2) == " 2.000000E+00 " +string.format("%# -20.6E", -2) == "-2.000000E+00 " +string.format("%# -20.6E", 3) == " 3.000000E+00 " +string.format("%# -20.6E", -3) == "-3.000000E+00 " +string.format("%# -20.6E", nan) == " NAN " +string.format("%# -20.6E", inf) == " INF " +string.format("%# -20.6E", -inf) == "-INF " +string.format("%# -20.6E", 100) == " 1.000000E+02 " +string.format("%# -20.6E", 10000) == " 1.000000E+04 " +string.format("%# -20.6E", 100000) == " 1.000000E+05 " +string.format("%# -20.6E", 1000000) == " 1.000000E+06 " +string.format("%# -20.6E", 10000000) == " 1.000000E+07 " +string.format("%# -20.6E", 0.01) == " 1.000000E-02 " +string.format("%# -20.6E", 0.0001) == " 1.000000E-04 " +string.format("%# -20.6E", 1e-05) == " 1.000000E-05 " +string.format("%# -20.6E", 1e-06) == " 1.000000E-06 " +string.format("%# -20.6E", 1e-07) == " 1.000000E-07 " +string.format("%# -20.6E", 123.456) == " 1.234560E+02 " +string.format("%# -20.6E", 1234560000) == " 1.234560E+09 " +string.format("%# -20.6E", 1.23456e-05) == " 1.234560E-05 " +string.format("%# -20.6E", 123.456789123) == " 1.234568E+02 " +string.format("%# -20.6E", 1234567891.23) == " 1.234568E+09 " +string.format("%# -20.6E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%# -+E", 0) == "+0.000000E+00" +string.format("%# -+E", 1) == "+1.000000E+00" +string.format("%# -+E", -1) == "-1.000000E+00" +string.format("%# -+E", 2) == "+2.000000E+00" +string.format("%# -+E", -2) == "-2.000000E+00" +string.format("%# -+E", 3) == "+3.000000E+00" +string.format("%# -+E", -3) == "-3.000000E+00" +string.format("%# -+E", nan) == "+NAN" +string.format("%# -+E", inf) == "+INF" +string.format("%# -+E", -inf) == "-INF" +string.format("%# -+E", 100) == "+1.000000E+02" +string.format("%# -+E", 10000) == "+1.000000E+04" +string.format("%# -+E", 100000) == "+1.000000E+05" +string.format("%# -+E", 1000000) == "+1.000000E+06" +string.format("%# -+E", 10000000) == "+1.000000E+07" +string.format("%# -+E", 0.01) == "+1.000000E-02" +string.format("%# -+E", 0.0001) == "+1.000000E-04" +string.format("%# -+E", 1e-05) == "+1.000000E-05" +string.format("%# -+E", 1e-06) == "+1.000000E-06" +string.format("%# -+E", 1e-07) == "+1.000000E-07" +string.format("%# -+E", 123.456) == "+1.234560E+02" +string.format("%# -+E", 1234560000) == "+1.234560E+09" +string.format("%# -+E", 1.23456e-05) == "+1.234560E-05" +string.format("%# -+E", 123.456789123) == "+1.234568E+02" +string.format("%# -+E", 1234567891.23) == "+1.234568E+09" +string.format("%# -+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%# -+.0E", 0) == "+0.E+00" +string.format("%# -+.0E", 1) == "+1.E+00" +string.format("%# -+.0E", -1) == "-1.E+00" +string.format("%# -+.0E", 2) == "+2.E+00" +string.format("%# -+.0E", -2) == "-2.E+00" +string.format("%# -+.0E", 3) == "+3.E+00" +string.format("%# -+.0E", -3) == "-3.E+00" +string.format("%# -+.0E", 100) == "+1.E+02" +string.format("%# -+.0E", 10000) == "+1.E+04" +string.format("%# -+.0E", 100000) == "+1.E+05" +string.format("%# -+.0E", 1000000) == "+1.E+06" +string.format("%# -+.0E", 10000000) == "+1.E+07" +string.format("%# -+.0E", 0.01) == "+1.E-02" +string.format("%# -+.0E", 0.0001) == "+1.E-04" +string.format("%# -+.0E", 1e-05) == "+1.E-05" +string.format("%# -+.0E", 1e-06) == "+1.E-06" +string.format("%# -+.0E", 1e-07) == "+1.E-07" +string.format("%# -+.0E", 123.456) == "+1.E+02" +string.format("%# -+.0E", 1234560000) == "+1.E+09" +string.format("%# -+.0E", 1.23456e-05) == "+1.E-05" +string.format("%# -+.0E", 123.456789123) == "+1.E+02" +string.format("%# -+.0E", 1234567891.23) == "+1.E+09" +string.format("%# -+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+.1E", 0) == "+0.0E+00" +string.format("%# -+.1E", 1) == "+1.0E+00" +string.format("%# -+.1E", -1) == "-1.0E+00" +string.format("%# -+.1E", 2) == "+2.0E+00" +string.format("%# -+.1E", -2) == "-2.0E+00" +string.format("%# -+.1E", 3) == "+3.0E+00" +string.format("%# -+.1E", -3) == "-3.0E+00" +string.format("%# -+.1E", 100) == "+1.0E+02" +string.format("%# -+.1E", 10000) == "+1.0E+04" +string.format("%# -+.1E", 100000) == "+1.0E+05" +string.format("%# -+.1E", 1000000) == "+1.0E+06" +string.format("%# -+.1E", 10000000) == "+1.0E+07" +string.format("%# -+.1E", 0.01) == "+1.0E-02" +string.format("%# -+.1E", 0.0001) == "+1.0E-04" +string.format("%# -+.1E", 1e-05) == "+1.0E-05" +string.format("%# -+.1E", 1e-06) == "+1.0E-06" +string.format("%# -+.1E", 1e-07) == "+1.0E-07" +string.format("%# -+.1E", 123.456) == "+1.2E+02" +string.format("%# -+.1E", 1234560000) == "+1.2E+09" +string.format("%# -+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# -+.1E", 123.456789123) == "+1.2E+02" +string.format("%# -+.1E", 1234567891.23) == "+1.2E+09" +string.format("%# -+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# -+1.0E", 0) == "+0.E+00" +string.format("%# -+1.0E", 1) == "+1.E+00" +string.format("%# -+1.0E", -1) == "-1.E+00" +string.format("%# -+1.0E", 2) == "+2.E+00" +string.format("%# -+1.0E", -2) == "-2.E+00" +string.format("%# -+1.0E", 3) == "+3.E+00" +string.format("%# -+1.0E", -3) == "-3.E+00" +string.format("%# -+1.0E", 100) == "+1.E+02" +string.format("%# -+1.0E", 10000) == "+1.E+04" +string.format("%# -+1.0E", 100000) == "+1.E+05" +string.format("%# -+1.0E", 1000000) == "+1.E+06" +string.format("%# -+1.0E", 10000000) == "+1.E+07" +string.format("%# -+1.0E", 0.01) == "+1.E-02" +string.format("%# -+1.0E", 0.0001) == "+1.E-04" +string.format("%# -+1.0E", 1e-05) == "+1.E-05" +string.format("%# -+1.0E", 1e-06) == "+1.E-06" +string.format("%# -+1.0E", 1e-07) == "+1.E-07" +string.format("%# -+1.0E", 123.456) == "+1.E+02" +string.format("%# -+1.0E", 1234560000) == "+1.E+09" +string.format("%# -+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%# -+1.0E", 123.456789123) == "+1.E+02" +string.format("%# -+1.0E", 1234567891.23) == "+1.E+09" +string.format("%# -+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+1.1E", 0) == "+0.0E+00" +string.format("%# -+1.1E", 1) == "+1.0E+00" +string.format("%# -+1.1E", -1) == "-1.0E+00" +string.format("%# -+1.1E", 2) == "+2.0E+00" +string.format("%# -+1.1E", -2) == "-2.0E+00" +string.format("%# -+1.1E", 3) == "+3.0E+00" +string.format("%# -+1.1E", -3) == "-3.0E+00" +string.format("%# -+1.1E", 100) == "+1.0E+02" +string.format("%# -+1.1E", 10000) == "+1.0E+04" +string.format("%# -+1.1E", 100000) == "+1.0E+05" +string.format("%# -+1.1E", 1000000) == "+1.0E+06" +string.format("%# -+1.1E", 10000000) == "+1.0E+07" +string.format("%# -+1.1E", 0.01) == "+1.0E-02" +string.format("%# -+1.1E", 0.0001) == "+1.0E-04" +string.format("%# -+1.1E", 1e-05) == "+1.0E-05" +string.format("%# -+1.1E", 1e-06) == "+1.0E-06" +string.format("%# -+1.1E", 1e-07) == "+1.0E-07" +string.format("%# -+1.1E", 123.456) == "+1.2E+02" +string.format("%# -+1.1E", 1234560000) == "+1.2E+09" +string.format("%# -+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# -+1.1E", 123.456789123) == "+1.2E+02" +string.format("%# -+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%# -+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# -+2.0E", 0) == "+0.E+00" +string.format("%# -+2.0E", 1) == "+1.E+00" +string.format("%# -+2.0E", -1) == "-1.E+00" +string.format("%# -+2.0E", 2) == "+2.E+00" +string.format("%# -+2.0E", -2) == "-2.E+00" +string.format("%# -+2.0E", 3) == "+3.E+00" +string.format("%# -+2.0E", -3) == "-3.E+00" +string.format("%# -+2.0E", 100) == "+1.E+02" +string.format("%# -+2.0E", 10000) == "+1.E+04" +string.format("%# -+2.0E", 100000) == "+1.E+05" +string.format("%# -+2.0E", 1000000) == "+1.E+06" +string.format("%# -+2.0E", 10000000) == "+1.E+07" +string.format("%# -+2.0E", 0.01) == "+1.E-02" +string.format("%# -+2.0E", 0.0001) == "+1.E-04" +string.format("%# -+2.0E", 1e-05) == "+1.E-05" +string.format("%# -+2.0E", 1e-06) == "+1.E-06" +string.format("%# -+2.0E", 1e-07) == "+1.E-07" +string.format("%# -+2.0E", 123.456) == "+1.E+02" +string.format("%# -+2.0E", 1234560000) == "+1.E+09" +string.format("%# -+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%# -+2.0E", 123.456789123) == "+1.E+02" +string.format("%# -+2.0E", 1234567891.23) == "+1.E+09" +string.format("%# -+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+2.1E", 0) == "+0.0E+00" +string.format("%# -+2.1E", 1) == "+1.0E+00" +string.format("%# -+2.1E", -1) == "-1.0E+00" +string.format("%# -+2.1E", 2) == "+2.0E+00" +string.format("%# -+2.1E", -2) == "-2.0E+00" +string.format("%# -+2.1E", 3) == "+3.0E+00" +string.format("%# -+2.1E", -3) == "-3.0E+00" +string.format("%# -+2.1E", 100) == "+1.0E+02" +string.format("%# -+2.1E", 10000) == "+1.0E+04" +string.format("%# -+2.1E", 100000) == "+1.0E+05" +string.format("%# -+2.1E", 1000000) == "+1.0E+06" +string.format("%# -+2.1E", 10000000) == "+1.0E+07" +string.format("%# -+2.1E", 0.01) == "+1.0E-02" +string.format("%# -+2.1E", 0.0001) == "+1.0E-04" +string.format("%# -+2.1E", 1e-05) == "+1.0E-05" +string.format("%# -+2.1E", 1e-06) == "+1.0E-06" +string.format("%# -+2.1E", 1e-07) == "+1.0E-07" +string.format("%# -+2.1E", 123.456) == "+1.2E+02" +string.format("%# -+2.1E", 1234560000) == "+1.2E+09" +string.format("%# -+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# -+2.1E", 123.456789123) == "+1.2E+02" +string.format("%# -+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%# -+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# -+6E", nan) == "+NAN " +string.format("%# -+6E", inf) == "+INF " +string.format("%# -+6E", -inf) == "-INF " +string.format("%# -+6.0E", 0) == "+0.E+00" +string.format("%# -+6.0E", 1) == "+1.E+00" +string.format("%# -+6.0E", -1) == "-1.E+00" +string.format("%# -+6.0E", 2) == "+2.E+00" +string.format("%# -+6.0E", -2) == "-2.E+00" +string.format("%# -+6.0E", 3) == "+3.E+00" +string.format("%# -+6.0E", -3) == "-3.E+00" +string.format("%# -+6.0E", nan) == "+NAN " +string.format("%# -+6.0E", inf) == "+INF " +string.format("%# -+6.0E", -inf) == "-INF " +string.format("%# -+6.0E", 100) == "+1.E+02" +string.format("%# -+6.0E", 10000) == "+1.E+04" +string.format("%# -+6.0E", 100000) == "+1.E+05" +string.format("%# -+6.0E", 1000000) == "+1.E+06" +string.format("%# -+6.0E", 10000000) == "+1.E+07" +string.format("%# -+6.0E", 0.01) == "+1.E-02" +string.format("%# -+6.0E", 0.0001) == "+1.E-04" +string.format("%# -+6.0E", 1e-05) == "+1.E-05" +string.format("%# -+6.0E", 1e-06) == "+1.E-06" +string.format("%# -+6.0E", 1e-07) == "+1.E-07" +string.format("%# -+6.0E", 123.456) == "+1.E+02" +string.format("%# -+6.0E", 1234560000) == "+1.E+09" +string.format("%# -+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%# -+6.0E", 123.456789123) == "+1.E+02" +string.format("%# -+6.0E", 1234567891.23) == "+1.E+09" +string.format("%# -+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+6.1E", 0) == "+0.0E+00" +string.format("%# -+6.1E", 1) == "+1.0E+00" +string.format("%# -+6.1E", -1) == "-1.0E+00" +string.format("%# -+6.1E", 2) == "+2.0E+00" +string.format("%# -+6.1E", -2) == "-2.0E+00" +string.format("%# -+6.1E", 3) == "+3.0E+00" +string.format("%# -+6.1E", -3) == "-3.0E+00" +string.format("%# -+6.1E", nan) == "+NAN " +string.format("%# -+6.1E", inf) == "+INF " +string.format("%# -+6.1E", -inf) == "-INF " +string.format("%# -+6.1E", 100) == "+1.0E+02" +string.format("%# -+6.1E", 10000) == "+1.0E+04" +string.format("%# -+6.1E", 100000) == "+1.0E+05" +string.format("%# -+6.1E", 1000000) == "+1.0E+06" +string.format("%# -+6.1E", 10000000) == "+1.0E+07" +string.format("%# -+6.1E", 0.01) == "+1.0E-02" +string.format("%# -+6.1E", 0.0001) == "+1.0E-04" +string.format("%# -+6.1E", 1e-05) == "+1.0E-05" +string.format("%# -+6.1E", 1e-06) == "+1.0E-06" +string.format("%# -+6.1E", 1e-07) == "+1.0E-07" +string.format("%# -+6.1E", 123.456) == "+1.2E+02" +string.format("%# -+6.1E", 1234560000) == "+1.2E+09" +string.format("%# -+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%# -+6.1E", 123.456789123) == "+1.2E+02" +string.format("%# -+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%# -+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%# -+6.6E", nan) == "+NAN " +string.format("%# -+6.6E", inf) == "+INF " +string.format("%# -+6.6E", -inf) == "-INF " +string.format("%# -+20E", 0) == "+0.000000E+00 " +string.format("%# -+20E", 1) == "+1.000000E+00 " +string.format("%# -+20E", -1) == "-1.000000E+00 " +string.format("%# -+20E", 2) == "+2.000000E+00 " +string.format("%# -+20E", -2) == "-2.000000E+00 " +string.format("%# -+20E", 3) == "+3.000000E+00 " +string.format("%# -+20E", -3) == "-3.000000E+00 " +string.format("%# -+20E", nan) == "+NAN " +string.format("%# -+20E", inf) == "+INF " +string.format("%# -+20E", -inf) == "-INF " +string.format("%# -+20E", 100) == "+1.000000E+02 " +string.format("%# -+20E", 10000) == "+1.000000E+04 " +string.format("%# -+20E", 100000) == "+1.000000E+05 " +string.format("%# -+20E", 1000000) == "+1.000000E+06 " +string.format("%# -+20E", 10000000) == "+1.000000E+07 " +string.format("%# -+20E", 0.01) == "+1.000000E-02 " +string.format("%# -+20E", 0.0001) == "+1.000000E-04 " +string.format("%# -+20E", 1e-05) == "+1.000000E-05 " +string.format("%# -+20E", 1e-06) == "+1.000000E-06 " +string.format("%# -+20E", 1e-07) == "+1.000000E-07 " +string.format("%# -+20E", 123.456) == "+1.234560E+02 " +string.format("%# -+20E", 1234560000) == "+1.234560E+09 " +string.format("%# -+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%# -+20E", 123.456789123) == "+1.234568E+02 " +string.format("%# -+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%# -+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%# -+20.0E", 0) == "+0.E+00 " +string.format("%# -+20.0E", 1) == "+1.E+00 " +string.format("%# -+20.0E", -1) == "-1.E+00 " +string.format("%# -+20.0E", 2) == "+2.E+00 " +string.format("%# -+20.0E", -2) == "-2.E+00 " +string.format("%# -+20.0E", 3) == "+3.E+00 " +string.format("%# -+20.0E", -3) == "-3.E+00 " +string.format("%# -+20.0E", nan) == "+NAN " +string.format("%# -+20.0E", inf) == "+INF " +string.format("%# -+20.0E", -inf) == "-INF " +string.format("%# -+20.0E", 100) == "+1.E+02 " +string.format("%# -+20.0E", 10000) == "+1.E+04 " +string.format("%# -+20.0E", 100000) == "+1.E+05 " +string.format("%# -+20.0E", 1000000) == "+1.E+06 " +string.format("%# -+20.0E", 10000000) == "+1.E+07 " +string.format("%# -+20.0E", 0.01) == "+1.E-02 " +string.format("%# -+20.0E", 0.0001) == "+1.E-04 " +string.format("%# -+20.0E", 1e-05) == "+1.E-05 " +string.format("%# -+20.0E", 1e-06) == "+1.E-06 " +string.format("%# -+20.0E", 1e-07) == "+1.E-07 " +string.format("%# -+20.0E", 123.456) == "+1.E+02 " +string.format("%# -+20.0E", 1234560000) == "+1.E+09 " +string.format("%# -+20.0E", 1.23456e-05) == "+1.E-05 " +string.format("%# -+20.0E", 123.456789123) == "+1.E+02 " +string.format("%# -+20.0E", 1234567891.23) == "+1.E+09 " +string.format("%# -+20.0E", 1.23456789123e-05) == "+1.E-05 " +string.format("%# -+20.1E", 0) == "+0.0E+00 " +string.format("%# -+20.1E", 1) == "+1.0E+00 " +string.format("%# -+20.1E", -1) == "-1.0E+00 " +string.format("%# -+20.1E", 2) == "+2.0E+00 " +string.format("%# -+20.1E", -2) == "-2.0E+00 " +string.format("%# -+20.1E", 3) == "+3.0E+00 " +string.format("%# -+20.1E", -3) == "-3.0E+00 " +string.format("%# -+20.1E", nan) == "+NAN " +string.format("%# -+20.1E", inf) == "+INF " +string.format("%# -+20.1E", -inf) == "-INF " +string.format("%# -+20.1E", 100) == "+1.0E+02 " +string.format("%# -+20.1E", 10000) == "+1.0E+04 " +string.format("%# -+20.1E", 100000) == "+1.0E+05 " +string.format("%# -+20.1E", 1000000) == "+1.0E+06 " +string.format("%# -+20.1E", 10000000) == "+1.0E+07 " +string.format("%# -+20.1E", 0.01) == "+1.0E-02 " +string.format("%# -+20.1E", 0.0001) == "+1.0E-04 " +string.format("%# -+20.1E", 1e-05) == "+1.0E-05 " +string.format("%# -+20.1E", 1e-06) == "+1.0E-06 " +string.format("%# -+20.1E", 1e-07) == "+1.0E-07 " +string.format("%# -+20.1E", 123.456) == "+1.2E+02 " +string.format("%# -+20.1E", 1234560000) == "+1.2E+09 " +string.format("%# -+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%# -+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%# -+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%# -+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%# -+20.6E", 0) == "+0.000000E+00 " +string.format("%# -+20.6E", 1) == "+1.000000E+00 " +string.format("%# -+20.6E", -1) == "-1.000000E+00 " +string.format("%# -+20.6E", 2) == "+2.000000E+00 " +string.format("%# -+20.6E", -2) == "-2.000000E+00 " +string.format("%# -+20.6E", 3) == "+3.000000E+00 " +string.format("%# -+20.6E", -3) == "-3.000000E+00 " +string.format("%# -+20.6E", nan) == "+NAN " +string.format("%# -+20.6E", inf) == "+INF " +string.format("%# -+20.6E", -inf) == "-INF " +string.format("%# -+20.6E", 100) == "+1.000000E+02 " +string.format("%# -+20.6E", 10000) == "+1.000000E+04 " +string.format("%# -+20.6E", 100000) == "+1.000000E+05 " +string.format("%# -+20.6E", 1000000) == "+1.000000E+06 " +string.format("%# -+20.6E", 10000000) == "+1.000000E+07 " +string.format("%# -+20.6E", 0.01) == "+1.000000E-02 " +string.format("%# -+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%# -+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%# -+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%# -+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%# -+20.6E", 123.456) == "+1.234560E+02 " +string.format("%# -+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%# -+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%# -+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%# -+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%# -+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0E", 0) == "0.000000E+00" +string.format("%0E", 1) == "1.000000E+00" +string.format("%0E", -1) == "-1.000000E+00" +string.format("%0E", 2) == "2.000000E+00" +string.format("%0E", -2) == "-2.000000E+00" +string.format("%0E", 3) == "3.000000E+00" +string.format("%0E", -3) == "-3.000000E+00" +string.format("%0E", nan) == "NAN" +string.format("%0E", inf) == "INF" +string.format("%0E", -inf) == "-INF" +string.format("%0E", 100) == "1.000000E+02" +string.format("%0E", 10000) == "1.000000E+04" +string.format("%0E", 100000) == "1.000000E+05" +string.format("%0E", 1000000) == "1.000000E+06" +string.format("%0E", 10000000) == "1.000000E+07" +string.format("%0E", 0.01) == "1.000000E-02" +string.format("%0E", 0.0001) == "1.000000E-04" +string.format("%0E", 1e-05) == "1.000000E-05" +string.format("%0E", 1e-06) == "1.000000E-06" +string.format("%0E", 1e-07) == "1.000000E-07" +string.format("%0E", 123.456) == "1.234560E+02" +string.format("%0E", 1234560000) == "1.234560E+09" +string.format("%0E", 1.23456e-05) == "1.234560E-05" +string.format("%0E", 123.456789123) == "1.234568E+02" +string.format("%0E", 1234567891.23) == "1.234568E+09" +string.format("%0E", 1.23456789123e-05) == "1.234568E-05" +string.format("%0.0E", 0) == "0E+00" +string.format("%0.0E", 1) == "1E+00" +string.format("%0.0E", -1) == "-1E+00" +string.format("%0.0E", 2) == "2E+00" +string.format("%0.0E", -2) == "-2E+00" +string.format("%0.0E", 3) == "3E+00" +string.format("%0.0E", -3) == "-3E+00" +string.format("%0.0E", 100) == "1E+02" +string.format("%0.0E", 10000) == "1E+04" +string.format("%0.0E", 100000) == "1E+05" +string.format("%0.0E", 1000000) == "1E+06" +string.format("%0.0E", 10000000) == "1E+07" +string.format("%0.0E", 0.01) == "1E-02" +string.format("%0.0E", 0.0001) == "1E-04" +string.format("%0.0E", 1e-05) == "1E-05" +string.format("%0.0E", 1e-06) == "1E-06" +string.format("%0.0E", 1e-07) == "1E-07" +string.format("%0.0E", 123.456) == "1E+02" +string.format("%0.0E", 1234560000) == "1E+09" +string.format("%0.0E", 1.23456e-05) == "1E-05" +string.format("%0.0E", 123.456789123) == "1E+02" +string.format("%0.0E", 1234567891.23) == "1E+09" +string.format("%0.0E", 1.23456789123e-05) == "1E-05" +string.format("%0.1E", 0) == "0.0E+00" +string.format("%0.1E", 1) == "1.0E+00" +string.format("%0.1E", -1) == "-1.0E+00" +string.format("%0.1E", 2) == "2.0E+00" +string.format("%0.1E", -2) == "-2.0E+00" +string.format("%0.1E", 3) == "3.0E+00" +string.format("%0.1E", -3) == "-3.0E+00" +string.format("%0.1E", 100) == "1.0E+02" +string.format("%0.1E", 10000) == "1.0E+04" +string.format("%0.1E", 100000) == "1.0E+05" +string.format("%0.1E", 1000000) == "1.0E+06" +string.format("%0.1E", 10000000) == "1.0E+07" +string.format("%0.1E", 0.01) == "1.0E-02" +string.format("%0.1E", 0.0001) == "1.0E-04" +string.format("%0.1E", 1e-05) == "1.0E-05" +string.format("%0.1E", 1e-06) == "1.0E-06" +string.format("%0.1E", 1e-07) == "1.0E-07" +string.format("%0.1E", 123.456) == "1.2E+02" +string.format("%0.1E", 1234560000) == "1.2E+09" +string.format("%0.1E", 1.23456e-05) == "1.2E-05" +string.format("%0.1E", 123.456789123) == "1.2E+02" +string.format("%0.1E", 1234567891.23) == "1.2E+09" +string.format("%0.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%01.0E", 0) == "0E+00" +string.format("%01.0E", 1) == "1E+00" +string.format("%01.0E", -1) == "-1E+00" +string.format("%01.0E", 2) == "2E+00" +string.format("%01.0E", -2) == "-2E+00" +string.format("%01.0E", 3) == "3E+00" +string.format("%01.0E", -3) == "-3E+00" +string.format("%01.0E", 100) == "1E+02" +string.format("%01.0E", 10000) == "1E+04" +string.format("%01.0E", 100000) == "1E+05" +string.format("%01.0E", 1000000) == "1E+06" +string.format("%01.0E", 10000000) == "1E+07" +string.format("%01.0E", 0.01) == "1E-02" +string.format("%01.0E", 0.0001) == "1E-04" +string.format("%01.0E", 1e-05) == "1E-05" +string.format("%01.0E", 1e-06) == "1E-06" +string.format("%01.0E", 1e-07) == "1E-07" +string.format("%01.0E", 123.456) == "1E+02" +string.format("%01.0E", 1234560000) == "1E+09" +string.format("%01.0E", 1.23456e-05) == "1E-05" +string.format("%01.0E", 123.456789123) == "1E+02" +string.format("%01.0E", 1234567891.23) == "1E+09" +string.format("%01.0E", 1.23456789123e-05) == "1E-05" +string.format("%01.1E", 0) == "0.0E+00" +string.format("%01.1E", 1) == "1.0E+00" +string.format("%01.1E", -1) == "-1.0E+00" +string.format("%01.1E", 2) == "2.0E+00" +string.format("%01.1E", -2) == "-2.0E+00" +string.format("%01.1E", 3) == "3.0E+00" +string.format("%01.1E", -3) == "-3.0E+00" +string.format("%01.1E", 100) == "1.0E+02" +string.format("%01.1E", 10000) == "1.0E+04" +string.format("%01.1E", 100000) == "1.0E+05" +string.format("%01.1E", 1000000) == "1.0E+06" +string.format("%01.1E", 10000000) == "1.0E+07" +string.format("%01.1E", 0.01) == "1.0E-02" +string.format("%01.1E", 0.0001) == "1.0E-04" +string.format("%01.1E", 1e-05) == "1.0E-05" +string.format("%01.1E", 1e-06) == "1.0E-06" +string.format("%01.1E", 1e-07) == "1.0E-07" +string.format("%01.1E", 123.456) == "1.2E+02" +string.format("%01.1E", 1234560000) == "1.2E+09" +string.format("%01.1E", 1.23456e-05) == "1.2E-05" +string.format("%01.1E", 123.456789123) == "1.2E+02" +string.format("%01.1E", 1234567891.23) == "1.2E+09" +string.format("%01.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%02.0E", 0) == "0E+00" +string.format("%02.0E", 1) == "1E+00" +string.format("%02.0E", -1) == "-1E+00" +string.format("%02.0E", 2) == "2E+00" +string.format("%02.0E", -2) == "-2E+00" +string.format("%02.0E", 3) == "3E+00" +string.format("%02.0E", -3) == "-3E+00" +string.format("%02.0E", 100) == "1E+02" +string.format("%02.0E", 10000) == "1E+04" +string.format("%02.0E", 100000) == "1E+05" +string.format("%02.0E", 1000000) == "1E+06" +string.format("%02.0E", 10000000) == "1E+07" +string.format("%02.0E", 0.01) == "1E-02" +string.format("%02.0E", 0.0001) == "1E-04" +string.format("%02.0E", 1e-05) == "1E-05" +string.format("%02.0E", 1e-06) == "1E-06" +string.format("%02.0E", 1e-07) == "1E-07" +string.format("%02.0E", 123.456) == "1E+02" +string.format("%02.0E", 1234560000) == "1E+09" +string.format("%02.0E", 1.23456e-05) == "1E-05" +string.format("%02.0E", 123.456789123) == "1E+02" +string.format("%02.0E", 1234567891.23) == "1E+09" +string.format("%02.0E", 1.23456789123e-05) == "1E-05" +string.format("%02.1E", 0) == "0.0E+00" +string.format("%02.1E", 1) == "1.0E+00" +string.format("%02.1E", -1) == "-1.0E+00" +string.format("%02.1E", 2) == "2.0E+00" +string.format("%02.1E", -2) == "-2.0E+00" +string.format("%02.1E", 3) == "3.0E+00" +string.format("%02.1E", -3) == "-3.0E+00" +string.format("%02.1E", 100) == "1.0E+02" +string.format("%02.1E", 10000) == "1.0E+04" +string.format("%02.1E", 100000) == "1.0E+05" +string.format("%02.1E", 1000000) == "1.0E+06" +string.format("%02.1E", 10000000) == "1.0E+07" +string.format("%02.1E", 0.01) == "1.0E-02" +string.format("%02.1E", 0.0001) == "1.0E-04" +string.format("%02.1E", 1e-05) == "1.0E-05" +string.format("%02.1E", 1e-06) == "1.0E-06" +string.format("%02.1E", 1e-07) == "1.0E-07" +string.format("%02.1E", 123.456) == "1.2E+02" +string.format("%02.1E", 1234560000) == "1.2E+09" +string.format("%02.1E", 1.23456e-05) == "1.2E-05" +string.format("%02.1E", 123.456789123) == "1.2E+02" +string.format("%02.1E", 1234567891.23) == "1.2E+09" +string.format("%02.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%06E", nan) == " NAN" +string.format("%06E", inf) == " INF" +string.format("%06E", -inf) == " -INF" +string.format("%06.0E", 0) == "00E+00" +string.format("%06.0E", 1) == "01E+00" +string.format("%06.0E", -1) == "-1E+00" +string.format("%06.0E", 2) == "02E+00" +string.format("%06.0E", -2) == "-2E+00" +string.format("%06.0E", 3) == "03E+00" +string.format("%06.0E", -3) == "-3E+00" +string.format("%06.0E", nan) == " NAN" +string.format("%06.0E", inf) == " INF" +string.format("%06.0E", -inf) == " -INF" +string.format("%06.0E", 100) == "01E+02" +string.format("%06.0E", 10000) == "01E+04" +string.format("%06.0E", 100000) == "01E+05" +string.format("%06.0E", 1000000) == "01E+06" +string.format("%06.0E", 10000000) == "01E+07" +string.format("%06.0E", 0.01) == "01E-02" +string.format("%06.0E", 0.0001) == "01E-04" +string.format("%06.0E", 1e-05) == "01E-05" +string.format("%06.0E", 1e-06) == "01E-06" +string.format("%06.0E", 1e-07) == "01E-07" +string.format("%06.0E", 123.456) == "01E+02" +string.format("%06.0E", 1234560000) == "01E+09" +string.format("%06.0E", 1.23456e-05) == "01E-05" +string.format("%06.0E", 123.456789123) == "01E+02" +string.format("%06.0E", 1234567891.23) == "01E+09" +string.format("%06.0E", 1.23456789123e-05) == "01E-05" +string.format("%06.1E", 0) == "0.0E+00" +string.format("%06.1E", 1) == "1.0E+00" +string.format("%06.1E", -1) == "-1.0E+00" +string.format("%06.1E", 2) == "2.0E+00" +string.format("%06.1E", -2) == "-2.0E+00" +string.format("%06.1E", 3) == "3.0E+00" +string.format("%06.1E", -3) == "-3.0E+00" +string.format("%06.1E", nan) == " NAN" +string.format("%06.1E", inf) == " INF" +string.format("%06.1E", -inf) == " -INF" +string.format("%06.1E", 100) == "1.0E+02" +string.format("%06.1E", 10000) == "1.0E+04" +string.format("%06.1E", 100000) == "1.0E+05" +string.format("%06.1E", 1000000) == "1.0E+06" +string.format("%06.1E", 10000000) == "1.0E+07" +string.format("%06.1E", 0.01) == "1.0E-02" +string.format("%06.1E", 0.0001) == "1.0E-04" +string.format("%06.1E", 1e-05) == "1.0E-05" +string.format("%06.1E", 1e-06) == "1.0E-06" +string.format("%06.1E", 1e-07) == "1.0E-07" +string.format("%06.1E", 123.456) == "1.2E+02" +string.format("%06.1E", 1234560000) == "1.2E+09" +string.format("%06.1E", 1.23456e-05) == "1.2E-05" +string.format("%06.1E", 123.456789123) == "1.2E+02" +string.format("%06.1E", 1234567891.23) == "1.2E+09" +string.format("%06.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%06.6E", nan) == " NAN" +string.format("%06.6E", inf) == " INF" +string.format("%06.6E", -inf) == " -INF" +string.format("%020E", 0) == "000000000.000000E+00" +string.format("%020E", 1) == "000000001.000000E+00" +string.format("%020E", -1) == "-00000001.000000E+00" +string.format("%020E", 2) == "000000002.000000E+00" +string.format("%020E", -2) == "-00000002.000000E+00" +string.format("%020E", 3) == "000000003.000000E+00" +string.format("%020E", -3) == "-00000003.000000E+00" +string.format("%020E", nan) == " NAN" +string.format("%020E", inf) == " INF" +string.format("%020E", -inf) == " -INF" +string.format("%020E", 100) == "000000001.000000E+02" +string.format("%020E", 10000) == "000000001.000000E+04" +string.format("%020E", 100000) == "000000001.000000E+05" +string.format("%020E", 1000000) == "000000001.000000E+06" +string.format("%020E", 10000000) == "000000001.000000E+07" +string.format("%020E", 0.01) == "000000001.000000E-02" +string.format("%020E", 0.0001) == "000000001.000000E-04" +string.format("%020E", 1e-05) == "000000001.000000E-05" +string.format("%020E", 1e-06) == "000000001.000000E-06" +string.format("%020E", 1e-07) == "000000001.000000E-07" +string.format("%020E", 123.456) == "000000001.234560E+02" +string.format("%020E", 1234560000) == "000000001.234560E+09" +string.format("%020E", 1.23456e-05) == "000000001.234560E-05" +string.format("%020E", 123.456789123) == "000000001.234568E+02" +string.format("%020E", 1234567891.23) == "000000001.234568E+09" +string.format("%020E", 1.23456789123e-05) == "000000001.234568E-05" +string.format("%020.0E", 0) == "0000000000000000E+00" +string.format("%020.0E", 1) == "0000000000000001E+00" +string.format("%020.0E", -1) == "-000000000000001E+00" +string.format("%020.0E", 2) == "0000000000000002E+00" +string.format("%020.0E", -2) == "-000000000000002E+00" +string.format("%020.0E", 3) == "0000000000000003E+00" +string.format("%020.0E", -3) == "-000000000000003E+00" +string.format("%020.0E", nan) == " NAN" +string.format("%020.0E", inf) == " INF" +string.format("%020.0E", -inf) == " -INF" +string.format("%020.0E", 100) == "0000000000000001E+02" +string.format("%020.0E", 10000) == "0000000000000001E+04" +string.format("%020.0E", 100000) == "0000000000000001E+05" +string.format("%020.0E", 1000000) == "0000000000000001E+06" +string.format("%020.0E", 10000000) == "0000000000000001E+07" +string.format("%020.0E", 0.01) == "0000000000000001E-02" +string.format("%020.0E", 0.0001) == "0000000000000001E-04" +string.format("%020.0E", 1e-05) == "0000000000000001E-05" +string.format("%020.0E", 1e-06) == "0000000000000001E-06" +string.format("%020.0E", 1e-07) == "0000000000000001E-07" +string.format("%020.0E", 123.456) == "0000000000000001E+02" +string.format("%020.0E", 1234560000) == "0000000000000001E+09" +string.format("%020.0E", 1.23456e-05) == "0000000000000001E-05" +string.format("%020.0E", 123.456789123) == "0000000000000001E+02" +string.format("%020.0E", 1234567891.23) == "0000000000000001E+09" +string.format("%020.0E", 1.23456789123e-05) == "0000000000000001E-05" +string.format("%020.1E", 0) == "00000000000000.0E+00" +string.format("%020.1E", 1) == "00000000000001.0E+00" +string.format("%020.1E", -1) == "-0000000000001.0E+00" +string.format("%020.1E", 2) == "00000000000002.0E+00" +string.format("%020.1E", -2) == "-0000000000002.0E+00" +string.format("%020.1E", 3) == "00000000000003.0E+00" +string.format("%020.1E", -3) == "-0000000000003.0E+00" +string.format("%020.1E", nan) == " NAN" +string.format("%020.1E", inf) == " INF" +string.format("%020.1E", -inf) == " -INF" +string.format("%020.1E", 100) == "00000000000001.0E+02" +string.format("%020.1E", 10000) == "00000000000001.0E+04" +string.format("%020.1E", 100000) == "00000000000001.0E+05" +string.format("%020.1E", 1000000) == "00000000000001.0E+06" +string.format("%020.1E", 10000000) == "00000000000001.0E+07" +string.format("%020.1E", 0.01) == "00000000000001.0E-02" +string.format("%020.1E", 0.0001) == "00000000000001.0E-04" +string.format("%020.1E", 1e-05) == "00000000000001.0E-05" +string.format("%020.1E", 1e-06) == "00000000000001.0E-06" +string.format("%020.1E", 1e-07) == "00000000000001.0E-07" +string.format("%020.1E", 123.456) == "00000000000001.2E+02" +string.format("%020.1E", 1234560000) == "00000000000001.2E+09" +string.format("%020.1E", 1.23456e-05) == "00000000000001.2E-05" +string.format("%020.1E", 123.456789123) == "00000000000001.2E+02" +string.format("%020.1E", 1234567891.23) == "00000000000001.2E+09" +string.format("%020.1E", 1.23456789123e-05) == "00000000000001.2E-05" +string.format("%020.6E", 0) == "000000000.000000E+00" +string.format("%020.6E", 1) == "000000001.000000E+00" +string.format("%020.6E", -1) == "-00000001.000000E+00" +string.format("%020.6E", 2) == "000000002.000000E+00" +string.format("%020.6E", -2) == "-00000002.000000E+00" +string.format("%020.6E", 3) == "000000003.000000E+00" +string.format("%020.6E", -3) == "-00000003.000000E+00" +string.format("%020.6E", nan) == " NAN" +string.format("%020.6E", inf) == " INF" +string.format("%020.6E", -inf) == " -INF" +string.format("%020.6E", 100) == "000000001.000000E+02" +string.format("%020.6E", 10000) == "000000001.000000E+04" +string.format("%020.6E", 100000) == "000000001.000000E+05" +string.format("%020.6E", 1000000) == "000000001.000000E+06" +string.format("%020.6E", 10000000) == "000000001.000000E+07" +string.format("%020.6E", 0.01) == "000000001.000000E-02" +string.format("%020.6E", 0.0001) == "000000001.000000E-04" +string.format("%020.6E", 1e-05) == "000000001.000000E-05" +string.format("%020.6E", 1e-06) == "000000001.000000E-06" +string.format("%020.6E", 1e-07) == "000000001.000000E-07" +string.format("%020.6E", 123.456) == "000000001.234560E+02" +string.format("%020.6E", 1234560000) == "000000001.234560E+09" +string.format("%020.6E", 1.23456e-05) == "000000001.234560E-05" +string.format("%020.6E", 123.456789123) == "000000001.234568E+02" +string.format("%020.6E", 1234567891.23) == "000000001.234568E+09" +string.format("%020.6E", 1.23456789123e-05) == "000000001.234568E-05" +string.format("%0+E", 0) == "+0.000000E+00" +string.format("%0+E", 1) == "+1.000000E+00" +string.format("%0+E", -1) == "-1.000000E+00" +string.format("%0+E", 2) == "+2.000000E+00" +string.format("%0+E", -2) == "-2.000000E+00" +string.format("%0+E", 3) == "+3.000000E+00" +string.format("%0+E", -3) == "-3.000000E+00" +string.format("%0+E", nan) == "+NAN" +string.format("%0+E", inf) == "+INF" +string.format("%0+E", -inf) == "-INF" +string.format("%0+E", 100) == "+1.000000E+02" +string.format("%0+E", 10000) == "+1.000000E+04" +string.format("%0+E", 100000) == "+1.000000E+05" +string.format("%0+E", 1000000) == "+1.000000E+06" +string.format("%0+E", 10000000) == "+1.000000E+07" +string.format("%0+E", 0.01) == "+1.000000E-02" +string.format("%0+E", 0.0001) == "+1.000000E-04" +string.format("%0+E", 1e-05) == "+1.000000E-05" +string.format("%0+E", 1e-06) == "+1.000000E-06" +string.format("%0+E", 1e-07) == "+1.000000E-07" +string.format("%0+E", 123.456) == "+1.234560E+02" +string.format("%0+E", 1234560000) == "+1.234560E+09" +string.format("%0+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0+E", 123.456789123) == "+1.234568E+02" +string.format("%0+E", 1234567891.23) == "+1.234568E+09" +string.format("%0+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0+.0E", 0) == "+0E+00" +string.format("%0+.0E", 1) == "+1E+00" +string.format("%0+.0E", -1) == "-1E+00" +string.format("%0+.0E", 2) == "+2E+00" +string.format("%0+.0E", -2) == "-2E+00" +string.format("%0+.0E", 3) == "+3E+00" +string.format("%0+.0E", -3) == "-3E+00" +string.format("%0+.0E", 100) == "+1E+02" +string.format("%0+.0E", 10000) == "+1E+04" +string.format("%0+.0E", 100000) == "+1E+05" +string.format("%0+.0E", 1000000) == "+1E+06" +string.format("%0+.0E", 10000000) == "+1E+07" +string.format("%0+.0E", 0.01) == "+1E-02" +string.format("%0+.0E", 0.0001) == "+1E-04" +string.format("%0+.0E", 1e-05) == "+1E-05" +string.format("%0+.0E", 1e-06) == "+1E-06" +string.format("%0+.0E", 1e-07) == "+1E-07" +string.format("%0+.0E", 123.456) == "+1E+02" +string.format("%0+.0E", 1234560000) == "+1E+09" +string.format("%0+.0E", 1.23456e-05) == "+1E-05" +string.format("%0+.0E", 123.456789123) == "+1E+02" +string.format("%0+.0E", 1234567891.23) == "+1E+09" +string.format("%0+.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0+.1E", 0) == "+0.0E+00" +string.format("%0+.1E", 1) == "+1.0E+00" +string.format("%0+.1E", -1) == "-1.0E+00" +string.format("%0+.1E", 2) == "+2.0E+00" +string.format("%0+.1E", -2) == "-2.0E+00" +string.format("%0+.1E", 3) == "+3.0E+00" +string.format("%0+.1E", -3) == "-3.0E+00" +string.format("%0+.1E", 100) == "+1.0E+02" +string.format("%0+.1E", 10000) == "+1.0E+04" +string.format("%0+.1E", 100000) == "+1.0E+05" +string.format("%0+.1E", 1000000) == "+1.0E+06" +string.format("%0+.1E", 10000000) == "+1.0E+07" +string.format("%0+.1E", 0.01) == "+1.0E-02" +string.format("%0+.1E", 0.0001) == "+1.0E-04" +string.format("%0+.1E", 1e-05) == "+1.0E-05" +string.format("%0+.1E", 1e-06) == "+1.0E-06" +string.format("%0+.1E", 1e-07) == "+1.0E-07" +string.format("%0+.1E", 123.456) == "+1.2E+02" +string.format("%0+.1E", 1234560000) == "+1.2E+09" +string.format("%0+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0+.1E", 123.456789123) == "+1.2E+02" +string.format("%0+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0+1.0E", 0) == "+0E+00" +string.format("%0+1.0E", 1) == "+1E+00" +string.format("%0+1.0E", -1) == "-1E+00" +string.format("%0+1.0E", 2) == "+2E+00" +string.format("%0+1.0E", -2) == "-2E+00" +string.format("%0+1.0E", 3) == "+3E+00" +string.format("%0+1.0E", -3) == "-3E+00" +string.format("%0+1.0E", 100) == "+1E+02" +string.format("%0+1.0E", 10000) == "+1E+04" +string.format("%0+1.0E", 100000) == "+1E+05" +string.format("%0+1.0E", 1000000) == "+1E+06" +string.format("%0+1.0E", 10000000) == "+1E+07" +string.format("%0+1.0E", 0.01) == "+1E-02" +string.format("%0+1.0E", 0.0001) == "+1E-04" +string.format("%0+1.0E", 1e-05) == "+1E-05" +string.format("%0+1.0E", 1e-06) == "+1E-06" +string.format("%0+1.0E", 1e-07) == "+1E-07" +string.format("%0+1.0E", 123.456) == "+1E+02" +string.format("%0+1.0E", 1234560000) == "+1E+09" +string.format("%0+1.0E", 1.23456e-05) == "+1E-05" +string.format("%0+1.0E", 123.456789123) == "+1E+02" +string.format("%0+1.0E", 1234567891.23) == "+1E+09" +string.format("%0+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0+1.1E", 0) == "+0.0E+00" +string.format("%0+1.1E", 1) == "+1.0E+00" +string.format("%0+1.1E", -1) == "-1.0E+00" +string.format("%0+1.1E", 2) == "+2.0E+00" +string.format("%0+1.1E", -2) == "-2.0E+00" +string.format("%0+1.1E", 3) == "+3.0E+00" +string.format("%0+1.1E", -3) == "-3.0E+00" +string.format("%0+1.1E", 100) == "+1.0E+02" +string.format("%0+1.1E", 10000) == "+1.0E+04" +string.format("%0+1.1E", 100000) == "+1.0E+05" +string.format("%0+1.1E", 1000000) == "+1.0E+06" +string.format("%0+1.1E", 10000000) == "+1.0E+07" +string.format("%0+1.1E", 0.01) == "+1.0E-02" +string.format("%0+1.1E", 0.0001) == "+1.0E-04" +string.format("%0+1.1E", 1e-05) == "+1.0E-05" +string.format("%0+1.1E", 1e-06) == "+1.0E-06" +string.format("%0+1.1E", 1e-07) == "+1.0E-07" +string.format("%0+1.1E", 123.456) == "+1.2E+02" +string.format("%0+1.1E", 1234560000) == "+1.2E+09" +string.format("%0+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0+2.0E", 0) == "+0E+00" +string.format("%0+2.0E", 1) == "+1E+00" +string.format("%0+2.0E", -1) == "-1E+00" +string.format("%0+2.0E", 2) == "+2E+00" +string.format("%0+2.0E", -2) == "-2E+00" +string.format("%0+2.0E", 3) == "+3E+00" +string.format("%0+2.0E", -3) == "-3E+00" +string.format("%0+2.0E", 100) == "+1E+02" +string.format("%0+2.0E", 10000) == "+1E+04" +string.format("%0+2.0E", 100000) == "+1E+05" +string.format("%0+2.0E", 1000000) == "+1E+06" +string.format("%0+2.0E", 10000000) == "+1E+07" +string.format("%0+2.0E", 0.01) == "+1E-02" +string.format("%0+2.0E", 0.0001) == "+1E-04" +string.format("%0+2.0E", 1e-05) == "+1E-05" +string.format("%0+2.0E", 1e-06) == "+1E-06" +string.format("%0+2.0E", 1e-07) == "+1E-07" +string.format("%0+2.0E", 123.456) == "+1E+02" +string.format("%0+2.0E", 1234560000) == "+1E+09" +string.format("%0+2.0E", 1.23456e-05) == "+1E-05" +string.format("%0+2.0E", 123.456789123) == "+1E+02" +string.format("%0+2.0E", 1234567891.23) == "+1E+09" +string.format("%0+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0+2.1E", 0) == "+0.0E+00" +string.format("%0+2.1E", 1) == "+1.0E+00" +string.format("%0+2.1E", -1) == "-1.0E+00" +string.format("%0+2.1E", 2) == "+2.0E+00" +string.format("%0+2.1E", -2) == "-2.0E+00" +string.format("%0+2.1E", 3) == "+3.0E+00" +string.format("%0+2.1E", -3) == "-3.0E+00" +string.format("%0+2.1E", 100) == "+1.0E+02" +string.format("%0+2.1E", 10000) == "+1.0E+04" +string.format("%0+2.1E", 100000) == "+1.0E+05" +string.format("%0+2.1E", 1000000) == "+1.0E+06" +string.format("%0+2.1E", 10000000) == "+1.0E+07" +string.format("%0+2.1E", 0.01) == "+1.0E-02" +string.format("%0+2.1E", 0.0001) == "+1.0E-04" +string.format("%0+2.1E", 1e-05) == "+1.0E-05" +string.format("%0+2.1E", 1e-06) == "+1.0E-06" +string.format("%0+2.1E", 1e-07) == "+1.0E-07" +string.format("%0+2.1E", 123.456) == "+1.2E+02" +string.format("%0+2.1E", 1234560000) == "+1.2E+09" +string.format("%0+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0+6E", nan) == " +NAN" +string.format("%0+6E", inf) == " +INF" +string.format("%0+6E", -inf) == " -INF" +string.format("%0+6.0E", 0) == "+0E+00" +string.format("%0+6.0E", 1) == "+1E+00" +string.format("%0+6.0E", -1) == "-1E+00" +string.format("%0+6.0E", 2) == "+2E+00" +string.format("%0+6.0E", -2) == "-2E+00" +string.format("%0+6.0E", 3) == "+3E+00" +string.format("%0+6.0E", -3) == "-3E+00" +string.format("%0+6.0E", nan) == " +NAN" +string.format("%0+6.0E", inf) == " +INF" +string.format("%0+6.0E", -inf) == " -INF" +string.format("%0+6.0E", 100) == "+1E+02" +string.format("%0+6.0E", 10000) == "+1E+04" +string.format("%0+6.0E", 100000) == "+1E+05" +string.format("%0+6.0E", 1000000) == "+1E+06" +string.format("%0+6.0E", 10000000) == "+1E+07" +string.format("%0+6.0E", 0.01) == "+1E-02" +string.format("%0+6.0E", 0.0001) == "+1E-04" +string.format("%0+6.0E", 1e-05) == "+1E-05" +string.format("%0+6.0E", 1e-06) == "+1E-06" +string.format("%0+6.0E", 1e-07) == "+1E-07" +string.format("%0+6.0E", 123.456) == "+1E+02" +string.format("%0+6.0E", 1234560000) == "+1E+09" +string.format("%0+6.0E", 1.23456e-05) == "+1E-05" +string.format("%0+6.0E", 123.456789123) == "+1E+02" +string.format("%0+6.0E", 1234567891.23) == "+1E+09" +string.format("%0+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0+6.1E", 0) == "+0.0E+00" +string.format("%0+6.1E", 1) == "+1.0E+00" +string.format("%0+6.1E", -1) == "-1.0E+00" +string.format("%0+6.1E", 2) == "+2.0E+00" +string.format("%0+6.1E", -2) == "-2.0E+00" +string.format("%0+6.1E", 3) == "+3.0E+00" +string.format("%0+6.1E", -3) == "-3.0E+00" +string.format("%0+6.1E", nan) == " +NAN" +string.format("%0+6.1E", inf) == " +INF" +string.format("%0+6.1E", -inf) == " -INF" +string.format("%0+6.1E", 100) == "+1.0E+02" +string.format("%0+6.1E", 10000) == "+1.0E+04" +string.format("%0+6.1E", 100000) == "+1.0E+05" +string.format("%0+6.1E", 1000000) == "+1.0E+06" +string.format("%0+6.1E", 10000000) == "+1.0E+07" +string.format("%0+6.1E", 0.01) == "+1.0E-02" +string.format("%0+6.1E", 0.0001) == "+1.0E-04" +string.format("%0+6.1E", 1e-05) == "+1.0E-05" +string.format("%0+6.1E", 1e-06) == "+1.0E-06" +string.format("%0+6.1E", 1e-07) == "+1.0E-07" +string.format("%0+6.1E", 123.456) == "+1.2E+02" +string.format("%0+6.1E", 1234560000) == "+1.2E+09" +string.format("%0+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0+6.6E", nan) == " +NAN" +string.format("%0+6.6E", inf) == " +INF" +string.format("%0+6.6E", -inf) == " -INF" +string.format("%0+20E", 0) == "+00000000.000000E+00" +string.format("%0+20E", 1) == "+00000001.000000E+00" +string.format("%0+20E", -1) == "-00000001.000000E+00" +string.format("%0+20E", 2) == "+00000002.000000E+00" +string.format("%0+20E", -2) == "-00000002.000000E+00" +string.format("%0+20E", 3) == "+00000003.000000E+00" +string.format("%0+20E", -3) == "-00000003.000000E+00" +string.format("%0+20E", nan) == " +NAN" +string.format("%0+20E", inf) == " +INF" +string.format("%0+20E", -inf) == " -INF" +string.format("%0+20E", 100) == "+00000001.000000E+02" +string.format("%0+20E", 10000) == "+00000001.000000E+04" +string.format("%0+20E", 100000) == "+00000001.000000E+05" +string.format("%0+20E", 1000000) == "+00000001.000000E+06" +string.format("%0+20E", 10000000) == "+00000001.000000E+07" +string.format("%0+20E", 0.01) == "+00000001.000000E-02" +string.format("%0+20E", 0.0001) == "+00000001.000000E-04" +string.format("%0+20E", 1e-05) == "+00000001.000000E-05" +string.format("%0+20E", 1e-06) == "+00000001.000000E-06" +string.format("%0+20E", 1e-07) == "+00000001.000000E-07" +string.format("%0+20E", 123.456) == "+00000001.234560E+02" +string.format("%0+20E", 1234560000) == "+00000001.234560E+09" +string.format("%0+20E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0+20E", 123.456789123) == "+00000001.234568E+02" +string.format("%0+20E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0+20E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0+20.0E", 0) == "+000000000000000E+00" +string.format("%0+20.0E", 1) == "+000000000000001E+00" +string.format("%0+20.0E", -1) == "-000000000000001E+00" +string.format("%0+20.0E", 2) == "+000000000000002E+00" +string.format("%0+20.0E", -2) == "-000000000000002E+00" +string.format("%0+20.0E", 3) == "+000000000000003E+00" +string.format("%0+20.0E", -3) == "-000000000000003E+00" +string.format("%0+20.0E", nan) == " +NAN" +string.format("%0+20.0E", inf) == " +INF" +string.format("%0+20.0E", -inf) == " -INF" +string.format("%0+20.0E", 100) == "+000000000000001E+02" +string.format("%0+20.0E", 10000) == "+000000000000001E+04" +string.format("%0+20.0E", 100000) == "+000000000000001E+05" +string.format("%0+20.0E", 1000000) == "+000000000000001E+06" +string.format("%0+20.0E", 10000000) == "+000000000000001E+07" +string.format("%0+20.0E", 0.01) == "+000000000000001E-02" +string.format("%0+20.0E", 0.0001) == "+000000000000001E-04" +string.format("%0+20.0E", 1e-05) == "+000000000000001E-05" +string.format("%0+20.0E", 1e-06) == "+000000000000001E-06" +string.format("%0+20.0E", 1e-07) == "+000000000000001E-07" +string.format("%0+20.0E", 123.456) == "+000000000000001E+02" +string.format("%0+20.0E", 1234560000) == "+000000000000001E+09" +string.format("%0+20.0E", 1.23456e-05) == "+000000000000001E-05" +string.format("%0+20.0E", 123.456789123) == "+000000000000001E+02" +string.format("%0+20.0E", 1234567891.23) == "+000000000000001E+09" +string.format("%0+20.0E", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0+20.1E", 0) == "+0000000000000.0E+00" +string.format("%0+20.1E", 1) == "+0000000000001.0E+00" +string.format("%0+20.1E", -1) == "-0000000000001.0E+00" +string.format("%0+20.1E", 2) == "+0000000000002.0E+00" +string.format("%0+20.1E", -2) == "-0000000000002.0E+00" +string.format("%0+20.1E", 3) == "+0000000000003.0E+00" +string.format("%0+20.1E", -3) == "-0000000000003.0E+00" +string.format("%0+20.1E", nan) == " +NAN" +string.format("%0+20.1E", inf) == " +INF" +string.format("%0+20.1E", -inf) == " -INF" +string.format("%0+20.1E", 100) == "+0000000000001.0E+02" +string.format("%0+20.1E", 10000) == "+0000000000001.0E+04" +string.format("%0+20.1E", 100000) == "+0000000000001.0E+05" +string.format("%0+20.1E", 1000000) == "+0000000000001.0E+06" +string.format("%0+20.1E", 10000000) == "+0000000000001.0E+07" +string.format("%0+20.1E", 0.01) == "+0000000000001.0E-02" +string.format("%0+20.1E", 0.0001) == "+0000000000001.0E-04" +string.format("%0+20.1E", 1e-05) == "+0000000000001.0E-05" +string.format("%0+20.1E", 1e-06) == "+0000000000001.0E-06" +string.format("%0+20.1E", 1e-07) == "+0000000000001.0E-07" +string.format("%0+20.1E", 123.456) == "+0000000000001.2E+02" +string.format("%0+20.1E", 1234560000) == "+0000000000001.2E+09" +string.format("%0+20.1E", 1.23456e-05) == "+0000000000001.2E-05" +string.format("%0+20.1E", 123.456789123) == "+0000000000001.2E+02" +string.format("%0+20.1E", 1234567891.23) == "+0000000000001.2E+09" +string.format("%0+20.1E", 1.23456789123e-05) == "+0000000000001.2E-05" +string.format("%0+20.6E", 0) == "+00000000.000000E+00" +string.format("%0+20.6E", 1) == "+00000001.000000E+00" +string.format("%0+20.6E", -1) == "-00000001.000000E+00" +string.format("%0+20.6E", 2) == "+00000002.000000E+00" +string.format("%0+20.6E", -2) == "-00000002.000000E+00" +string.format("%0+20.6E", 3) == "+00000003.000000E+00" +string.format("%0+20.6E", -3) == "-00000003.000000E+00" +string.format("%0+20.6E", nan) == " +NAN" +string.format("%0+20.6E", inf) == " +INF" +string.format("%0+20.6E", -inf) == " -INF" +string.format("%0+20.6E", 100) == "+00000001.000000E+02" +string.format("%0+20.6E", 10000) == "+00000001.000000E+04" +string.format("%0+20.6E", 100000) == "+00000001.000000E+05" +string.format("%0+20.6E", 1000000) == "+00000001.000000E+06" +string.format("%0+20.6E", 10000000) == "+00000001.000000E+07" +string.format("%0+20.6E", 0.01) == "+00000001.000000E-02" +string.format("%0+20.6E", 0.0001) == "+00000001.000000E-04" +string.format("%0+20.6E", 1e-05) == "+00000001.000000E-05" +string.format("%0+20.6E", 1e-06) == "+00000001.000000E-06" +string.format("%0+20.6E", 1e-07) == "+00000001.000000E-07" +string.format("%0+20.6E", 123.456) == "+00000001.234560E+02" +string.format("%0+20.6E", 1234560000) == "+00000001.234560E+09" +string.format("%0+20.6E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0+20.6E", 123.456789123) == "+00000001.234568E+02" +string.format("%0+20.6E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0+20.6E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0-E", 0) == "0.000000E+00" +string.format("%0-E", 1) == "1.000000E+00" +string.format("%0-E", -1) == "-1.000000E+00" +string.format("%0-E", 2) == "2.000000E+00" +string.format("%0-E", -2) == "-2.000000E+00" +string.format("%0-E", 3) == "3.000000E+00" +string.format("%0-E", -3) == "-3.000000E+00" +string.format("%0-E", nan) == "NAN" +string.format("%0-E", inf) == "INF" +string.format("%0-E", -inf) == "-INF" +string.format("%0-E", 100) == "1.000000E+02" +string.format("%0-E", 10000) == "1.000000E+04" +string.format("%0-E", 100000) == "1.000000E+05" +string.format("%0-E", 1000000) == "1.000000E+06" +string.format("%0-E", 10000000) == "1.000000E+07" +string.format("%0-E", 0.01) == "1.000000E-02" +string.format("%0-E", 0.0001) == "1.000000E-04" +string.format("%0-E", 1e-05) == "1.000000E-05" +string.format("%0-E", 1e-06) == "1.000000E-06" +string.format("%0-E", 1e-07) == "1.000000E-07" +string.format("%0-E", 123.456) == "1.234560E+02" +string.format("%0-E", 1234560000) == "1.234560E+09" +string.format("%0-E", 1.23456e-05) == "1.234560E-05" +string.format("%0-E", 123.456789123) == "1.234568E+02" +string.format("%0-E", 1234567891.23) == "1.234568E+09" +string.format("%0-E", 1.23456789123e-05) == "1.234568E-05" +string.format("%0-.0E", 0) == "0E+00" +string.format("%0-.0E", 1) == "1E+00" +string.format("%0-.0E", -1) == "-1E+00" +string.format("%0-.0E", 2) == "2E+00" +string.format("%0-.0E", -2) == "-2E+00" +string.format("%0-.0E", 3) == "3E+00" +string.format("%0-.0E", -3) == "-3E+00" +string.format("%0-.0E", 100) == "1E+02" +string.format("%0-.0E", 10000) == "1E+04" +string.format("%0-.0E", 100000) == "1E+05" +string.format("%0-.0E", 1000000) == "1E+06" +string.format("%0-.0E", 10000000) == "1E+07" +string.format("%0-.0E", 0.01) == "1E-02" +string.format("%0-.0E", 0.0001) == "1E-04" +string.format("%0-.0E", 1e-05) == "1E-05" +string.format("%0-.0E", 1e-06) == "1E-06" +string.format("%0-.0E", 1e-07) == "1E-07" +string.format("%0-.0E", 123.456) == "1E+02" +string.format("%0-.0E", 1234560000) == "1E+09" +string.format("%0-.0E", 1.23456e-05) == "1E-05" +string.format("%0-.0E", 123.456789123) == "1E+02" +string.format("%0-.0E", 1234567891.23) == "1E+09" +string.format("%0-.0E", 1.23456789123e-05) == "1E-05" +string.format("%0-.1E", 0) == "0.0E+00" +string.format("%0-.1E", 1) == "1.0E+00" +string.format("%0-.1E", -1) == "-1.0E+00" +string.format("%0-.1E", 2) == "2.0E+00" +string.format("%0-.1E", -2) == "-2.0E+00" +string.format("%0-.1E", 3) == "3.0E+00" +string.format("%0-.1E", -3) == "-3.0E+00" +string.format("%0-.1E", 100) == "1.0E+02" +string.format("%0-.1E", 10000) == "1.0E+04" +string.format("%0-.1E", 100000) == "1.0E+05" +string.format("%0-.1E", 1000000) == "1.0E+06" +string.format("%0-.1E", 10000000) == "1.0E+07" +string.format("%0-.1E", 0.01) == "1.0E-02" +string.format("%0-.1E", 0.0001) == "1.0E-04" +string.format("%0-.1E", 1e-05) == "1.0E-05" +string.format("%0-.1E", 1e-06) == "1.0E-06" +string.format("%0-.1E", 1e-07) == "1.0E-07" +string.format("%0-.1E", 123.456) == "1.2E+02" +string.format("%0-.1E", 1234560000) == "1.2E+09" +string.format("%0-.1E", 1.23456e-05) == "1.2E-05" +string.format("%0-.1E", 123.456789123) == "1.2E+02" +string.format("%0-.1E", 1234567891.23) == "1.2E+09" +string.format("%0-.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0-1.0E", 0) == "0E+00" +string.format("%0-1.0E", 1) == "1E+00" +string.format("%0-1.0E", -1) == "-1E+00" +string.format("%0-1.0E", 2) == "2E+00" +string.format("%0-1.0E", -2) == "-2E+00" +string.format("%0-1.0E", 3) == "3E+00" +string.format("%0-1.0E", -3) == "-3E+00" +string.format("%0-1.0E", 100) == "1E+02" +string.format("%0-1.0E", 10000) == "1E+04" +string.format("%0-1.0E", 100000) == "1E+05" +string.format("%0-1.0E", 1000000) == "1E+06" +string.format("%0-1.0E", 10000000) == "1E+07" +string.format("%0-1.0E", 0.01) == "1E-02" +string.format("%0-1.0E", 0.0001) == "1E-04" +string.format("%0-1.0E", 1e-05) == "1E-05" +string.format("%0-1.0E", 1e-06) == "1E-06" +string.format("%0-1.0E", 1e-07) == "1E-07" +string.format("%0-1.0E", 123.456) == "1E+02" +string.format("%0-1.0E", 1234560000) == "1E+09" +string.format("%0-1.0E", 1.23456e-05) == "1E-05" +string.format("%0-1.0E", 123.456789123) == "1E+02" +string.format("%0-1.0E", 1234567891.23) == "1E+09" +string.format("%0-1.0E", 1.23456789123e-05) == "1E-05" +string.format("%0-1.1E", 0) == "0.0E+00" +string.format("%0-1.1E", 1) == "1.0E+00" +string.format("%0-1.1E", -1) == "-1.0E+00" +string.format("%0-1.1E", 2) == "2.0E+00" +string.format("%0-1.1E", -2) == "-2.0E+00" +string.format("%0-1.1E", 3) == "3.0E+00" +string.format("%0-1.1E", -3) == "-3.0E+00" +string.format("%0-1.1E", 100) == "1.0E+02" +string.format("%0-1.1E", 10000) == "1.0E+04" +string.format("%0-1.1E", 100000) == "1.0E+05" +string.format("%0-1.1E", 1000000) == "1.0E+06" +string.format("%0-1.1E", 10000000) == "1.0E+07" +string.format("%0-1.1E", 0.01) == "1.0E-02" +string.format("%0-1.1E", 0.0001) == "1.0E-04" +string.format("%0-1.1E", 1e-05) == "1.0E-05" +string.format("%0-1.1E", 1e-06) == "1.0E-06" +string.format("%0-1.1E", 1e-07) == "1.0E-07" +string.format("%0-1.1E", 123.456) == "1.2E+02" +string.format("%0-1.1E", 1234560000) == "1.2E+09" +string.format("%0-1.1E", 1.23456e-05) == "1.2E-05" +string.format("%0-1.1E", 123.456789123) == "1.2E+02" +string.format("%0-1.1E", 1234567891.23) == "1.2E+09" +string.format("%0-1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0-2.0E", 0) == "0E+00" +string.format("%0-2.0E", 1) == "1E+00" +string.format("%0-2.0E", -1) == "-1E+00" +string.format("%0-2.0E", 2) == "2E+00" +string.format("%0-2.0E", -2) == "-2E+00" +string.format("%0-2.0E", 3) == "3E+00" +string.format("%0-2.0E", -3) == "-3E+00" +string.format("%0-2.0E", 100) == "1E+02" +string.format("%0-2.0E", 10000) == "1E+04" +string.format("%0-2.0E", 100000) == "1E+05" +string.format("%0-2.0E", 1000000) == "1E+06" +string.format("%0-2.0E", 10000000) == "1E+07" +string.format("%0-2.0E", 0.01) == "1E-02" +string.format("%0-2.0E", 0.0001) == "1E-04" +string.format("%0-2.0E", 1e-05) == "1E-05" +string.format("%0-2.0E", 1e-06) == "1E-06" +string.format("%0-2.0E", 1e-07) == "1E-07" +string.format("%0-2.0E", 123.456) == "1E+02" +string.format("%0-2.0E", 1234560000) == "1E+09" +string.format("%0-2.0E", 1.23456e-05) == "1E-05" +string.format("%0-2.0E", 123.456789123) == "1E+02" +string.format("%0-2.0E", 1234567891.23) == "1E+09" +string.format("%0-2.0E", 1.23456789123e-05) == "1E-05" +string.format("%0-2.1E", 0) == "0.0E+00" +string.format("%0-2.1E", 1) == "1.0E+00" +string.format("%0-2.1E", -1) == "-1.0E+00" +string.format("%0-2.1E", 2) == "2.0E+00" +string.format("%0-2.1E", -2) == "-2.0E+00" +string.format("%0-2.1E", 3) == "3.0E+00" +string.format("%0-2.1E", -3) == "-3.0E+00" +string.format("%0-2.1E", 100) == "1.0E+02" +string.format("%0-2.1E", 10000) == "1.0E+04" +string.format("%0-2.1E", 100000) == "1.0E+05" +string.format("%0-2.1E", 1000000) == "1.0E+06" +string.format("%0-2.1E", 10000000) == "1.0E+07" +string.format("%0-2.1E", 0.01) == "1.0E-02" +string.format("%0-2.1E", 0.0001) == "1.0E-04" +string.format("%0-2.1E", 1e-05) == "1.0E-05" +string.format("%0-2.1E", 1e-06) == "1.0E-06" +string.format("%0-2.1E", 1e-07) == "1.0E-07" +string.format("%0-2.1E", 123.456) == "1.2E+02" +string.format("%0-2.1E", 1234560000) == "1.2E+09" +string.format("%0-2.1E", 1.23456e-05) == "1.2E-05" +string.format("%0-2.1E", 123.456789123) == "1.2E+02" +string.format("%0-2.1E", 1234567891.23) == "1.2E+09" +string.format("%0-2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0-6E", nan) == "NAN " +string.format("%0-6E", inf) == "INF " +string.format("%0-6E", -inf) == "-INF " +string.format("%0-6.0E", 0) == "0E+00 " +string.format("%0-6.0E", 1) == "1E+00 " +string.format("%0-6.0E", -1) == "-1E+00" +string.format("%0-6.0E", 2) == "2E+00 " +string.format("%0-6.0E", -2) == "-2E+00" +string.format("%0-6.0E", 3) == "3E+00 " +string.format("%0-6.0E", -3) == "-3E+00" +string.format("%0-6.0E", nan) == "NAN " +string.format("%0-6.0E", inf) == "INF " +string.format("%0-6.0E", -inf) == "-INF " +string.format("%0-6.0E", 100) == "1E+02 " +string.format("%0-6.0E", 10000) == "1E+04 " +string.format("%0-6.0E", 100000) == "1E+05 " +string.format("%0-6.0E", 1000000) == "1E+06 " +string.format("%0-6.0E", 10000000) == "1E+07 " +string.format("%0-6.0E", 0.01) == "1E-02 " +string.format("%0-6.0E", 0.0001) == "1E-04 " +string.format("%0-6.0E", 1e-05) == "1E-05 " +string.format("%0-6.0E", 1e-06) == "1E-06 " +string.format("%0-6.0E", 1e-07) == "1E-07 " +string.format("%0-6.0E", 123.456) == "1E+02 " +string.format("%0-6.0E", 1234560000) == "1E+09 " +string.format("%0-6.0E", 1.23456e-05) == "1E-05 " +string.format("%0-6.0E", 123.456789123) == "1E+02 " +string.format("%0-6.0E", 1234567891.23) == "1E+09 " +string.format("%0-6.0E", 1.23456789123e-05) == "1E-05 " +string.format("%0-6.1E", 0) == "0.0E+00" +string.format("%0-6.1E", 1) == "1.0E+00" +string.format("%0-6.1E", -1) == "-1.0E+00" +string.format("%0-6.1E", 2) == "2.0E+00" +string.format("%0-6.1E", -2) == "-2.0E+00" +string.format("%0-6.1E", 3) == "3.0E+00" +string.format("%0-6.1E", -3) == "-3.0E+00" +string.format("%0-6.1E", nan) == "NAN " +string.format("%0-6.1E", inf) == "INF " +string.format("%0-6.1E", -inf) == "-INF " +string.format("%0-6.1E", 100) == "1.0E+02" +string.format("%0-6.1E", 10000) == "1.0E+04" +string.format("%0-6.1E", 100000) == "1.0E+05" +string.format("%0-6.1E", 1000000) == "1.0E+06" +string.format("%0-6.1E", 10000000) == "1.0E+07" +string.format("%0-6.1E", 0.01) == "1.0E-02" +string.format("%0-6.1E", 0.0001) == "1.0E-04" +string.format("%0-6.1E", 1e-05) == "1.0E-05" +string.format("%0-6.1E", 1e-06) == "1.0E-06" +string.format("%0-6.1E", 1e-07) == "1.0E-07" +string.format("%0-6.1E", 123.456) == "1.2E+02" +string.format("%0-6.1E", 1234560000) == "1.2E+09" +string.format("%0-6.1E", 1.23456e-05) == "1.2E-05" +string.format("%0-6.1E", 123.456789123) == "1.2E+02" +string.format("%0-6.1E", 1234567891.23) == "1.2E+09" +string.format("%0-6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0-6.6E", nan) == "NAN " +string.format("%0-6.6E", inf) == "INF " +string.format("%0-6.6E", -inf) == "-INF " +string.format("%0-20E", 0) == "0.000000E+00 " +string.format("%0-20E", 1) == "1.000000E+00 " +string.format("%0-20E", -1) == "-1.000000E+00 " +string.format("%0-20E", 2) == "2.000000E+00 " +string.format("%0-20E", -2) == "-2.000000E+00 " +string.format("%0-20E", 3) == "3.000000E+00 " +string.format("%0-20E", -3) == "-3.000000E+00 " +string.format("%0-20E", nan) == "NAN " +string.format("%0-20E", inf) == "INF " +string.format("%0-20E", -inf) == "-INF " +string.format("%0-20E", 100) == "1.000000E+02 " +string.format("%0-20E", 10000) == "1.000000E+04 " +string.format("%0-20E", 100000) == "1.000000E+05 " +string.format("%0-20E", 1000000) == "1.000000E+06 " +string.format("%0-20E", 10000000) == "1.000000E+07 " +string.format("%0-20E", 0.01) == "1.000000E-02 " +string.format("%0-20E", 0.0001) == "1.000000E-04 " +string.format("%0-20E", 1e-05) == "1.000000E-05 " +string.format("%0-20E", 1e-06) == "1.000000E-06 " +string.format("%0-20E", 1e-07) == "1.000000E-07 " +string.format("%0-20E", 123.456) == "1.234560E+02 " +string.format("%0-20E", 1234560000) == "1.234560E+09 " +string.format("%0-20E", 1.23456e-05) == "1.234560E-05 " +string.format("%0-20E", 123.456789123) == "1.234568E+02 " +string.format("%0-20E", 1234567891.23) == "1.234568E+09 " +string.format("%0-20E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%0-20.0E", 0) == "0E+00 " +string.format("%0-20.0E", 1) == "1E+00 " +string.format("%0-20.0E", -1) == "-1E+00 " +string.format("%0-20.0E", 2) == "2E+00 " +string.format("%0-20.0E", -2) == "-2E+00 " +string.format("%0-20.0E", 3) == "3E+00 " +string.format("%0-20.0E", -3) == "-3E+00 " +string.format("%0-20.0E", nan) == "NAN " +string.format("%0-20.0E", inf) == "INF " +string.format("%0-20.0E", -inf) == "-INF " +string.format("%0-20.0E", 100) == "1E+02 " +string.format("%0-20.0E", 10000) == "1E+04 " +string.format("%0-20.0E", 100000) == "1E+05 " +string.format("%0-20.0E", 1000000) == "1E+06 " +string.format("%0-20.0E", 10000000) == "1E+07 " +string.format("%0-20.0E", 0.01) == "1E-02 " +string.format("%0-20.0E", 0.0001) == "1E-04 " +string.format("%0-20.0E", 1e-05) == "1E-05 " +string.format("%0-20.0E", 1e-06) == "1E-06 " +string.format("%0-20.0E", 1e-07) == "1E-07 " +string.format("%0-20.0E", 123.456) == "1E+02 " +string.format("%0-20.0E", 1234560000) == "1E+09 " +string.format("%0-20.0E", 1.23456e-05) == "1E-05 " +string.format("%0-20.0E", 123.456789123) == "1E+02 " +string.format("%0-20.0E", 1234567891.23) == "1E+09 " +string.format("%0-20.0E", 1.23456789123e-05) == "1E-05 " +string.format("%0-20.1E", 0) == "0.0E+00 " +string.format("%0-20.1E", 1) == "1.0E+00 " +string.format("%0-20.1E", -1) == "-1.0E+00 " +string.format("%0-20.1E", 2) == "2.0E+00 " +string.format("%0-20.1E", -2) == "-2.0E+00 " +string.format("%0-20.1E", 3) == "3.0E+00 " +string.format("%0-20.1E", -3) == "-3.0E+00 " +string.format("%0-20.1E", nan) == "NAN " +string.format("%0-20.1E", inf) == "INF " +string.format("%0-20.1E", -inf) == "-INF " +string.format("%0-20.1E", 100) == "1.0E+02 " +string.format("%0-20.1E", 10000) == "1.0E+04 " +string.format("%0-20.1E", 100000) == "1.0E+05 " +string.format("%0-20.1E", 1000000) == "1.0E+06 " +string.format("%0-20.1E", 10000000) == "1.0E+07 " +string.format("%0-20.1E", 0.01) == "1.0E-02 " +string.format("%0-20.1E", 0.0001) == "1.0E-04 " +string.format("%0-20.1E", 1e-05) == "1.0E-05 " +string.format("%0-20.1E", 1e-06) == "1.0E-06 " +string.format("%0-20.1E", 1e-07) == "1.0E-07 " +string.format("%0-20.1E", 123.456) == "1.2E+02 " +string.format("%0-20.1E", 1234560000) == "1.2E+09 " +string.format("%0-20.1E", 1.23456e-05) == "1.2E-05 " +string.format("%0-20.1E", 123.456789123) == "1.2E+02 " +string.format("%0-20.1E", 1234567891.23) == "1.2E+09 " +string.format("%0-20.1E", 1.23456789123e-05) == "1.2E-05 " +string.format("%0-20.6E", 0) == "0.000000E+00 " +string.format("%0-20.6E", 1) == "1.000000E+00 " +string.format("%0-20.6E", -1) == "-1.000000E+00 " +string.format("%0-20.6E", 2) == "2.000000E+00 " +string.format("%0-20.6E", -2) == "-2.000000E+00 " +string.format("%0-20.6E", 3) == "3.000000E+00 " +string.format("%0-20.6E", -3) == "-3.000000E+00 " +string.format("%0-20.6E", nan) == "NAN " +string.format("%0-20.6E", inf) == "INF " +string.format("%0-20.6E", -inf) == "-INF " +string.format("%0-20.6E", 100) == "1.000000E+02 " +string.format("%0-20.6E", 10000) == "1.000000E+04 " +string.format("%0-20.6E", 100000) == "1.000000E+05 " +string.format("%0-20.6E", 1000000) == "1.000000E+06 " +string.format("%0-20.6E", 10000000) == "1.000000E+07 " +string.format("%0-20.6E", 0.01) == "1.000000E-02 " +string.format("%0-20.6E", 0.0001) == "1.000000E-04 " +string.format("%0-20.6E", 1e-05) == "1.000000E-05 " +string.format("%0-20.6E", 1e-06) == "1.000000E-06 " +string.format("%0-20.6E", 1e-07) == "1.000000E-07 " +string.format("%0-20.6E", 123.456) == "1.234560E+02 " +string.format("%0-20.6E", 1234560000) == "1.234560E+09 " +string.format("%0-20.6E", 1.23456e-05) == "1.234560E-05 " +string.format("%0-20.6E", 123.456789123) == "1.234568E+02 " +string.format("%0-20.6E", 1234567891.23) == "1.234568E+09 " +string.format("%0-20.6E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%0-+E", 0) == "+0.000000E+00" +string.format("%0-+E", 1) == "+1.000000E+00" +string.format("%0-+E", -1) == "-1.000000E+00" +string.format("%0-+E", 2) == "+2.000000E+00" +string.format("%0-+E", -2) == "-2.000000E+00" +string.format("%0-+E", 3) == "+3.000000E+00" +string.format("%0-+E", -3) == "-3.000000E+00" +string.format("%0-+E", nan) == "+NAN" +string.format("%0-+E", inf) == "+INF" +string.format("%0-+E", -inf) == "-INF" +string.format("%0-+E", 100) == "+1.000000E+02" +string.format("%0-+E", 10000) == "+1.000000E+04" +string.format("%0-+E", 100000) == "+1.000000E+05" +string.format("%0-+E", 1000000) == "+1.000000E+06" +string.format("%0-+E", 10000000) == "+1.000000E+07" +string.format("%0-+E", 0.01) == "+1.000000E-02" +string.format("%0-+E", 0.0001) == "+1.000000E-04" +string.format("%0-+E", 1e-05) == "+1.000000E-05" +string.format("%0-+E", 1e-06) == "+1.000000E-06" +string.format("%0-+E", 1e-07) == "+1.000000E-07" +string.format("%0-+E", 123.456) == "+1.234560E+02" +string.format("%0-+E", 1234560000) == "+1.234560E+09" +string.format("%0-+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0-+E", 123.456789123) == "+1.234568E+02" +string.format("%0-+E", 1234567891.23) == "+1.234568E+09" +string.format("%0-+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0-+.0E", 0) == "+0E+00" +string.format("%0-+.0E", 1) == "+1E+00" +string.format("%0-+.0E", -1) == "-1E+00" +string.format("%0-+.0E", 2) == "+2E+00" +string.format("%0-+.0E", -2) == "-2E+00" +string.format("%0-+.0E", 3) == "+3E+00" +string.format("%0-+.0E", -3) == "-3E+00" +string.format("%0-+.0E", 100) == "+1E+02" +string.format("%0-+.0E", 10000) == "+1E+04" +string.format("%0-+.0E", 100000) == "+1E+05" +string.format("%0-+.0E", 1000000) == "+1E+06" +string.format("%0-+.0E", 10000000) == "+1E+07" +string.format("%0-+.0E", 0.01) == "+1E-02" +string.format("%0-+.0E", 0.0001) == "+1E-04" +string.format("%0-+.0E", 1e-05) == "+1E-05" +string.format("%0-+.0E", 1e-06) == "+1E-06" +string.format("%0-+.0E", 1e-07) == "+1E-07" +string.format("%0-+.0E", 123.456) == "+1E+02" +string.format("%0-+.0E", 1234560000) == "+1E+09" +string.format("%0-+.0E", 1.23456e-05) == "+1E-05" +string.format("%0-+.0E", 123.456789123) == "+1E+02" +string.format("%0-+.0E", 1234567891.23) == "+1E+09" +string.format("%0-+.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0-+.1E", 0) == "+0.0E+00" +string.format("%0-+.1E", 1) == "+1.0E+00" +string.format("%0-+.1E", -1) == "-1.0E+00" +string.format("%0-+.1E", 2) == "+2.0E+00" +string.format("%0-+.1E", -2) == "-2.0E+00" +string.format("%0-+.1E", 3) == "+3.0E+00" +string.format("%0-+.1E", -3) == "-3.0E+00" +string.format("%0-+.1E", 100) == "+1.0E+02" +string.format("%0-+.1E", 10000) == "+1.0E+04" +string.format("%0-+.1E", 100000) == "+1.0E+05" +string.format("%0-+.1E", 1000000) == "+1.0E+06" +string.format("%0-+.1E", 10000000) == "+1.0E+07" +string.format("%0-+.1E", 0.01) == "+1.0E-02" +string.format("%0-+.1E", 0.0001) == "+1.0E-04" +string.format("%0-+.1E", 1e-05) == "+1.0E-05" +string.format("%0-+.1E", 1e-06) == "+1.0E-06" +string.format("%0-+.1E", 1e-07) == "+1.0E-07" +string.format("%0-+.1E", 123.456) == "+1.2E+02" +string.format("%0-+.1E", 1234560000) == "+1.2E+09" +string.format("%0-+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0-+.1E", 123.456789123) == "+1.2E+02" +string.format("%0-+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0-+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0-+1.0E", 0) == "+0E+00" +string.format("%0-+1.0E", 1) == "+1E+00" +string.format("%0-+1.0E", -1) == "-1E+00" +string.format("%0-+1.0E", 2) == "+2E+00" +string.format("%0-+1.0E", -2) == "-2E+00" +string.format("%0-+1.0E", 3) == "+3E+00" +string.format("%0-+1.0E", -3) == "-3E+00" +string.format("%0-+1.0E", 100) == "+1E+02" +string.format("%0-+1.0E", 10000) == "+1E+04" +string.format("%0-+1.0E", 100000) == "+1E+05" +string.format("%0-+1.0E", 1000000) == "+1E+06" +string.format("%0-+1.0E", 10000000) == "+1E+07" +string.format("%0-+1.0E", 0.01) == "+1E-02" +string.format("%0-+1.0E", 0.0001) == "+1E-04" +string.format("%0-+1.0E", 1e-05) == "+1E-05" +string.format("%0-+1.0E", 1e-06) == "+1E-06" +string.format("%0-+1.0E", 1e-07) == "+1E-07" +string.format("%0-+1.0E", 123.456) == "+1E+02" +string.format("%0-+1.0E", 1234560000) == "+1E+09" +string.format("%0-+1.0E", 1.23456e-05) == "+1E-05" +string.format("%0-+1.0E", 123.456789123) == "+1E+02" +string.format("%0-+1.0E", 1234567891.23) == "+1E+09" +string.format("%0-+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0-+1.1E", 0) == "+0.0E+00" +string.format("%0-+1.1E", 1) == "+1.0E+00" +string.format("%0-+1.1E", -1) == "-1.0E+00" +string.format("%0-+1.1E", 2) == "+2.0E+00" +string.format("%0-+1.1E", -2) == "-2.0E+00" +string.format("%0-+1.1E", 3) == "+3.0E+00" +string.format("%0-+1.1E", -3) == "-3.0E+00" +string.format("%0-+1.1E", 100) == "+1.0E+02" +string.format("%0-+1.1E", 10000) == "+1.0E+04" +string.format("%0-+1.1E", 100000) == "+1.0E+05" +string.format("%0-+1.1E", 1000000) == "+1.0E+06" +string.format("%0-+1.1E", 10000000) == "+1.0E+07" +string.format("%0-+1.1E", 0.01) == "+1.0E-02" +string.format("%0-+1.1E", 0.0001) == "+1.0E-04" +string.format("%0-+1.1E", 1e-05) == "+1.0E-05" +string.format("%0-+1.1E", 1e-06) == "+1.0E-06" +string.format("%0-+1.1E", 1e-07) == "+1.0E-07" +string.format("%0-+1.1E", 123.456) == "+1.2E+02" +string.format("%0-+1.1E", 1234560000) == "+1.2E+09" +string.format("%0-+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0-+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0-+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0-+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0-+2.0E", 0) == "+0E+00" +string.format("%0-+2.0E", 1) == "+1E+00" +string.format("%0-+2.0E", -1) == "-1E+00" +string.format("%0-+2.0E", 2) == "+2E+00" +string.format("%0-+2.0E", -2) == "-2E+00" +string.format("%0-+2.0E", 3) == "+3E+00" +string.format("%0-+2.0E", -3) == "-3E+00" +string.format("%0-+2.0E", 100) == "+1E+02" +string.format("%0-+2.0E", 10000) == "+1E+04" +string.format("%0-+2.0E", 100000) == "+1E+05" +string.format("%0-+2.0E", 1000000) == "+1E+06" +string.format("%0-+2.0E", 10000000) == "+1E+07" +string.format("%0-+2.0E", 0.01) == "+1E-02" +string.format("%0-+2.0E", 0.0001) == "+1E-04" +string.format("%0-+2.0E", 1e-05) == "+1E-05" +string.format("%0-+2.0E", 1e-06) == "+1E-06" +string.format("%0-+2.0E", 1e-07) == "+1E-07" +string.format("%0-+2.0E", 123.456) == "+1E+02" +string.format("%0-+2.0E", 1234560000) == "+1E+09" +string.format("%0-+2.0E", 1.23456e-05) == "+1E-05" +string.format("%0-+2.0E", 123.456789123) == "+1E+02" +string.format("%0-+2.0E", 1234567891.23) == "+1E+09" +string.format("%0-+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0-+2.1E", 0) == "+0.0E+00" +string.format("%0-+2.1E", 1) == "+1.0E+00" +string.format("%0-+2.1E", -1) == "-1.0E+00" +string.format("%0-+2.1E", 2) == "+2.0E+00" +string.format("%0-+2.1E", -2) == "-2.0E+00" +string.format("%0-+2.1E", 3) == "+3.0E+00" +string.format("%0-+2.1E", -3) == "-3.0E+00" +string.format("%0-+2.1E", 100) == "+1.0E+02" +string.format("%0-+2.1E", 10000) == "+1.0E+04" +string.format("%0-+2.1E", 100000) == "+1.0E+05" +string.format("%0-+2.1E", 1000000) == "+1.0E+06" +string.format("%0-+2.1E", 10000000) == "+1.0E+07" +string.format("%0-+2.1E", 0.01) == "+1.0E-02" +string.format("%0-+2.1E", 0.0001) == "+1.0E-04" +string.format("%0-+2.1E", 1e-05) == "+1.0E-05" +string.format("%0-+2.1E", 1e-06) == "+1.0E-06" +string.format("%0-+2.1E", 1e-07) == "+1.0E-07" +string.format("%0-+2.1E", 123.456) == "+1.2E+02" +string.format("%0-+2.1E", 1234560000) == "+1.2E+09" +string.format("%0-+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0-+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0-+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0-+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0-+6E", nan) == "+NAN " +string.format("%0-+6E", inf) == "+INF " +string.format("%0-+6E", -inf) == "-INF " +string.format("%0-+6.0E", 0) == "+0E+00" +string.format("%0-+6.0E", 1) == "+1E+00" +string.format("%0-+6.0E", -1) == "-1E+00" +string.format("%0-+6.0E", 2) == "+2E+00" +string.format("%0-+6.0E", -2) == "-2E+00" +string.format("%0-+6.0E", 3) == "+3E+00" +string.format("%0-+6.0E", -3) == "-3E+00" +string.format("%0-+6.0E", nan) == "+NAN " +string.format("%0-+6.0E", inf) == "+INF " +string.format("%0-+6.0E", -inf) == "-INF " +string.format("%0-+6.0E", 100) == "+1E+02" +string.format("%0-+6.0E", 10000) == "+1E+04" +string.format("%0-+6.0E", 100000) == "+1E+05" +string.format("%0-+6.0E", 1000000) == "+1E+06" +string.format("%0-+6.0E", 10000000) == "+1E+07" +string.format("%0-+6.0E", 0.01) == "+1E-02" +string.format("%0-+6.0E", 0.0001) == "+1E-04" +string.format("%0-+6.0E", 1e-05) == "+1E-05" +string.format("%0-+6.0E", 1e-06) == "+1E-06" +string.format("%0-+6.0E", 1e-07) == "+1E-07" +string.format("%0-+6.0E", 123.456) == "+1E+02" +string.format("%0-+6.0E", 1234560000) == "+1E+09" +string.format("%0-+6.0E", 1.23456e-05) == "+1E-05" +string.format("%0-+6.0E", 123.456789123) == "+1E+02" +string.format("%0-+6.0E", 1234567891.23) == "+1E+09" +string.format("%0-+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0-+6.1E", 0) == "+0.0E+00" +string.format("%0-+6.1E", 1) == "+1.0E+00" +string.format("%0-+6.1E", -1) == "-1.0E+00" +string.format("%0-+6.1E", 2) == "+2.0E+00" +string.format("%0-+6.1E", -2) == "-2.0E+00" +string.format("%0-+6.1E", 3) == "+3.0E+00" +string.format("%0-+6.1E", -3) == "-3.0E+00" +string.format("%0-+6.1E", nan) == "+NAN " +string.format("%0-+6.1E", inf) == "+INF " +string.format("%0-+6.1E", -inf) == "-INF " +string.format("%0-+6.1E", 100) == "+1.0E+02" +string.format("%0-+6.1E", 10000) == "+1.0E+04" +string.format("%0-+6.1E", 100000) == "+1.0E+05" +string.format("%0-+6.1E", 1000000) == "+1.0E+06" +string.format("%0-+6.1E", 10000000) == "+1.0E+07" +string.format("%0-+6.1E", 0.01) == "+1.0E-02" +string.format("%0-+6.1E", 0.0001) == "+1.0E-04" +string.format("%0-+6.1E", 1e-05) == "+1.0E-05" +string.format("%0-+6.1E", 1e-06) == "+1.0E-06" +string.format("%0-+6.1E", 1e-07) == "+1.0E-07" +string.format("%0-+6.1E", 123.456) == "+1.2E+02" +string.format("%0-+6.1E", 1234560000) == "+1.2E+09" +string.format("%0-+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0-+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0-+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0-+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0-+6.6E", nan) == "+NAN " +string.format("%0-+6.6E", inf) == "+INF " +string.format("%0-+6.6E", -inf) == "-INF " +string.format("%0-+20E", 0) == "+0.000000E+00 " +string.format("%0-+20E", 1) == "+1.000000E+00 " +string.format("%0-+20E", -1) == "-1.000000E+00 " +string.format("%0-+20E", 2) == "+2.000000E+00 " +string.format("%0-+20E", -2) == "-2.000000E+00 " +string.format("%0-+20E", 3) == "+3.000000E+00 " +string.format("%0-+20E", -3) == "-3.000000E+00 " +string.format("%0-+20E", nan) == "+NAN " +string.format("%0-+20E", inf) == "+INF " +string.format("%0-+20E", -inf) == "-INF " +string.format("%0-+20E", 100) == "+1.000000E+02 " +string.format("%0-+20E", 10000) == "+1.000000E+04 " +string.format("%0-+20E", 100000) == "+1.000000E+05 " +string.format("%0-+20E", 1000000) == "+1.000000E+06 " +string.format("%0-+20E", 10000000) == "+1.000000E+07 " +string.format("%0-+20E", 0.01) == "+1.000000E-02 " +string.format("%0-+20E", 0.0001) == "+1.000000E-04 " +string.format("%0-+20E", 1e-05) == "+1.000000E-05 " +string.format("%0-+20E", 1e-06) == "+1.000000E-06 " +string.format("%0-+20E", 1e-07) == "+1.000000E-07 " +string.format("%0-+20E", 123.456) == "+1.234560E+02 " +string.format("%0-+20E", 1234560000) == "+1.234560E+09 " +string.format("%0-+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0-+20E", 123.456789123) == "+1.234568E+02 " +string.format("%0-+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%0-+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0-+20.0E", 0) == "+0E+00 " +string.format("%0-+20.0E", 1) == "+1E+00 " +string.format("%0-+20.0E", -1) == "-1E+00 " +string.format("%0-+20.0E", 2) == "+2E+00 " +string.format("%0-+20.0E", -2) == "-2E+00 " +string.format("%0-+20.0E", 3) == "+3E+00 " +string.format("%0-+20.0E", -3) == "-3E+00 " +string.format("%0-+20.0E", nan) == "+NAN " +string.format("%0-+20.0E", inf) == "+INF " +string.format("%0-+20.0E", -inf) == "-INF " +string.format("%0-+20.0E", 100) == "+1E+02 " +string.format("%0-+20.0E", 10000) == "+1E+04 " +string.format("%0-+20.0E", 100000) == "+1E+05 " +string.format("%0-+20.0E", 1000000) == "+1E+06 " +string.format("%0-+20.0E", 10000000) == "+1E+07 " +string.format("%0-+20.0E", 0.01) == "+1E-02 " +string.format("%0-+20.0E", 0.0001) == "+1E-04 " +string.format("%0-+20.0E", 1e-05) == "+1E-05 " +string.format("%0-+20.0E", 1e-06) == "+1E-06 " +string.format("%0-+20.0E", 1e-07) == "+1E-07 " +string.format("%0-+20.0E", 123.456) == "+1E+02 " +string.format("%0-+20.0E", 1234560000) == "+1E+09 " +string.format("%0-+20.0E", 1.23456e-05) == "+1E-05 " +string.format("%0-+20.0E", 123.456789123) == "+1E+02 " +string.format("%0-+20.0E", 1234567891.23) == "+1E+09 " +string.format("%0-+20.0E", 1.23456789123e-05) == "+1E-05 " +string.format("%0-+20.1E", 0) == "+0.0E+00 " +string.format("%0-+20.1E", 1) == "+1.0E+00 " +string.format("%0-+20.1E", -1) == "-1.0E+00 " +string.format("%0-+20.1E", 2) == "+2.0E+00 " +string.format("%0-+20.1E", -2) == "-2.0E+00 " +string.format("%0-+20.1E", 3) == "+3.0E+00 " +string.format("%0-+20.1E", -3) == "-3.0E+00 " +string.format("%0-+20.1E", nan) == "+NAN " +string.format("%0-+20.1E", inf) == "+INF " +string.format("%0-+20.1E", -inf) == "-INF " +string.format("%0-+20.1E", 100) == "+1.0E+02 " +string.format("%0-+20.1E", 10000) == "+1.0E+04 " +string.format("%0-+20.1E", 100000) == "+1.0E+05 " +string.format("%0-+20.1E", 1000000) == "+1.0E+06 " +string.format("%0-+20.1E", 10000000) == "+1.0E+07 " +string.format("%0-+20.1E", 0.01) == "+1.0E-02 " +string.format("%0-+20.1E", 0.0001) == "+1.0E-04 " +string.format("%0-+20.1E", 1e-05) == "+1.0E-05 " +string.format("%0-+20.1E", 1e-06) == "+1.0E-06 " +string.format("%0-+20.1E", 1e-07) == "+1.0E-07 " +string.format("%0-+20.1E", 123.456) == "+1.2E+02 " +string.format("%0-+20.1E", 1234560000) == "+1.2E+09 " +string.format("%0-+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%0-+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%0-+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%0-+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%0-+20.6E", 0) == "+0.000000E+00 " +string.format("%0-+20.6E", 1) == "+1.000000E+00 " +string.format("%0-+20.6E", -1) == "-1.000000E+00 " +string.format("%0-+20.6E", 2) == "+2.000000E+00 " +string.format("%0-+20.6E", -2) == "-2.000000E+00 " +string.format("%0-+20.6E", 3) == "+3.000000E+00 " +string.format("%0-+20.6E", -3) == "-3.000000E+00 " +string.format("%0-+20.6E", nan) == "+NAN " +string.format("%0-+20.6E", inf) == "+INF " +string.format("%0-+20.6E", -inf) == "-INF " +string.format("%0-+20.6E", 100) == "+1.000000E+02 " +string.format("%0-+20.6E", 10000) == "+1.000000E+04 " +string.format("%0-+20.6E", 100000) == "+1.000000E+05 " +string.format("%0-+20.6E", 1000000) == "+1.000000E+06 " +string.format("%0-+20.6E", 10000000) == "+1.000000E+07 " +string.format("%0-+20.6E", 0.01) == "+1.000000E-02 " +string.format("%0-+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%0-+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%0-+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%0-+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%0-+20.6E", 123.456) == "+1.234560E+02 " +string.format("%0-+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%0-+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0-+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%0-+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%0-+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0 E", 0) == " 0.000000E+00" +string.format("%0 E", 1) == " 1.000000E+00" +string.format("%0 E", -1) == "-1.000000E+00" +string.format("%0 E", 2) == " 2.000000E+00" +string.format("%0 E", -2) == "-2.000000E+00" +string.format("%0 E", 3) == " 3.000000E+00" +string.format("%0 E", -3) == "-3.000000E+00" +string.format("%0 E", nan) == " NAN" +string.format("%0 E", inf) == " INF" +string.format("%0 E", -inf) == "-INF" +string.format("%0 E", 100) == " 1.000000E+02" +string.format("%0 E", 10000) == " 1.000000E+04" +string.format("%0 E", 100000) == " 1.000000E+05" +string.format("%0 E", 1000000) == " 1.000000E+06" +string.format("%0 E", 10000000) == " 1.000000E+07" +string.format("%0 E", 0.01) == " 1.000000E-02" +string.format("%0 E", 0.0001) == " 1.000000E-04" +string.format("%0 E", 1e-05) == " 1.000000E-05" +string.format("%0 E", 1e-06) == " 1.000000E-06" +string.format("%0 E", 1e-07) == " 1.000000E-07" +string.format("%0 E", 123.456) == " 1.234560E+02" +string.format("%0 E", 1234560000) == " 1.234560E+09" +string.format("%0 E", 1.23456e-05) == " 1.234560E-05" +string.format("%0 E", 123.456789123) == " 1.234568E+02" +string.format("%0 E", 1234567891.23) == " 1.234568E+09" +string.format("%0 E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%0 .0E", 0) == " 0E+00" +string.format("%0 .0E", 1) == " 1E+00" +string.format("%0 .0E", -1) == "-1E+00" +string.format("%0 .0E", 2) == " 2E+00" +string.format("%0 .0E", -2) == "-2E+00" +string.format("%0 .0E", 3) == " 3E+00" +string.format("%0 .0E", -3) == "-3E+00" +string.format("%0 .0E", 100) == " 1E+02" +string.format("%0 .0E", 10000) == " 1E+04" +string.format("%0 .0E", 100000) == " 1E+05" +string.format("%0 .0E", 1000000) == " 1E+06" +string.format("%0 .0E", 10000000) == " 1E+07" +string.format("%0 .0E", 0.01) == " 1E-02" +string.format("%0 .0E", 0.0001) == " 1E-04" +string.format("%0 .0E", 1e-05) == " 1E-05" +string.format("%0 .0E", 1e-06) == " 1E-06" +string.format("%0 .0E", 1e-07) == " 1E-07" +string.format("%0 .0E", 123.456) == " 1E+02" +string.format("%0 .0E", 1234560000) == " 1E+09" +string.format("%0 .0E", 1.23456e-05) == " 1E-05" +string.format("%0 .0E", 123.456789123) == " 1E+02" +string.format("%0 .0E", 1234567891.23) == " 1E+09" +string.format("%0 .0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 .1E", 0) == " 0.0E+00" +string.format("%0 .1E", 1) == " 1.0E+00" +string.format("%0 .1E", -1) == "-1.0E+00" +string.format("%0 .1E", 2) == " 2.0E+00" +string.format("%0 .1E", -2) == "-2.0E+00" +string.format("%0 .1E", 3) == " 3.0E+00" +string.format("%0 .1E", -3) == "-3.0E+00" +string.format("%0 .1E", 100) == " 1.0E+02" +string.format("%0 .1E", 10000) == " 1.0E+04" +string.format("%0 .1E", 100000) == " 1.0E+05" +string.format("%0 .1E", 1000000) == " 1.0E+06" +string.format("%0 .1E", 10000000) == " 1.0E+07" +string.format("%0 .1E", 0.01) == " 1.0E-02" +string.format("%0 .1E", 0.0001) == " 1.0E-04" +string.format("%0 .1E", 1e-05) == " 1.0E-05" +string.format("%0 .1E", 1e-06) == " 1.0E-06" +string.format("%0 .1E", 1e-07) == " 1.0E-07" +string.format("%0 .1E", 123.456) == " 1.2E+02" +string.format("%0 .1E", 1234560000) == " 1.2E+09" +string.format("%0 .1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 .1E", 123.456789123) == " 1.2E+02" +string.format("%0 .1E", 1234567891.23) == " 1.2E+09" +string.format("%0 .1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 1.0E", 0) == " 0E+00" +string.format("%0 1.0E", 1) == " 1E+00" +string.format("%0 1.0E", -1) == "-1E+00" +string.format("%0 1.0E", 2) == " 2E+00" +string.format("%0 1.0E", -2) == "-2E+00" +string.format("%0 1.0E", 3) == " 3E+00" +string.format("%0 1.0E", -3) == "-3E+00" +string.format("%0 1.0E", 100) == " 1E+02" +string.format("%0 1.0E", 10000) == " 1E+04" +string.format("%0 1.0E", 100000) == " 1E+05" +string.format("%0 1.0E", 1000000) == " 1E+06" +string.format("%0 1.0E", 10000000) == " 1E+07" +string.format("%0 1.0E", 0.01) == " 1E-02" +string.format("%0 1.0E", 0.0001) == " 1E-04" +string.format("%0 1.0E", 1e-05) == " 1E-05" +string.format("%0 1.0E", 1e-06) == " 1E-06" +string.format("%0 1.0E", 1e-07) == " 1E-07" +string.format("%0 1.0E", 123.456) == " 1E+02" +string.format("%0 1.0E", 1234560000) == " 1E+09" +string.format("%0 1.0E", 1.23456e-05) == " 1E-05" +string.format("%0 1.0E", 123.456789123) == " 1E+02" +string.format("%0 1.0E", 1234567891.23) == " 1E+09" +string.format("%0 1.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 1.1E", 0) == " 0.0E+00" +string.format("%0 1.1E", 1) == " 1.0E+00" +string.format("%0 1.1E", -1) == "-1.0E+00" +string.format("%0 1.1E", 2) == " 2.0E+00" +string.format("%0 1.1E", -2) == "-2.0E+00" +string.format("%0 1.1E", 3) == " 3.0E+00" +string.format("%0 1.1E", -3) == "-3.0E+00" +string.format("%0 1.1E", 100) == " 1.0E+02" +string.format("%0 1.1E", 10000) == " 1.0E+04" +string.format("%0 1.1E", 100000) == " 1.0E+05" +string.format("%0 1.1E", 1000000) == " 1.0E+06" +string.format("%0 1.1E", 10000000) == " 1.0E+07" +string.format("%0 1.1E", 0.01) == " 1.0E-02" +string.format("%0 1.1E", 0.0001) == " 1.0E-04" +string.format("%0 1.1E", 1e-05) == " 1.0E-05" +string.format("%0 1.1E", 1e-06) == " 1.0E-06" +string.format("%0 1.1E", 1e-07) == " 1.0E-07" +string.format("%0 1.1E", 123.456) == " 1.2E+02" +string.format("%0 1.1E", 1234560000) == " 1.2E+09" +string.format("%0 1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 1.1E", 123.456789123) == " 1.2E+02" +string.format("%0 1.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 2.0E", 0) == " 0E+00" +string.format("%0 2.0E", 1) == " 1E+00" +string.format("%0 2.0E", -1) == "-1E+00" +string.format("%0 2.0E", 2) == " 2E+00" +string.format("%0 2.0E", -2) == "-2E+00" +string.format("%0 2.0E", 3) == " 3E+00" +string.format("%0 2.0E", -3) == "-3E+00" +string.format("%0 2.0E", 100) == " 1E+02" +string.format("%0 2.0E", 10000) == " 1E+04" +string.format("%0 2.0E", 100000) == " 1E+05" +string.format("%0 2.0E", 1000000) == " 1E+06" +string.format("%0 2.0E", 10000000) == " 1E+07" +string.format("%0 2.0E", 0.01) == " 1E-02" +string.format("%0 2.0E", 0.0001) == " 1E-04" +string.format("%0 2.0E", 1e-05) == " 1E-05" +string.format("%0 2.0E", 1e-06) == " 1E-06" +string.format("%0 2.0E", 1e-07) == " 1E-07" +string.format("%0 2.0E", 123.456) == " 1E+02" +string.format("%0 2.0E", 1234560000) == " 1E+09" +string.format("%0 2.0E", 1.23456e-05) == " 1E-05" +string.format("%0 2.0E", 123.456789123) == " 1E+02" +string.format("%0 2.0E", 1234567891.23) == " 1E+09" +string.format("%0 2.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 2.1E", 0) == " 0.0E+00" +string.format("%0 2.1E", 1) == " 1.0E+00" +string.format("%0 2.1E", -1) == "-1.0E+00" +string.format("%0 2.1E", 2) == " 2.0E+00" +string.format("%0 2.1E", -2) == "-2.0E+00" +string.format("%0 2.1E", 3) == " 3.0E+00" +string.format("%0 2.1E", -3) == "-3.0E+00" +string.format("%0 2.1E", 100) == " 1.0E+02" +string.format("%0 2.1E", 10000) == " 1.0E+04" +string.format("%0 2.1E", 100000) == " 1.0E+05" +string.format("%0 2.1E", 1000000) == " 1.0E+06" +string.format("%0 2.1E", 10000000) == " 1.0E+07" +string.format("%0 2.1E", 0.01) == " 1.0E-02" +string.format("%0 2.1E", 0.0001) == " 1.0E-04" +string.format("%0 2.1E", 1e-05) == " 1.0E-05" +string.format("%0 2.1E", 1e-06) == " 1.0E-06" +string.format("%0 2.1E", 1e-07) == " 1.0E-07" +string.format("%0 2.1E", 123.456) == " 1.2E+02" +string.format("%0 2.1E", 1234560000) == " 1.2E+09" +string.format("%0 2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 2.1E", 123.456789123) == " 1.2E+02" +string.format("%0 2.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 6E", nan) == " NAN" +string.format("%0 6E", inf) == " INF" +string.format("%0 6E", -inf) == " -INF" +string.format("%0 6.0E", 0) == " 0E+00" +string.format("%0 6.0E", 1) == " 1E+00" +string.format("%0 6.0E", -1) == "-1E+00" +string.format("%0 6.0E", 2) == " 2E+00" +string.format("%0 6.0E", -2) == "-2E+00" +string.format("%0 6.0E", 3) == " 3E+00" +string.format("%0 6.0E", -3) == "-3E+00" +string.format("%0 6.0E", nan) == " NAN" +string.format("%0 6.0E", inf) == " INF" +string.format("%0 6.0E", -inf) == " -INF" +string.format("%0 6.0E", 100) == " 1E+02" +string.format("%0 6.0E", 10000) == " 1E+04" +string.format("%0 6.0E", 100000) == " 1E+05" +string.format("%0 6.0E", 1000000) == " 1E+06" +string.format("%0 6.0E", 10000000) == " 1E+07" +string.format("%0 6.0E", 0.01) == " 1E-02" +string.format("%0 6.0E", 0.0001) == " 1E-04" +string.format("%0 6.0E", 1e-05) == " 1E-05" +string.format("%0 6.0E", 1e-06) == " 1E-06" +string.format("%0 6.0E", 1e-07) == " 1E-07" +string.format("%0 6.0E", 123.456) == " 1E+02" +string.format("%0 6.0E", 1234560000) == " 1E+09" +string.format("%0 6.0E", 1.23456e-05) == " 1E-05" +string.format("%0 6.0E", 123.456789123) == " 1E+02" +string.format("%0 6.0E", 1234567891.23) == " 1E+09" +string.format("%0 6.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 6.1E", 0) == " 0.0E+00" +string.format("%0 6.1E", 1) == " 1.0E+00" +string.format("%0 6.1E", -1) == "-1.0E+00" +string.format("%0 6.1E", 2) == " 2.0E+00" +string.format("%0 6.1E", -2) == "-2.0E+00" +string.format("%0 6.1E", 3) == " 3.0E+00" +string.format("%0 6.1E", -3) == "-3.0E+00" +string.format("%0 6.1E", nan) == " NAN" +string.format("%0 6.1E", inf) == " INF" +string.format("%0 6.1E", -inf) == " -INF" +string.format("%0 6.1E", 100) == " 1.0E+02" +string.format("%0 6.1E", 10000) == " 1.0E+04" +string.format("%0 6.1E", 100000) == " 1.0E+05" +string.format("%0 6.1E", 1000000) == " 1.0E+06" +string.format("%0 6.1E", 10000000) == " 1.0E+07" +string.format("%0 6.1E", 0.01) == " 1.0E-02" +string.format("%0 6.1E", 0.0001) == " 1.0E-04" +string.format("%0 6.1E", 1e-05) == " 1.0E-05" +string.format("%0 6.1E", 1e-06) == " 1.0E-06" +string.format("%0 6.1E", 1e-07) == " 1.0E-07" +string.format("%0 6.1E", 123.456) == " 1.2E+02" +string.format("%0 6.1E", 1234560000) == " 1.2E+09" +string.format("%0 6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 6.1E", 123.456789123) == " 1.2E+02" +string.format("%0 6.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 6.6E", nan) == " NAN" +string.format("%0 6.6E", inf) == " INF" +string.format("%0 6.6E", -inf) == " -INF" +string.format("%0 20E", 0) == " 00000000.000000E+00" +string.format("%0 20E", 1) == " 00000001.000000E+00" +string.format("%0 20E", -1) == "-00000001.000000E+00" +string.format("%0 20E", 2) == " 00000002.000000E+00" +string.format("%0 20E", -2) == "-00000002.000000E+00" +string.format("%0 20E", 3) == " 00000003.000000E+00" +string.format("%0 20E", -3) == "-00000003.000000E+00" +string.format("%0 20E", nan) == " NAN" +string.format("%0 20E", inf) == " INF" +string.format("%0 20E", -inf) == " -INF" +string.format("%0 20E", 100) == " 00000001.000000E+02" +string.format("%0 20E", 10000) == " 00000001.000000E+04" +string.format("%0 20E", 100000) == " 00000001.000000E+05" +string.format("%0 20E", 1000000) == " 00000001.000000E+06" +string.format("%0 20E", 10000000) == " 00000001.000000E+07" +string.format("%0 20E", 0.01) == " 00000001.000000E-02" +string.format("%0 20E", 0.0001) == " 00000001.000000E-04" +string.format("%0 20E", 1e-05) == " 00000001.000000E-05" +string.format("%0 20E", 1e-06) == " 00000001.000000E-06" +string.format("%0 20E", 1e-07) == " 00000001.000000E-07" +string.format("%0 20E", 123.456) == " 00000001.234560E+02" +string.format("%0 20E", 1234560000) == " 00000001.234560E+09" +string.format("%0 20E", 1.23456e-05) == " 00000001.234560E-05" +string.format("%0 20E", 123.456789123) == " 00000001.234568E+02" +string.format("%0 20E", 1234567891.23) == " 00000001.234568E+09" +string.format("%0 20E", 1.23456789123e-05) == " 00000001.234568E-05" +string.format("%0 20.0E", 0) == " 000000000000000E+00" +string.format("%0 20.0E", 1) == " 000000000000001E+00" +string.format("%0 20.0E", -1) == "-000000000000001E+00" +string.format("%0 20.0E", 2) == " 000000000000002E+00" +string.format("%0 20.0E", -2) == "-000000000000002E+00" +string.format("%0 20.0E", 3) == " 000000000000003E+00" +string.format("%0 20.0E", -3) == "-000000000000003E+00" +string.format("%0 20.0E", nan) == " NAN" +string.format("%0 20.0E", inf) == " INF" +string.format("%0 20.0E", -inf) == " -INF" +string.format("%0 20.0E", 100) == " 000000000000001E+02" +string.format("%0 20.0E", 10000) == " 000000000000001E+04" +string.format("%0 20.0E", 100000) == " 000000000000001E+05" +string.format("%0 20.0E", 1000000) == " 000000000000001E+06" +string.format("%0 20.0E", 10000000) == " 000000000000001E+07" +string.format("%0 20.0E", 0.01) == " 000000000000001E-02" +string.format("%0 20.0E", 0.0001) == " 000000000000001E-04" +string.format("%0 20.0E", 1e-05) == " 000000000000001E-05" +string.format("%0 20.0E", 1e-06) == " 000000000000001E-06" +string.format("%0 20.0E", 1e-07) == " 000000000000001E-07" +string.format("%0 20.0E", 123.456) == " 000000000000001E+02" +string.format("%0 20.0E", 1234560000) == " 000000000000001E+09" +string.format("%0 20.0E", 1.23456e-05) == " 000000000000001E-05" +string.format("%0 20.0E", 123.456789123) == " 000000000000001E+02" +string.format("%0 20.0E", 1234567891.23) == " 000000000000001E+09" +string.format("%0 20.0E", 1.23456789123e-05) == " 000000000000001E-05" +string.format("%0 20.1E", 0) == " 0000000000000.0E+00" +string.format("%0 20.1E", 1) == " 0000000000001.0E+00" +string.format("%0 20.1E", -1) == "-0000000000001.0E+00" +string.format("%0 20.1E", 2) == " 0000000000002.0E+00" +string.format("%0 20.1E", -2) == "-0000000000002.0E+00" +string.format("%0 20.1E", 3) == " 0000000000003.0E+00" +string.format("%0 20.1E", -3) == "-0000000000003.0E+00" +string.format("%0 20.1E", nan) == " NAN" +string.format("%0 20.1E", inf) == " INF" +string.format("%0 20.1E", -inf) == " -INF" +string.format("%0 20.1E", 100) == " 0000000000001.0E+02" +string.format("%0 20.1E", 10000) == " 0000000000001.0E+04" +string.format("%0 20.1E", 100000) == " 0000000000001.0E+05" +string.format("%0 20.1E", 1000000) == " 0000000000001.0E+06" +string.format("%0 20.1E", 10000000) == " 0000000000001.0E+07" +string.format("%0 20.1E", 0.01) == " 0000000000001.0E-02" +string.format("%0 20.1E", 0.0001) == " 0000000000001.0E-04" +string.format("%0 20.1E", 1e-05) == " 0000000000001.0E-05" +string.format("%0 20.1E", 1e-06) == " 0000000000001.0E-06" +string.format("%0 20.1E", 1e-07) == " 0000000000001.0E-07" +string.format("%0 20.1E", 123.456) == " 0000000000001.2E+02" +string.format("%0 20.1E", 1234560000) == " 0000000000001.2E+09" +string.format("%0 20.1E", 1.23456e-05) == " 0000000000001.2E-05" +string.format("%0 20.1E", 123.456789123) == " 0000000000001.2E+02" +string.format("%0 20.1E", 1234567891.23) == " 0000000000001.2E+09" +string.format("%0 20.1E", 1.23456789123e-05) == " 0000000000001.2E-05" +string.format("%0 20.6E", 0) == " 00000000.000000E+00" +string.format("%0 20.6E", 1) == " 00000001.000000E+00" +string.format("%0 20.6E", -1) == "-00000001.000000E+00" +string.format("%0 20.6E", 2) == " 00000002.000000E+00" +string.format("%0 20.6E", -2) == "-00000002.000000E+00" +string.format("%0 20.6E", 3) == " 00000003.000000E+00" +string.format("%0 20.6E", -3) == "-00000003.000000E+00" +string.format("%0 20.6E", nan) == " NAN" +string.format("%0 20.6E", inf) == " INF" +string.format("%0 20.6E", -inf) == " -INF" +string.format("%0 20.6E", 100) == " 00000001.000000E+02" +string.format("%0 20.6E", 10000) == " 00000001.000000E+04" +string.format("%0 20.6E", 100000) == " 00000001.000000E+05" +string.format("%0 20.6E", 1000000) == " 00000001.000000E+06" +string.format("%0 20.6E", 10000000) == " 00000001.000000E+07" +string.format("%0 20.6E", 0.01) == " 00000001.000000E-02" +string.format("%0 20.6E", 0.0001) == " 00000001.000000E-04" +string.format("%0 20.6E", 1e-05) == " 00000001.000000E-05" +string.format("%0 20.6E", 1e-06) == " 00000001.000000E-06" +string.format("%0 20.6E", 1e-07) == " 00000001.000000E-07" +string.format("%0 20.6E", 123.456) == " 00000001.234560E+02" +string.format("%0 20.6E", 1234560000) == " 00000001.234560E+09" +string.format("%0 20.6E", 1.23456e-05) == " 00000001.234560E-05" +string.format("%0 20.6E", 123.456789123) == " 00000001.234568E+02" +string.format("%0 20.6E", 1234567891.23) == " 00000001.234568E+09" +string.format("%0 20.6E", 1.23456789123e-05) == " 00000001.234568E-05" +string.format("%0 +E", 0) == "+0.000000E+00" +string.format("%0 +E", 1) == "+1.000000E+00" +string.format("%0 +E", -1) == "-1.000000E+00" +string.format("%0 +E", 2) == "+2.000000E+00" +string.format("%0 +E", -2) == "-2.000000E+00" +string.format("%0 +E", 3) == "+3.000000E+00" +string.format("%0 +E", -3) == "-3.000000E+00" +string.format("%0 +E", nan) == "+NAN" +string.format("%0 +E", inf) == "+INF" +string.format("%0 +E", -inf) == "-INF" +string.format("%0 +E", 100) == "+1.000000E+02" +string.format("%0 +E", 10000) == "+1.000000E+04" +string.format("%0 +E", 100000) == "+1.000000E+05" +string.format("%0 +E", 1000000) == "+1.000000E+06" +string.format("%0 +E", 10000000) == "+1.000000E+07" +string.format("%0 +E", 0.01) == "+1.000000E-02" +string.format("%0 +E", 0.0001) == "+1.000000E-04" +string.format("%0 +E", 1e-05) == "+1.000000E-05" +string.format("%0 +E", 1e-06) == "+1.000000E-06" +string.format("%0 +E", 1e-07) == "+1.000000E-07" +string.format("%0 +E", 123.456) == "+1.234560E+02" +string.format("%0 +E", 1234560000) == "+1.234560E+09" +string.format("%0 +E", 1.23456e-05) == "+1.234560E-05" +string.format("%0 +E", 123.456789123) == "+1.234568E+02" +string.format("%0 +E", 1234567891.23) == "+1.234568E+09" +string.format("%0 +E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0 +.0E", 0) == "+0E+00" +string.format("%0 +.0E", 1) == "+1E+00" +string.format("%0 +.0E", -1) == "-1E+00" +string.format("%0 +.0E", 2) == "+2E+00" +string.format("%0 +.0E", -2) == "-2E+00" +string.format("%0 +.0E", 3) == "+3E+00" +string.format("%0 +.0E", -3) == "-3E+00" +string.format("%0 +.0E", 100) == "+1E+02" +string.format("%0 +.0E", 10000) == "+1E+04" +string.format("%0 +.0E", 100000) == "+1E+05" +string.format("%0 +.0E", 1000000) == "+1E+06" +string.format("%0 +.0E", 10000000) == "+1E+07" +string.format("%0 +.0E", 0.01) == "+1E-02" +string.format("%0 +.0E", 0.0001) == "+1E-04" +string.format("%0 +.0E", 1e-05) == "+1E-05" +string.format("%0 +.0E", 1e-06) == "+1E-06" +string.format("%0 +.0E", 1e-07) == "+1E-07" +string.format("%0 +.0E", 123.456) == "+1E+02" +string.format("%0 +.0E", 1234560000) == "+1E+09" +string.format("%0 +.0E", 1.23456e-05) == "+1E-05" +string.format("%0 +.0E", 123.456789123) == "+1E+02" +string.format("%0 +.0E", 1234567891.23) == "+1E+09" +string.format("%0 +.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 +.1E", 0) == "+0.0E+00" +string.format("%0 +.1E", 1) == "+1.0E+00" +string.format("%0 +.1E", -1) == "-1.0E+00" +string.format("%0 +.1E", 2) == "+2.0E+00" +string.format("%0 +.1E", -2) == "-2.0E+00" +string.format("%0 +.1E", 3) == "+3.0E+00" +string.format("%0 +.1E", -3) == "-3.0E+00" +string.format("%0 +.1E", 100) == "+1.0E+02" +string.format("%0 +.1E", 10000) == "+1.0E+04" +string.format("%0 +.1E", 100000) == "+1.0E+05" +string.format("%0 +.1E", 1000000) == "+1.0E+06" +string.format("%0 +.1E", 10000000) == "+1.0E+07" +string.format("%0 +.1E", 0.01) == "+1.0E-02" +string.format("%0 +.1E", 0.0001) == "+1.0E-04" +string.format("%0 +.1E", 1e-05) == "+1.0E-05" +string.format("%0 +.1E", 1e-06) == "+1.0E-06" +string.format("%0 +.1E", 1e-07) == "+1.0E-07" +string.format("%0 +.1E", 123.456) == "+1.2E+02" +string.format("%0 +.1E", 1234560000) == "+1.2E+09" +string.format("%0 +.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 +.1E", 123.456789123) == "+1.2E+02" +string.format("%0 +.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 +.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 +1.0E", 0) == "+0E+00" +string.format("%0 +1.0E", 1) == "+1E+00" +string.format("%0 +1.0E", -1) == "-1E+00" +string.format("%0 +1.0E", 2) == "+2E+00" +string.format("%0 +1.0E", -2) == "-2E+00" +string.format("%0 +1.0E", 3) == "+3E+00" +string.format("%0 +1.0E", -3) == "-3E+00" +string.format("%0 +1.0E", 100) == "+1E+02" +string.format("%0 +1.0E", 10000) == "+1E+04" +string.format("%0 +1.0E", 100000) == "+1E+05" +string.format("%0 +1.0E", 1000000) == "+1E+06" +string.format("%0 +1.0E", 10000000) == "+1E+07" +string.format("%0 +1.0E", 0.01) == "+1E-02" +string.format("%0 +1.0E", 0.0001) == "+1E-04" +string.format("%0 +1.0E", 1e-05) == "+1E-05" +string.format("%0 +1.0E", 1e-06) == "+1E-06" +string.format("%0 +1.0E", 1e-07) == "+1E-07" +string.format("%0 +1.0E", 123.456) == "+1E+02" +string.format("%0 +1.0E", 1234560000) == "+1E+09" +string.format("%0 +1.0E", 1.23456e-05) == "+1E-05" +string.format("%0 +1.0E", 123.456789123) == "+1E+02" +string.format("%0 +1.0E", 1234567891.23) == "+1E+09" +string.format("%0 +1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 +1.1E", 0) == "+0.0E+00" +string.format("%0 +1.1E", 1) == "+1.0E+00" +string.format("%0 +1.1E", -1) == "-1.0E+00" +string.format("%0 +1.1E", 2) == "+2.0E+00" +string.format("%0 +1.1E", -2) == "-2.0E+00" +string.format("%0 +1.1E", 3) == "+3.0E+00" +string.format("%0 +1.1E", -3) == "-3.0E+00" +string.format("%0 +1.1E", 100) == "+1.0E+02" +string.format("%0 +1.1E", 10000) == "+1.0E+04" +string.format("%0 +1.1E", 100000) == "+1.0E+05" +string.format("%0 +1.1E", 1000000) == "+1.0E+06" +string.format("%0 +1.1E", 10000000) == "+1.0E+07" +string.format("%0 +1.1E", 0.01) == "+1.0E-02" +string.format("%0 +1.1E", 0.0001) == "+1.0E-04" +string.format("%0 +1.1E", 1e-05) == "+1.0E-05" +string.format("%0 +1.1E", 1e-06) == "+1.0E-06" +string.format("%0 +1.1E", 1e-07) == "+1.0E-07" +string.format("%0 +1.1E", 123.456) == "+1.2E+02" +string.format("%0 +1.1E", 1234560000) == "+1.2E+09" +string.format("%0 +1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 +1.1E", 123.456789123) == "+1.2E+02" +string.format("%0 +1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 +1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 +2.0E", 0) == "+0E+00" +string.format("%0 +2.0E", 1) == "+1E+00" +string.format("%0 +2.0E", -1) == "-1E+00" +string.format("%0 +2.0E", 2) == "+2E+00" +string.format("%0 +2.0E", -2) == "-2E+00" +string.format("%0 +2.0E", 3) == "+3E+00" +string.format("%0 +2.0E", -3) == "-3E+00" +string.format("%0 +2.0E", 100) == "+1E+02" +string.format("%0 +2.0E", 10000) == "+1E+04" +string.format("%0 +2.0E", 100000) == "+1E+05" +string.format("%0 +2.0E", 1000000) == "+1E+06" +string.format("%0 +2.0E", 10000000) == "+1E+07" +string.format("%0 +2.0E", 0.01) == "+1E-02" +string.format("%0 +2.0E", 0.0001) == "+1E-04" +string.format("%0 +2.0E", 1e-05) == "+1E-05" +string.format("%0 +2.0E", 1e-06) == "+1E-06" +string.format("%0 +2.0E", 1e-07) == "+1E-07" +string.format("%0 +2.0E", 123.456) == "+1E+02" +string.format("%0 +2.0E", 1234560000) == "+1E+09" +string.format("%0 +2.0E", 1.23456e-05) == "+1E-05" +string.format("%0 +2.0E", 123.456789123) == "+1E+02" +string.format("%0 +2.0E", 1234567891.23) == "+1E+09" +string.format("%0 +2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 +2.1E", 0) == "+0.0E+00" +string.format("%0 +2.1E", 1) == "+1.0E+00" +string.format("%0 +2.1E", -1) == "-1.0E+00" +string.format("%0 +2.1E", 2) == "+2.0E+00" +string.format("%0 +2.1E", -2) == "-2.0E+00" +string.format("%0 +2.1E", 3) == "+3.0E+00" +string.format("%0 +2.1E", -3) == "-3.0E+00" +string.format("%0 +2.1E", 100) == "+1.0E+02" +string.format("%0 +2.1E", 10000) == "+1.0E+04" +string.format("%0 +2.1E", 100000) == "+1.0E+05" +string.format("%0 +2.1E", 1000000) == "+1.0E+06" +string.format("%0 +2.1E", 10000000) == "+1.0E+07" +string.format("%0 +2.1E", 0.01) == "+1.0E-02" +string.format("%0 +2.1E", 0.0001) == "+1.0E-04" +string.format("%0 +2.1E", 1e-05) == "+1.0E-05" +string.format("%0 +2.1E", 1e-06) == "+1.0E-06" +string.format("%0 +2.1E", 1e-07) == "+1.0E-07" +string.format("%0 +2.1E", 123.456) == "+1.2E+02" +string.format("%0 +2.1E", 1234560000) == "+1.2E+09" +string.format("%0 +2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 +2.1E", 123.456789123) == "+1.2E+02" +string.format("%0 +2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 +2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 +6E", nan) == " +NAN" +string.format("%0 +6E", inf) == " +INF" +string.format("%0 +6E", -inf) == " -INF" +string.format("%0 +6.0E", 0) == "+0E+00" +string.format("%0 +6.0E", 1) == "+1E+00" +string.format("%0 +6.0E", -1) == "-1E+00" +string.format("%0 +6.0E", 2) == "+2E+00" +string.format("%0 +6.0E", -2) == "-2E+00" +string.format("%0 +6.0E", 3) == "+3E+00" +string.format("%0 +6.0E", -3) == "-3E+00" +string.format("%0 +6.0E", nan) == " +NAN" +string.format("%0 +6.0E", inf) == " +INF" +string.format("%0 +6.0E", -inf) == " -INF" +string.format("%0 +6.0E", 100) == "+1E+02" +string.format("%0 +6.0E", 10000) == "+1E+04" +string.format("%0 +6.0E", 100000) == "+1E+05" +string.format("%0 +6.0E", 1000000) == "+1E+06" +string.format("%0 +6.0E", 10000000) == "+1E+07" +string.format("%0 +6.0E", 0.01) == "+1E-02" +string.format("%0 +6.0E", 0.0001) == "+1E-04" +string.format("%0 +6.0E", 1e-05) == "+1E-05" +string.format("%0 +6.0E", 1e-06) == "+1E-06" +string.format("%0 +6.0E", 1e-07) == "+1E-07" +string.format("%0 +6.0E", 123.456) == "+1E+02" +string.format("%0 +6.0E", 1234560000) == "+1E+09" +string.format("%0 +6.0E", 1.23456e-05) == "+1E-05" +string.format("%0 +6.0E", 123.456789123) == "+1E+02" +string.format("%0 +6.0E", 1234567891.23) == "+1E+09" +string.format("%0 +6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 +6.1E", 0) == "+0.0E+00" +string.format("%0 +6.1E", 1) == "+1.0E+00" +string.format("%0 +6.1E", -1) == "-1.0E+00" +string.format("%0 +6.1E", 2) == "+2.0E+00" +string.format("%0 +6.1E", -2) == "-2.0E+00" +string.format("%0 +6.1E", 3) == "+3.0E+00" +string.format("%0 +6.1E", -3) == "-3.0E+00" +string.format("%0 +6.1E", nan) == " +NAN" +string.format("%0 +6.1E", inf) == " +INF" +string.format("%0 +6.1E", -inf) == " -INF" +string.format("%0 +6.1E", 100) == "+1.0E+02" +string.format("%0 +6.1E", 10000) == "+1.0E+04" +string.format("%0 +6.1E", 100000) == "+1.0E+05" +string.format("%0 +6.1E", 1000000) == "+1.0E+06" +string.format("%0 +6.1E", 10000000) == "+1.0E+07" +string.format("%0 +6.1E", 0.01) == "+1.0E-02" +string.format("%0 +6.1E", 0.0001) == "+1.0E-04" +string.format("%0 +6.1E", 1e-05) == "+1.0E-05" +string.format("%0 +6.1E", 1e-06) == "+1.0E-06" +string.format("%0 +6.1E", 1e-07) == "+1.0E-07" +string.format("%0 +6.1E", 123.456) == "+1.2E+02" +string.format("%0 +6.1E", 1234560000) == "+1.2E+09" +string.format("%0 +6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 +6.1E", 123.456789123) == "+1.2E+02" +string.format("%0 +6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 +6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 +6.6E", nan) == " +NAN" +string.format("%0 +6.6E", inf) == " +INF" +string.format("%0 +6.6E", -inf) == " -INF" +string.format("%0 +20E", 0) == "+00000000.000000E+00" +string.format("%0 +20E", 1) == "+00000001.000000E+00" +string.format("%0 +20E", -1) == "-00000001.000000E+00" +string.format("%0 +20E", 2) == "+00000002.000000E+00" +string.format("%0 +20E", -2) == "-00000002.000000E+00" +string.format("%0 +20E", 3) == "+00000003.000000E+00" +string.format("%0 +20E", -3) == "-00000003.000000E+00" +string.format("%0 +20E", nan) == " +NAN" +string.format("%0 +20E", inf) == " +INF" +string.format("%0 +20E", -inf) == " -INF" +string.format("%0 +20E", 100) == "+00000001.000000E+02" +string.format("%0 +20E", 10000) == "+00000001.000000E+04" +string.format("%0 +20E", 100000) == "+00000001.000000E+05" +string.format("%0 +20E", 1000000) == "+00000001.000000E+06" +string.format("%0 +20E", 10000000) == "+00000001.000000E+07" +string.format("%0 +20E", 0.01) == "+00000001.000000E-02" +string.format("%0 +20E", 0.0001) == "+00000001.000000E-04" +string.format("%0 +20E", 1e-05) == "+00000001.000000E-05" +string.format("%0 +20E", 1e-06) == "+00000001.000000E-06" +string.format("%0 +20E", 1e-07) == "+00000001.000000E-07" +string.format("%0 +20E", 123.456) == "+00000001.234560E+02" +string.format("%0 +20E", 1234560000) == "+00000001.234560E+09" +string.format("%0 +20E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0 +20E", 123.456789123) == "+00000001.234568E+02" +string.format("%0 +20E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0 +20E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0 +20.0E", 0) == "+000000000000000E+00" +string.format("%0 +20.0E", 1) == "+000000000000001E+00" +string.format("%0 +20.0E", -1) == "-000000000000001E+00" +string.format("%0 +20.0E", 2) == "+000000000000002E+00" +string.format("%0 +20.0E", -2) == "-000000000000002E+00" +string.format("%0 +20.0E", 3) == "+000000000000003E+00" +string.format("%0 +20.0E", -3) == "-000000000000003E+00" +string.format("%0 +20.0E", nan) == " +NAN" +string.format("%0 +20.0E", inf) == " +INF" +string.format("%0 +20.0E", -inf) == " -INF" +string.format("%0 +20.0E", 100) == "+000000000000001E+02" +string.format("%0 +20.0E", 10000) == "+000000000000001E+04" +string.format("%0 +20.0E", 100000) == "+000000000000001E+05" +string.format("%0 +20.0E", 1000000) == "+000000000000001E+06" +string.format("%0 +20.0E", 10000000) == "+000000000000001E+07" +string.format("%0 +20.0E", 0.01) == "+000000000000001E-02" +string.format("%0 +20.0E", 0.0001) == "+000000000000001E-04" +string.format("%0 +20.0E", 1e-05) == "+000000000000001E-05" +string.format("%0 +20.0E", 1e-06) == "+000000000000001E-06" +string.format("%0 +20.0E", 1e-07) == "+000000000000001E-07" +string.format("%0 +20.0E", 123.456) == "+000000000000001E+02" +string.format("%0 +20.0E", 1234560000) == "+000000000000001E+09" +string.format("%0 +20.0E", 1.23456e-05) == "+000000000000001E-05" +string.format("%0 +20.0E", 123.456789123) == "+000000000000001E+02" +string.format("%0 +20.0E", 1234567891.23) == "+000000000000001E+09" +string.format("%0 +20.0E", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0 +20.1E", 0) == "+0000000000000.0E+00" +string.format("%0 +20.1E", 1) == "+0000000000001.0E+00" +string.format("%0 +20.1E", -1) == "-0000000000001.0E+00" +string.format("%0 +20.1E", 2) == "+0000000000002.0E+00" +string.format("%0 +20.1E", -2) == "-0000000000002.0E+00" +string.format("%0 +20.1E", 3) == "+0000000000003.0E+00" +string.format("%0 +20.1E", -3) == "-0000000000003.0E+00" +string.format("%0 +20.1E", nan) == " +NAN" +string.format("%0 +20.1E", inf) == " +INF" +string.format("%0 +20.1E", -inf) == " -INF" +string.format("%0 +20.1E", 100) == "+0000000000001.0E+02" +string.format("%0 +20.1E", 10000) == "+0000000000001.0E+04" +string.format("%0 +20.1E", 100000) == "+0000000000001.0E+05" +string.format("%0 +20.1E", 1000000) == "+0000000000001.0E+06" +string.format("%0 +20.1E", 10000000) == "+0000000000001.0E+07" +string.format("%0 +20.1E", 0.01) == "+0000000000001.0E-02" +string.format("%0 +20.1E", 0.0001) == "+0000000000001.0E-04" +string.format("%0 +20.1E", 1e-05) == "+0000000000001.0E-05" +string.format("%0 +20.1E", 1e-06) == "+0000000000001.0E-06" +string.format("%0 +20.1E", 1e-07) == "+0000000000001.0E-07" +string.format("%0 +20.1E", 123.456) == "+0000000000001.2E+02" +string.format("%0 +20.1E", 1234560000) == "+0000000000001.2E+09" +string.format("%0 +20.1E", 1.23456e-05) == "+0000000000001.2E-05" +string.format("%0 +20.1E", 123.456789123) == "+0000000000001.2E+02" +string.format("%0 +20.1E", 1234567891.23) == "+0000000000001.2E+09" +string.format("%0 +20.1E", 1.23456789123e-05) == "+0000000000001.2E-05" +string.format("%0 +20.6E", 0) == "+00000000.000000E+00" +string.format("%0 +20.6E", 1) == "+00000001.000000E+00" +string.format("%0 +20.6E", -1) == "-00000001.000000E+00" +string.format("%0 +20.6E", 2) == "+00000002.000000E+00" +string.format("%0 +20.6E", -2) == "-00000002.000000E+00" +string.format("%0 +20.6E", 3) == "+00000003.000000E+00" +string.format("%0 +20.6E", -3) == "-00000003.000000E+00" +string.format("%0 +20.6E", nan) == " +NAN" +string.format("%0 +20.6E", inf) == " +INF" +string.format("%0 +20.6E", -inf) == " -INF" +string.format("%0 +20.6E", 100) == "+00000001.000000E+02" +string.format("%0 +20.6E", 10000) == "+00000001.000000E+04" +string.format("%0 +20.6E", 100000) == "+00000001.000000E+05" +string.format("%0 +20.6E", 1000000) == "+00000001.000000E+06" +string.format("%0 +20.6E", 10000000) == "+00000001.000000E+07" +string.format("%0 +20.6E", 0.01) == "+00000001.000000E-02" +string.format("%0 +20.6E", 0.0001) == "+00000001.000000E-04" +string.format("%0 +20.6E", 1e-05) == "+00000001.000000E-05" +string.format("%0 +20.6E", 1e-06) == "+00000001.000000E-06" +string.format("%0 +20.6E", 1e-07) == "+00000001.000000E-07" +string.format("%0 +20.6E", 123.456) == "+00000001.234560E+02" +string.format("%0 +20.6E", 1234560000) == "+00000001.234560E+09" +string.format("%0 +20.6E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0 +20.6E", 123.456789123) == "+00000001.234568E+02" +string.format("%0 +20.6E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0 +20.6E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0 -E", 0) == " 0.000000E+00" +string.format("%0 -E", 1) == " 1.000000E+00" +string.format("%0 -E", -1) == "-1.000000E+00" +string.format("%0 -E", 2) == " 2.000000E+00" +string.format("%0 -E", -2) == "-2.000000E+00" +string.format("%0 -E", 3) == " 3.000000E+00" +string.format("%0 -E", -3) == "-3.000000E+00" +string.format("%0 -E", nan) == " NAN" +string.format("%0 -E", inf) == " INF" +string.format("%0 -E", -inf) == "-INF" +string.format("%0 -E", 100) == " 1.000000E+02" +string.format("%0 -E", 10000) == " 1.000000E+04" +string.format("%0 -E", 100000) == " 1.000000E+05" +string.format("%0 -E", 1000000) == " 1.000000E+06" +string.format("%0 -E", 10000000) == " 1.000000E+07" +string.format("%0 -E", 0.01) == " 1.000000E-02" +string.format("%0 -E", 0.0001) == " 1.000000E-04" +string.format("%0 -E", 1e-05) == " 1.000000E-05" +string.format("%0 -E", 1e-06) == " 1.000000E-06" +string.format("%0 -E", 1e-07) == " 1.000000E-07" +string.format("%0 -E", 123.456) == " 1.234560E+02" +string.format("%0 -E", 1234560000) == " 1.234560E+09" +string.format("%0 -E", 1.23456e-05) == " 1.234560E-05" +string.format("%0 -E", 123.456789123) == " 1.234568E+02" +string.format("%0 -E", 1234567891.23) == " 1.234568E+09" +string.format("%0 -E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%0 -.0E", 0) == " 0E+00" +string.format("%0 -.0E", 1) == " 1E+00" +string.format("%0 -.0E", -1) == "-1E+00" +string.format("%0 -.0E", 2) == " 2E+00" +string.format("%0 -.0E", -2) == "-2E+00" +string.format("%0 -.0E", 3) == " 3E+00" +string.format("%0 -.0E", -3) == "-3E+00" +string.format("%0 -.0E", 100) == " 1E+02" +string.format("%0 -.0E", 10000) == " 1E+04" +string.format("%0 -.0E", 100000) == " 1E+05" +string.format("%0 -.0E", 1000000) == " 1E+06" +string.format("%0 -.0E", 10000000) == " 1E+07" +string.format("%0 -.0E", 0.01) == " 1E-02" +string.format("%0 -.0E", 0.0001) == " 1E-04" +string.format("%0 -.0E", 1e-05) == " 1E-05" +string.format("%0 -.0E", 1e-06) == " 1E-06" +string.format("%0 -.0E", 1e-07) == " 1E-07" +string.format("%0 -.0E", 123.456) == " 1E+02" +string.format("%0 -.0E", 1234560000) == " 1E+09" +string.format("%0 -.0E", 1.23456e-05) == " 1E-05" +string.format("%0 -.0E", 123.456789123) == " 1E+02" +string.format("%0 -.0E", 1234567891.23) == " 1E+09" +string.format("%0 -.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 -.1E", 0) == " 0.0E+00" +string.format("%0 -.1E", 1) == " 1.0E+00" +string.format("%0 -.1E", -1) == "-1.0E+00" +string.format("%0 -.1E", 2) == " 2.0E+00" +string.format("%0 -.1E", -2) == "-2.0E+00" +string.format("%0 -.1E", 3) == " 3.0E+00" +string.format("%0 -.1E", -3) == "-3.0E+00" +string.format("%0 -.1E", 100) == " 1.0E+02" +string.format("%0 -.1E", 10000) == " 1.0E+04" +string.format("%0 -.1E", 100000) == " 1.0E+05" +string.format("%0 -.1E", 1000000) == " 1.0E+06" +string.format("%0 -.1E", 10000000) == " 1.0E+07" +string.format("%0 -.1E", 0.01) == " 1.0E-02" +string.format("%0 -.1E", 0.0001) == " 1.0E-04" +string.format("%0 -.1E", 1e-05) == " 1.0E-05" +string.format("%0 -.1E", 1e-06) == " 1.0E-06" +string.format("%0 -.1E", 1e-07) == " 1.0E-07" +string.format("%0 -.1E", 123.456) == " 1.2E+02" +string.format("%0 -.1E", 1234560000) == " 1.2E+09" +string.format("%0 -.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 -.1E", 123.456789123) == " 1.2E+02" +string.format("%0 -.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 -.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 -1.0E", 0) == " 0E+00" +string.format("%0 -1.0E", 1) == " 1E+00" +string.format("%0 -1.0E", -1) == "-1E+00" +string.format("%0 -1.0E", 2) == " 2E+00" +string.format("%0 -1.0E", -2) == "-2E+00" +string.format("%0 -1.0E", 3) == " 3E+00" +string.format("%0 -1.0E", -3) == "-3E+00" +string.format("%0 -1.0E", 100) == " 1E+02" +string.format("%0 -1.0E", 10000) == " 1E+04" +string.format("%0 -1.0E", 100000) == " 1E+05" +string.format("%0 -1.0E", 1000000) == " 1E+06" +string.format("%0 -1.0E", 10000000) == " 1E+07" +string.format("%0 -1.0E", 0.01) == " 1E-02" +string.format("%0 -1.0E", 0.0001) == " 1E-04" +string.format("%0 -1.0E", 1e-05) == " 1E-05" +string.format("%0 -1.0E", 1e-06) == " 1E-06" +string.format("%0 -1.0E", 1e-07) == " 1E-07" +string.format("%0 -1.0E", 123.456) == " 1E+02" +string.format("%0 -1.0E", 1234560000) == " 1E+09" +string.format("%0 -1.0E", 1.23456e-05) == " 1E-05" +string.format("%0 -1.0E", 123.456789123) == " 1E+02" +string.format("%0 -1.0E", 1234567891.23) == " 1E+09" +string.format("%0 -1.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 -1.1E", 0) == " 0.0E+00" +string.format("%0 -1.1E", 1) == " 1.0E+00" +string.format("%0 -1.1E", -1) == "-1.0E+00" +string.format("%0 -1.1E", 2) == " 2.0E+00" +string.format("%0 -1.1E", -2) == "-2.0E+00" +string.format("%0 -1.1E", 3) == " 3.0E+00" +string.format("%0 -1.1E", -3) == "-3.0E+00" +string.format("%0 -1.1E", 100) == " 1.0E+02" +string.format("%0 -1.1E", 10000) == " 1.0E+04" +string.format("%0 -1.1E", 100000) == " 1.0E+05" +string.format("%0 -1.1E", 1000000) == " 1.0E+06" +string.format("%0 -1.1E", 10000000) == " 1.0E+07" +string.format("%0 -1.1E", 0.01) == " 1.0E-02" +string.format("%0 -1.1E", 0.0001) == " 1.0E-04" +string.format("%0 -1.1E", 1e-05) == " 1.0E-05" +string.format("%0 -1.1E", 1e-06) == " 1.0E-06" +string.format("%0 -1.1E", 1e-07) == " 1.0E-07" +string.format("%0 -1.1E", 123.456) == " 1.2E+02" +string.format("%0 -1.1E", 1234560000) == " 1.2E+09" +string.format("%0 -1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 -1.1E", 123.456789123) == " 1.2E+02" +string.format("%0 -1.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 -1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 -2.0E", 0) == " 0E+00" +string.format("%0 -2.0E", 1) == " 1E+00" +string.format("%0 -2.0E", -1) == "-1E+00" +string.format("%0 -2.0E", 2) == " 2E+00" +string.format("%0 -2.0E", -2) == "-2E+00" +string.format("%0 -2.0E", 3) == " 3E+00" +string.format("%0 -2.0E", -3) == "-3E+00" +string.format("%0 -2.0E", 100) == " 1E+02" +string.format("%0 -2.0E", 10000) == " 1E+04" +string.format("%0 -2.0E", 100000) == " 1E+05" +string.format("%0 -2.0E", 1000000) == " 1E+06" +string.format("%0 -2.0E", 10000000) == " 1E+07" +string.format("%0 -2.0E", 0.01) == " 1E-02" +string.format("%0 -2.0E", 0.0001) == " 1E-04" +string.format("%0 -2.0E", 1e-05) == " 1E-05" +string.format("%0 -2.0E", 1e-06) == " 1E-06" +string.format("%0 -2.0E", 1e-07) == " 1E-07" +string.format("%0 -2.0E", 123.456) == " 1E+02" +string.format("%0 -2.0E", 1234560000) == " 1E+09" +string.format("%0 -2.0E", 1.23456e-05) == " 1E-05" +string.format("%0 -2.0E", 123.456789123) == " 1E+02" +string.format("%0 -2.0E", 1234567891.23) == " 1E+09" +string.format("%0 -2.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 -2.1E", 0) == " 0.0E+00" +string.format("%0 -2.1E", 1) == " 1.0E+00" +string.format("%0 -2.1E", -1) == "-1.0E+00" +string.format("%0 -2.1E", 2) == " 2.0E+00" +string.format("%0 -2.1E", -2) == "-2.0E+00" +string.format("%0 -2.1E", 3) == " 3.0E+00" +string.format("%0 -2.1E", -3) == "-3.0E+00" +string.format("%0 -2.1E", 100) == " 1.0E+02" +string.format("%0 -2.1E", 10000) == " 1.0E+04" +string.format("%0 -2.1E", 100000) == " 1.0E+05" +string.format("%0 -2.1E", 1000000) == " 1.0E+06" +string.format("%0 -2.1E", 10000000) == " 1.0E+07" +string.format("%0 -2.1E", 0.01) == " 1.0E-02" +string.format("%0 -2.1E", 0.0001) == " 1.0E-04" +string.format("%0 -2.1E", 1e-05) == " 1.0E-05" +string.format("%0 -2.1E", 1e-06) == " 1.0E-06" +string.format("%0 -2.1E", 1e-07) == " 1.0E-07" +string.format("%0 -2.1E", 123.456) == " 1.2E+02" +string.format("%0 -2.1E", 1234560000) == " 1.2E+09" +string.format("%0 -2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 -2.1E", 123.456789123) == " 1.2E+02" +string.format("%0 -2.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 -2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 -6E", nan) == " NAN " +string.format("%0 -6E", inf) == " INF " +string.format("%0 -6E", -inf) == "-INF " +string.format("%0 -6.0E", 0) == " 0E+00" +string.format("%0 -6.0E", 1) == " 1E+00" +string.format("%0 -6.0E", -1) == "-1E+00" +string.format("%0 -6.0E", 2) == " 2E+00" +string.format("%0 -6.0E", -2) == "-2E+00" +string.format("%0 -6.0E", 3) == " 3E+00" +string.format("%0 -6.0E", -3) == "-3E+00" +string.format("%0 -6.0E", nan) == " NAN " +string.format("%0 -6.0E", inf) == " INF " +string.format("%0 -6.0E", -inf) == "-INF " +string.format("%0 -6.0E", 100) == " 1E+02" +string.format("%0 -6.0E", 10000) == " 1E+04" +string.format("%0 -6.0E", 100000) == " 1E+05" +string.format("%0 -6.0E", 1000000) == " 1E+06" +string.format("%0 -6.0E", 10000000) == " 1E+07" +string.format("%0 -6.0E", 0.01) == " 1E-02" +string.format("%0 -6.0E", 0.0001) == " 1E-04" +string.format("%0 -6.0E", 1e-05) == " 1E-05" +string.format("%0 -6.0E", 1e-06) == " 1E-06" +string.format("%0 -6.0E", 1e-07) == " 1E-07" +string.format("%0 -6.0E", 123.456) == " 1E+02" +string.format("%0 -6.0E", 1234560000) == " 1E+09" +string.format("%0 -6.0E", 1.23456e-05) == " 1E-05" +string.format("%0 -6.0E", 123.456789123) == " 1E+02" +string.format("%0 -6.0E", 1234567891.23) == " 1E+09" +string.format("%0 -6.0E", 1.23456789123e-05) == " 1E-05" +string.format("%0 -6.1E", 0) == " 0.0E+00" +string.format("%0 -6.1E", 1) == " 1.0E+00" +string.format("%0 -6.1E", -1) == "-1.0E+00" +string.format("%0 -6.1E", 2) == " 2.0E+00" +string.format("%0 -6.1E", -2) == "-2.0E+00" +string.format("%0 -6.1E", 3) == " 3.0E+00" +string.format("%0 -6.1E", -3) == "-3.0E+00" +string.format("%0 -6.1E", nan) == " NAN " +string.format("%0 -6.1E", inf) == " INF " +string.format("%0 -6.1E", -inf) == "-INF " +string.format("%0 -6.1E", 100) == " 1.0E+02" +string.format("%0 -6.1E", 10000) == " 1.0E+04" +string.format("%0 -6.1E", 100000) == " 1.0E+05" +string.format("%0 -6.1E", 1000000) == " 1.0E+06" +string.format("%0 -6.1E", 10000000) == " 1.0E+07" +string.format("%0 -6.1E", 0.01) == " 1.0E-02" +string.format("%0 -6.1E", 0.0001) == " 1.0E-04" +string.format("%0 -6.1E", 1e-05) == " 1.0E-05" +string.format("%0 -6.1E", 1e-06) == " 1.0E-06" +string.format("%0 -6.1E", 1e-07) == " 1.0E-07" +string.format("%0 -6.1E", 123.456) == " 1.2E+02" +string.format("%0 -6.1E", 1234560000) == " 1.2E+09" +string.format("%0 -6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0 -6.1E", 123.456789123) == " 1.2E+02" +string.format("%0 -6.1E", 1234567891.23) == " 1.2E+09" +string.format("%0 -6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0 -6.6E", nan) == " NAN " +string.format("%0 -6.6E", inf) == " INF " +string.format("%0 -6.6E", -inf) == "-INF " +string.format("%0 -20E", 0) == " 0.000000E+00 " +string.format("%0 -20E", 1) == " 1.000000E+00 " +string.format("%0 -20E", -1) == "-1.000000E+00 " +string.format("%0 -20E", 2) == " 2.000000E+00 " +string.format("%0 -20E", -2) == "-2.000000E+00 " +string.format("%0 -20E", 3) == " 3.000000E+00 " +string.format("%0 -20E", -3) == "-3.000000E+00 " +string.format("%0 -20E", nan) == " NAN " +string.format("%0 -20E", inf) == " INF " +string.format("%0 -20E", -inf) == "-INF " +string.format("%0 -20E", 100) == " 1.000000E+02 " +string.format("%0 -20E", 10000) == " 1.000000E+04 " +string.format("%0 -20E", 100000) == " 1.000000E+05 " +string.format("%0 -20E", 1000000) == " 1.000000E+06 " +string.format("%0 -20E", 10000000) == " 1.000000E+07 " +string.format("%0 -20E", 0.01) == " 1.000000E-02 " +string.format("%0 -20E", 0.0001) == " 1.000000E-04 " +string.format("%0 -20E", 1e-05) == " 1.000000E-05 " +string.format("%0 -20E", 1e-06) == " 1.000000E-06 " +string.format("%0 -20E", 1e-07) == " 1.000000E-07 " +string.format("%0 -20E", 123.456) == " 1.234560E+02 " +string.format("%0 -20E", 1234560000) == " 1.234560E+09 " +string.format("%0 -20E", 1.23456e-05) == " 1.234560E-05 " +string.format("%0 -20E", 123.456789123) == " 1.234568E+02 " +string.format("%0 -20E", 1234567891.23) == " 1.234568E+09 " +string.format("%0 -20E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%0 -20.0E", 0) == " 0E+00 " +string.format("%0 -20.0E", 1) == " 1E+00 " +string.format("%0 -20.0E", -1) == "-1E+00 " +string.format("%0 -20.0E", 2) == " 2E+00 " +string.format("%0 -20.0E", -2) == "-2E+00 " +string.format("%0 -20.0E", 3) == " 3E+00 " +string.format("%0 -20.0E", -3) == "-3E+00 " +string.format("%0 -20.0E", nan) == " NAN " +string.format("%0 -20.0E", inf) == " INF " +string.format("%0 -20.0E", -inf) == "-INF " +string.format("%0 -20.0E", 100) == " 1E+02 " +string.format("%0 -20.0E", 10000) == " 1E+04 " +string.format("%0 -20.0E", 100000) == " 1E+05 " +string.format("%0 -20.0E", 1000000) == " 1E+06 " +string.format("%0 -20.0E", 10000000) == " 1E+07 " +string.format("%0 -20.0E", 0.01) == " 1E-02 " +string.format("%0 -20.0E", 0.0001) == " 1E-04 " +string.format("%0 -20.0E", 1e-05) == " 1E-05 " +string.format("%0 -20.0E", 1e-06) == " 1E-06 " +string.format("%0 -20.0E", 1e-07) == " 1E-07 " +string.format("%0 -20.0E", 123.456) == " 1E+02 " +string.format("%0 -20.0E", 1234560000) == " 1E+09 " +string.format("%0 -20.0E", 1.23456e-05) == " 1E-05 " +string.format("%0 -20.0E", 123.456789123) == " 1E+02 " +string.format("%0 -20.0E", 1234567891.23) == " 1E+09 " +string.format("%0 -20.0E", 1.23456789123e-05) == " 1E-05 " +string.format("%0 -20.1E", 0) == " 0.0E+00 " +string.format("%0 -20.1E", 1) == " 1.0E+00 " +string.format("%0 -20.1E", -1) == "-1.0E+00 " +string.format("%0 -20.1E", 2) == " 2.0E+00 " +string.format("%0 -20.1E", -2) == "-2.0E+00 " +string.format("%0 -20.1E", 3) == " 3.0E+00 " +string.format("%0 -20.1E", -3) == "-3.0E+00 " +string.format("%0 -20.1E", nan) == " NAN " +string.format("%0 -20.1E", inf) == " INF " +string.format("%0 -20.1E", -inf) == "-INF " +string.format("%0 -20.1E", 100) == " 1.0E+02 " +string.format("%0 -20.1E", 10000) == " 1.0E+04 " +string.format("%0 -20.1E", 100000) == " 1.0E+05 " +string.format("%0 -20.1E", 1000000) == " 1.0E+06 " +string.format("%0 -20.1E", 10000000) == " 1.0E+07 " +string.format("%0 -20.1E", 0.01) == " 1.0E-02 " +string.format("%0 -20.1E", 0.0001) == " 1.0E-04 " +string.format("%0 -20.1E", 1e-05) == " 1.0E-05 " +string.format("%0 -20.1E", 1e-06) == " 1.0E-06 " +string.format("%0 -20.1E", 1e-07) == " 1.0E-07 " +string.format("%0 -20.1E", 123.456) == " 1.2E+02 " +string.format("%0 -20.1E", 1234560000) == " 1.2E+09 " +string.format("%0 -20.1E", 1.23456e-05) == " 1.2E-05 " +string.format("%0 -20.1E", 123.456789123) == " 1.2E+02 " +string.format("%0 -20.1E", 1234567891.23) == " 1.2E+09 " +string.format("%0 -20.1E", 1.23456789123e-05) == " 1.2E-05 " +string.format("%0 -20.6E", 0) == " 0.000000E+00 " +string.format("%0 -20.6E", 1) == " 1.000000E+00 " +string.format("%0 -20.6E", -1) == "-1.000000E+00 " +string.format("%0 -20.6E", 2) == " 2.000000E+00 " +string.format("%0 -20.6E", -2) == "-2.000000E+00 " +string.format("%0 -20.6E", 3) == " 3.000000E+00 " +string.format("%0 -20.6E", -3) == "-3.000000E+00 " +string.format("%0 -20.6E", nan) == " NAN " +string.format("%0 -20.6E", inf) == " INF " +string.format("%0 -20.6E", -inf) == "-INF " +string.format("%0 -20.6E", 100) == " 1.000000E+02 " +string.format("%0 -20.6E", 10000) == " 1.000000E+04 " +string.format("%0 -20.6E", 100000) == " 1.000000E+05 " +string.format("%0 -20.6E", 1000000) == " 1.000000E+06 " +string.format("%0 -20.6E", 10000000) == " 1.000000E+07 " +string.format("%0 -20.6E", 0.01) == " 1.000000E-02 " +string.format("%0 -20.6E", 0.0001) == " 1.000000E-04 " +string.format("%0 -20.6E", 1e-05) == " 1.000000E-05 " +string.format("%0 -20.6E", 1e-06) == " 1.000000E-06 " +string.format("%0 -20.6E", 1e-07) == " 1.000000E-07 " +string.format("%0 -20.6E", 123.456) == " 1.234560E+02 " +string.format("%0 -20.6E", 1234560000) == " 1.234560E+09 " +string.format("%0 -20.6E", 1.23456e-05) == " 1.234560E-05 " +string.format("%0 -20.6E", 123.456789123) == " 1.234568E+02 " +string.format("%0 -20.6E", 1234567891.23) == " 1.234568E+09 " +string.format("%0 -20.6E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%0 -+E", 0) == "+0.000000E+00" +string.format("%0 -+E", 1) == "+1.000000E+00" +string.format("%0 -+E", -1) == "-1.000000E+00" +string.format("%0 -+E", 2) == "+2.000000E+00" +string.format("%0 -+E", -2) == "-2.000000E+00" +string.format("%0 -+E", 3) == "+3.000000E+00" +string.format("%0 -+E", -3) == "-3.000000E+00" +string.format("%0 -+E", nan) == "+NAN" +string.format("%0 -+E", inf) == "+INF" +string.format("%0 -+E", -inf) == "-INF" +string.format("%0 -+E", 100) == "+1.000000E+02" +string.format("%0 -+E", 10000) == "+1.000000E+04" +string.format("%0 -+E", 100000) == "+1.000000E+05" +string.format("%0 -+E", 1000000) == "+1.000000E+06" +string.format("%0 -+E", 10000000) == "+1.000000E+07" +string.format("%0 -+E", 0.01) == "+1.000000E-02" +string.format("%0 -+E", 0.0001) == "+1.000000E-04" +string.format("%0 -+E", 1e-05) == "+1.000000E-05" +string.format("%0 -+E", 1e-06) == "+1.000000E-06" +string.format("%0 -+E", 1e-07) == "+1.000000E-07" +string.format("%0 -+E", 123.456) == "+1.234560E+02" +string.format("%0 -+E", 1234560000) == "+1.234560E+09" +string.format("%0 -+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0 -+E", 123.456789123) == "+1.234568E+02" +string.format("%0 -+E", 1234567891.23) == "+1.234568E+09" +string.format("%0 -+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0 -+.0E", 0) == "+0E+00" +string.format("%0 -+.0E", 1) == "+1E+00" +string.format("%0 -+.0E", -1) == "-1E+00" +string.format("%0 -+.0E", 2) == "+2E+00" +string.format("%0 -+.0E", -2) == "-2E+00" +string.format("%0 -+.0E", 3) == "+3E+00" +string.format("%0 -+.0E", -3) == "-3E+00" +string.format("%0 -+.0E", 100) == "+1E+02" +string.format("%0 -+.0E", 10000) == "+1E+04" +string.format("%0 -+.0E", 100000) == "+1E+05" +string.format("%0 -+.0E", 1000000) == "+1E+06" +string.format("%0 -+.0E", 10000000) == "+1E+07" +string.format("%0 -+.0E", 0.01) == "+1E-02" +string.format("%0 -+.0E", 0.0001) == "+1E-04" +string.format("%0 -+.0E", 1e-05) == "+1E-05" +string.format("%0 -+.0E", 1e-06) == "+1E-06" +string.format("%0 -+.0E", 1e-07) == "+1E-07" +string.format("%0 -+.0E", 123.456) == "+1E+02" +string.format("%0 -+.0E", 1234560000) == "+1E+09" +string.format("%0 -+.0E", 1.23456e-05) == "+1E-05" +string.format("%0 -+.0E", 123.456789123) == "+1E+02" +string.format("%0 -+.0E", 1234567891.23) == "+1E+09" +string.format("%0 -+.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+.1E", 0) == "+0.0E+00" +string.format("%0 -+.1E", 1) == "+1.0E+00" +string.format("%0 -+.1E", -1) == "-1.0E+00" +string.format("%0 -+.1E", 2) == "+2.0E+00" +string.format("%0 -+.1E", -2) == "-2.0E+00" +string.format("%0 -+.1E", 3) == "+3.0E+00" +string.format("%0 -+.1E", -3) == "-3.0E+00" +string.format("%0 -+.1E", 100) == "+1.0E+02" +string.format("%0 -+.1E", 10000) == "+1.0E+04" +string.format("%0 -+.1E", 100000) == "+1.0E+05" +string.format("%0 -+.1E", 1000000) == "+1.0E+06" +string.format("%0 -+.1E", 10000000) == "+1.0E+07" +string.format("%0 -+.1E", 0.01) == "+1.0E-02" +string.format("%0 -+.1E", 0.0001) == "+1.0E-04" +string.format("%0 -+.1E", 1e-05) == "+1.0E-05" +string.format("%0 -+.1E", 1e-06) == "+1.0E-06" +string.format("%0 -+.1E", 1e-07) == "+1.0E-07" +string.format("%0 -+.1E", 123.456) == "+1.2E+02" +string.format("%0 -+.1E", 1234560000) == "+1.2E+09" +string.format("%0 -+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 -+.1E", 123.456789123) == "+1.2E+02" +string.format("%0 -+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 -+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 -+1.0E", 0) == "+0E+00" +string.format("%0 -+1.0E", 1) == "+1E+00" +string.format("%0 -+1.0E", -1) == "-1E+00" +string.format("%0 -+1.0E", 2) == "+2E+00" +string.format("%0 -+1.0E", -2) == "-2E+00" +string.format("%0 -+1.0E", 3) == "+3E+00" +string.format("%0 -+1.0E", -3) == "-3E+00" +string.format("%0 -+1.0E", 100) == "+1E+02" +string.format("%0 -+1.0E", 10000) == "+1E+04" +string.format("%0 -+1.0E", 100000) == "+1E+05" +string.format("%0 -+1.0E", 1000000) == "+1E+06" +string.format("%0 -+1.0E", 10000000) == "+1E+07" +string.format("%0 -+1.0E", 0.01) == "+1E-02" +string.format("%0 -+1.0E", 0.0001) == "+1E-04" +string.format("%0 -+1.0E", 1e-05) == "+1E-05" +string.format("%0 -+1.0E", 1e-06) == "+1E-06" +string.format("%0 -+1.0E", 1e-07) == "+1E-07" +string.format("%0 -+1.0E", 123.456) == "+1E+02" +string.format("%0 -+1.0E", 1234560000) == "+1E+09" +string.format("%0 -+1.0E", 1.23456e-05) == "+1E-05" +string.format("%0 -+1.0E", 123.456789123) == "+1E+02" +string.format("%0 -+1.0E", 1234567891.23) == "+1E+09" +string.format("%0 -+1.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+1.1E", 0) == "+0.0E+00" +string.format("%0 -+1.1E", 1) == "+1.0E+00" +string.format("%0 -+1.1E", -1) == "-1.0E+00" +string.format("%0 -+1.1E", 2) == "+2.0E+00" +string.format("%0 -+1.1E", -2) == "-2.0E+00" +string.format("%0 -+1.1E", 3) == "+3.0E+00" +string.format("%0 -+1.1E", -3) == "-3.0E+00" +string.format("%0 -+1.1E", 100) == "+1.0E+02" +string.format("%0 -+1.1E", 10000) == "+1.0E+04" +string.format("%0 -+1.1E", 100000) == "+1.0E+05" +string.format("%0 -+1.1E", 1000000) == "+1.0E+06" +string.format("%0 -+1.1E", 10000000) == "+1.0E+07" +string.format("%0 -+1.1E", 0.01) == "+1.0E-02" +string.format("%0 -+1.1E", 0.0001) == "+1.0E-04" +string.format("%0 -+1.1E", 1e-05) == "+1.0E-05" +string.format("%0 -+1.1E", 1e-06) == "+1.0E-06" +string.format("%0 -+1.1E", 1e-07) == "+1.0E-07" +string.format("%0 -+1.1E", 123.456) == "+1.2E+02" +string.format("%0 -+1.1E", 1234560000) == "+1.2E+09" +string.format("%0 -+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 -+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0 -+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 -+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 -+2.0E", 0) == "+0E+00" +string.format("%0 -+2.0E", 1) == "+1E+00" +string.format("%0 -+2.0E", -1) == "-1E+00" +string.format("%0 -+2.0E", 2) == "+2E+00" +string.format("%0 -+2.0E", -2) == "-2E+00" +string.format("%0 -+2.0E", 3) == "+3E+00" +string.format("%0 -+2.0E", -3) == "-3E+00" +string.format("%0 -+2.0E", 100) == "+1E+02" +string.format("%0 -+2.0E", 10000) == "+1E+04" +string.format("%0 -+2.0E", 100000) == "+1E+05" +string.format("%0 -+2.0E", 1000000) == "+1E+06" +string.format("%0 -+2.0E", 10000000) == "+1E+07" +string.format("%0 -+2.0E", 0.01) == "+1E-02" +string.format("%0 -+2.0E", 0.0001) == "+1E-04" +string.format("%0 -+2.0E", 1e-05) == "+1E-05" +string.format("%0 -+2.0E", 1e-06) == "+1E-06" +string.format("%0 -+2.0E", 1e-07) == "+1E-07" +string.format("%0 -+2.0E", 123.456) == "+1E+02" +string.format("%0 -+2.0E", 1234560000) == "+1E+09" +string.format("%0 -+2.0E", 1.23456e-05) == "+1E-05" +string.format("%0 -+2.0E", 123.456789123) == "+1E+02" +string.format("%0 -+2.0E", 1234567891.23) == "+1E+09" +string.format("%0 -+2.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+2.1E", 0) == "+0.0E+00" +string.format("%0 -+2.1E", 1) == "+1.0E+00" +string.format("%0 -+2.1E", -1) == "-1.0E+00" +string.format("%0 -+2.1E", 2) == "+2.0E+00" +string.format("%0 -+2.1E", -2) == "-2.0E+00" +string.format("%0 -+2.1E", 3) == "+3.0E+00" +string.format("%0 -+2.1E", -3) == "-3.0E+00" +string.format("%0 -+2.1E", 100) == "+1.0E+02" +string.format("%0 -+2.1E", 10000) == "+1.0E+04" +string.format("%0 -+2.1E", 100000) == "+1.0E+05" +string.format("%0 -+2.1E", 1000000) == "+1.0E+06" +string.format("%0 -+2.1E", 10000000) == "+1.0E+07" +string.format("%0 -+2.1E", 0.01) == "+1.0E-02" +string.format("%0 -+2.1E", 0.0001) == "+1.0E-04" +string.format("%0 -+2.1E", 1e-05) == "+1.0E-05" +string.format("%0 -+2.1E", 1e-06) == "+1.0E-06" +string.format("%0 -+2.1E", 1e-07) == "+1.0E-07" +string.format("%0 -+2.1E", 123.456) == "+1.2E+02" +string.format("%0 -+2.1E", 1234560000) == "+1.2E+09" +string.format("%0 -+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 -+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0 -+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 -+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 -+6E", nan) == "+NAN " +string.format("%0 -+6E", inf) == "+INF " +string.format("%0 -+6E", -inf) == "-INF " +string.format("%0 -+6.0E", 0) == "+0E+00" +string.format("%0 -+6.0E", 1) == "+1E+00" +string.format("%0 -+6.0E", -1) == "-1E+00" +string.format("%0 -+6.0E", 2) == "+2E+00" +string.format("%0 -+6.0E", -2) == "-2E+00" +string.format("%0 -+6.0E", 3) == "+3E+00" +string.format("%0 -+6.0E", -3) == "-3E+00" +string.format("%0 -+6.0E", nan) == "+NAN " +string.format("%0 -+6.0E", inf) == "+INF " +string.format("%0 -+6.0E", -inf) == "-INF " +string.format("%0 -+6.0E", 100) == "+1E+02" +string.format("%0 -+6.0E", 10000) == "+1E+04" +string.format("%0 -+6.0E", 100000) == "+1E+05" +string.format("%0 -+6.0E", 1000000) == "+1E+06" +string.format("%0 -+6.0E", 10000000) == "+1E+07" +string.format("%0 -+6.0E", 0.01) == "+1E-02" +string.format("%0 -+6.0E", 0.0001) == "+1E-04" +string.format("%0 -+6.0E", 1e-05) == "+1E-05" +string.format("%0 -+6.0E", 1e-06) == "+1E-06" +string.format("%0 -+6.0E", 1e-07) == "+1E-07" +string.format("%0 -+6.0E", 123.456) == "+1E+02" +string.format("%0 -+6.0E", 1234560000) == "+1E+09" +string.format("%0 -+6.0E", 1.23456e-05) == "+1E-05" +string.format("%0 -+6.0E", 123.456789123) == "+1E+02" +string.format("%0 -+6.0E", 1234567891.23) == "+1E+09" +string.format("%0 -+6.0E", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+6.1E", 0) == "+0.0E+00" +string.format("%0 -+6.1E", 1) == "+1.0E+00" +string.format("%0 -+6.1E", -1) == "-1.0E+00" +string.format("%0 -+6.1E", 2) == "+2.0E+00" +string.format("%0 -+6.1E", -2) == "-2.0E+00" +string.format("%0 -+6.1E", 3) == "+3.0E+00" +string.format("%0 -+6.1E", -3) == "-3.0E+00" +string.format("%0 -+6.1E", nan) == "+NAN " +string.format("%0 -+6.1E", inf) == "+INF " +string.format("%0 -+6.1E", -inf) == "-INF " +string.format("%0 -+6.1E", 100) == "+1.0E+02" +string.format("%0 -+6.1E", 10000) == "+1.0E+04" +string.format("%0 -+6.1E", 100000) == "+1.0E+05" +string.format("%0 -+6.1E", 1000000) == "+1.0E+06" +string.format("%0 -+6.1E", 10000000) == "+1.0E+07" +string.format("%0 -+6.1E", 0.01) == "+1.0E-02" +string.format("%0 -+6.1E", 0.0001) == "+1.0E-04" +string.format("%0 -+6.1E", 1e-05) == "+1.0E-05" +string.format("%0 -+6.1E", 1e-06) == "+1.0E-06" +string.format("%0 -+6.1E", 1e-07) == "+1.0E-07" +string.format("%0 -+6.1E", 123.456) == "+1.2E+02" +string.format("%0 -+6.1E", 1234560000) == "+1.2E+09" +string.format("%0 -+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0 -+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0 -+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0 -+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0 -+6.6E", nan) == "+NAN " +string.format("%0 -+6.6E", inf) == "+INF " +string.format("%0 -+6.6E", -inf) == "-INF " +string.format("%0 -+20E", 0) == "+0.000000E+00 " +string.format("%0 -+20E", 1) == "+1.000000E+00 " +string.format("%0 -+20E", -1) == "-1.000000E+00 " +string.format("%0 -+20E", 2) == "+2.000000E+00 " +string.format("%0 -+20E", -2) == "-2.000000E+00 " +string.format("%0 -+20E", 3) == "+3.000000E+00 " +string.format("%0 -+20E", -3) == "-3.000000E+00 " +string.format("%0 -+20E", nan) == "+NAN " +string.format("%0 -+20E", inf) == "+INF " +string.format("%0 -+20E", -inf) == "-INF " +string.format("%0 -+20E", 100) == "+1.000000E+02 " +string.format("%0 -+20E", 10000) == "+1.000000E+04 " +string.format("%0 -+20E", 100000) == "+1.000000E+05 " +string.format("%0 -+20E", 1000000) == "+1.000000E+06 " +string.format("%0 -+20E", 10000000) == "+1.000000E+07 " +string.format("%0 -+20E", 0.01) == "+1.000000E-02 " +string.format("%0 -+20E", 0.0001) == "+1.000000E-04 " +string.format("%0 -+20E", 1e-05) == "+1.000000E-05 " +string.format("%0 -+20E", 1e-06) == "+1.000000E-06 " +string.format("%0 -+20E", 1e-07) == "+1.000000E-07 " +string.format("%0 -+20E", 123.456) == "+1.234560E+02 " +string.format("%0 -+20E", 1234560000) == "+1.234560E+09 " +string.format("%0 -+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0 -+20E", 123.456789123) == "+1.234568E+02 " +string.format("%0 -+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%0 -+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0 -+20.0E", 0) == "+0E+00 " +string.format("%0 -+20.0E", 1) == "+1E+00 " +string.format("%0 -+20.0E", -1) == "-1E+00 " +string.format("%0 -+20.0E", 2) == "+2E+00 " +string.format("%0 -+20.0E", -2) == "-2E+00 " +string.format("%0 -+20.0E", 3) == "+3E+00 " +string.format("%0 -+20.0E", -3) == "-3E+00 " +string.format("%0 -+20.0E", nan) == "+NAN " +string.format("%0 -+20.0E", inf) == "+INF " +string.format("%0 -+20.0E", -inf) == "-INF " +string.format("%0 -+20.0E", 100) == "+1E+02 " +string.format("%0 -+20.0E", 10000) == "+1E+04 " +string.format("%0 -+20.0E", 100000) == "+1E+05 " +string.format("%0 -+20.0E", 1000000) == "+1E+06 " +string.format("%0 -+20.0E", 10000000) == "+1E+07 " +string.format("%0 -+20.0E", 0.01) == "+1E-02 " +string.format("%0 -+20.0E", 0.0001) == "+1E-04 " +string.format("%0 -+20.0E", 1e-05) == "+1E-05 " +string.format("%0 -+20.0E", 1e-06) == "+1E-06 " +string.format("%0 -+20.0E", 1e-07) == "+1E-07 " +string.format("%0 -+20.0E", 123.456) == "+1E+02 " +string.format("%0 -+20.0E", 1234560000) == "+1E+09 " +string.format("%0 -+20.0E", 1.23456e-05) == "+1E-05 " +string.format("%0 -+20.0E", 123.456789123) == "+1E+02 " +string.format("%0 -+20.0E", 1234567891.23) == "+1E+09 " +string.format("%0 -+20.0E", 1.23456789123e-05) == "+1E-05 " +string.format("%0 -+20.1E", 0) == "+0.0E+00 " +string.format("%0 -+20.1E", 1) == "+1.0E+00 " +string.format("%0 -+20.1E", -1) == "-1.0E+00 " +string.format("%0 -+20.1E", 2) == "+2.0E+00 " +string.format("%0 -+20.1E", -2) == "-2.0E+00 " +string.format("%0 -+20.1E", 3) == "+3.0E+00 " +string.format("%0 -+20.1E", -3) == "-3.0E+00 " +string.format("%0 -+20.1E", nan) == "+NAN " +string.format("%0 -+20.1E", inf) == "+INF " +string.format("%0 -+20.1E", -inf) == "-INF " +string.format("%0 -+20.1E", 100) == "+1.0E+02 " +string.format("%0 -+20.1E", 10000) == "+1.0E+04 " +string.format("%0 -+20.1E", 100000) == "+1.0E+05 " +string.format("%0 -+20.1E", 1000000) == "+1.0E+06 " +string.format("%0 -+20.1E", 10000000) == "+1.0E+07 " +string.format("%0 -+20.1E", 0.01) == "+1.0E-02 " +string.format("%0 -+20.1E", 0.0001) == "+1.0E-04 " +string.format("%0 -+20.1E", 1e-05) == "+1.0E-05 " +string.format("%0 -+20.1E", 1e-06) == "+1.0E-06 " +string.format("%0 -+20.1E", 1e-07) == "+1.0E-07 " +string.format("%0 -+20.1E", 123.456) == "+1.2E+02 " +string.format("%0 -+20.1E", 1234560000) == "+1.2E+09 " +string.format("%0 -+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%0 -+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%0 -+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%0 -+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%0 -+20.6E", 0) == "+0.000000E+00 " +string.format("%0 -+20.6E", 1) == "+1.000000E+00 " +string.format("%0 -+20.6E", -1) == "-1.000000E+00 " +string.format("%0 -+20.6E", 2) == "+2.000000E+00 " +string.format("%0 -+20.6E", -2) == "-2.000000E+00 " +string.format("%0 -+20.6E", 3) == "+3.000000E+00 " +string.format("%0 -+20.6E", -3) == "-3.000000E+00 " +string.format("%0 -+20.6E", nan) == "+NAN " +string.format("%0 -+20.6E", inf) == "+INF " +string.format("%0 -+20.6E", -inf) == "-INF " +string.format("%0 -+20.6E", 100) == "+1.000000E+02 " +string.format("%0 -+20.6E", 10000) == "+1.000000E+04 " +string.format("%0 -+20.6E", 100000) == "+1.000000E+05 " +string.format("%0 -+20.6E", 1000000) == "+1.000000E+06 " +string.format("%0 -+20.6E", 10000000) == "+1.000000E+07 " +string.format("%0 -+20.6E", 0.01) == "+1.000000E-02 " +string.format("%0 -+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%0 -+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%0 -+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%0 -+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%0 -+20.6E", 123.456) == "+1.234560E+02 " +string.format("%0 -+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%0 -+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0 -+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%0 -+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%0 -+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0#E", 0) == "0.000000E+00" +string.format("%0#E", 1) == "1.000000E+00" +string.format("%0#E", -1) == "-1.000000E+00" +string.format("%0#E", 2) == "2.000000E+00" +string.format("%0#E", -2) == "-2.000000E+00" +string.format("%0#E", 3) == "3.000000E+00" +string.format("%0#E", -3) == "-3.000000E+00" +string.format("%0#E", nan) == "NAN" +string.format("%0#E", inf) == "INF" +string.format("%0#E", -inf) == "-INF" +string.format("%0#E", 100) == "1.000000E+02" +string.format("%0#E", 10000) == "1.000000E+04" +string.format("%0#E", 100000) == "1.000000E+05" +string.format("%0#E", 1000000) == "1.000000E+06" +string.format("%0#E", 10000000) == "1.000000E+07" +string.format("%0#E", 0.01) == "1.000000E-02" +string.format("%0#E", 0.0001) == "1.000000E-04" +string.format("%0#E", 1e-05) == "1.000000E-05" +string.format("%0#E", 1e-06) == "1.000000E-06" +string.format("%0#E", 1e-07) == "1.000000E-07" +string.format("%0#E", 123.456) == "1.234560E+02" +string.format("%0#E", 1234560000) == "1.234560E+09" +string.format("%0#E", 1.23456e-05) == "1.234560E-05" +string.format("%0#E", 123.456789123) == "1.234568E+02" +string.format("%0#E", 1234567891.23) == "1.234568E+09" +string.format("%0#E", 1.23456789123e-05) == "1.234568E-05" +string.format("%0#.0E", 0) == "0.E+00" +string.format("%0#.0E", 1) == "1.E+00" +string.format("%0#.0E", -1) == "-1.E+00" +string.format("%0#.0E", 2) == "2.E+00" +string.format("%0#.0E", -2) == "-2.E+00" +string.format("%0#.0E", 3) == "3.E+00" +string.format("%0#.0E", -3) == "-3.E+00" +string.format("%0#.0E", 100) == "1.E+02" +string.format("%0#.0E", 10000) == "1.E+04" +string.format("%0#.0E", 100000) == "1.E+05" +string.format("%0#.0E", 1000000) == "1.E+06" +string.format("%0#.0E", 10000000) == "1.E+07" +string.format("%0#.0E", 0.01) == "1.E-02" +string.format("%0#.0E", 0.0001) == "1.E-04" +string.format("%0#.0E", 1e-05) == "1.E-05" +string.format("%0#.0E", 1e-06) == "1.E-06" +string.format("%0#.0E", 1e-07) == "1.E-07" +string.format("%0#.0E", 123.456) == "1.E+02" +string.format("%0#.0E", 1234560000) == "1.E+09" +string.format("%0#.0E", 1.23456e-05) == "1.E-05" +string.format("%0#.0E", 123.456789123) == "1.E+02" +string.format("%0#.0E", 1234567891.23) == "1.E+09" +string.format("%0#.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#.1E", 0) == "0.0E+00" +string.format("%0#.1E", 1) == "1.0E+00" +string.format("%0#.1E", -1) == "-1.0E+00" +string.format("%0#.1E", 2) == "2.0E+00" +string.format("%0#.1E", -2) == "-2.0E+00" +string.format("%0#.1E", 3) == "3.0E+00" +string.format("%0#.1E", -3) == "-3.0E+00" +string.format("%0#.1E", 100) == "1.0E+02" +string.format("%0#.1E", 10000) == "1.0E+04" +string.format("%0#.1E", 100000) == "1.0E+05" +string.format("%0#.1E", 1000000) == "1.0E+06" +string.format("%0#.1E", 10000000) == "1.0E+07" +string.format("%0#.1E", 0.01) == "1.0E-02" +string.format("%0#.1E", 0.0001) == "1.0E-04" +string.format("%0#.1E", 1e-05) == "1.0E-05" +string.format("%0#.1E", 1e-06) == "1.0E-06" +string.format("%0#.1E", 1e-07) == "1.0E-07" +string.format("%0#.1E", 123.456) == "1.2E+02" +string.format("%0#.1E", 1234560000) == "1.2E+09" +string.format("%0#.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#.1E", 123.456789123) == "1.2E+02" +string.format("%0#.1E", 1234567891.23) == "1.2E+09" +string.format("%0#.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#1.0E", 0) == "0.E+00" +string.format("%0#1.0E", 1) == "1.E+00" +string.format("%0#1.0E", -1) == "-1.E+00" +string.format("%0#1.0E", 2) == "2.E+00" +string.format("%0#1.0E", -2) == "-2.E+00" +string.format("%0#1.0E", 3) == "3.E+00" +string.format("%0#1.0E", -3) == "-3.E+00" +string.format("%0#1.0E", 100) == "1.E+02" +string.format("%0#1.0E", 10000) == "1.E+04" +string.format("%0#1.0E", 100000) == "1.E+05" +string.format("%0#1.0E", 1000000) == "1.E+06" +string.format("%0#1.0E", 10000000) == "1.E+07" +string.format("%0#1.0E", 0.01) == "1.E-02" +string.format("%0#1.0E", 0.0001) == "1.E-04" +string.format("%0#1.0E", 1e-05) == "1.E-05" +string.format("%0#1.0E", 1e-06) == "1.E-06" +string.format("%0#1.0E", 1e-07) == "1.E-07" +string.format("%0#1.0E", 123.456) == "1.E+02" +string.format("%0#1.0E", 1234560000) == "1.E+09" +string.format("%0#1.0E", 1.23456e-05) == "1.E-05" +string.format("%0#1.0E", 123.456789123) == "1.E+02" +string.format("%0#1.0E", 1234567891.23) == "1.E+09" +string.format("%0#1.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#1.1E", 0) == "0.0E+00" +string.format("%0#1.1E", 1) == "1.0E+00" +string.format("%0#1.1E", -1) == "-1.0E+00" +string.format("%0#1.1E", 2) == "2.0E+00" +string.format("%0#1.1E", -2) == "-2.0E+00" +string.format("%0#1.1E", 3) == "3.0E+00" +string.format("%0#1.1E", -3) == "-3.0E+00" +string.format("%0#1.1E", 100) == "1.0E+02" +string.format("%0#1.1E", 10000) == "1.0E+04" +string.format("%0#1.1E", 100000) == "1.0E+05" +string.format("%0#1.1E", 1000000) == "1.0E+06" +string.format("%0#1.1E", 10000000) == "1.0E+07" +string.format("%0#1.1E", 0.01) == "1.0E-02" +string.format("%0#1.1E", 0.0001) == "1.0E-04" +string.format("%0#1.1E", 1e-05) == "1.0E-05" +string.format("%0#1.1E", 1e-06) == "1.0E-06" +string.format("%0#1.1E", 1e-07) == "1.0E-07" +string.format("%0#1.1E", 123.456) == "1.2E+02" +string.format("%0#1.1E", 1234560000) == "1.2E+09" +string.format("%0#1.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#1.1E", 123.456789123) == "1.2E+02" +string.format("%0#1.1E", 1234567891.23) == "1.2E+09" +string.format("%0#1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#2.0E", 0) == "0.E+00" +string.format("%0#2.0E", 1) == "1.E+00" +string.format("%0#2.0E", -1) == "-1.E+00" +string.format("%0#2.0E", 2) == "2.E+00" +string.format("%0#2.0E", -2) == "-2.E+00" +string.format("%0#2.0E", 3) == "3.E+00" +string.format("%0#2.0E", -3) == "-3.E+00" +string.format("%0#2.0E", 100) == "1.E+02" +string.format("%0#2.0E", 10000) == "1.E+04" +string.format("%0#2.0E", 100000) == "1.E+05" +string.format("%0#2.0E", 1000000) == "1.E+06" +string.format("%0#2.0E", 10000000) == "1.E+07" +string.format("%0#2.0E", 0.01) == "1.E-02" +string.format("%0#2.0E", 0.0001) == "1.E-04" +string.format("%0#2.0E", 1e-05) == "1.E-05" +string.format("%0#2.0E", 1e-06) == "1.E-06" +string.format("%0#2.0E", 1e-07) == "1.E-07" +string.format("%0#2.0E", 123.456) == "1.E+02" +string.format("%0#2.0E", 1234560000) == "1.E+09" +string.format("%0#2.0E", 1.23456e-05) == "1.E-05" +string.format("%0#2.0E", 123.456789123) == "1.E+02" +string.format("%0#2.0E", 1234567891.23) == "1.E+09" +string.format("%0#2.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#2.1E", 0) == "0.0E+00" +string.format("%0#2.1E", 1) == "1.0E+00" +string.format("%0#2.1E", -1) == "-1.0E+00" +string.format("%0#2.1E", 2) == "2.0E+00" +string.format("%0#2.1E", -2) == "-2.0E+00" +string.format("%0#2.1E", 3) == "3.0E+00" +string.format("%0#2.1E", -3) == "-3.0E+00" +string.format("%0#2.1E", 100) == "1.0E+02" +string.format("%0#2.1E", 10000) == "1.0E+04" +string.format("%0#2.1E", 100000) == "1.0E+05" +string.format("%0#2.1E", 1000000) == "1.0E+06" +string.format("%0#2.1E", 10000000) == "1.0E+07" +string.format("%0#2.1E", 0.01) == "1.0E-02" +string.format("%0#2.1E", 0.0001) == "1.0E-04" +string.format("%0#2.1E", 1e-05) == "1.0E-05" +string.format("%0#2.1E", 1e-06) == "1.0E-06" +string.format("%0#2.1E", 1e-07) == "1.0E-07" +string.format("%0#2.1E", 123.456) == "1.2E+02" +string.format("%0#2.1E", 1234560000) == "1.2E+09" +string.format("%0#2.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#2.1E", 123.456789123) == "1.2E+02" +string.format("%0#2.1E", 1234567891.23) == "1.2E+09" +string.format("%0#2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#6E", nan) == " NAN" +string.format("%0#6E", inf) == " INF" +string.format("%0#6E", -inf) == " -INF" +string.format("%0#6.0E", 0) == "0.E+00" +string.format("%0#6.0E", 1) == "1.E+00" +string.format("%0#6.0E", -1) == "-1.E+00" +string.format("%0#6.0E", 2) == "2.E+00" +string.format("%0#6.0E", -2) == "-2.E+00" +string.format("%0#6.0E", 3) == "3.E+00" +string.format("%0#6.0E", -3) == "-3.E+00" +string.format("%0#6.0E", nan) == " NAN" +string.format("%0#6.0E", inf) == " INF" +string.format("%0#6.0E", -inf) == " -INF" +string.format("%0#6.0E", 100) == "1.E+02" +string.format("%0#6.0E", 10000) == "1.E+04" +string.format("%0#6.0E", 100000) == "1.E+05" +string.format("%0#6.0E", 1000000) == "1.E+06" +string.format("%0#6.0E", 10000000) == "1.E+07" +string.format("%0#6.0E", 0.01) == "1.E-02" +string.format("%0#6.0E", 0.0001) == "1.E-04" +string.format("%0#6.0E", 1e-05) == "1.E-05" +string.format("%0#6.0E", 1e-06) == "1.E-06" +string.format("%0#6.0E", 1e-07) == "1.E-07" +string.format("%0#6.0E", 123.456) == "1.E+02" +string.format("%0#6.0E", 1234560000) == "1.E+09" +string.format("%0#6.0E", 1.23456e-05) == "1.E-05" +string.format("%0#6.0E", 123.456789123) == "1.E+02" +string.format("%0#6.0E", 1234567891.23) == "1.E+09" +string.format("%0#6.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#6.1E", 0) == "0.0E+00" +string.format("%0#6.1E", 1) == "1.0E+00" +string.format("%0#6.1E", -1) == "-1.0E+00" +string.format("%0#6.1E", 2) == "2.0E+00" +string.format("%0#6.1E", -2) == "-2.0E+00" +string.format("%0#6.1E", 3) == "3.0E+00" +string.format("%0#6.1E", -3) == "-3.0E+00" +string.format("%0#6.1E", nan) == " NAN" +string.format("%0#6.1E", inf) == " INF" +string.format("%0#6.1E", -inf) == " -INF" +string.format("%0#6.1E", 100) == "1.0E+02" +string.format("%0#6.1E", 10000) == "1.0E+04" +string.format("%0#6.1E", 100000) == "1.0E+05" +string.format("%0#6.1E", 1000000) == "1.0E+06" +string.format("%0#6.1E", 10000000) == "1.0E+07" +string.format("%0#6.1E", 0.01) == "1.0E-02" +string.format("%0#6.1E", 0.0001) == "1.0E-04" +string.format("%0#6.1E", 1e-05) == "1.0E-05" +string.format("%0#6.1E", 1e-06) == "1.0E-06" +string.format("%0#6.1E", 1e-07) == "1.0E-07" +string.format("%0#6.1E", 123.456) == "1.2E+02" +string.format("%0#6.1E", 1234560000) == "1.2E+09" +string.format("%0#6.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#6.1E", 123.456789123) == "1.2E+02" +string.format("%0#6.1E", 1234567891.23) == "1.2E+09" +string.format("%0#6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#6.6E", nan) == " NAN" +string.format("%0#6.6E", inf) == " INF" +string.format("%0#6.6E", -inf) == " -INF" +string.format("%0#20E", 0) == "000000000.000000E+00" +string.format("%0#20E", 1) == "000000001.000000E+00" +string.format("%0#20E", -1) == "-00000001.000000E+00" +string.format("%0#20E", 2) == "000000002.000000E+00" +string.format("%0#20E", -2) == "-00000002.000000E+00" +string.format("%0#20E", 3) == "000000003.000000E+00" +string.format("%0#20E", -3) == "-00000003.000000E+00" +string.format("%0#20E", nan) == " NAN" +string.format("%0#20E", inf) == " INF" +string.format("%0#20E", -inf) == " -INF" +string.format("%0#20E", 100) == "000000001.000000E+02" +string.format("%0#20E", 10000) == "000000001.000000E+04" +string.format("%0#20E", 100000) == "000000001.000000E+05" +string.format("%0#20E", 1000000) == "000000001.000000E+06" +string.format("%0#20E", 10000000) == "000000001.000000E+07" +string.format("%0#20E", 0.01) == "000000001.000000E-02" +string.format("%0#20E", 0.0001) == "000000001.000000E-04" +string.format("%0#20E", 1e-05) == "000000001.000000E-05" +string.format("%0#20E", 1e-06) == "000000001.000000E-06" +string.format("%0#20E", 1e-07) == "000000001.000000E-07" +string.format("%0#20E", 123.456) == "000000001.234560E+02" +string.format("%0#20E", 1234560000) == "000000001.234560E+09" +string.format("%0#20E", 1.23456e-05) == "000000001.234560E-05" +string.format("%0#20E", 123.456789123) == "000000001.234568E+02" +string.format("%0#20E", 1234567891.23) == "000000001.234568E+09" +string.format("%0#20E", 1.23456789123e-05) == "000000001.234568E-05" +string.format("%0#20.0E", 0) == "000000000000000.E+00" +string.format("%0#20.0E", 1) == "000000000000001.E+00" +string.format("%0#20.0E", -1) == "-00000000000001.E+00" +string.format("%0#20.0E", 2) == "000000000000002.E+00" +string.format("%0#20.0E", -2) == "-00000000000002.E+00" +string.format("%0#20.0E", 3) == "000000000000003.E+00" +string.format("%0#20.0E", -3) == "-00000000000003.E+00" +string.format("%0#20.0E", nan) == " NAN" +string.format("%0#20.0E", inf) == " INF" +string.format("%0#20.0E", -inf) == " -INF" +string.format("%0#20.0E", 100) == "000000000000001.E+02" +string.format("%0#20.0E", 10000) == "000000000000001.E+04" +string.format("%0#20.0E", 100000) == "000000000000001.E+05" +string.format("%0#20.0E", 1000000) == "000000000000001.E+06" +string.format("%0#20.0E", 10000000) == "000000000000001.E+07" +string.format("%0#20.0E", 0.01) == "000000000000001.E-02" +string.format("%0#20.0E", 0.0001) == "000000000000001.E-04" +string.format("%0#20.0E", 1e-05) == "000000000000001.E-05" +string.format("%0#20.0E", 1e-06) == "000000000000001.E-06" +string.format("%0#20.0E", 1e-07) == "000000000000001.E-07" +string.format("%0#20.0E", 123.456) == "000000000000001.E+02" +string.format("%0#20.0E", 1234560000) == "000000000000001.E+09" +string.format("%0#20.0E", 1.23456e-05) == "000000000000001.E-05" +string.format("%0#20.0E", 123.456789123) == "000000000000001.E+02" +string.format("%0#20.0E", 1234567891.23) == "000000000000001.E+09" +string.format("%0#20.0E", 1.23456789123e-05) == "000000000000001.E-05" +string.format("%0#20.1E", 0) == "00000000000000.0E+00" +string.format("%0#20.1E", 1) == "00000000000001.0E+00" +string.format("%0#20.1E", -1) == "-0000000000001.0E+00" +string.format("%0#20.1E", 2) == "00000000000002.0E+00" +string.format("%0#20.1E", -2) == "-0000000000002.0E+00" +string.format("%0#20.1E", 3) == "00000000000003.0E+00" +string.format("%0#20.1E", -3) == "-0000000000003.0E+00" +string.format("%0#20.1E", nan) == " NAN" +string.format("%0#20.1E", inf) == " INF" +string.format("%0#20.1E", -inf) == " -INF" +string.format("%0#20.1E", 100) == "00000000000001.0E+02" +string.format("%0#20.1E", 10000) == "00000000000001.0E+04" +string.format("%0#20.1E", 100000) == "00000000000001.0E+05" +string.format("%0#20.1E", 1000000) == "00000000000001.0E+06" +string.format("%0#20.1E", 10000000) == "00000000000001.0E+07" +string.format("%0#20.1E", 0.01) == "00000000000001.0E-02" +string.format("%0#20.1E", 0.0001) == "00000000000001.0E-04" +string.format("%0#20.1E", 1e-05) == "00000000000001.0E-05" +string.format("%0#20.1E", 1e-06) == "00000000000001.0E-06" +string.format("%0#20.1E", 1e-07) == "00000000000001.0E-07" +string.format("%0#20.1E", 123.456) == "00000000000001.2E+02" +string.format("%0#20.1E", 1234560000) == "00000000000001.2E+09" +string.format("%0#20.1E", 1.23456e-05) == "00000000000001.2E-05" +string.format("%0#20.1E", 123.456789123) == "00000000000001.2E+02" +string.format("%0#20.1E", 1234567891.23) == "00000000000001.2E+09" +string.format("%0#20.1E", 1.23456789123e-05) == "00000000000001.2E-05" +string.format("%0#20.6E", 0) == "000000000.000000E+00" +string.format("%0#20.6E", 1) == "000000001.000000E+00" +string.format("%0#20.6E", -1) == "-00000001.000000E+00" +string.format("%0#20.6E", 2) == "000000002.000000E+00" +string.format("%0#20.6E", -2) == "-00000002.000000E+00" +string.format("%0#20.6E", 3) == "000000003.000000E+00" +string.format("%0#20.6E", -3) == "-00000003.000000E+00" +string.format("%0#20.6E", nan) == " NAN" +string.format("%0#20.6E", inf) == " INF" +string.format("%0#20.6E", -inf) == " -INF" +string.format("%0#20.6E", 100) == "000000001.000000E+02" +string.format("%0#20.6E", 10000) == "000000001.000000E+04" +string.format("%0#20.6E", 100000) == "000000001.000000E+05" +string.format("%0#20.6E", 1000000) == "000000001.000000E+06" +string.format("%0#20.6E", 10000000) == "000000001.000000E+07" +string.format("%0#20.6E", 0.01) == "000000001.000000E-02" +string.format("%0#20.6E", 0.0001) == "000000001.000000E-04" +string.format("%0#20.6E", 1e-05) == "000000001.000000E-05" +string.format("%0#20.6E", 1e-06) == "000000001.000000E-06" +string.format("%0#20.6E", 1e-07) == "000000001.000000E-07" +string.format("%0#20.6E", 123.456) == "000000001.234560E+02" +string.format("%0#20.6E", 1234560000) == "000000001.234560E+09" +string.format("%0#20.6E", 1.23456e-05) == "000000001.234560E-05" +string.format("%0#20.6E", 123.456789123) == "000000001.234568E+02" +string.format("%0#20.6E", 1234567891.23) == "000000001.234568E+09" +string.format("%0#20.6E", 1.23456789123e-05) == "000000001.234568E-05" +string.format("%0#+E", 0) == "+0.000000E+00" +string.format("%0#+E", 1) == "+1.000000E+00" +string.format("%0#+E", -1) == "-1.000000E+00" +string.format("%0#+E", 2) == "+2.000000E+00" +string.format("%0#+E", -2) == "-2.000000E+00" +string.format("%0#+E", 3) == "+3.000000E+00" +string.format("%0#+E", -3) == "-3.000000E+00" +string.format("%0#+E", nan) == "+NAN" +string.format("%0#+E", inf) == "+INF" +string.format("%0#+E", -inf) == "-INF" +string.format("%0#+E", 100) == "+1.000000E+02" +string.format("%0#+E", 10000) == "+1.000000E+04" +string.format("%0#+E", 100000) == "+1.000000E+05" +string.format("%0#+E", 1000000) == "+1.000000E+06" +string.format("%0#+E", 10000000) == "+1.000000E+07" +string.format("%0#+E", 0.01) == "+1.000000E-02" +string.format("%0#+E", 0.0001) == "+1.000000E-04" +string.format("%0#+E", 1e-05) == "+1.000000E-05" +string.format("%0#+E", 1e-06) == "+1.000000E-06" +string.format("%0#+E", 1e-07) == "+1.000000E-07" +string.format("%0#+E", 123.456) == "+1.234560E+02" +string.format("%0#+E", 1234560000) == "+1.234560E+09" +string.format("%0#+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0#+E", 123.456789123) == "+1.234568E+02" +string.format("%0#+E", 1234567891.23) == "+1.234568E+09" +string.format("%0#+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0#+.0E", 0) == "+0.E+00" +string.format("%0#+.0E", 1) == "+1.E+00" +string.format("%0#+.0E", -1) == "-1.E+00" +string.format("%0#+.0E", 2) == "+2.E+00" +string.format("%0#+.0E", -2) == "-2.E+00" +string.format("%0#+.0E", 3) == "+3.E+00" +string.format("%0#+.0E", -3) == "-3.E+00" +string.format("%0#+.0E", 100) == "+1.E+02" +string.format("%0#+.0E", 10000) == "+1.E+04" +string.format("%0#+.0E", 100000) == "+1.E+05" +string.format("%0#+.0E", 1000000) == "+1.E+06" +string.format("%0#+.0E", 10000000) == "+1.E+07" +string.format("%0#+.0E", 0.01) == "+1.E-02" +string.format("%0#+.0E", 0.0001) == "+1.E-04" +string.format("%0#+.0E", 1e-05) == "+1.E-05" +string.format("%0#+.0E", 1e-06) == "+1.E-06" +string.format("%0#+.0E", 1e-07) == "+1.E-07" +string.format("%0#+.0E", 123.456) == "+1.E+02" +string.format("%0#+.0E", 1234560000) == "+1.E+09" +string.format("%0#+.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#+.0E", 123.456789123) == "+1.E+02" +string.format("%0#+.0E", 1234567891.23) == "+1.E+09" +string.format("%0#+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+.1E", 0) == "+0.0E+00" +string.format("%0#+.1E", 1) == "+1.0E+00" +string.format("%0#+.1E", -1) == "-1.0E+00" +string.format("%0#+.1E", 2) == "+2.0E+00" +string.format("%0#+.1E", -2) == "-2.0E+00" +string.format("%0#+.1E", 3) == "+3.0E+00" +string.format("%0#+.1E", -3) == "-3.0E+00" +string.format("%0#+.1E", 100) == "+1.0E+02" +string.format("%0#+.1E", 10000) == "+1.0E+04" +string.format("%0#+.1E", 100000) == "+1.0E+05" +string.format("%0#+.1E", 1000000) == "+1.0E+06" +string.format("%0#+.1E", 10000000) == "+1.0E+07" +string.format("%0#+.1E", 0.01) == "+1.0E-02" +string.format("%0#+.1E", 0.0001) == "+1.0E-04" +string.format("%0#+.1E", 1e-05) == "+1.0E-05" +string.format("%0#+.1E", 1e-06) == "+1.0E-06" +string.format("%0#+.1E", 1e-07) == "+1.0E-07" +string.format("%0#+.1E", 123.456) == "+1.2E+02" +string.format("%0#+.1E", 1234560000) == "+1.2E+09" +string.format("%0#+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#+.1E", 123.456789123) == "+1.2E+02" +string.format("%0#+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#+1.0E", 0) == "+0.E+00" +string.format("%0#+1.0E", 1) == "+1.E+00" +string.format("%0#+1.0E", -1) == "-1.E+00" +string.format("%0#+1.0E", 2) == "+2.E+00" +string.format("%0#+1.0E", -2) == "-2.E+00" +string.format("%0#+1.0E", 3) == "+3.E+00" +string.format("%0#+1.0E", -3) == "-3.E+00" +string.format("%0#+1.0E", 100) == "+1.E+02" +string.format("%0#+1.0E", 10000) == "+1.E+04" +string.format("%0#+1.0E", 100000) == "+1.E+05" +string.format("%0#+1.0E", 1000000) == "+1.E+06" +string.format("%0#+1.0E", 10000000) == "+1.E+07" +string.format("%0#+1.0E", 0.01) == "+1.E-02" +string.format("%0#+1.0E", 0.0001) == "+1.E-04" +string.format("%0#+1.0E", 1e-05) == "+1.E-05" +string.format("%0#+1.0E", 1e-06) == "+1.E-06" +string.format("%0#+1.0E", 1e-07) == "+1.E-07" +string.format("%0#+1.0E", 123.456) == "+1.E+02" +string.format("%0#+1.0E", 1234560000) == "+1.E+09" +string.format("%0#+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#+1.0E", 123.456789123) == "+1.E+02" +string.format("%0#+1.0E", 1234567891.23) == "+1.E+09" +string.format("%0#+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+1.1E", 0) == "+0.0E+00" +string.format("%0#+1.1E", 1) == "+1.0E+00" +string.format("%0#+1.1E", -1) == "-1.0E+00" +string.format("%0#+1.1E", 2) == "+2.0E+00" +string.format("%0#+1.1E", -2) == "-2.0E+00" +string.format("%0#+1.1E", 3) == "+3.0E+00" +string.format("%0#+1.1E", -3) == "-3.0E+00" +string.format("%0#+1.1E", 100) == "+1.0E+02" +string.format("%0#+1.1E", 10000) == "+1.0E+04" +string.format("%0#+1.1E", 100000) == "+1.0E+05" +string.format("%0#+1.1E", 1000000) == "+1.0E+06" +string.format("%0#+1.1E", 10000000) == "+1.0E+07" +string.format("%0#+1.1E", 0.01) == "+1.0E-02" +string.format("%0#+1.1E", 0.0001) == "+1.0E-04" +string.format("%0#+1.1E", 1e-05) == "+1.0E-05" +string.format("%0#+1.1E", 1e-06) == "+1.0E-06" +string.format("%0#+1.1E", 1e-07) == "+1.0E-07" +string.format("%0#+1.1E", 123.456) == "+1.2E+02" +string.format("%0#+1.1E", 1234560000) == "+1.2E+09" +string.format("%0#+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0#+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#+2.0E", 0) == "+0.E+00" +string.format("%0#+2.0E", 1) == "+1.E+00" +string.format("%0#+2.0E", -1) == "-1.E+00" +string.format("%0#+2.0E", 2) == "+2.E+00" +string.format("%0#+2.0E", -2) == "-2.E+00" +string.format("%0#+2.0E", 3) == "+3.E+00" +string.format("%0#+2.0E", -3) == "-3.E+00" +string.format("%0#+2.0E", 100) == "+1.E+02" +string.format("%0#+2.0E", 10000) == "+1.E+04" +string.format("%0#+2.0E", 100000) == "+1.E+05" +string.format("%0#+2.0E", 1000000) == "+1.E+06" +string.format("%0#+2.0E", 10000000) == "+1.E+07" +string.format("%0#+2.0E", 0.01) == "+1.E-02" +string.format("%0#+2.0E", 0.0001) == "+1.E-04" +string.format("%0#+2.0E", 1e-05) == "+1.E-05" +string.format("%0#+2.0E", 1e-06) == "+1.E-06" +string.format("%0#+2.0E", 1e-07) == "+1.E-07" +string.format("%0#+2.0E", 123.456) == "+1.E+02" +string.format("%0#+2.0E", 1234560000) == "+1.E+09" +string.format("%0#+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#+2.0E", 123.456789123) == "+1.E+02" +string.format("%0#+2.0E", 1234567891.23) == "+1.E+09" +string.format("%0#+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+2.1E", 0) == "+0.0E+00" +string.format("%0#+2.1E", 1) == "+1.0E+00" +string.format("%0#+2.1E", -1) == "-1.0E+00" +string.format("%0#+2.1E", 2) == "+2.0E+00" +string.format("%0#+2.1E", -2) == "-2.0E+00" +string.format("%0#+2.1E", 3) == "+3.0E+00" +string.format("%0#+2.1E", -3) == "-3.0E+00" +string.format("%0#+2.1E", 100) == "+1.0E+02" +string.format("%0#+2.1E", 10000) == "+1.0E+04" +string.format("%0#+2.1E", 100000) == "+1.0E+05" +string.format("%0#+2.1E", 1000000) == "+1.0E+06" +string.format("%0#+2.1E", 10000000) == "+1.0E+07" +string.format("%0#+2.1E", 0.01) == "+1.0E-02" +string.format("%0#+2.1E", 0.0001) == "+1.0E-04" +string.format("%0#+2.1E", 1e-05) == "+1.0E-05" +string.format("%0#+2.1E", 1e-06) == "+1.0E-06" +string.format("%0#+2.1E", 1e-07) == "+1.0E-07" +string.format("%0#+2.1E", 123.456) == "+1.2E+02" +string.format("%0#+2.1E", 1234560000) == "+1.2E+09" +string.format("%0#+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0#+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#+6E", nan) == " +NAN" +string.format("%0#+6E", inf) == " +INF" +string.format("%0#+6E", -inf) == " -INF" +string.format("%0#+6.0E", 0) == "+0.E+00" +string.format("%0#+6.0E", 1) == "+1.E+00" +string.format("%0#+6.0E", -1) == "-1.E+00" +string.format("%0#+6.0E", 2) == "+2.E+00" +string.format("%0#+6.0E", -2) == "-2.E+00" +string.format("%0#+6.0E", 3) == "+3.E+00" +string.format("%0#+6.0E", -3) == "-3.E+00" +string.format("%0#+6.0E", nan) == " +NAN" +string.format("%0#+6.0E", inf) == " +INF" +string.format("%0#+6.0E", -inf) == " -INF" +string.format("%0#+6.0E", 100) == "+1.E+02" +string.format("%0#+6.0E", 10000) == "+1.E+04" +string.format("%0#+6.0E", 100000) == "+1.E+05" +string.format("%0#+6.0E", 1000000) == "+1.E+06" +string.format("%0#+6.0E", 10000000) == "+1.E+07" +string.format("%0#+6.0E", 0.01) == "+1.E-02" +string.format("%0#+6.0E", 0.0001) == "+1.E-04" +string.format("%0#+6.0E", 1e-05) == "+1.E-05" +string.format("%0#+6.0E", 1e-06) == "+1.E-06" +string.format("%0#+6.0E", 1e-07) == "+1.E-07" +string.format("%0#+6.0E", 123.456) == "+1.E+02" +string.format("%0#+6.0E", 1234560000) == "+1.E+09" +string.format("%0#+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#+6.0E", 123.456789123) == "+1.E+02" +string.format("%0#+6.0E", 1234567891.23) == "+1.E+09" +string.format("%0#+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+6.1E", 0) == "+0.0E+00" +string.format("%0#+6.1E", 1) == "+1.0E+00" +string.format("%0#+6.1E", -1) == "-1.0E+00" +string.format("%0#+6.1E", 2) == "+2.0E+00" +string.format("%0#+6.1E", -2) == "-2.0E+00" +string.format("%0#+6.1E", 3) == "+3.0E+00" +string.format("%0#+6.1E", -3) == "-3.0E+00" +string.format("%0#+6.1E", nan) == " +NAN" +string.format("%0#+6.1E", inf) == " +INF" +string.format("%0#+6.1E", -inf) == " -INF" +string.format("%0#+6.1E", 100) == "+1.0E+02" +string.format("%0#+6.1E", 10000) == "+1.0E+04" +string.format("%0#+6.1E", 100000) == "+1.0E+05" +string.format("%0#+6.1E", 1000000) == "+1.0E+06" +string.format("%0#+6.1E", 10000000) == "+1.0E+07" +string.format("%0#+6.1E", 0.01) == "+1.0E-02" +string.format("%0#+6.1E", 0.0001) == "+1.0E-04" +string.format("%0#+6.1E", 1e-05) == "+1.0E-05" +string.format("%0#+6.1E", 1e-06) == "+1.0E-06" +string.format("%0#+6.1E", 1e-07) == "+1.0E-07" +string.format("%0#+6.1E", 123.456) == "+1.2E+02" +string.format("%0#+6.1E", 1234560000) == "+1.2E+09" +string.format("%0#+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0#+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#+6.6E", nan) == " +NAN" +string.format("%0#+6.6E", inf) == " +INF" +string.format("%0#+6.6E", -inf) == " -INF" +string.format("%0#+20E", 0) == "+00000000.000000E+00" +string.format("%0#+20E", 1) == "+00000001.000000E+00" +string.format("%0#+20E", -1) == "-00000001.000000E+00" +string.format("%0#+20E", 2) == "+00000002.000000E+00" +string.format("%0#+20E", -2) == "-00000002.000000E+00" +string.format("%0#+20E", 3) == "+00000003.000000E+00" +string.format("%0#+20E", -3) == "-00000003.000000E+00" +string.format("%0#+20E", nan) == " +NAN" +string.format("%0#+20E", inf) == " +INF" +string.format("%0#+20E", -inf) == " -INF" +string.format("%0#+20E", 100) == "+00000001.000000E+02" +string.format("%0#+20E", 10000) == "+00000001.000000E+04" +string.format("%0#+20E", 100000) == "+00000001.000000E+05" +string.format("%0#+20E", 1000000) == "+00000001.000000E+06" +string.format("%0#+20E", 10000000) == "+00000001.000000E+07" +string.format("%0#+20E", 0.01) == "+00000001.000000E-02" +string.format("%0#+20E", 0.0001) == "+00000001.000000E-04" +string.format("%0#+20E", 1e-05) == "+00000001.000000E-05" +string.format("%0#+20E", 1e-06) == "+00000001.000000E-06" +string.format("%0#+20E", 1e-07) == "+00000001.000000E-07" +string.format("%0#+20E", 123.456) == "+00000001.234560E+02" +string.format("%0#+20E", 1234560000) == "+00000001.234560E+09" +string.format("%0#+20E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0#+20E", 123.456789123) == "+00000001.234568E+02" +string.format("%0#+20E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0#+20E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0#+20.0E", 0) == "+00000000000000.E+00" +string.format("%0#+20.0E", 1) == "+00000000000001.E+00" +string.format("%0#+20.0E", -1) == "-00000000000001.E+00" +string.format("%0#+20.0E", 2) == "+00000000000002.E+00" +string.format("%0#+20.0E", -2) == "-00000000000002.E+00" +string.format("%0#+20.0E", 3) == "+00000000000003.E+00" +string.format("%0#+20.0E", -3) == "-00000000000003.E+00" +string.format("%0#+20.0E", nan) == " +NAN" +string.format("%0#+20.0E", inf) == " +INF" +string.format("%0#+20.0E", -inf) == " -INF" +string.format("%0#+20.0E", 100) == "+00000000000001.E+02" +string.format("%0#+20.0E", 10000) == "+00000000000001.E+04" +string.format("%0#+20.0E", 100000) == "+00000000000001.E+05" +string.format("%0#+20.0E", 1000000) == "+00000000000001.E+06" +string.format("%0#+20.0E", 10000000) == "+00000000000001.E+07" +string.format("%0#+20.0E", 0.01) == "+00000000000001.E-02" +string.format("%0#+20.0E", 0.0001) == "+00000000000001.E-04" +string.format("%0#+20.0E", 1e-05) == "+00000000000001.E-05" +string.format("%0#+20.0E", 1e-06) == "+00000000000001.E-06" +string.format("%0#+20.0E", 1e-07) == "+00000000000001.E-07" +string.format("%0#+20.0E", 123.456) == "+00000000000001.E+02" +string.format("%0#+20.0E", 1234560000) == "+00000000000001.E+09" +string.format("%0#+20.0E", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0#+20.0E", 123.456789123) == "+00000000000001.E+02" +string.format("%0#+20.0E", 1234567891.23) == "+00000000000001.E+09" +string.format("%0#+20.0E", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0#+20.1E", 0) == "+0000000000000.0E+00" +string.format("%0#+20.1E", 1) == "+0000000000001.0E+00" +string.format("%0#+20.1E", -1) == "-0000000000001.0E+00" +string.format("%0#+20.1E", 2) == "+0000000000002.0E+00" +string.format("%0#+20.1E", -2) == "-0000000000002.0E+00" +string.format("%0#+20.1E", 3) == "+0000000000003.0E+00" +string.format("%0#+20.1E", -3) == "-0000000000003.0E+00" +string.format("%0#+20.1E", nan) == " +NAN" +string.format("%0#+20.1E", inf) == " +INF" +string.format("%0#+20.1E", -inf) == " -INF" +string.format("%0#+20.1E", 100) == "+0000000000001.0E+02" +string.format("%0#+20.1E", 10000) == "+0000000000001.0E+04" +string.format("%0#+20.1E", 100000) == "+0000000000001.0E+05" +string.format("%0#+20.1E", 1000000) == "+0000000000001.0E+06" +string.format("%0#+20.1E", 10000000) == "+0000000000001.0E+07" +string.format("%0#+20.1E", 0.01) == "+0000000000001.0E-02" +string.format("%0#+20.1E", 0.0001) == "+0000000000001.0E-04" +string.format("%0#+20.1E", 1e-05) == "+0000000000001.0E-05" +string.format("%0#+20.1E", 1e-06) == "+0000000000001.0E-06" +string.format("%0#+20.1E", 1e-07) == "+0000000000001.0E-07" +string.format("%0#+20.1E", 123.456) == "+0000000000001.2E+02" +string.format("%0#+20.1E", 1234560000) == "+0000000000001.2E+09" +string.format("%0#+20.1E", 1.23456e-05) == "+0000000000001.2E-05" +string.format("%0#+20.1E", 123.456789123) == "+0000000000001.2E+02" +string.format("%0#+20.1E", 1234567891.23) == "+0000000000001.2E+09" +string.format("%0#+20.1E", 1.23456789123e-05) == "+0000000000001.2E-05" +string.format("%0#+20.6E", 0) == "+00000000.000000E+00" +string.format("%0#+20.6E", 1) == "+00000001.000000E+00" +string.format("%0#+20.6E", -1) == "-00000001.000000E+00" +string.format("%0#+20.6E", 2) == "+00000002.000000E+00" +string.format("%0#+20.6E", -2) == "-00000002.000000E+00" +string.format("%0#+20.6E", 3) == "+00000003.000000E+00" +string.format("%0#+20.6E", -3) == "-00000003.000000E+00" +string.format("%0#+20.6E", nan) == " +NAN" +string.format("%0#+20.6E", inf) == " +INF" +string.format("%0#+20.6E", -inf) == " -INF" +string.format("%0#+20.6E", 100) == "+00000001.000000E+02" +string.format("%0#+20.6E", 10000) == "+00000001.000000E+04" +string.format("%0#+20.6E", 100000) == "+00000001.000000E+05" +string.format("%0#+20.6E", 1000000) == "+00000001.000000E+06" +string.format("%0#+20.6E", 10000000) == "+00000001.000000E+07" +string.format("%0#+20.6E", 0.01) == "+00000001.000000E-02" +string.format("%0#+20.6E", 0.0001) == "+00000001.000000E-04" +string.format("%0#+20.6E", 1e-05) == "+00000001.000000E-05" +string.format("%0#+20.6E", 1e-06) == "+00000001.000000E-06" +string.format("%0#+20.6E", 1e-07) == "+00000001.000000E-07" +string.format("%0#+20.6E", 123.456) == "+00000001.234560E+02" +string.format("%0#+20.6E", 1234560000) == "+00000001.234560E+09" +string.format("%0#+20.6E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0#+20.6E", 123.456789123) == "+00000001.234568E+02" +string.format("%0#+20.6E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0#+20.6E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0#-E", 0) == "0.000000E+00" +string.format("%0#-E", 1) == "1.000000E+00" +string.format("%0#-E", -1) == "-1.000000E+00" +string.format("%0#-E", 2) == "2.000000E+00" +string.format("%0#-E", -2) == "-2.000000E+00" +string.format("%0#-E", 3) == "3.000000E+00" +string.format("%0#-E", -3) == "-3.000000E+00" +string.format("%0#-E", nan) == "NAN" +string.format("%0#-E", inf) == "INF" +string.format("%0#-E", -inf) == "-INF" +string.format("%0#-E", 100) == "1.000000E+02" +string.format("%0#-E", 10000) == "1.000000E+04" +string.format("%0#-E", 100000) == "1.000000E+05" +string.format("%0#-E", 1000000) == "1.000000E+06" +string.format("%0#-E", 10000000) == "1.000000E+07" +string.format("%0#-E", 0.01) == "1.000000E-02" +string.format("%0#-E", 0.0001) == "1.000000E-04" +string.format("%0#-E", 1e-05) == "1.000000E-05" +string.format("%0#-E", 1e-06) == "1.000000E-06" +string.format("%0#-E", 1e-07) == "1.000000E-07" +string.format("%0#-E", 123.456) == "1.234560E+02" +string.format("%0#-E", 1234560000) == "1.234560E+09" +string.format("%0#-E", 1.23456e-05) == "1.234560E-05" +string.format("%0#-E", 123.456789123) == "1.234568E+02" +string.format("%0#-E", 1234567891.23) == "1.234568E+09" +string.format("%0#-E", 1.23456789123e-05) == "1.234568E-05" +string.format("%0#-.0E", 0) == "0.E+00" +string.format("%0#-.0E", 1) == "1.E+00" +string.format("%0#-.0E", -1) == "-1.E+00" +string.format("%0#-.0E", 2) == "2.E+00" +string.format("%0#-.0E", -2) == "-2.E+00" +string.format("%0#-.0E", 3) == "3.E+00" +string.format("%0#-.0E", -3) == "-3.E+00" +string.format("%0#-.0E", 100) == "1.E+02" +string.format("%0#-.0E", 10000) == "1.E+04" +string.format("%0#-.0E", 100000) == "1.E+05" +string.format("%0#-.0E", 1000000) == "1.E+06" +string.format("%0#-.0E", 10000000) == "1.E+07" +string.format("%0#-.0E", 0.01) == "1.E-02" +string.format("%0#-.0E", 0.0001) == "1.E-04" +string.format("%0#-.0E", 1e-05) == "1.E-05" +string.format("%0#-.0E", 1e-06) == "1.E-06" +string.format("%0#-.0E", 1e-07) == "1.E-07" +string.format("%0#-.0E", 123.456) == "1.E+02" +string.format("%0#-.0E", 1234560000) == "1.E+09" +string.format("%0#-.0E", 1.23456e-05) == "1.E-05" +string.format("%0#-.0E", 123.456789123) == "1.E+02" +string.format("%0#-.0E", 1234567891.23) == "1.E+09" +string.format("%0#-.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#-.1E", 0) == "0.0E+00" +string.format("%0#-.1E", 1) == "1.0E+00" +string.format("%0#-.1E", -1) == "-1.0E+00" +string.format("%0#-.1E", 2) == "2.0E+00" +string.format("%0#-.1E", -2) == "-2.0E+00" +string.format("%0#-.1E", 3) == "3.0E+00" +string.format("%0#-.1E", -3) == "-3.0E+00" +string.format("%0#-.1E", 100) == "1.0E+02" +string.format("%0#-.1E", 10000) == "1.0E+04" +string.format("%0#-.1E", 100000) == "1.0E+05" +string.format("%0#-.1E", 1000000) == "1.0E+06" +string.format("%0#-.1E", 10000000) == "1.0E+07" +string.format("%0#-.1E", 0.01) == "1.0E-02" +string.format("%0#-.1E", 0.0001) == "1.0E-04" +string.format("%0#-.1E", 1e-05) == "1.0E-05" +string.format("%0#-.1E", 1e-06) == "1.0E-06" +string.format("%0#-.1E", 1e-07) == "1.0E-07" +string.format("%0#-.1E", 123.456) == "1.2E+02" +string.format("%0#-.1E", 1234560000) == "1.2E+09" +string.format("%0#-.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#-.1E", 123.456789123) == "1.2E+02" +string.format("%0#-.1E", 1234567891.23) == "1.2E+09" +string.format("%0#-.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#-1.0E", 0) == "0.E+00" +string.format("%0#-1.0E", 1) == "1.E+00" +string.format("%0#-1.0E", -1) == "-1.E+00" +string.format("%0#-1.0E", 2) == "2.E+00" +string.format("%0#-1.0E", -2) == "-2.E+00" +string.format("%0#-1.0E", 3) == "3.E+00" +string.format("%0#-1.0E", -3) == "-3.E+00" +string.format("%0#-1.0E", 100) == "1.E+02" +string.format("%0#-1.0E", 10000) == "1.E+04" +string.format("%0#-1.0E", 100000) == "1.E+05" +string.format("%0#-1.0E", 1000000) == "1.E+06" +string.format("%0#-1.0E", 10000000) == "1.E+07" +string.format("%0#-1.0E", 0.01) == "1.E-02" +string.format("%0#-1.0E", 0.0001) == "1.E-04" +string.format("%0#-1.0E", 1e-05) == "1.E-05" +string.format("%0#-1.0E", 1e-06) == "1.E-06" +string.format("%0#-1.0E", 1e-07) == "1.E-07" +string.format("%0#-1.0E", 123.456) == "1.E+02" +string.format("%0#-1.0E", 1234560000) == "1.E+09" +string.format("%0#-1.0E", 1.23456e-05) == "1.E-05" +string.format("%0#-1.0E", 123.456789123) == "1.E+02" +string.format("%0#-1.0E", 1234567891.23) == "1.E+09" +string.format("%0#-1.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#-1.1E", 0) == "0.0E+00" +string.format("%0#-1.1E", 1) == "1.0E+00" +string.format("%0#-1.1E", -1) == "-1.0E+00" +string.format("%0#-1.1E", 2) == "2.0E+00" +string.format("%0#-1.1E", -2) == "-2.0E+00" +string.format("%0#-1.1E", 3) == "3.0E+00" +string.format("%0#-1.1E", -3) == "-3.0E+00" +string.format("%0#-1.1E", 100) == "1.0E+02" +string.format("%0#-1.1E", 10000) == "1.0E+04" +string.format("%0#-1.1E", 100000) == "1.0E+05" +string.format("%0#-1.1E", 1000000) == "1.0E+06" +string.format("%0#-1.1E", 10000000) == "1.0E+07" +string.format("%0#-1.1E", 0.01) == "1.0E-02" +string.format("%0#-1.1E", 0.0001) == "1.0E-04" +string.format("%0#-1.1E", 1e-05) == "1.0E-05" +string.format("%0#-1.1E", 1e-06) == "1.0E-06" +string.format("%0#-1.1E", 1e-07) == "1.0E-07" +string.format("%0#-1.1E", 123.456) == "1.2E+02" +string.format("%0#-1.1E", 1234560000) == "1.2E+09" +string.format("%0#-1.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#-1.1E", 123.456789123) == "1.2E+02" +string.format("%0#-1.1E", 1234567891.23) == "1.2E+09" +string.format("%0#-1.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#-2.0E", 0) == "0.E+00" +string.format("%0#-2.0E", 1) == "1.E+00" +string.format("%0#-2.0E", -1) == "-1.E+00" +string.format("%0#-2.0E", 2) == "2.E+00" +string.format("%0#-2.0E", -2) == "-2.E+00" +string.format("%0#-2.0E", 3) == "3.E+00" +string.format("%0#-2.0E", -3) == "-3.E+00" +string.format("%0#-2.0E", 100) == "1.E+02" +string.format("%0#-2.0E", 10000) == "1.E+04" +string.format("%0#-2.0E", 100000) == "1.E+05" +string.format("%0#-2.0E", 1000000) == "1.E+06" +string.format("%0#-2.0E", 10000000) == "1.E+07" +string.format("%0#-2.0E", 0.01) == "1.E-02" +string.format("%0#-2.0E", 0.0001) == "1.E-04" +string.format("%0#-2.0E", 1e-05) == "1.E-05" +string.format("%0#-2.0E", 1e-06) == "1.E-06" +string.format("%0#-2.0E", 1e-07) == "1.E-07" +string.format("%0#-2.0E", 123.456) == "1.E+02" +string.format("%0#-2.0E", 1234560000) == "1.E+09" +string.format("%0#-2.0E", 1.23456e-05) == "1.E-05" +string.format("%0#-2.0E", 123.456789123) == "1.E+02" +string.format("%0#-2.0E", 1234567891.23) == "1.E+09" +string.format("%0#-2.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#-2.1E", 0) == "0.0E+00" +string.format("%0#-2.1E", 1) == "1.0E+00" +string.format("%0#-2.1E", -1) == "-1.0E+00" +string.format("%0#-2.1E", 2) == "2.0E+00" +string.format("%0#-2.1E", -2) == "-2.0E+00" +string.format("%0#-2.1E", 3) == "3.0E+00" +string.format("%0#-2.1E", -3) == "-3.0E+00" +string.format("%0#-2.1E", 100) == "1.0E+02" +string.format("%0#-2.1E", 10000) == "1.0E+04" +string.format("%0#-2.1E", 100000) == "1.0E+05" +string.format("%0#-2.1E", 1000000) == "1.0E+06" +string.format("%0#-2.1E", 10000000) == "1.0E+07" +string.format("%0#-2.1E", 0.01) == "1.0E-02" +string.format("%0#-2.1E", 0.0001) == "1.0E-04" +string.format("%0#-2.1E", 1e-05) == "1.0E-05" +string.format("%0#-2.1E", 1e-06) == "1.0E-06" +string.format("%0#-2.1E", 1e-07) == "1.0E-07" +string.format("%0#-2.1E", 123.456) == "1.2E+02" +string.format("%0#-2.1E", 1234560000) == "1.2E+09" +string.format("%0#-2.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#-2.1E", 123.456789123) == "1.2E+02" +string.format("%0#-2.1E", 1234567891.23) == "1.2E+09" +string.format("%0#-2.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#-6E", nan) == "NAN " +string.format("%0#-6E", inf) == "INF " +string.format("%0#-6E", -inf) == "-INF " +string.format("%0#-6.0E", 0) == "0.E+00" +string.format("%0#-6.0E", 1) == "1.E+00" +string.format("%0#-6.0E", -1) == "-1.E+00" +string.format("%0#-6.0E", 2) == "2.E+00" +string.format("%0#-6.0E", -2) == "-2.E+00" +string.format("%0#-6.0E", 3) == "3.E+00" +string.format("%0#-6.0E", -3) == "-3.E+00" +string.format("%0#-6.0E", nan) == "NAN " +string.format("%0#-6.0E", inf) == "INF " +string.format("%0#-6.0E", -inf) == "-INF " +string.format("%0#-6.0E", 100) == "1.E+02" +string.format("%0#-6.0E", 10000) == "1.E+04" +string.format("%0#-6.0E", 100000) == "1.E+05" +string.format("%0#-6.0E", 1000000) == "1.E+06" +string.format("%0#-6.0E", 10000000) == "1.E+07" +string.format("%0#-6.0E", 0.01) == "1.E-02" +string.format("%0#-6.0E", 0.0001) == "1.E-04" +string.format("%0#-6.0E", 1e-05) == "1.E-05" +string.format("%0#-6.0E", 1e-06) == "1.E-06" +string.format("%0#-6.0E", 1e-07) == "1.E-07" +string.format("%0#-6.0E", 123.456) == "1.E+02" +string.format("%0#-6.0E", 1234560000) == "1.E+09" +string.format("%0#-6.0E", 1.23456e-05) == "1.E-05" +string.format("%0#-6.0E", 123.456789123) == "1.E+02" +string.format("%0#-6.0E", 1234567891.23) == "1.E+09" +string.format("%0#-6.0E", 1.23456789123e-05) == "1.E-05" +string.format("%0#-6.1E", 0) == "0.0E+00" +string.format("%0#-6.1E", 1) == "1.0E+00" +string.format("%0#-6.1E", -1) == "-1.0E+00" +string.format("%0#-6.1E", 2) == "2.0E+00" +string.format("%0#-6.1E", -2) == "-2.0E+00" +string.format("%0#-6.1E", 3) == "3.0E+00" +string.format("%0#-6.1E", -3) == "-3.0E+00" +string.format("%0#-6.1E", nan) == "NAN " +string.format("%0#-6.1E", inf) == "INF " +string.format("%0#-6.1E", -inf) == "-INF " +string.format("%0#-6.1E", 100) == "1.0E+02" +string.format("%0#-6.1E", 10000) == "1.0E+04" +string.format("%0#-6.1E", 100000) == "1.0E+05" +string.format("%0#-6.1E", 1000000) == "1.0E+06" +string.format("%0#-6.1E", 10000000) == "1.0E+07" +string.format("%0#-6.1E", 0.01) == "1.0E-02" +string.format("%0#-6.1E", 0.0001) == "1.0E-04" +string.format("%0#-6.1E", 1e-05) == "1.0E-05" +string.format("%0#-6.1E", 1e-06) == "1.0E-06" +string.format("%0#-6.1E", 1e-07) == "1.0E-07" +string.format("%0#-6.1E", 123.456) == "1.2E+02" +string.format("%0#-6.1E", 1234560000) == "1.2E+09" +string.format("%0#-6.1E", 1.23456e-05) == "1.2E-05" +string.format("%0#-6.1E", 123.456789123) == "1.2E+02" +string.format("%0#-6.1E", 1234567891.23) == "1.2E+09" +string.format("%0#-6.1E", 1.23456789123e-05) == "1.2E-05" +string.format("%0#-6.6E", nan) == "NAN " +string.format("%0#-6.6E", inf) == "INF " +string.format("%0#-6.6E", -inf) == "-INF " +string.format("%0#-20E", 0) == "0.000000E+00 " +string.format("%0#-20E", 1) == "1.000000E+00 " +string.format("%0#-20E", -1) == "-1.000000E+00 " +string.format("%0#-20E", 2) == "2.000000E+00 " +string.format("%0#-20E", -2) == "-2.000000E+00 " +string.format("%0#-20E", 3) == "3.000000E+00 " +string.format("%0#-20E", -3) == "-3.000000E+00 " +string.format("%0#-20E", nan) == "NAN " +string.format("%0#-20E", inf) == "INF " +string.format("%0#-20E", -inf) == "-INF " +string.format("%0#-20E", 100) == "1.000000E+02 " +string.format("%0#-20E", 10000) == "1.000000E+04 " +string.format("%0#-20E", 100000) == "1.000000E+05 " +string.format("%0#-20E", 1000000) == "1.000000E+06 " +string.format("%0#-20E", 10000000) == "1.000000E+07 " +string.format("%0#-20E", 0.01) == "1.000000E-02 " +string.format("%0#-20E", 0.0001) == "1.000000E-04 " +string.format("%0#-20E", 1e-05) == "1.000000E-05 " +string.format("%0#-20E", 1e-06) == "1.000000E-06 " +string.format("%0#-20E", 1e-07) == "1.000000E-07 " +string.format("%0#-20E", 123.456) == "1.234560E+02 " +string.format("%0#-20E", 1234560000) == "1.234560E+09 " +string.format("%0#-20E", 1.23456e-05) == "1.234560E-05 " +string.format("%0#-20E", 123.456789123) == "1.234568E+02 " +string.format("%0#-20E", 1234567891.23) == "1.234568E+09 " +string.format("%0#-20E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%0#-20.0E", 0) == "0.E+00 " +string.format("%0#-20.0E", 1) == "1.E+00 " +string.format("%0#-20.0E", -1) == "-1.E+00 " +string.format("%0#-20.0E", 2) == "2.E+00 " +string.format("%0#-20.0E", -2) == "-2.E+00 " +string.format("%0#-20.0E", 3) == "3.E+00 " +string.format("%0#-20.0E", -3) == "-3.E+00 " +string.format("%0#-20.0E", nan) == "NAN " +string.format("%0#-20.0E", inf) == "INF " +string.format("%0#-20.0E", -inf) == "-INF " +string.format("%0#-20.0E", 100) == "1.E+02 " +string.format("%0#-20.0E", 10000) == "1.E+04 " +string.format("%0#-20.0E", 100000) == "1.E+05 " +string.format("%0#-20.0E", 1000000) == "1.E+06 " +string.format("%0#-20.0E", 10000000) == "1.E+07 " +string.format("%0#-20.0E", 0.01) == "1.E-02 " +string.format("%0#-20.0E", 0.0001) == "1.E-04 " +string.format("%0#-20.0E", 1e-05) == "1.E-05 " +string.format("%0#-20.0E", 1e-06) == "1.E-06 " +string.format("%0#-20.0E", 1e-07) == "1.E-07 " +string.format("%0#-20.0E", 123.456) == "1.E+02 " +string.format("%0#-20.0E", 1234560000) == "1.E+09 " +string.format("%0#-20.0E", 1.23456e-05) == "1.E-05 " +string.format("%0#-20.0E", 123.456789123) == "1.E+02 " +string.format("%0#-20.0E", 1234567891.23) == "1.E+09 " +string.format("%0#-20.0E", 1.23456789123e-05) == "1.E-05 " +string.format("%0#-20.1E", 0) == "0.0E+00 " +string.format("%0#-20.1E", 1) == "1.0E+00 " +string.format("%0#-20.1E", -1) == "-1.0E+00 " +string.format("%0#-20.1E", 2) == "2.0E+00 " +string.format("%0#-20.1E", -2) == "-2.0E+00 " +string.format("%0#-20.1E", 3) == "3.0E+00 " +string.format("%0#-20.1E", -3) == "-3.0E+00 " +string.format("%0#-20.1E", nan) == "NAN " +string.format("%0#-20.1E", inf) == "INF " +string.format("%0#-20.1E", -inf) == "-INF " +string.format("%0#-20.1E", 100) == "1.0E+02 " +string.format("%0#-20.1E", 10000) == "1.0E+04 " +string.format("%0#-20.1E", 100000) == "1.0E+05 " +string.format("%0#-20.1E", 1000000) == "1.0E+06 " +string.format("%0#-20.1E", 10000000) == "1.0E+07 " +string.format("%0#-20.1E", 0.01) == "1.0E-02 " +string.format("%0#-20.1E", 0.0001) == "1.0E-04 " +string.format("%0#-20.1E", 1e-05) == "1.0E-05 " +string.format("%0#-20.1E", 1e-06) == "1.0E-06 " +string.format("%0#-20.1E", 1e-07) == "1.0E-07 " +string.format("%0#-20.1E", 123.456) == "1.2E+02 " +string.format("%0#-20.1E", 1234560000) == "1.2E+09 " +string.format("%0#-20.1E", 1.23456e-05) == "1.2E-05 " +string.format("%0#-20.1E", 123.456789123) == "1.2E+02 " +string.format("%0#-20.1E", 1234567891.23) == "1.2E+09 " +string.format("%0#-20.1E", 1.23456789123e-05) == "1.2E-05 " +string.format("%0#-20.6E", 0) == "0.000000E+00 " +string.format("%0#-20.6E", 1) == "1.000000E+00 " +string.format("%0#-20.6E", -1) == "-1.000000E+00 " +string.format("%0#-20.6E", 2) == "2.000000E+00 " +string.format("%0#-20.6E", -2) == "-2.000000E+00 " +string.format("%0#-20.6E", 3) == "3.000000E+00 " +string.format("%0#-20.6E", -3) == "-3.000000E+00 " +string.format("%0#-20.6E", nan) == "NAN " +string.format("%0#-20.6E", inf) == "INF " +string.format("%0#-20.6E", -inf) == "-INF " +string.format("%0#-20.6E", 100) == "1.000000E+02 " +string.format("%0#-20.6E", 10000) == "1.000000E+04 " +string.format("%0#-20.6E", 100000) == "1.000000E+05 " +string.format("%0#-20.6E", 1000000) == "1.000000E+06 " +string.format("%0#-20.6E", 10000000) == "1.000000E+07 " +string.format("%0#-20.6E", 0.01) == "1.000000E-02 " +string.format("%0#-20.6E", 0.0001) == "1.000000E-04 " +string.format("%0#-20.6E", 1e-05) == "1.000000E-05 " +string.format("%0#-20.6E", 1e-06) == "1.000000E-06 " +string.format("%0#-20.6E", 1e-07) == "1.000000E-07 " +string.format("%0#-20.6E", 123.456) == "1.234560E+02 " +string.format("%0#-20.6E", 1234560000) == "1.234560E+09 " +string.format("%0#-20.6E", 1.23456e-05) == "1.234560E-05 " +string.format("%0#-20.6E", 123.456789123) == "1.234568E+02 " +string.format("%0#-20.6E", 1234567891.23) == "1.234568E+09 " +string.format("%0#-20.6E", 1.23456789123e-05) == "1.234568E-05 " +string.format("%0#-+E", 0) == "+0.000000E+00" +string.format("%0#-+E", 1) == "+1.000000E+00" +string.format("%0#-+E", -1) == "-1.000000E+00" +string.format("%0#-+E", 2) == "+2.000000E+00" +string.format("%0#-+E", -2) == "-2.000000E+00" +string.format("%0#-+E", 3) == "+3.000000E+00" +string.format("%0#-+E", -3) == "-3.000000E+00" +string.format("%0#-+E", nan) == "+NAN" +string.format("%0#-+E", inf) == "+INF" +string.format("%0#-+E", -inf) == "-INF" +string.format("%0#-+E", 100) == "+1.000000E+02" +string.format("%0#-+E", 10000) == "+1.000000E+04" +string.format("%0#-+E", 100000) == "+1.000000E+05" +string.format("%0#-+E", 1000000) == "+1.000000E+06" +string.format("%0#-+E", 10000000) == "+1.000000E+07" +string.format("%0#-+E", 0.01) == "+1.000000E-02" +string.format("%0#-+E", 0.0001) == "+1.000000E-04" +string.format("%0#-+E", 1e-05) == "+1.000000E-05" +string.format("%0#-+E", 1e-06) == "+1.000000E-06" +string.format("%0#-+E", 1e-07) == "+1.000000E-07" +string.format("%0#-+E", 123.456) == "+1.234560E+02" +string.format("%0#-+E", 1234560000) == "+1.234560E+09" +string.format("%0#-+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0#-+E", 123.456789123) == "+1.234568E+02" +string.format("%0#-+E", 1234567891.23) == "+1.234568E+09" +string.format("%0#-+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0#-+.0E", 0) == "+0.E+00" +string.format("%0#-+.0E", 1) == "+1.E+00" +string.format("%0#-+.0E", -1) == "-1.E+00" +string.format("%0#-+.0E", 2) == "+2.E+00" +string.format("%0#-+.0E", -2) == "-2.E+00" +string.format("%0#-+.0E", 3) == "+3.E+00" +string.format("%0#-+.0E", -3) == "-3.E+00" +string.format("%0#-+.0E", 100) == "+1.E+02" +string.format("%0#-+.0E", 10000) == "+1.E+04" +string.format("%0#-+.0E", 100000) == "+1.E+05" +string.format("%0#-+.0E", 1000000) == "+1.E+06" +string.format("%0#-+.0E", 10000000) == "+1.E+07" +string.format("%0#-+.0E", 0.01) == "+1.E-02" +string.format("%0#-+.0E", 0.0001) == "+1.E-04" +string.format("%0#-+.0E", 1e-05) == "+1.E-05" +string.format("%0#-+.0E", 1e-06) == "+1.E-06" +string.format("%0#-+.0E", 1e-07) == "+1.E-07" +string.format("%0#-+.0E", 123.456) == "+1.E+02" +string.format("%0#-+.0E", 1234560000) == "+1.E+09" +string.format("%0#-+.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#-+.0E", 123.456789123) == "+1.E+02" +string.format("%0#-+.0E", 1234567891.23) == "+1.E+09" +string.format("%0#-+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+.1E", 0) == "+0.0E+00" +string.format("%0#-+.1E", 1) == "+1.0E+00" +string.format("%0#-+.1E", -1) == "-1.0E+00" +string.format("%0#-+.1E", 2) == "+2.0E+00" +string.format("%0#-+.1E", -2) == "-2.0E+00" +string.format("%0#-+.1E", 3) == "+3.0E+00" +string.format("%0#-+.1E", -3) == "-3.0E+00" +string.format("%0#-+.1E", 100) == "+1.0E+02" +string.format("%0#-+.1E", 10000) == "+1.0E+04" +string.format("%0#-+.1E", 100000) == "+1.0E+05" +string.format("%0#-+.1E", 1000000) == "+1.0E+06" +string.format("%0#-+.1E", 10000000) == "+1.0E+07" +string.format("%0#-+.1E", 0.01) == "+1.0E-02" +string.format("%0#-+.1E", 0.0001) == "+1.0E-04" +string.format("%0#-+.1E", 1e-05) == "+1.0E-05" +string.format("%0#-+.1E", 1e-06) == "+1.0E-06" +string.format("%0#-+.1E", 1e-07) == "+1.0E-07" +string.format("%0#-+.1E", 123.456) == "+1.2E+02" +string.format("%0#-+.1E", 1234560000) == "+1.2E+09" +string.format("%0#-+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#-+.1E", 123.456789123) == "+1.2E+02" +string.format("%0#-+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#-+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#-+1.0E", 0) == "+0.E+00" +string.format("%0#-+1.0E", 1) == "+1.E+00" +string.format("%0#-+1.0E", -1) == "-1.E+00" +string.format("%0#-+1.0E", 2) == "+2.E+00" +string.format("%0#-+1.0E", -2) == "-2.E+00" +string.format("%0#-+1.0E", 3) == "+3.E+00" +string.format("%0#-+1.0E", -3) == "-3.E+00" +string.format("%0#-+1.0E", 100) == "+1.E+02" +string.format("%0#-+1.0E", 10000) == "+1.E+04" +string.format("%0#-+1.0E", 100000) == "+1.E+05" +string.format("%0#-+1.0E", 1000000) == "+1.E+06" +string.format("%0#-+1.0E", 10000000) == "+1.E+07" +string.format("%0#-+1.0E", 0.01) == "+1.E-02" +string.format("%0#-+1.0E", 0.0001) == "+1.E-04" +string.format("%0#-+1.0E", 1e-05) == "+1.E-05" +string.format("%0#-+1.0E", 1e-06) == "+1.E-06" +string.format("%0#-+1.0E", 1e-07) == "+1.E-07" +string.format("%0#-+1.0E", 123.456) == "+1.E+02" +string.format("%0#-+1.0E", 1234560000) == "+1.E+09" +string.format("%0#-+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#-+1.0E", 123.456789123) == "+1.E+02" +string.format("%0#-+1.0E", 1234567891.23) == "+1.E+09" +string.format("%0#-+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+1.1E", 0) == "+0.0E+00" +string.format("%0#-+1.1E", 1) == "+1.0E+00" +string.format("%0#-+1.1E", -1) == "-1.0E+00" +string.format("%0#-+1.1E", 2) == "+2.0E+00" +string.format("%0#-+1.1E", -2) == "-2.0E+00" +string.format("%0#-+1.1E", 3) == "+3.0E+00" +string.format("%0#-+1.1E", -3) == "-3.0E+00" +string.format("%0#-+1.1E", 100) == "+1.0E+02" +string.format("%0#-+1.1E", 10000) == "+1.0E+04" +string.format("%0#-+1.1E", 100000) == "+1.0E+05" +string.format("%0#-+1.1E", 1000000) == "+1.0E+06" +string.format("%0#-+1.1E", 10000000) == "+1.0E+07" +string.format("%0#-+1.1E", 0.01) == "+1.0E-02" +string.format("%0#-+1.1E", 0.0001) == "+1.0E-04" +string.format("%0#-+1.1E", 1e-05) == "+1.0E-05" +string.format("%0#-+1.1E", 1e-06) == "+1.0E-06" +string.format("%0#-+1.1E", 1e-07) == "+1.0E-07" +string.format("%0#-+1.1E", 123.456) == "+1.2E+02" +string.format("%0#-+1.1E", 1234560000) == "+1.2E+09" +string.format("%0#-+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#-+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0#-+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#-+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#-+2.0E", 0) == "+0.E+00" +string.format("%0#-+2.0E", 1) == "+1.E+00" +string.format("%0#-+2.0E", -1) == "-1.E+00" +string.format("%0#-+2.0E", 2) == "+2.E+00" +string.format("%0#-+2.0E", -2) == "-2.E+00" +string.format("%0#-+2.0E", 3) == "+3.E+00" +string.format("%0#-+2.0E", -3) == "-3.E+00" +string.format("%0#-+2.0E", 100) == "+1.E+02" +string.format("%0#-+2.0E", 10000) == "+1.E+04" +string.format("%0#-+2.0E", 100000) == "+1.E+05" +string.format("%0#-+2.0E", 1000000) == "+1.E+06" +string.format("%0#-+2.0E", 10000000) == "+1.E+07" +string.format("%0#-+2.0E", 0.01) == "+1.E-02" +string.format("%0#-+2.0E", 0.0001) == "+1.E-04" +string.format("%0#-+2.0E", 1e-05) == "+1.E-05" +string.format("%0#-+2.0E", 1e-06) == "+1.E-06" +string.format("%0#-+2.0E", 1e-07) == "+1.E-07" +string.format("%0#-+2.0E", 123.456) == "+1.E+02" +string.format("%0#-+2.0E", 1234560000) == "+1.E+09" +string.format("%0#-+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#-+2.0E", 123.456789123) == "+1.E+02" +string.format("%0#-+2.0E", 1234567891.23) == "+1.E+09" +string.format("%0#-+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+2.1E", 0) == "+0.0E+00" +string.format("%0#-+2.1E", 1) == "+1.0E+00" +string.format("%0#-+2.1E", -1) == "-1.0E+00" +string.format("%0#-+2.1E", 2) == "+2.0E+00" +string.format("%0#-+2.1E", -2) == "-2.0E+00" +string.format("%0#-+2.1E", 3) == "+3.0E+00" +string.format("%0#-+2.1E", -3) == "-3.0E+00" +string.format("%0#-+2.1E", 100) == "+1.0E+02" +string.format("%0#-+2.1E", 10000) == "+1.0E+04" +string.format("%0#-+2.1E", 100000) == "+1.0E+05" +string.format("%0#-+2.1E", 1000000) == "+1.0E+06" +string.format("%0#-+2.1E", 10000000) == "+1.0E+07" +string.format("%0#-+2.1E", 0.01) == "+1.0E-02" +string.format("%0#-+2.1E", 0.0001) == "+1.0E-04" +string.format("%0#-+2.1E", 1e-05) == "+1.0E-05" +string.format("%0#-+2.1E", 1e-06) == "+1.0E-06" +string.format("%0#-+2.1E", 1e-07) == "+1.0E-07" +string.format("%0#-+2.1E", 123.456) == "+1.2E+02" +string.format("%0#-+2.1E", 1234560000) == "+1.2E+09" +string.format("%0#-+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#-+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0#-+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#-+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#-+6E", nan) == "+NAN " +string.format("%0#-+6E", inf) == "+INF " +string.format("%0#-+6E", -inf) == "-INF " +string.format("%0#-+6.0E", 0) == "+0.E+00" +string.format("%0#-+6.0E", 1) == "+1.E+00" +string.format("%0#-+6.0E", -1) == "-1.E+00" +string.format("%0#-+6.0E", 2) == "+2.E+00" +string.format("%0#-+6.0E", -2) == "-2.E+00" +string.format("%0#-+6.0E", 3) == "+3.E+00" +string.format("%0#-+6.0E", -3) == "-3.E+00" +string.format("%0#-+6.0E", nan) == "+NAN " +string.format("%0#-+6.0E", inf) == "+INF " +string.format("%0#-+6.0E", -inf) == "-INF " +string.format("%0#-+6.0E", 100) == "+1.E+02" +string.format("%0#-+6.0E", 10000) == "+1.E+04" +string.format("%0#-+6.0E", 100000) == "+1.E+05" +string.format("%0#-+6.0E", 1000000) == "+1.E+06" +string.format("%0#-+6.0E", 10000000) == "+1.E+07" +string.format("%0#-+6.0E", 0.01) == "+1.E-02" +string.format("%0#-+6.0E", 0.0001) == "+1.E-04" +string.format("%0#-+6.0E", 1e-05) == "+1.E-05" +string.format("%0#-+6.0E", 1e-06) == "+1.E-06" +string.format("%0#-+6.0E", 1e-07) == "+1.E-07" +string.format("%0#-+6.0E", 123.456) == "+1.E+02" +string.format("%0#-+6.0E", 1234560000) == "+1.E+09" +string.format("%0#-+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%0#-+6.0E", 123.456789123) == "+1.E+02" +string.format("%0#-+6.0E", 1234567891.23) == "+1.E+09" +string.format("%0#-+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+6.1E", 0) == "+0.0E+00" +string.format("%0#-+6.1E", 1) == "+1.0E+00" +string.format("%0#-+6.1E", -1) == "-1.0E+00" +string.format("%0#-+6.1E", 2) == "+2.0E+00" +string.format("%0#-+6.1E", -2) == "-2.0E+00" +string.format("%0#-+6.1E", 3) == "+3.0E+00" +string.format("%0#-+6.1E", -3) == "-3.0E+00" +string.format("%0#-+6.1E", nan) == "+NAN " +string.format("%0#-+6.1E", inf) == "+INF " +string.format("%0#-+6.1E", -inf) == "-INF " +string.format("%0#-+6.1E", 100) == "+1.0E+02" +string.format("%0#-+6.1E", 10000) == "+1.0E+04" +string.format("%0#-+6.1E", 100000) == "+1.0E+05" +string.format("%0#-+6.1E", 1000000) == "+1.0E+06" +string.format("%0#-+6.1E", 10000000) == "+1.0E+07" +string.format("%0#-+6.1E", 0.01) == "+1.0E-02" +string.format("%0#-+6.1E", 0.0001) == "+1.0E-04" +string.format("%0#-+6.1E", 1e-05) == "+1.0E-05" +string.format("%0#-+6.1E", 1e-06) == "+1.0E-06" +string.format("%0#-+6.1E", 1e-07) == "+1.0E-07" +string.format("%0#-+6.1E", 123.456) == "+1.2E+02" +string.format("%0#-+6.1E", 1234560000) == "+1.2E+09" +string.format("%0#-+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0#-+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0#-+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0#-+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0#-+6.6E", nan) == "+NAN " +string.format("%0#-+6.6E", inf) == "+INF " +string.format("%0#-+6.6E", -inf) == "-INF " +string.format("%0#-+20E", 0) == "+0.000000E+00 " +string.format("%0#-+20E", 1) == "+1.000000E+00 " +string.format("%0#-+20E", -1) == "-1.000000E+00 " +string.format("%0#-+20E", 2) == "+2.000000E+00 " +string.format("%0#-+20E", -2) == "-2.000000E+00 " +string.format("%0#-+20E", 3) == "+3.000000E+00 " +string.format("%0#-+20E", -3) == "-3.000000E+00 " +string.format("%0#-+20E", nan) == "+NAN " +string.format("%0#-+20E", inf) == "+INF " +string.format("%0#-+20E", -inf) == "-INF " +string.format("%0#-+20E", 100) == "+1.000000E+02 " +string.format("%0#-+20E", 10000) == "+1.000000E+04 " +string.format("%0#-+20E", 100000) == "+1.000000E+05 " +string.format("%0#-+20E", 1000000) == "+1.000000E+06 " +string.format("%0#-+20E", 10000000) == "+1.000000E+07 " +string.format("%0#-+20E", 0.01) == "+1.000000E-02 " +string.format("%0#-+20E", 0.0001) == "+1.000000E-04 " +string.format("%0#-+20E", 1e-05) == "+1.000000E-05 " +string.format("%0#-+20E", 1e-06) == "+1.000000E-06 " +string.format("%0#-+20E", 1e-07) == "+1.000000E-07 " +string.format("%0#-+20E", 123.456) == "+1.234560E+02 " +string.format("%0#-+20E", 1234560000) == "+1.234560E+09 " +string.format("%0#-+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0#-+20E", 123.456789123) == "+1.234568E+02 " +string.format("%0#-+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%0#-+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0#-+20.0E", 0) == "+0.E+00 " +string.format("%0#-+20.0E", 1) == "+1.E+00 " +string.format("%0#-+20.0E", -1) == "-1.E+00 " +string.format("%0#-+20.0E", 2) == "+2.E+00 " +string.format("%0#-+20.0E", -2) == "-2.E+00 " +string.format("%0#-+20.0E", 3) == "+3.E+00 " +string.format("%0#-+20.0E", -3) == "-3.E+00 " +string.format("%0#-+20.0E", nan) == "+NAN " +string.format("%0#-+20.0E", inf) == "+INF " +string.format("%0#-+20.0E", -inf) == "-INF " +string.format("%0#-+20.0E", 100) == "+1.E+02 " +string.format("%0#-+20.0E", 10000) == "+1.E+04 " +string.format("%0#-+20.0E", 100000) == "+1.E+05 " +string.format("%0#-+20.0E", 1000000) == "+1.E+06 " +string.format("%0#-+20.0E", 10000000) == "+1.E+07 " +string.format("%0#-+20.0E", 0.01) == "+1.E-02 " +string.format("%0#-+20.0E", 0.0001) == "+1.E-04 " +string.format("%0#-+20.0E", 1e-05) == "+1.E-05 " +string.format("%0#-+20.0E", 1e-06) == "+1.E-06 " +string.format("%0#-+20.0E", 1e-07) == "+1.E-07 " +string.format("%0#-+20.0E", 123.456) == "+1.E+02 " +string.format("%0#-+20.0E", 1234560000) == "+1.E+09 " +string.format("%0#-+20.0E", 1.23456e-05) == "+1.E-05 " +string.format("%0#-+20.0E", 123.456789123) == "+1.E+02 " +string.format("%0#-+20.0E", 1234567891.23) == "+1.E+09 " +string.format("%0#-+20.0E", 1.23456789123e-05) == "+1.E-05 " +string.format("%0#-+20.1E", 0) == "+0.0E+00 " +string.format("%0#-+20.1E", 1) == "+1.0E+00 " +string.format("%0#-+20.1E", -1) == "-1.0E+00 " +string.format("%0#-+20.1E", 2) == "+2.0E+00 " +string.format("%0#-+20.1E", -2) == "-2.0E+00 " +string.format("%0#-+20.1E", 3) == "+3.0E+00 " +string.format("%0#-+20.1E", -3) == "-3.0E+00 " +string.format("%0#-+20.1E", nan) == "+NAN " +string.format("%0#-+20.1E", inf) == "+INF " +string.format("%0#-+20.1E", -inf) == "-INF " +string.format("%0#-+20.1E", 100) == "+1.0E+02 " +string.format("%0#-+20.1E", 10000) == "+1.0E+04 " +string.format("%0#-+20.1E", 100000) == "+1.0E+05 " +string.format("%0#-+20.1E", 1000000) == "+1.0E+06 " +string.format("%0#-+20.1E", 10000000) == "+1.0E+07 " +string.format("%0#-+20.1E", 0.01) == "+1.0E-02 " +string.format("%0#-+20.1E", 0.0001) == "+1.0E-04 " +string.format("%0#-+20.1E", 1e-05) == "+1.0E-05 " +string.format("%0#-+20.1E", 1e-06) == "+1.0E-06 " +string.format("%0#-+20.1E", 1e-07) == "+1.0E-07 " +string.format("%0#-+20.1E", 123.456) == "+1.2E+02 " +string.format("%0#-+20.1E", 1234560000) == "+1.2E+09 " +string.format("%0#-+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%0#-+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%0#-+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%0#-+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%0#-+20.6E", 0) == "+0.000000E+00 " +string.format("%0#-+20.6E", 1) == "+1.000000E+00 " +string.format("%0#-+20.6E", -1) == "-1.000000E+00 " +string.format("%0#-+20.6E", 2) == "+2.000000E+00 " +string.format("%0#-+20.6E", -2) == "-2.000000E+00 " +string.format("%0#-+20.6E", 3) == "+3.000000E+00 " +string.format("%0#-+20.6E", -3) == "-3.000000E+00 " +string.format("%0#-+20.6E", nan) == "+NAN " +string.format("%0#-+20.6E", inf) == "+INF " +string.format("%0#-+20.6E", -inf) == "-INF " +string.format("%0#-+20.6E", 100) == "+1.000000E+02 " +string.format("%0#-+20.6E", 10000) == "+1.000000E+04 " +string.format("%0#-+20.6E", 100000) == "+1.000000E+05 " +string.format("%0#-+20.6E", 1000000) == "+1.000000E+06 " +string.format("%0#-+20.6E", 10000000) == "+1.000000E+07 " +string.format("%0#-+20.6E", 0.01) == "+1.000000E-02 " +string.format("%0#-+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%0#-+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%0#-+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%0#-+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%0#-+20.6E", 123.456) == "+1.234560E+02 " +string.format("%0#-+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%0#-+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0#-+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%0#-+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%0#-+20.6E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0# E", 0) == " 0.000000E+00" +string.format("%0# E", 1) == " 1.000000E+00" +string.format("%0# E", -1) == "-1.000000E+00" +string.format("%0# E", 2) == " 2.000000E+00" +string.format("%0# E", -2) == "-2.000000E+00" +string.format("%0# E", 3) == " 3.000000E+00" +string.format("%0# E", -3) == "-3.000000E+00" +string.format("%0# E", nan) == " NAN" +string.format("%0# E", inf) == " INF" +string.format("%0# E", -inf) == "-INF" +string.format("%0# E", 100) == " 1.000000E+02" +string.format("%0# E", 10000) == " 1.000000E+04" +string.format("%0# E", 100000) == " 1.000000E+05" +string.format("%0# E", 1000000) == " 1.000000E+06" +string.format("%0# E", 10000000) == " 1.000000E+07" +string.format("%0# E", 0.01) == " 1.000000E-02" +string.format("%0# E", 0.0001) == " 1.000000E-04" +string.format("%0# E", 1e-05) == " 1.000000E-05" +string.format("%0# E", 1e-06) == " 1.000000E-06" +string.format("%0# E", 1e-07) == " 1.000000E-07" +string.format("%0# E", 123.456) == " 1.234560E+02" +string.format("%0# E", 1234560000) == " 1.234560E+09" +string.format("%0# E", 1.23456e-05) == " 1.234560E-05" +string.format("%0# E", 123.456789123) == " 1.234568E+02" +string.format("%0# E", 1234567891.23) == " 1.234568E+09" +string.format("%0# E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%0# .0E", 0) == " 0.E+00" +string.format("%0# .0E", 1) == " 1.E+00" +string.format("%0# .0E", -1) == "-1.E+00" +string.format("%0# .0E", 2) == " 2.E+00" +string.format("%0# .0E", -2) == "-2.E+00" +string.format("%0# .0E", 3) == " 3.E+00" +string.format("%0# .0E", -3) == "-3.E+00" +string.format("%0# .0E", 100) == " 1.E+02" +string.format("%0# .0E", 10000) == " 1.E+04" +string.format("%0# .0E", 100000) == " 1.E+05" +string.format("%0# .0E", 1000000) == " 1.E+06" +string.format("%0# .0E", 10000000) == " 1.E+07" +string.format("%0# .0E", 0.01) == " 1.E-02" +string.format("%0# .0E", 0.0001) == " 1.E-04" +string.format("%0# .0E", 1e-05) == " 1.E-05" +string.format("%0# .0E", 1e-06) == " 1.E-06" +string.format("%0# .0E", 1e-07) == " 1.E-07" +string.format("%0# .0E", 123.456) == " 1.E+02" +string.format("%0# .0E", 1234560000) == " 1.E+09" +string.format("%0# .0E", 1.23456e-05) == " 1.E-05" +string.format("%0# .0E", 123.456789123) == " 1.E+02" +string.format("%0# .0E", 1234567891.23) == " 1.E+09" +string.format("%0# .0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# .1E", 0) == " 0.0E+00" +string.format("%0# .1E", 1) == " 1.0E+00" +string.format("%0# .1E", -1) == "-1.0E+00" +string.format("%0# .1E", 2) == " 2.0E+00" +string.format("%0# .1E", -2) == "-2.0E+00" +string.format("%0# .1E", 3) == " 3.0E+00" +string.format("%0# .1E", -3) == "-3.0E+00" +string.format("%0# .1E", 100) == " 1.0E+02" +string.format("%0# .1E", 10000) == " 1.0E+04" +string.format("%0# .1E", 100000) == " 1.0E+05" +string.format("%0# .1E", 1000000) == " 1.0E+06" +string.format("%0# .1E", 10000000) == " 1.0E+07" +string.format("%0# .1E", 0.01) == " 1.0E-02" +string.format("%0# .1E", 0.0001) == " 1.0E-04" +string.format("%0# .1E", 1e-05) == " 1.0E-05" +string.format("%0# .1E", 1e-06) == " 1.0E-06" +string.format("%0# .1E", 1e-07) == " 1.0E-07" +string.format("%0# .1E", 123.456) == " 1.2E+02" +string.format("%0# .1E", 1234560000) == " 1.2E+09" +string.format("%0# .1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# .1E", 123.456789123) == " 1.2E+02" +string.format("%0# .1E", 1234567891.23) == " 1.2E+09" +string.format("%0# .1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# 1.0E", 0) == " 0.E+00" +string.format("%0# 1.0E", 1) == " 1.E+00" +string.format("%0# 1.0E", -1) == "-1.E+00" +string.format("%0# 1.0E", 2) == " 2.E+00" +string.format("%0# 1.0E", -2) == "-2.E+00" +string.format("%0# 1.0E", 3) == " 3.E+00" +string.format("%0# 1.0E", -3) == "-3.E+00" +string.format("%0# 1.0E", 100) == " 1.E+02" +string.format("%0# 1.0E", 10000) == " 1.E+04" +string.format("%0# 1.0E", 100000) == " 1.E+05" +string.format("%0# 1.0E", 1000000) == " 1.E+06" +string.format("%0# 1.0E", 10000000) == " 1.E+07" +string.format("%0# 1.0E", 0.01) == " 1.E-02" +string.format("%0# 1.0E", 0.0001) == " 1.E-04" +string.format("%0# 1.0E", 1e-05) == " 1.E-05" +string.format("%0# 1.0E", 1e-06) == " 1.E-06" +string.format("%0# 1.0E", 1e-07) == " 1.E-07" +string.format("%0# 1.0E", 123.456) == " 1.E+02" +string.format("%0# 1.0E", 1234560000) == " 1.E+09" +string.format("%0# 1.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# 1.0E", 123.456789123) == " 1.E+02" +string.format("%0# 1.0E", 1234567891.23) == " 1.E+09" +string.format("%0# 1.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 1.1E", 0) == " 0.0E+00" +string.format("%0# 1.1E", 1) == " 1.0E+00" +string.format("%0# 1.1E", -1) == "-1.0E+00" +string.format("%0# 1.1E", 2) == " 2.0E+00" +string.format("%0# 1.1E", -2) == "-2.0E+00" +string.format("%0# 1.1E", 3) == " 3.0E+00" +string.format("%0# 1.1E", -3) == "-3.0E+00" +string.format("%0# 1.1E", 100) == " 1.0E+02" +string.format("%0# 1.1E", 10000) == " 1.0E+04" +string.format("%0# 1.1E", 100000) == " 1.0E+05" +string.format("%0# 1.1E", 1000000) == " 1.0E+06" +string.format("%0# 1.1E", 10000000) == " 1.0E+07" +string.format("%0# 1.1E", 0.01) == " 1.0E-02" +string.format("%0# 1.1E", 0.0001) == " 1.0E-04" +string.format("%0# 1.1E", 1e-05) == " 1.0E-05" +string.format("%0# 1.1E", 1e-06) == " 1.0E-06" +string.format("%0# 1.1E", 1e-07) == " 1.0E-07" +string.format("%0# 1.1E", 123.456) == " 1.2E+02" +string.format("%0# 1.1E", 1234560000) == " 1.2E+09" +string.format("%0# 1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# 1.1E", 123.456789123) == " 1.2E+02" +string.format("%0# 1.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# 1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# 2.0E", 0) == " 0.E+00" +string.format("%0# 2.0E", 1) == " 1.E+00" +string.format("%0# 2.0E", -1) == "-1.E+00" +string.format("%0# 2.0E", 2) == " 2.E+00" +string.format("%0# 2.0E", -2) == "-2.E+00" +string.format("%0# 2.0E", 3) == " 3.E+00" +string.format("%0# 2.0E", -3) == "-3.E+00" +string.format("%0# 2.0E", 100) == " 1.E+02" +string.format("%0# 2.0E", 10000) == " 1.E+04" +string.format("%0# 2.0E", 100000) == " 1.E+05" +string.format("%0# 2.0E", 1000000) == " 1.E+06" +string.format("%0# 2.0E", 10000000) == " 1.E+07" +string.format("%0# 2.0E", 0.01) == " 1.E-02" +string.format("%0# 2.0E", 0.0001) == " 1.E-04" +string.format("%0# 2.0E", 1e-05) == " 1.E-05" +string.format("%0# 2.0E", 1e-06) == " 1.E-06" +string.format("%0# 2.0E", 1e-07) == " 1.E-07" +string.format("%0# 2.0E", 123.456) == " 1.E+02" +string.format("%0# 2.0E", 1234560000) == " 1.E+09" +string.format("%0# 2.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# 2.0E", 123.456789123) == " 1.E+02" +string.format("%0# 2.0E", 1234567891.23) == " 1.E+09" +string.format("%0# 2.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 2.1E", 0) == " 0.0E+00" +string.format("%0# 2.1E", 1) == " 1.0E+00" +string.format("%0# 2.1E", -1) == "-1.0E+00" +string.format("%0# 2.1E", 2) == " 2.0E+00" +string.format("%0# 2.1E", -2) == "-2.0E+00" +string.format("%0# 2.1E", 3) == " 3.0E+00" +string.format("%0# 2.1E", -3) == "-3.0E+00" +string.format("%0# 2.1E", 100) == " 1.0E+02" +string.format("%0# 2.1E", 10000) == " 1.0E+04" +string.format("%0# 2.1E", 100000) == " 1.0E+05" +string.format("%0# 2.1E", 1000000) == " 1.0E+06" +string.format("%0# 2.1E", 10000000) == " 1.0E+07" +string.format("%0# 2.1E", 0.01) == " 1.0E-02" +string.format("%0# 2.1E", 0.0001) == " 1.0E-04" +string.format("%0# 2.1E", 1e-05) == " 1.0E-05" +string.format("%0# 2.1E", 1e-06) == " 1.0E-06" +string.format("%0# 2.1E", 1e-07) == " 1.0E-07" +string.format("%0# 2.1E", 123.456) == " 1.2E+02" +string.format("%0# 2.1E", 1234560000) == " 1.2E+09" +string.format("%0# 2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# 2.1E", 123.456789123) == " 1.2E+02" +string.format("%0# 2.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# 2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# 6E", nan) == " NAN" +string.format("%0# 6E", inf) == " INF" +string.format("%0# 6E", -inf) == " -INF" +string.format("%0# 6.0E", 0) == " 0.E+00" +string.format("%0# 6.0E", 1) == " 1.E+00" +string.format("%0# 6.0E", -1) == "-1.E+00" +string.format("%0# 6.0E", 2) == " 2.E+00" +string.format("%0# 6.0E", -2) == "-2.E+00" +string.format("%0# 6.0E", 3) == " 3.E+00" +string.format("%0# 6.0E", -3) == "-3.E+00" +string.format("%0# 6.0E", nan) == " NAN" +string.format("%0# 6.0E", inf) == " INF" +string.format("%0# 6.0E", -inf) == " -INF" +string.format("%0# 6.0E", 100) == " 1.E+02" +string.format("%0# 6.0E", 10000) == " 1.E+04" +string.format("%0# 6.0E", 100000) == " 1.E+05" +string.format("%0# 6.0E", 1000000) == " 1.E+06" +string.format("%0# 6.0E", 10000000) == " 1.E+07" +string.format("%0# 6.0E", 0.01) == " 1.E-02" +string.format("%0# 6.0E", 0.0001) == " 1.E-04" +string.format("%0# 6.0E", 1e-05) == " 1.E-05" +string.format("%0# 6.0E", 1e-06) == " 1.E-06" +string.format("%0# 6.0E", 1e-07) == " 1.E-07" +string.format("%0# 6.0E", 123.456) == " 1.E+02" +string.format("%0# 6.0E", 1234560000) == " 1.E+09" +string.format("%0# 6.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# 6.0E", 123.456789123) == " 1.E+02" +string.format("%0# 6.0E", 1234567891.23) == " 1.E+09" +string.format("%0# 6.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 6.1E", 0) == " 0.0E+00" +string.format("%0# 6.1E", 1) == " 1.0E+00" +string.format("%0# 6.1E", -1) == "-1.0E+00" +string.format("%0# 6.1E", 2) == " 2.0E+00" +string.format("%0# 6.1E", -2) == "-2.0E+00" +string.format("%0# 6.1E", 3) == " 3.0E+00" +string.format("%0# 6.1E", -3) == "-3.0E+00" +string.format("%0# 6.1E", nan) == " NAN" +string.format("%0# 6.1E", inf) == " INF" +string.format("%0# 6.1E", -inf) == " -INF" +string.format("%0# 6.1E", 100) == " 1.0E+02" +string.format("%0# 6.1E", 10000) == " 1.0E+04" +string.format("%0# 6.1E", 100000) == " 1.0E+05" +string.format("%0# 6.1E", 1000000) == " 1.0E+06" +string.format("%0# 6.1E", 10000000) == " 1.0E+07" +string.format("%0# 6.1E", 0.01) == " 1.0E-02" +string.format("%0# 6.1E", 0.0001) == " 1.0E-04" +string.format("%0# 6.1E", 1e-05) == " 1.0E-05" +string.format("%0# 6.1E", 1e-06) == " 1.0E-06" +string.format("%0# 6.1E", 1e-07) == " 1.0E-07" +string.format("%0# 6.1E", 123.456) == " 1.2E+02" +string.format("%0# 6.1E", 1234560000) == " 1.2E+09" +string.format("%0# 6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# 6.1E", 123.456789123) == " 1.2E+02" +string.format("%0# 6.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# 6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# 6.6E", nan) == " NAN" +string.format("%0# 6.6E", inf) == " INF" +string.format("%0# 6.6E", -inf) == " -INF" +string.format("%0# 20E", 0) == " 00000000.000000E+00" +string.format("%0# 20E", 1) == " 00000001.000000E+00" +string.format("%0# 20E", -1) == "-00000001.000000E+00" +string.format("%0# 20E", 2) == " 00000002.000000E+00" +string.format("%0# 20E", -2) == "-00000002.000000E+00" +string.format("%0# 20E", 3) == " 00000003.000000E+00" +string.format("%0# 20E", -3) == "-00000003.000000E+00" +string.format("%0# 20E", nan) == " NAN" +string.format("%0# 20E", inf) == " INF" +string.format("%0# 20E", -inf) == " -INF" +string.format("%0# 20E", 100) == " 00000001.000000E+02" +string.format("%0# 20E", 10000) == " 00000001.000000E+04" +string.format("%0# 20E", 100000) == " 00000001.000000E+05" +string.format("%0# 20E", 1000000) == " 00000001.000000E+06" +string.format("%0# 20E", 10000000) == " 00000001.000000E+07" +string.format("%0# 20E", 0.01) == " 00000001.000000E-02" +string.format("%0# 20E", 0.0001) == " 00000001.000000E-04" +string.format("%0# 20E", 1e-05) == " 00000001.000000E-05" +string.format("%0# 20E", 1e-06) == " 00000001.000000E-06" +string.format("%0# 20E", 1e-07) == " 00000001.000000E-07" +string.format("%0# 20E", 123.456) == " 00000001.234560E+02" +string.format("%0# 20E", 1234560000) == " 00000001.234560E+09" +string.format("%0# 20E", 1.23456e-05) == " 00000001.234560E-05" +string.format("%0# 20E", 123.456789123) == " 00000001.234568E+02" +string.format("%0# 20E", 1234567891.23) == " 00000001.234568E+09" +string.format("%0# 20E", 1.23456789123e-05) == " 00000001.234568E-05" +string.format("%0# 20.0E", 0) == " 00000000000000.E+00" +string.format("%0# 20.0E", 1) == " 00000000000001.E+00" +string.format("%0# 20.0E", -1) == "-00000000000001.E+00" +string.format("%0# 20.0E", 2) == " 00000000000002.E+00" +string.format("%0# 20.0E", -2) == "-00000000000002.E+00" +string.format("%0# 20.0E", 3) == " 00000000000003.E+00" +string.format("%0# 20.0E", -3) == "-00000000000003.E+00" +string.format("%0# 20.0E", nan) == " NAN" +string.format("%0# 20.0E", inf) == " INF" +string.format("%0# 20.0E", -inf) == " -INF" +string.format("%0# 20.0E", 100) == " 00000000000001.E+02" +string.format("%0# 20.0E", 10000) == " 00000000000001.E+04" +string.format("%0# 20.0E", 100000) == " 00000000000001.E+05" +string.format("%0# 20.0E", 1000000) == " 00000000000001.E+06" +string.format("%0# 20.0E", 10000000) == " 00000000000001.E+07" +string.format("%0# 20.0E", 0.01) == " 00000000000001.E-02" +string.format("%0# 20.0E", 0.0001) == " 00000000000001.E-04" +string.format("%0# 20.0E", 1e-05) == " 00000000000001.E-05" +string.format("%0# 20.0E", 1e-06) == " 00000000000001.E-06" +string.format("%0# 20.0E", 1e-07) == " 00000000000001.E-07" +string.format("%0# 20.0E", 123.456) == " 00000000000001.E+02" +string.format("%0# 20.0E", 1234560000) == " 00000000000001.E+09" +string.format("%0# 20.0E", 1.23456e-05) == " 00000000000001.E-05" +string.format("%0# 20.0E", 123.456789123) == " 00000000000001.E+02" +string.format("%0# 20.0E", 1234567891.23) == " 00000000000001.E+09" +string.format("%0# 20.0E", 1.23456789123e-05) == " 00000000000001.E-05" +string.format("%0# 20.1E", 0) == " 0000000000000.0E+00" +string.format("%0# 20.1E", 1) == " 0000000000001.0E+00" +string.format("%0# 20.1E", -1) == "-0000000000001.0E+00" +string.format("%0# 20.1E", 2) == " 0000000000002.0E+00" +string.format("%0# 20.1E", -2) == "-0000000000002.0E+00" +string.format("%0# 20.1E", 3) == " 0000000000003.0E+00" +string.format("%0# 20.1E", -3) == "-0000000000003.0E+00" +string.format("%0# 20.1E", nan) == " NAN" +string.format("%0# 20.1E", inf) == " INF" +string.format("%0# 20.1E", -inf) == " -INF" +string.format("%0# 20.1E", 100) == " 0000000000001.0E+02" +string.format("%0# 20.1E", 10000) == " 0000000000001.0E+04" +string.format("%0# 20.1E", 100000) == " 0000000000001.0E+05" +string.format("%0# 20.1E", 1000000) == " 0000000000001.0E+06" +string.format("%0# 20.1E", 10000000) == " 0000000000001.0E+07" +string.format("%0# 20.1E", 0.01) == " 0000000000001.0E-02" +string.format("%0# 20.1E", 0.0001) == " 0000000000001.0E-04" +string.format("%0# 20.1E", 1e-05) == " 0000000000001.0E-05" +string.format("%0# 20.1E", 1e-06) == " 0000000000001.0E-06" +string.format("%0# 20.1E", 1e-07) == " 0000000000001.0E-07" +string.format("%0# 20.1E", 123.456) == " 0000000000001.2E+02" +string.format("%0# 20.1E", 1234560000) == " 0000000000001.2E+09" +string.format("%0# 20.1E", 1.23456e-05) == " 0000000000001.2E-05" +string.format("%0# 20.1E", 123.456789123) == " 0000000000001.2E+02" +string.format("%0# 20.1E", 1234567891.23) == " 0000000000001.2E+09" +string.format("%0# 20.1E", 1.23456789123e-05) == " 0000000000001.2E-05" +string.format("%0# 20.6E", 0) == " 00000000.000000E+00" +string.format("%0# 20.6E", 1) == " 00000001.000000E+00" +string.format("%0# 20.6E", -1) == "-00000001.000000E+00" +string.format("%0# 20.6E", 2) == " 00000002.000000E+00" +string.format("%0# 20.6E", -2) == "-00000002.000000E+00" +string.format("%0# 20.6E", 3) == " 00000003.000000E+00" +string.format("%0# 20.6E", -3) == "-00000003.000000E+00" +string.format("%0# 20.6E", nan) == " NAN" +string.format("%0# 20.6E", inf) == " INF" +string.format("%0# 20.6E", -inf) == " -INF" +string.format("%0# 20.6E", 100) == " 00000001.000000E+02" +string.format("%0# 20.6E", 10000) == " 00000001.000000E+04" +string.format("%0# 20.6E", 100000) == " 00000001.000000E+05" +string.format("%0# 20.6E", 1000000) == " 00000001.000000E+06" +string.format("%0# 20.6E", 10000000) == " 00000001.000000E+07" +string.format("%0# 20.6E", 0.01) == " 00000001.000000E-02" +string.format("%0# 20.6E", 0.0001) == " 00000001.000000E-04" +string.format("%0# 20.6E", 1e-05) == " 00000001.000000E-05" +string.format("%0# 20.6E", 1e-06) == " 00000001.000000E-06" +string.format("%0# 20.6E", 1e-07) == " 00000001.000000E-07" +string.format("%0# 20.6E", 123.456) == " 00000001.234560E+02" +string.format("%0# 20.6E", 1234560000) == " 00000001.234560E+09" +string.format("%0# 20.6E", 1.23456e-05) == " 00000001.234560E-05" +string.format("%0# 20.6E", 123.456789123) == " 00000001.234568E+02" +string.format("%0# 20.6E", 1234567891.23) == " 00000001.234568E+09" +string.format("%0# 20.6E", 1.23456789123e-05) == " 00000001.234568E-05" +string.format("%0# +E", 0) == "+0.000000E+00" +string.format("%0# +E", 1) == "+1.000000E+00" +string.format("%0# +E", -1) == "-1.000000E+00" +string.format("%0# +E", 2) == "+2.000000E+00" +string.format("%0# +E", -2) == "-2.000000E+00" +string.format("%0# +E", 3) == "+3.000000E+00" +string.format("%0# +E", -3) == "-3.000000E+00" +string.format("%0# +E", nan) == "+NAN" +string.format("%0# +E", inf) == "+INF" +string.format("%0# +E", -inf) == "-INF" +string.format("%0# +E", 100) == "+1.000000E+02" +string.format("%0# +E", 10000) == "+1.000000E+04" +string.format("%0# +E", 100000) == "+1.000000E+05" +string.format("%0# +E", 1000000) == "+1.000000E+06" +string.format("%0# +E", 10000000) == "+1.000000E+07" +string.format("%0# +E", 0.01) == "+1.000000E-02" +string.format("%0# +E", 0.0001) == "+1.000000E-04" +string.format("%0# +E", 1e-05) == "+1.000000E-05" +string.format("%0# +E", 1e-06) == "+1.000000E-06" +string.format("%0# +E", 1e-07) == "+1.000000E-07" +string.format("%0# +E", 123.456) == "+1.234560E+02" +string.format("%0# +E", 1234560000) == "+1.234560E+09" +string.format("%0# +E", 1.23456e-05) == "+1.234560E-05" +string.format("%0# +E", 123.456789123) == "+1.234568E+02" +string.format("%0# +E", 1234567891.23) == "+1.234568E+09" +string.format("%0# +E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0# +.0E", 0) == "+0.E+00" +string.format("%0# +.0E", 1) == "+1.E+00" +string.format("%0# +.0E", -1) == "-1.E+00" +string.format("%0# +.0E", 2) == "+2.E+00" +string.format("%0# +.0E", -2) == "-2.E+00" +string.format("%0# +.0E", 3) == "+3.E+00" +string.format("%0# +.0E", -3) == "-3.E+00" +string.format("%0# +.0E", 100) == "+1.E+02" +string.format("%0# +.0E", 10000) == "+1.E+04" +string.format("%0# +.0E", 100000) == "+1.E+05" +string.format("%0# +.0E", 1000000) == "+1.E+06" +string.format("%0# +.0E", 10000000) == "+1.E+07" +string.format("%0# +.0E", 0.01) == "+1.E-02" +string.format("%0# +.0E", 0.0001) == "+1.E-04" +string.format("%0# +.0E", 1e-05) == "+1.E-05" +string.format("%0# +.0E", 1e-06) == "+1.E-06" +string.format("%0# +.0E", 1e-07) == "+1.E-07" +string.format("%0# +.0E", 123.456) == "+1.E+02" +string.format("%0# +.0E", 1234560000) == "+1.E+09" +string.format("%0# +.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# +.0E", 123.456789123) == "+1.E+02" +string.format("%0# +.0E", 1234567891.23) == "+1.E+09" +string.format("%0# +.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +.1E", 0) == "+0.0E+00" +string.format("%0# +.1E", 1) == "+1.0E+00" +string.format("%0# +.1E", -1) == "-1.0E+00" +string.format("%0# +.1E", 2) == "+2.0E+00" +string.format("%0# +.1E", -2) == "-2.0E+00" +string.format("%0# +.1E", 3) == "+3.0E+00" +string.format("%0# +.1E", -3) == "-3.0E+00" +string.format("%0# +.1E", 100) == "+1.0E+02" +string.format("%0# +.1E", 10000) == "+1.0E+04" +string.format("%0# +.1E", 100000) == "+1.0E+05" +string.format("%0# +.1E", 1000000) == "+1.0E+06" +string.format("%0# +.1E", 10000000) == "+1.0E+07" +string.format("%0# +.1E", 0.01) == "+1.0E-02" +string.format("%0# +.1E", 0.0001) == "+1.0E-04" +string.format("%0# +.1E", 1e-05) == "+1.0E-05" +string.format("%0# +.1E", 1e-06) == "+1.0E-06" +string.format("%0# +.1E", 1e-07) == "+1.0E-07" +string.format("%0# +.1E", 123.456) == "+1.2E+02" +string.format("%0# +.1E", 1234560000) == "+1.2E+09" +string.format("%0# +.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# +.1E", 123.456789123) == "+1.2E+02" +string.format("%0# +.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# +.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# +1.0E", 0) == "+0.E+00" +string.format("%0# +1.0E", 1) == "+1.E+00" +string.format("%0# +1.0E", -1) == "-1.E+00" +string.format("%0# +1.0E", 2) == "+2.E+00" +string.format("%0# +1.0E", -2) == "-2.E+00" +string.format("%0# +1.0E", 3) == "+3.E+00" +string.format("%0# +1.0E", -3) == "-3.E+00" +string.format("%0# +1.0E", 100) == "+1.E+02" +string.format("%0# +1.0E", 10000) == "+1.E+04" +string.format("%0# +1.0E", 100000) == "+1.E+05" +string.format("%0# +1.0E", 1000000) == "+1.E+06" +string.format("%0# +1.0E", 10000000) == "+1.E+07" +string.format("%0# +1.0E", 0.01) == "+1.E-02" +string.format("%0# +1.0E", 0.0001) == "+1.E-04" +string.format("%0# +1.0E", 1e-05) == "+1.E-05" +string.format("%0# +1.0E", 1e-06) == "+1.E-06" +string.format("%0# +1.0E", 1e-07) == "+1.E-07" +string.format("%0# +1.0E", 123.456) == "+1.E+02" +string.format("%0# +1.0E", 1234560000) == "+1.E+09" +string.format("%0# +1.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# +1.0E", 123.456789123) == "+1.E+02" +string.format("%0# +1.0E", 1234567891.23) == "+1.E+09" +string.format("%0# +1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +1.1E", 0) == "+0.0E+00" +string.format("%0# +1.1E", 1) == "+1.0E+00" +string.format("%0# +1.1E", -1) == "-1.0E+00" +string.format("%0# +1.1E", 2) == "+2.0E+00" +string.format("%0# +1.1E", -2) == "-2.0E+00" +string.format("%0# +1.1E", 3) == "+3.0E+00" +string.format("%0# +1.1E", -3) == "-3.0E+00" +string.format("%0# +1.1E", 100) == "+1.0E+02" +string.format("%0# +1.1E", 10000) == "+1.0E+04" +string.format("%0# +1.1E", 100000) == "+1.0E+05" +string.format("%0# +1.1E", 1000000) == "+1.0E+06" +string.format("%0# +1.1E", 10000000) == "+1.0E+07" +string.format("%0# +1.1E", 0.01) == "+1.0E-02" +string.format("%0# +1.1E", 0.0001) == "+1.0E-04" +string.format("%0# +1.1E", 1e-05) == "+1.0E-05" +string.format("%0# +1.1E", 1e-06) == "+1.0E-06" +string.format("%0# +1.1E", 1e-07) == "+1.0E-07" +string.format("%0# +1.1E", 123.456) == "+1.2E+02" +string.format("%0# +1.1E", 1234560000) == "+1.2E+09" +string.format("%0# +1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# +1.1E", 123.456789123) == "+1.2E+02" +string.format("%0# +1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# +1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# +2.0E", 0) == "+0.E+00" +string.format("%0# +2.0E", 1) == "+1.E+00" +string.format("%0# +2.0E", -1) == "-1.E+00" +string.format("%0# +2.0E", 2) == "+2.E+00" +string.format("%0# +2.0E", -2) == "-2.E+00" +string.format("%0# +2.0E", 3) == "+3.E+00" +string.format("%0# +2.0E", -3) == "-3.E+00" +string.format("%0# +2.0E", 100) == "+1.E+02" +string.format("%0# +2.0E", 10000) == "+1.E+04" +string.format("%0# +2.0E", 100000) == "+1.E+05" +string.format("%0# +2.0E", 1000000) == "+1.E+06" +string.format("%0# +2.0E", 10000000) == "+1.E+07" +string.format("%0# +2.0E", 0.01) == "+1.E-02" +string.format("%0# +2.0E", 0.0001) == "+1.E-04" +string.format("%0# +2.0E", 1e-05) == "+1.E-05" +string.format("%0# +2.0E", 1e-06) == "+1.E-06" +string.format("%0# +2.0E", 1e-07) == "+1.E-07" +string.format("%0# +2.0E", 123.456) == "+1.E+02" +string.format("%0# +2.0E", 1234560000) == "+1.E+09" +string.format("%0# +2.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# +2.0E", 123.456789123) == "+1.E+02" +string.format("%0# +2.0E", 1234567891.23) == "+1.E+09" +string.format("%0# +2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +2.1E", 0) == "+0.0E+00" +string.format("%0# +2.1E", 1) == "+1.0E+00" +string.format("%0# +2.1E", -1) == "-1.0E+00" +string.format("%0# +2.1E", 2) == "+2.0E+00" +string.format("%0# +2.1E", -2) == "-2.0E+00" +string.format("%0# +2.1E", 3) == "+3.0E+00" +string.format("%0# +2.1E", -3) == "-3.0E+00" +string.format("%0# +2.1E", 100) == "+1.0E+02" +string.format("%0# +2.1E", 10000) == "+1.0E+04" +string.format("%0# +2.1E", 100000) == "+1.0E+05" +string.format("%0# +2.1E", 1000000) == "+1.0E+06" +string.format("%0# +2.1E", 10000000) == "+1.0E+07" +string.format("%0# +2.1E", 0.01) == "+1.0E-02" +string.format("%0# +2.1E", 0.0001) == "+1.0E-04" +string.format("%0# +2.1E", 1e-05) == "+1.0E-05" +string.format("%0# +2.1E", 1e-06) == "+1.0E-06" +string.format("%0# +2.1E", 1e-07) == "+1.0E-07" +string.format("%0# +2.1E", 123.456) == "+1.2E+02" +string.format("%0# +2.1E", 1234560000) == "+1.2E+09" +string.format("%0# +2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# +2.1E", 123.456789123) == "+1.2E+02" +string.format("%0# +2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# +2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# +6E", nan) == " +NAN" +string.format("%0# +6E", inf) == " +INF" +string.format("%0# +6E", -inf) == " -INF" +string.format("%0# +6.0E", 0) == "+0.E+00" +string.format("%0# +6.0E", 1) == "+1.E+00" +string.format("%0# +6.0E", -1) == "-1.E+00" +string.format("%0# +6.0E", 2) == "+2.E+00" +string.format("%0# +6.0E", -2) == "-2.E+00" +string.format("%0# +6.0E", 3) == "+3.E+00" +string.format("%0# +6.0E", -3) == "-3.E+00" +string.format("%0# +6.0E", nan) == " +NAN" +string.format("%0# +6.0E", inf) == " +INF" +string.format("%0# +6.0E", -inf) == " -INF" +string.format("%0# +6.0E", 100) == "+1.E+02" +string.format("%0# +6.0E", 10000) == "+1.E+04" +string.format("%0# +6.0E", 100000) == "+1.E+05" +string.format("%0# +6.0E", 1000000) == "+1.E+06" +string.format("%0# +6.0E", 10000000) == "+1.E+07" +string.format("%0# +6.0E", 0.01) == "+1.E-02" +string.format("%0# +6.0E", 0.0001) == "+1.E-04" +string.format("%0# +6.0E", 1e-05) == "+1.E-05" +string.format("%0# +6.0E", 1e-06) == "+1.E-06" +string.format("%0# +6.0E", 1e-07) == "+1.E-07" +string.format("%0# +6.0E", 123.456) == "+1.E+02" +string.format("%0# +6.0E", 1234560000) == "+1.E+09" +string.format("%0# +6.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# +6.0E", 123.456789123) == "+1.E+02" +string.format("%0# +6.0E", 1234567891.23) == "+1.E+09" +string.format("%0# +6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +6.1E", 0) == "+0.0E+00" +string.format("%0# +6.1E", 1) == "+1.0E+00" +string.format("%0# +6.1E", -1) == "-1.0E+00" +string.format("%0# +6.1E", 2) == "+2.0E+00" +string.format("%0# +6.1E", -2) == "-2.0E+00" +string.format("%0# +6.1E", 3) == "+3.0E+00" +string.format("%0# +6.1E", -3) == "-3.0E+00" +string.format("%0# +6.1E", nan) == " +NAN" +string.format("%0# +6.1E", inf) == " +INF" +string.format("%0# +6.1E", -inf) == " -INF" +string.format("%0# +6.1E", 100) == "+1.0E+02" +string.format("%0# +6.1E", 10000) == "+1.0E+04" +string.format("%0# +6.1E", 100000) == "+1.0E+05" +string.format("%0# +6.1E", 1000000) == "+1.0E+06" +string.format("%0# +6.1E", 10000000) == "+1.0E+07" +string.format("%0# +6.1E", 0.01) == "+1.0E-02" +string.format("%0# +6.1E", 0.0001) == "+1.0E-04" +string.format("%0# +6.1E", 1e-05) == "+1.0E-05" +string.format("%0# +6.1E", 1e-06) == "+1.0E-06" +string.format("%0# +6.1E", 1e-07) == "+1.0E-07" +string.format("%0# +6.1E", 123.456) == "+1.2E+02" +string.format("%0# +6.1E", 1234560000) == "+1.2E+09" +string.format("%0# +6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# +6.1E", 123.456789123) == "+1.2E+02" +string.format("%0# +6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# +6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# +6.6E", nan) == " +NAN" +string.format("%0# +6.6E", inf) == " +INF" +string.format("%0# +6.6E", -inf) == " -INF" +string.format("%0# +20E", 0) == "+00000000.000000E+00" +string.format("%0# +20E", 1) == "+00000001.000000E+00" +string.format("%0# +20E", -1) == "-00000001.000000E+00" +string.format("%0# +20E", 2) == "+00000002.000000E+00" +string.format("%0# +20E", -2) == "-00000002.000000E+00" +string.format("%0# +20E", 3) == "+00000003.000000E+00" +string.format("%0# +20E", -3) == "-00000003.000000E+00" +string.format("%0# +20E", nan) == " +NAN" +string.format("%0# +20E", inf) == " +INF" +string.format("%0# +20E", -inf) == " -INF" +string.format("%0# +20E", 100) == "+00000001.000000E+02" +string.format("%0# +20E", 10000) == "+00000001.000000E+04" +string.format("%0# +20E", 100000) == "+00000001.000000E+05" +string.format("%0# +20E", 1000000) == "+00000001.000000E+06" +string.format("%0# +20E", 10000000) == "+00000001.000000E+07" +string.format("%0# +20E", 0.01) == "+00000001.000000E-02" +string.format("%0# +20E", 0.0001) == "+00000001.000000E-04" +string.format("%0# +20E", 1e-05) == "+00000001.000000E-05" +string.format("%0# +20E", 1e-06) == "+00000001.000000E-06" +string.format("%0# +20E", 1e-07) == "+00000001.000000E-07" +string.format("%0# +20E", 123.456) == "+00000001.234560E+02" +string.format("%0# +20E", 1234560000) == "+00000001.234560E+09" +string.format("%0# +20E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0# +20E", 123.456789123) == "+00000001.234568E+02" +string.format("%0# +20E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0# +20E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0# +20.0E", 0) == "+00000000000000.E+00" +string.format("%0# +20.0E", 1) == "+00000000000001.E+00" +string.format("%0# +20.0E", -1) == "-00000000000001.E+00" +string.format("%0# +20.0E", 2) == "+00000000000002.E+00" +string.format("%0# +20.0E", -2) == "-00000000000002.E+00" +string.format("%0# +20.0E", 3) == "+00000000000003.E+00" +string.format("%0# +20.0E", -3) == "-00000000000003.E+00" +string.format("%0# +20.0E", nan) == " +NAN" +string.format("%0# +20.0E", inf) == " +INF" +string.format("%0# +20.0E", -inf) == " -INF" +string.format("%0# +20.0E", 100) == "+00000000000001.E+02" +string.format("%0# +20.0E", 10000) == "+00000000000001.E+04" +string.format("%0# +20.0E", 100000) == "+00000000000001.E+05" +string.format("%0# +20.0E", 1000000) == "+00000000000001.E+06" +string.format("%0# +20.0E", 10000000) == "+00000000000001.E+07" +string.format("%0# +20.0E", 0.01) == "+00000000000001.E-02" +string.format("%0# +20.0E", 0.0001) == "+00000000000001.E-04" +string.format("%0# +20.0E", 1e-05) == "+00000000000001.E-05" +string.format("%0# +20.0E", 1e-06) == "+00000000000001.E-06" +string.format("%0# +20.0E", 1e-07) == "+00000000000001.E-07" +string.format("%0# +20.0E", 123.456) == "+00000000000001.E+02" +string.format("%0# +20.0E", 1234560000) == "+00000000000001.E+09" +string.format("%0# +20.0E", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0# +20.0E", 123.456789123) == "+00000000000001.E+02" +string.format("%0# +20.0E", 1234567891.23) == "+00000000000001.E+09" +string.format("%0# +20.0E", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0# +20.1E", 0) == "+0000000000000.0E+00" +string.format("%0# +20.1E", 1) == "+0000000000001.0E+00" +string.format("%0# +20.1E", -1) == "-0000000000001.0E+00" +string.format("%0# +20.1E", 2) == "+0000000000002.0E+00" +string.format("%0# +20.1E", -2) == "-0000000000002.0E+00" +string.format("%0# +20.1E", 3) == "+0000000000003.0E+00" +string.format("%0# +20.1E", -3) == "-0000000000003.0E+00" +string.format("%0# +20.1E", nan) == " +NAN" +string.format("%0# +20.1E", inf) == " +INF" +string.format("%0# +20.1E", -inf) == " -INF" +string.format("%0# +20.1E", 100) == "+0000000000001.0E+02" +string.format("%0# +20.1E", 10000) == "+0000000000001.0E+04" +string.format("%0# +20.1E", 100000) == "+0000000000001.0E+05" +string.format("%0# +20.1E", 1000000) == "+0000000000001.0E+06" +string.format("%0# +20.1E", 10000000) == "+0000000000001.0E+07" +string.format("%0# +20.1E", 0.01) == "+0000000000001.0E-02" +string.format("%0# +20.1E", 0.0001) == "+0000000000001.0E-04" +string.format("%0# +20.1E", 1e-05) == "+0000000000001.0E-05" +string.format("%0# +20.1E", 1e-06) == "+0000000000001.0E-06" +string.format("%0# +20.1E", 1e-07) == "+0000000000001.0E-07" +string.format("%0# +20.1E", 123.456) == "+0000000000001.2E+02" +string.format("%0# +20.1E", 1234560000) == "+0000000000001.2E+09" +string.format("%0# +20.1E", 1.23456e-05) == "+0000000000001.2E-05" +string.format("%0# +20.1E", 123.456789123) == "+0000000000001.2E+02" +string.format("%0# +20.1E", 1234567891.23) == "+0000000000001.2E+09" +string.format("%0# +20.1E", 1.23456789123e-05) == "+0000000000001.2E-05" +string.format("%0# +20.6E", 0) == "+00000000.000000E+00" +string.format("%0# +20.6E", 1) == "+00000001.000000E+00" +string.format("%0# +20.6E", -1) == "-00000001.000000E+00" +string.format("%0# +20.6E", 2) == "+00000002.000000E+00" +string.format("%0# +20.6E", -2) == "-00000002.000000E+00" +string.format("%0# +20.6E", 3) == "+00000003.000000E+00" +string.format("%0# +20.6E", -3) == "-00000003.000000E+00" +string.format("%0# +20.6E", nan) == " +NAN" +string.format("%0# +20.6E", inf) == " +INF" +string.format("%0# +20.6E", -inf) == " -INF" +string.format("%0# +20.6E", 100) == "+00000001.000000E+02" +string.format("%0# +20.6E", 10000) == "+00000001.000000E+04" +string.format("%0# +20.6E", 100000) == "+00000001.000000E+05" +string.format("%0# +20.6E", 1000000) == "+00000001.000000E+06" +string.format("%0# +20.6E", 10000000) == "+00000001.000000E+07" +string.format("%0# +20.6E", 0.01) == "+00000001.000000E-02" +string.format("%0# +20.6E", 0.0001) == "+00000001.000000E-04" +string.format("%0# +20.6E", 1e-05) == "+00000001.000000E-05" +string.format("%0# +20.6E", 1e-06) == "+00000001.000000E-06" +string.format("%0# +20.6E", 1e-07) == "+00000001.000000E-07" +string.format("%0# +20.6E", 123.456) == "+00000001.234560E+02" +string.format("%0# +20.6E", 1234560000) == "+00000001.234560E+09" +string.format("%0# +20.6E", 1.23456e-05) == "+00000001.234560E-05" +string.format("%0# +20.6E", 123.456789123) == "+00000001.234568E+02" +string.format("%0# +20.6E", 1234567891.23) == "+00000001.234568E+09" +string.format("%0# +20.6E", 1.23456789123e-05) == "+00000001.234568E-05" +string.format("%0# -E", 0) == " 0.000000E+00" +string.format("%0# -E", 1) == " 1.000000E+00" +string.format("%0# -E", -1) == "-1.000000E+00" +string.format("%0# -E", 2) == " 2.000000E+00" +string.format("%0# -E", -2) == "-2.000000E+00" +string.format("%0# -E", 3) == " 3.000000E+00" +string.format("%0# -E", -3) == "-3.000000E+00" +string.format("%0# -E", nan) == " NAN" +string.format("%0# -E", inf) == " INF" +string.format("%0# -E", -inf) == "-INF" +string.format("%0# -E", 100) == " 1.000000E+02" +string.format("%0# -E", 10000) == " 1.000000E+04" +string.format("%0# -E", 100000) == " 1.000000E+05" +string.format("%0# -E", 1000000) == " 1.000000E+06" +string.format("%0# -E", 10000000) == " 1.000000E+07" +string.format("%0# -E", 0.01) == " 1.000000E-02" +string.format("%0# -E", 0.0001) == " 1.000000E-04" +string.format("%0# -E", 1e-05) == " 1.000000E-05" +string.format("%0# -E", 1e-06) == " 1.000000E-06" +string.format("%0# -E", 1e-07) == " 1.000000E-07" +string.format("%0# -E", 123.456) == " 1.234560E+02" +string.format("%0# -E", 1234560000) == " 1.234560E+09" +string.format("%0# -E", 1.23456e-05) == " 1.234560E-05" +string.format("%0# -E", 123.456789123) == " 1.234568E+02" +string.format("%0# -E", 1234567891.23) == " 1.234568E+09" +string.format("%0# -E", 1.23456789123e-05) == " 1.234568E-05" +string.format("%0# -.0E", 0) == " 0.E+00" +string.format("%0# -.0E", 1) == " 1.E+00" +string.format("%0# -.0E", -1) == "-1.E+00" +string.format("%0# -.0E", 2) == " 2.E+00" +string.format("%0# -.0E", -2) == "-2.E+00" +string.format("%0# -.0E", 3) == " 3.E+00" +string.format("%0# -.0E", -3) == "-3.E+00" +string.format("%0# -.0E", 100) == " 1.E+02" +string.format("%0# -.0E", 10000) == " 1.E+04" +string.format("%0# -.0E", 100000) == " 1.E+05" +string.format("%0# -.0E", 1000000) == " 1.E+06" +string.format("%0# -.0E", 10000000) == " 1.E+07" +string.format("%0# -.0E", 0.01) == " 1.E-02" +string.format("%0# -.0E", 0.0001) == " 1.E-04" +string.format("%0# -.0E", 1e-05) == " 1.E-05" +string.format("%0# -.0E", 1e-06) == " 1.E-06" +string.format("%0# -.0E", 1e-07) == " 1.E-07" +string.format("%0# -.0E", 123.456) == " 1.E+02" +string.format("%0# -.0E", 1234560000) == " 1.E+09" +string.format("%0# -.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# -.0E", 123.456789123) == " 1.E+02" +string.format("%0# -.0E", 1234567891.23) == " 1.E+09" +string.format("%0# -.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -.1E", 0) == " 0.0E+00" +string.format("%0# -.1E", 1) == " 1.0E+00" +string.format("%0# -.1E", -1) == "-1.0E+00" +string.format("%0# -.1E", 2) == " 2.0E+00" +string.format("%0# -.1E", -2) == "-2.0E+00" +string.format("%0# -.1E", 3) == " 3.0E+00" +string.format("%0# -.1E", -3) == "-3.0E+00" +string.format("%0# -.1E", 100) == " 1.0E+02" +string.format("%0# -.1E", 10000) == " 1.0E+04" +string.format("%0# -.1E", 100000) == " 1.0E+05" +string.format("%0# -.1E", 1000000) == " 1.0E+06" +string.format("%0# -.1E", 10000000) == " 1.0E+07" +string.format("%0# -.1E", 0.01) == " 1.0E-02" +string.format("%0# -.1E", 0.0001) == " 1.0E-04" +string.format("%0# -.1E", 1e-05) == " 1.0E-05" +string.format("%0# -.1E", 1e-06) == " 1.0E-06" +string.format("%0# -.1E", 1e-07) == " 1.0E-07" +string.format("%0# -.1E", 123.456) == " 1.2E+02" +string.format("%0# -.1E", 1234560000) == " 1.2E+09" +string.format("%0# -.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# -.1E", 123.456789123) == " 1.2E+02" +string.format("%0# -.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# -.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# -1.0E", 0) == " 0.E+00" +string.format("%0# -1.0E", 1) == " 1.E+00" +string.format("%0# -1.0E", -1) == "-1.E+00" +string.format("%0# -1.0E", 2) == " 2.E+00" +string.format("%0# -1.0E", -2) == "-2.E+00" +string.format("%0# -1.0E", 3) == " 3.E+00" +string.format("%0# -1.0E", -3) == "-3.E+00" +string.format("%0# -1.0E", 100) == " 1.E+02" +string.format("%0# -1.0E", 10000) == " 1.E+04" +string.format("%0# -1.0E", 100000) == " 1.E+05" +string.format("%0# -1.0E", 1000000) == " 1.E+06" +string.format("%0# -1.0E", 10000000) == " 1.E+07" +string.format("%0# -1.0E", 0.01) == " 1.E-02" +string.format("%0# -1.0E", 0.0001) == " 1.E-04" +string.format("%0# -1.0E", 1e-05) == " 1.E-05" +string.format("%0# -1.0E", 1e-06) == " 1.E-06" +string.format("%0# -1.0E", 1e-07) == " 1.E-07" +string.format("%0# -1.0E", 123.456) == " 1.E+02" +string.format("%0# -1.0E", 1234560000) == " 1.E+09" +string.format("%0# -1.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# -1.0E", 123.456789123) == " 1.E+02" +string.format("%0# -1.0E", 1234567891.23) == " 1.E+09" +string.format("%0# -1.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -1.1E", 0) == " 0.0E+00" +string.format("%0# -1.1E", 1) == " 1.0E+00" +string.format("%0# -1.1E", -1) == "-1.0E+00" +string.format("%0# -1.1E", 2) == " 2.0E+00" +string.format("%0# -1.1E", -2) == "-2.0E+00" +string.format("%0# -1.1E", 3) == " 3.0E+00" +string.format("%0# -1.1E", -3) == "-3.0E+00" +string.format("%0# -1.1E", 100) == " 1.0E+02" +string.format("%0# -1.1E", 10000) == " 1.0E+04" +string.format("%0# -1.1E", 100000) == " 1.0E+05" +string.format("%0# -1.1E", 1000000) == " 1.0E+06" +string.format("%0# -1.1E", 10000000) == " 1.0E+07" +string.format("%0# -1.1E", 0.01) == " 1.0E-02" +string.format("%0# -1.1E", 0.0001) == " 1.0E-04" +string.format("%0# -1.1E", 1e-05) == " 1.0E-05" +string.format("%0# -1.1E", 1e-06) == " 1.0E-06" +string.format("%0# -1.1E", 1e-07) == " 1.0E-07" +string.format("%0# -1.1E", 123.456) == " 1.2E+02" +string.format("%0# -1.1E", 1234560000) == " 1.2E+09" +string.format("%0# -1.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# -1.1E", 123.456789123) == " 1.2E+02" +string.format("%0# -1.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# -1.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# -2.0E", 0) == " 0.E+00" +string.format("%0# -2.0E", 1) == " 1.E+00" +string.format("%0# -2.0E", -1) == "-1.E+00" +string.format("%0# -2.0E", 2) == " 2.E+00" +string.format("%0# -2.0E", -2) == "-2.E+00" +string.format("%0# -2.0E", 3) == " 3.E+00" +string.format("%0# -2.0E", -3) == "-3.E+00" +string.format("%0# -2.0E", 100) == " 1.E+02" +string.format("%0# -2.0E", 10000) == " 1.E+04" +string.format("%0# -2.0E", 100000) == " 1.E+05" +string.format("%0# -2.0E", 1000000) == " 1.E+06" +string.format("%0# -2.0E", 10000000) == " 1.E+07" +string.format("%0# -2.0E", 0.01) == " 1.E-02" +string.format("%0# -2.0E", 0.0001) == " 1.E-04" +string.format("%0# -2.0E", 1e-05) == " 1.E-05" +string.format("%0# -2.0E", 1e-06) == " 1.E-06" +string.format("%0# -2.0E", 1e-07) == " 1.E-07" +string.format("%0# -2.0E", 123.456) == " 1.E+02" +string.format("%0# -2.0E", 1234560000) == " 1.E+09" +string.format("%0# -2.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# -2.0E", 123.456789123) == " 1.E+02" +string.format("%0# -2.0E", 1234567891.23) == " 1.E+09" +string.format("%0# -2.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -2.1E", 0) == " 0.0E+00" +string.format("%0# -2.1E", 1) == " 1.0E+00" +string.format("%0# -2.1E", -1) == "-1.0E+00" +string.format("%0# -2.1E", 2) == " 2.0E+00" +string.format("%0# -2.1E", -2) == "-2.0E+00" +string.format("%0# -2.1E", 3) == " 3.0E+00" +string.format("%0# -2.1E", -3) == "-3.0E+00" +string.format("%0# -2.1E", 100) == " 1.0E+02" +string.format("%0# -2.1E", 10000) == " 1.0E+04" +string.format("%0# -2.1E", 100000) == " 1.0E+05" +string.format("%0# -2.1E", 1000000) == " 1.0E+06" +string.format("%0# -2.1E", 10000000) == " 1.0E+07" +string.format("%0# -2.1E", 0.01) == " 1.0E-02" +string.format("%0# -2.1E", 0.0001) == " 1.0E-04" +string.format("%0# -2.1E", 1e-05) == " 1.0E-05" +string.format("%0# -2.1E", 1e-06) == " 1.0E-06" +string.format("%0# -2.1E", 1e-07) == " 1.0E-07" +string.format("%0# -2.1E", 123.456) == " 1.2E+02" +string.format("%0# -2.1E", 1234560000) == " 1.2E+09" +string.format("%0# -2.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# -2.1E", 123.456789123) == " 1.2E+02" +string.format("%0# -2.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# -2.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# -6E", nan) == " NAN " +string.format("%0# -6E", inf) == " INF " +string.format("%0# -6E", -inf) == "-INF " +string.format("%0# -6.0E", 0) == " 0.E+00" +string.format("%0# -6.0E", 1) == " 1.E+00" +string.format("%0# -6.0E", -1) == "-1.E+00" +string.format("%0# -6.0E", 2) == " 2.E+00" +string.format("%0# -6.0E", -2) == "-2.E+00" +string.format("%0# -6.0E", 3) == " 3.E+00" +string.format("%0# -6.0E", -3) == "-3.E+00" +string.format("%0# -6.0E", nan) == " NAN " +string.format("%0# -6.0E", inf) == " INF " +string.format("%0# -6.0E", -inf) == "-INF " +string.format("%0# -6.0E", 100) == " 1.E+02" +string.format("%0# -6.0E", 10000) == " 1.E+04" +string.format("%0# -6.0E", 100000) == " 1.E+05" +string.format("%0# -6.0E", 1000000) == " 1.E+06" +string.format("%0# -6.0E", 10000000) == " 1.E+07" +string.format("%0# -6.0E", 0.01) == " 1.E-02" +string.format("%0# -6.0E", 0.0001) == " 1.E-04" +string.format("%0# -6.0E", 1e-05) == " 1.E-05" +string.format("%0# -6.0E", 1e-06) == " 1.E-06" +string.format("%0# -6.0E", 1e-07) == " 1.E-07" +string.format("%0# -6.0E", 123.456) == " 1.E+02" +string.format("%0# -6.0E", 1234560000) == " 1.E+09" +string.format("%0# -6.0E", 1.23456e-05) == " 1.E-05" +string.format("%0# -6.0E", 123.456789123) == " 1.E+02" +string.format("%0# -6.0E", 1234567891.23) == " 1.E+09" +string.format("%0# -6.0E", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -6.1E", 0) == " 0.0E+00" +string.format("%0# -6.1E", 1) == " 1.0E+00" +string.format("%0# -6.1E", -1) == "-1.0E+00" +string.format("%0# -6.1E", 2) == " 2.0E+00" +string.format("%0# -6.1E", -2) == "-2.0E+00" +string.format("%0# -6.1E", 3) == " 3.0E+00" +string.format("%0# -6.1E", -3) == "-3.0E+00" +string.format("%0# -6.1E", nan) == " NAN " +string.format("%0# -6.1E", inf) == " INF " +string.format("%0# -6.1E", -inf) == "-INF " +string.format("%0# -6.1E", 100) == " 1.0E+02" +string.format("%0# -6.1E", 10000) == " 1.0E+04" +string.format("%0# -6.1E", 100000) == " 1.0E+05" +string.format("%0# -6.1E", 1000000) == " 1.0E+06" +string.format("%0# -6.1E", 10000000) == " 1.0E+07" +string.format("%0# -6.1E", 0.01) == " 1.0E-02" +string.format("%0# -6.1E", 0.0001) == " 1.0E-04" +string.format("%0# -6.1E", 1e-05) == " 1.0E-05" +string.format("%0# -6.1E", 1e-06) == " 1.0E-06" +string.format("%0# -6.1E", 1e-07) == " 1.0E-07" +string.format("%0# -6.1E", 123.456) == " 1.2E+02" +string.format("%0# -6.1E", 1234560000) == " 1.2E+09" +string.format("%0# -6.1E", 1.23456e-05) == " 1.2E-05" +string.format("%0# -6.1E", 123.456789123) == " 1.2E+02" +string.format("%0# -6.1E", 1234567891.23) == " 1.2E+09" +string.format("%0# -6.1E", 1.23456789123e-05) == " 1.2E-05" +string.format("%0# -6.6E", nan) == " NAN " +string.format("%0# -6.6E", inf) == " INF " +string.format("%0# -6.6E", -inf) == "-INF " +string.format("%0# -20E", 0) == " 0.000000E+00 " +string.format("%0# -20E", 1) == " 1.000000E+00 " +string.format("%0# -20E", -1) == "-1.000000E+00 " +string.format("%0# -20E", 2) == " 2.000000E+00 " +string.format("%0# -20E", -2) == "-2.000000E+00 " +string.format("%0# -20E", 3) == " 3.000000E+00 " +string.format("%0# -20E", -3) == "-3.000000E+00 " +string.format("%0# -20E", nan) == " NAN " +string.format("%0# -20E", inf) == " INF " +string.format("%0# -20E", -inf) == "-INF " +string.format("%0# -20E", 100) == " 1.000000E+02 " +string.format("%0# -20E", 10000) == " 1.000000E+04 " +string.format("%0# -20E", 100000) == " 1.000000E+05 " +string.format("%0# -20E", 1000000) == " 1.000000E+06 " +string.format("%0# -20E", 10000000) == " 1.000000E+07 " +string.format("%0# -20E", 0.01) == " 1.000000E-02 " +string.format("%0# -20E", 0.0001) == " 1.000000E-04 " +string.format("%0# -20E", 1e-05) == " 1.000000E-05 " +string.format("%0# -20E", 1e-06) == " 1.000000E-06 " +string.format("%0# -20E", 1e-07) == " 1.000000E-07 " +string.format("%0# -20E", 123.456) == " 1.234560E+02 " +string.format("%0# -20E", 1234560000) == " 1.234560E+09 " +string.format("%0# -20E", 1.23456e-05) == " 1.234560E-05 " +string.format("%0# -20E", 123.456789123) == " 1.234568E+02 " +string.format("%0# -20E", 1234567891.23) == " 1.234568E+09 " +string.format("%0# -20E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%0# -20.0E", 0) == " 0.E+00 " +string.format("%0# -20.0E", 1) == " 1.E+00 " +string.format("%0# -20.0E", -1) == "-1.E+00 " +string.format("%0# -20.0E", 2) == " 2.E+00 " +string.format("%0# -20.0E", -2) == "-2.E+00 " +string.format("%0# -20.0E", 3) == " 3.E+00 " +string.format("%0# -20.0E", -3) == "-3.E+00 " +string.format("%0# -20.0E", nan) == " NAN " +string.format("%0# -20.0E", inf) == " INF " +string.format("%0# -20.0E", -inf) == "-INF " +string.format("%0# -20.0E", 100) == " 1.E+02 " +string.format("%0# -20.0E", 10000) == " 1.E+04 " +string.format("%0# -20.0E", 100000) == " 1.E+05 " +string.format("%0# -20.0E", 1000000) == " 1.E+06 " +string.format("%0# -20.0E", 10000000) == " 1.E+07 " +string.format("%0# -20.0E", 0.01) == " 1.E-02 " +string.format("%0# -20.0E", 0.0001) == " 1.E-04 " +string.format("%0# -20.0E", 1e-05) == " 1.E-05 " +string.format("%0# -20.0E", 1e-06) == " 1.E-06 " +string.format("%0# -20.0E", 1e-07) == " 1.E-07 " +string.format("%0# -20.0E", 123.456) == " 1.E+02 " +string.format("%0# -20.0E", 1234560000) == " 1.E+09 " +string.format("%0# -20.0E", 1.23456e-05) == " 1.E-05 " +string.format("%0# -20.0E", 123.456789123) == " 1.E+02 " +string.format("%0# -20.0E", 1234567891.23) == " 1.E+09 " +string.format("%0# -20.0E", 1.23456789123e-05) == " 1.E-05 " +string.format("%0# -20.1E", 0) == " 0.0E+00 " +string.format("%0# -20.1E", 1) == " 1.0E+00 " +string.format("%0# -20.1E", -1) == "-1.0E+00 " +string.format("%0# -20.1E", 2) == " 2.0E+00 " +string.format("%0# -20.1E", -2) == "-2.0E+00 " +string.format("%0# -20.1E", 3) == " 3.0E+00 " +string.format("%0# -20.1E", -3) == "-3.0E+00 " +string.format("%0# -20.1E", nan) == " NAN " +string.format("%0# -20.1E", inf) == " INF " +string.format("%0# -20.1E", -inf) == "-INF " +string.format("%0# -20.1E", 100) == " 1.0E+02 " +string.format("%0# -20.1E", 10000) == " 1.0E+04 " +string.format("%0# -20.1E", 100000) == " 1.0E+05 " +string.format("%0# -20.1E", 1000000) == " 1.0E+06 " +string.format("%0# -20.1E", 10000000) == " 1.0E+07 " +string.format("%0# -20.1E", 0.01) == " 1.0E-02 " +string.format("%0# -20.1E", 0.0001) == " 1.0E-04 " +string.format("%0# -20.1E", 1e-05) == " 1.0E-05 " +string.format("%0# -20.1E", 1e-06) == " 1.0E-06 " +string.format("%0# -20.1E", 1e-07) == " 1.0E-07 " +string.format("%0# -20.1E", 123.456) == " 1.2E+02 " +string.format("%0# -20.1E", 1234560000) == " 1.2E+09 " +string.format("%0# -20.1E", 1.23456e-05) == " 1.2E-05 " +string.format("%0# -20.1E", 123.456789123) == " 1.2E+02 " +string.format("%0# -20.1E", 1234567891.23) == " 1.2E+09 " +string.format("%0# -20.1E", 1.23456789123e-05) == " 1.2E-05 " +string.format("%0# -20.6E", 0) == " 0.000000E+00 " +string.format("%0# -20.6E", 1) == " 1.000000E+00 " +string.format("%0# -20.6E", -1) == "-1.000000E+00 " +string.format("%0# -20.6E", 2) == " 2.000000E+00 " +string.format("%0# -20.6E", -2) == "-2.000000E+00 " +string.format("%0# -20.6E", 3) == " 3.000000E+00 " +string.format("%0# -20.6E", -3) == "-3.000000E+00 " +string.format("%0# -20.6E", nan) == " NAN " +string.format("%0# -20.6E", inf) == " INF " +string.format("%0# -20.6E", -inf) == "-INF " +string.format("%0# -20.6E", 100) == " 1.000000E+02 " +string.format("%0# -20.6E", 10000) == " 1.000000E+04 " +string.format("%0# -20.6E", 100000) == " 1.000000E+05 " +string.format("%0# -20.6E", 1000000) == " 1.000000E+06 " +string.format("%0# -20.6E", 10000000) == " 1.000000E+07 " +string.format("%0# -20.6E", 0.01) == " 1.000000E-02 " +string.format("%0# -20.6E", 0.0001) == " 1.000000E-04 " +string.format("%0# -20.6E", 1e-05) == " 1.000000E-05 " +string.format("%0# -20.6E", 1e-06) == " 1.000000E-06 " +string.format("%0# -20.6E", 1e-07) == " 1.000000E-07 " +string.format("%0# -20.6E", 123.456) == " 1.234560E+02 " +string.format("%0# -20.6E", 1234560000) == " 1.234560E+09 " +string.format("%0# -20.6E", 1.23456e-05) == " 1.234560E-05 " +string.format("%0# -20.6E", 123.456789123) == " 1.234568E+02 " +string.format("%0# -20.6E", 1234567891.23) == " 1.234568E+09 " +string.format("%0# -20.6E", 1.23456789123e-05) == " 1.234568E-05 " +string.format("%0# -+E", 0) == "+0.000000E+00" +string.format("%0# -+E", 1) == "+1.000000E+00" +string.format("%0# -+E", -1) == "-1.000000E+00" +string.format("%0# -+E", 2) == "+2.000000E+00" +string.format("%0# -+E", -2) == "-2.000000E+00" +string.format("%0# -+E", 3) == "+3.000000E+00" +string.format("%0# -+E", -3) == "-3.000000E+00" +string.format("%0# -+E", nan) == "+NAN" +string.format("%0# -+E", inf) == "+INF" +string.format("%0# -+E", -inf) == "-INF" +string.format("%0# -+E", 100) == "+1.000000E+02" +string.format("%0# -+E", 10000) == "+1.000000E+04" +string.format("%0# -+E", 100000) == "+1.000000E+05" +string.format("%0# -+E", 1000000) == "+1.000000E+06" +string.format("%0# -+E", 10000000) == "+1.000000E+07" +string.format("%0# -+E", 0.01) == "+1.000000E-02" +string.format("%0# -+E", 0.0001) == "+1.000000E-04" +string.format("%0# -+E", 1e-05) == "+1.000000E-05" +string.format("%0# -+E", 1e-06) == "+1.000000E-06" +string.format("%0# -+E", 1e-07) == "+1.000000E-07" +string.format("%0# -+E", 123.456) == "+1.234560E+02" +string.format("%0# -+E", 1234560000) == "+1.234560E+09" +string.format("%0# -+E", 1.23456e-05) == "+1.234560E-05" +string.format("%0# -+E", 123.456789123) == "+1.234568E+02" +string.format("%0# -+E", 1234567891.23) == "+1.234568E+09" +string.format("%0# -+E", 1.23456789123e-05) == "+1.234568E-05" +string.format("%0# -+.0E", 0) == "+0.E+00" +string.format("%0# -+.0E", 1) == "+1.E+00" +string.format("%0# -+.0E", -1) == "-1.E+00" +string.format("%0# -+.0E", 2) == "+2.E+00" +string.format("%0# -+.0E", -2) == "-2.E+00" +string.format("%0# -+.0E", 3) == "+3.E+00" +string.format("%0# -+.0E", -3) == "-3.E+00" +string.format("%0# -+.0E", 100) == "+1.E+02" +string.format("%0# -+.0E", 10000) == "+1.E+04" +string.format("%0# -+.0E", 100000) == "+1.E+05" +string.format("%0# -+.0E", 1000000) == "+1.E+06" +string.format("%0# -+.0E", 10000000) == "+1.E+07" +string.format("%0# -+.0E", 0.01) == "+1.E-02" +string.format("%0# -+.0E", 0.0001) == "+1.E-04" +string.format("%0# -+.0E", 1e-05) == "+1.E-05" +string.format("%0# -+.0E", 1e-06) == "+1.E-06" +string.format("%0# -+.0E", 1e-07) == "+1.E-07" +string.format("%0# -+.0E", 123.456) == "+1.E+02" +string.format("%0# -+.0E", 1234560000) == "+1.E+09" +string.format("%0# -+.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# -+.0E", 123.456789123) == "+1.E+02" +string.format("%0# -+.0E", 1234567891.23) == "+1.E+09" +string.format("%0# -+.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+.1E", 0) == "+0.0E+00" +string.format("%0# -+.1E", 1) == "+1.0E+00" +string.format("%0# -+.1E", -1) == "-1.0E+00" +string.format("%0# -+.1E", 2) == "+2.0E+00" +string.format("%0# -+.1E", -2) == "-2.0E+00" +string.format("%0# -+.1E", 3) == "+3.0E+00" +string.format("%0# -+.1E", -3) == "-3.0E+00" +string.format("%0# -+.1E", 100) == "+1.0E+02" +string.format("%0# -+.1E", 10000) == "+1.0E+04" +string.format("%0# -+.1E", 100000) == "+1.0E+05" +string.format("%0# -+.1E", 1000000) == "+1.0E+06" +string.format("%0# -+.1E", 10000000) == "+1.0E+07" +string.format("%0# -+.1E", 0.01) == "+1.0E-02" +string.format("%0# -+.1E", 0.0001) == "+1.0E-04" +string.format("%0# -+.1E", 1e-05) == "+1.0E-05" +string.format("%0# -+.1E", 1e-06) == "+1.0E-06" +string.format("%0# -+.1E", 1e-07) == "+1.0E-07" +string.format("%0# -+.1E", 123.456) == "+1.2E+02" +string.format("%0# -+.1E", 1234560000) == "+1.2E+09" +string.format("%0# -+.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# -+.1E", 123.456789123) == "+1.2E+02" +string.format("%0# -+.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# -+.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# -+1.0E", 0) == "+0.E+00" +string.format("%0# -+1.0E", 1) == "+1.E+00" +string.format("%0# -+1.0E", -1) == "-1.E+00" +string.format("%0# -+1.0E", 2) == "+2.E+00" +string.format("%0# -+1.0E", -2) == "-2.E+00" +string.format("%0# -+1.0E", 3) == "+3.E+00" +string.format("%0# -+1.0E", -3) == "-3.E+00" +string.format("%0# -+1.0E", 100) == "+1.E+02" +string.format("%0# -+1.0E", 10000) == "+1.E+04" +string.format("%0# -+1.0E", 100000) == "+1.E+05" +string.format("%0# -+1.0E", 1000000) == "+1.E+06" +string.format("%0# -+1.0E", 10000000) == "+1.E+07" +string.format("%0# -+1.0E", 0.01) == "+1.E-02" +string.format("%0# -+1.0E", 0.0001) == "+1.E-04" +string.format("%0# -+1.0E", 1e-05) == "+1.E-05" +string.format("%0# -+1.0E", 1e-06) == "+1.E-06" +string.format("%0# -+1.0E", 1e-07) == "+1.E-07" +string.format("%0# -+1.0E", 123.456) == "+1.E+02" +string.format("%0# -+1.0E", 1234560000) == "+1.E+09" +string.format("%0# -+1.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# -+1.0E", 123.456789123) == "+1.E+02" +string.format("%0# -+1.0E", 1234567891.23) == "+1.E+09" +string.format("%0# -+1.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+1.1E", 0) == "+0.0E+00" +string.format("%0# -+1.1E", 1) == "+1.0E+00" +string.format("%0# -+1.1E", -1) == "-1.0E+00" +string.format("%0# -+1.1E", 2) == "+2.0E+00" +string.format("%0# -+1.1E", -2) == "-2.0E+00" +string.format("%0# -+1.1E", 3) == "+3.0E+00" +string.format("%0# -+1.1E", -3) == "-3.0E+00" +string.format("%0# -+1.1E", 100) == "+1.0E+02" +string.format("%0# -+1.1E", 10000) == "+1.0E+04" +string.format("%0# -+1.1E", 100000) == "+1.0E+05" +string.format("%0# -+1.1E", 1000000) == "+1.0E+06" +string.format("%0# -+1.1E", 10000000) == "+1.0E+07" +string.format("%0# -+1.1E", 0.01) == "+1.0E-02" +string.format("%0# -+1.1E", 0.0001) == "+1.0E-04" +string.format("%0# -+1.1E", 1e-05) == "+1.0E-05" +string.format("%0# -+1.1E", 1e-06) == "+1.0E-06" +string.format("%0# -+1.1E", 1e-07) == "+1.0E-07" +string.format("%0# -+1.1E", 123.456) == "+1.2E+02" +string.format("%0# -+1.1E", 1234560000) == "+1.2E+09" +string.format("%0# -+1.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# -+1.1E", 123.456789123) == "+1.2E+02" +string.format("%0# -+1.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# -+1.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# -+2.0E", 0) == "+0.E+00" +string.format("%0# -+2.0E", 1) == "+1.E+00" +string.format("%0# -+2.0E", -1) == "-1.E+00" +string.format("%0# -+2.0E", 2) == "+2.E+00" +string.format("%0# -+2.0E", -2) == "-2.E+00" +string.format("%0# -+2.0E", 3) == "+3.E+00" +string.format("%0# -+2.0E", -3) == "-3.E+00" +string.format("%0# -+2.0E", 100) == "+1.E+02" +string.format("%0# -+2.0E", 10000) == "+1.E+04" +string.format("%0# -+2.0E", 100000) == "+1.E+05" +string.format("%0# -+2.0E", 1000000) == "+1.E+06" +string.format("%0# -+2.0E", 10000000) == "+1.E+07" +string.format("%0# -+2.0E", 0.01) == "+1.E-02" +string.format("%0# -+2.0E", 0.0001) == "+1.E-04" +string.format("%0# -+2.0E", 1e-05) == "+1.E-05" +string.format("%0# -+2.0E", 1e-06) == "+1.E-06" +string.format("%0# -+2.0E", 1e-07) == "+1.E-07" +string.format("%0# -+2.0E", 123.456) == "+1.E+02" +string.format("%0# -+2.0E", 1234560000) == "+1.E+09" +string.format("%0# -+2.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# -+2.0E", 123.456789123) == "+1.E+02" +string.format("%0# -+2.0E", 1234567891.23) == "+1.E+09" +string.format("%0# -+2.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+2.1E", 0) == "+0.0E+00" +string.format("%0# -+2.1E", 1) == "+1.0E+00" +string.format("%0# -+2.1E", -1) == "-1.0E+00" +string.format("%0# -+2.1E", 2) == "+2.0E+00" +string.format("%0# -+2.1E", -2) == "-2.0E+00" +string.format("%0# -+2.1E", 3) == "+3.0E+00" +string.format("%0# -+2.1E", -3) == "-3.0E+00" +string.format("%0# -+2.1E", 100) == "+1.0E+02" +string.format("%0# -+2.1E", 10000) == "+1.0E+04" +string.format("%0# -+2.1E", 100000) == "+1.0E+05" +string.format("%0# -+2.1E", 1000000) == "+1.0E+06" +string.format("%0# -+2.1E", 10000000) == "+1.0E+07" +string.format("%0# -+2.1E", 0.01) == "+1.0E-02" +string.format("%0# -+2.1E", 0.0001) == "+1.0E-04" +string.format("%0# -+2.1E", 1e-05) == "+1.0E-05" +string.format("%0# -+2.1E", 1e-06) == "+1.0E-06" +string.format("%0# -+2.1E", 1e-07) == "+1.0E-07" +string.format("%0# -+2.1E", 123.456) == "+1.2E+02" +string.format("%0# -+2.1E", 1234560000) == "+1.2E+09" +string.format("%0# -+2.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# -+2.1E", 123.456789123) == "+1.2E+02" +string.format("%0# -+2.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# -+2.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# -+6E", nan) == "+NAN " +string.format("%0# -+6E", inf) == "+INF " +string.format("%0# -+6E", -inf) == "-INF " +string.format("%0# -+6.0E", 0) == "+0.E+00" +string.format("%0# -+6.0E", 1) == "+1.E+00" +string.format("%0# -+6.0E", -1) == "-1.E+00" +string.format("%0# -+6.0E", 2) == "+2.E+00" +string.format("%0# -+6.0E", -2) == "-2.E+00" +string.format("%0# -+6.0E", 3) == "+3.E+00" +string.format("%0# -+6.0E", -3) == "-3.E+00" +string.format("%0# -+6.0E", nan) == "+NAN " +string.format("%0# -+6.0E", inf) == "+INF " +string.format("%0# -+6.0E", -inf) == "-INF " +string.format("%0# -+6.0E", 100) == "+1.E+02" +string.format("%0# -+6.0E", 10000) == "+1.E+04" +string.format("%0# -+6.0E", 100000) == "+1.E+05" +string.format("%0# -+6.0E", 1000000) == "+1.E+06" +string.format("%0# -+6.0E", 10000000) == "+1.E+07" +string.format("%0# -+6.0E", 0.01) == "+1.E-02" +string.format("%0# -+6.0E", 0.0001) == "+1.E-04" +string.format("%0# -+6.0E", 1e-05) == "+1.E-05" +string.format("%0# -+6.0E", 1e-06) == "+1.E-06" +string.format("%0# -+6.0E", 1e-07) == "+1.E-07" +string.format("%0# -+6.0E", 123.456) == "+1.E+02" +string.format("%0# -+6.0E", 1234560000) == "+1.E+09" +string.format("%0# -+6.0E", 1.23456e-05) == "+1.E-05" +string.format("%0# -+6.0E", 123.456789123) == "+1.E+02" +string.format("%0# -+6.0E", 1234567891.23) == "+1.E+09" +string.format("%0# -+6.0E", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+6.1E", 0) == "+0.0E+00" +string.format("%0# -+6.1E", 1) == "+1.0E+00" +string.format("%0# -+6.1E", -1) == "-1.0E+00" +string.format("%0# -+6.1E", 2) == "+2.0E+00" +string.format("%0# -+6.1E", -2) == "-2.0E+00" +string.format("%0# -+6.1E", 3) == "+3.0E+00" +string.format("%0# -+6.1E", -3) == "-3.0E+00" +string.format("%0# -+6.1E", nan) == "+NAN " +string.format("%0# -+6.1E", inf) == "+INF " +string.format("%0# -+6.1E", -inf) == "-INF " +string.format("%0# -+6.1E", 100) == "+1.0E+02" +string.format("%0# -+6.1E", 10000) == "+1.0E+04" +string.format("%0# -+6.1E", 100000) == "+1.0E+05" +string.format("%0# -+6.1E", 1000000) == "+1.0E+06" +string.format("%0# -+6.1E", 10000000) == "+1.0E+07" +string.format("%0# -+6.1E", 0.01) == "+1.0E-02" +string.format("%0# -+6.1E", 0.0001) == "+1.0E-04" +string.format("%0# -+6.1E", 1e-05) == "+1.0E-05" +string.format("%0# -+6.1E", 1e-06) == "+1.0E-06" +string.format("%0# -+6.1E", 1e-07) == "+1.0E-07" +string.format("%0# -+6.1E", 123.456) == "+1.2E+02" +string.format("%0# -+6.1E", 1234560000) == "+1.2E+09" +string.format("%0# -+6.1E", 1.23456e-05) == "+1.2E-05" +string.format("%0# -+6.1E", 123.456789123) == "+1.2E+02" +string.format("%0# -+6.1E", 1234567891.23) == "+1.2E+09" +string.format("%0# -+6.1E", 1.23456789123e-05) == "+1.2E-05" +string.format("%0# -+6.6E", nan) == "+NAN " +string.format("%0# -+6.6E", inf) == "+INF " +string.format("%0# -+6.6E", -inf) == "-INF " +string.format("%0# -+20E", 0) == "+0.000000E+00 " +string.format("%0# -+20E", 1) == "+1.000000E+00 " +string.format("%0# -+20E", -1) == "-1.000000E+00 " +string.format("%0# -+20E", 2) == "+2.000000E+00 " +string.format("%0# -+20E", -2) == "-2.000000E+00 " +string.format("%0# -+20E", 3) == "+3.000000E+00 " +string.format("%0# -+20E", -3) == "-3.000000E+00 " +string.format("%0# -+20E", nan) == "+NAN " +string.format("%0# -+20E", inf) == "+INF " +string.format("%0# -+20E", -inf) == "-INF " +string.format("%0# -+20E", 100) == "+1.000000E+02 " +string.format("%0# -+20E", 10000) == "+1.000000E+04 " +string.format("%0# -+20E", 100000) == "+1.000000E+05 " +string.format("%0# -+20E", 1000000) == "+1.000000E+06 " +string.format("%0# -+20E", 10000000) == "+1.000000E+07 " +string.format("%0# -+20E", 0.01) == "+1.000000E-02 " +string.format("%0# -+20E", 0.0001) == "+1.000000E-04 " +string.format("%0# -+20E", 1e-05) == "+1.000000E-05 " +string.format("%0# -+20E", 1e-06) == "+1.000000E-06 " +string.format("%0# -+20E", 1e-07) == "+1.000000E-07 " +string.format("%0# -+20E", 123.456) == "+1.234560E+02 " +string.format("%0# -+20E", 1234560000) == "+1.234560E+09 " +string.format("%0# -+20E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0# -+20E", 123.456789123) == "+1.234568E+02 " +string.format("%0# -+20E", 1234567891.23) == "+1.234568E+09 " +string.format("%0# -+20E", 1.23456789123e-05) == "+1.234568E-05 " +string.format("%0# -+20.0E", 0) == "+0.E+00 " +string.format("%0# -+20.0E", 1) == "+1.E+00 " +string.format("%0# -+20.0E", -1) == "-1.E+00 " +string.format("%0# -+20.0E", 2) == "+2.E+00 " +string.format("%0# -+20.0E", -2) == "-2.E+00 " +string.format("%0# -+20.0E", 3) == "+3.E+00 " +string.format("%0# -+20.0E", -3) == "-3.E+00 " +string.format("%0# -+20.0E", nan) == "+NAN " +string.format("%0# -+20.0E", inf) == "+INF " +string.format("%0# -+20.0E", -inf) == "-INF " +string.format("%0# -+20.0E", 100) == "+1.E+02 " +string.format("%0# -+20.0E", 10000) == "+1.E+04 " +string.format("%0# -+20.0E", 100000) == "+1.E+05 " +string.format("%0# -+20.0E", 1000000) == "+1.E+06 " +string.format("%0# -+20.0E", 10000000) == "+1.E+07 " +string.format("%0# -+20.0E", 0.01) == "+1.E-02 " +string.format("%0# -+20.0E", 0.0001) == "+1.E-04 " +string.format("%0# -+20.0E", 1e-05) == "+1.E-05 " +string.format("%0# -+20.0E", 1e-06) == "+1.E-06 " +string.format("%0# -+20.0E", 1e-07) == "+1.E-07 " +string.format("%0# -+20.0E", 123.456) == "+1.E+02 " +string.format("%0# -+20.0E", 1234560000) == "+1.E+09 " +string.format("%0# -+20.0E", 1.23456e-05) == "+1.E-05 " +string.format("%0# -+20.0E", 123.456789123) == "+1.E+02 " +string.format("%0# -+20.0E", 1234567891.23) == "+1.E+09 " +string.format("%0# -+20.0E", 1.23456789123e-05) == "+1.E-05 " +string.format("%0# -+20.1E", 0) == "+0.0E+00 " +string.format("%0# -+20.1E", 1) == "+1.0E+00 " +string.format("%0# -+20.1E", -1) == "-1.0E+00 " +string.format("%0# -+20.1E", 2) == "+2.0E+00 " +string.format("%0# -+20.1E", -2) == "-2.0E+00 " +string.format("%0# -+20.1E", 3) == "+3.0E+00 " +string.format("%0# -+20.1E", -3) == "-3.0E+00 " +string.format("%0# -+20.1E", nan) == "+NAN " +string.format("%0# -+20.1E", inf) == "+INF " +string.format("%0# -+20.1E", -inf) == "-INF " +string.format("%0# -+20.1E", 100) == "+1.0E+02 " +string.format("%0# -+20.1E", 10000) == "+1.0E+04 " +string.format("%0# -+20.1E", 100000) == "+1.0E+05 " +string.format("%0# -+20.1E", 1000000) == "+1.0E+06 " +string.format("%0# -+20.1E", 10000000) == "+1.0E+07 " +string.format("%0# -+20.1E", 0.01) == "+1.0E-02 " +string.format("%0# -+20.1E", 0.0001) == "+1.0E-04 " +string.format("%0# -+20.1E", 1e-05) == "+1.0E-05 " +string.format("%0# -+20.1E", 1e-06) == "+1.0E-06 " +string.format("%0# -+20.1E", 1e-07) == "+1.0E-07 " +string.format("%0# -+20.1E", 123.456) == "+1.2E+02 " +string.format("%0# -+20.1E", 1234560000) == "+1.2E+09 " +string.format("%0# -+20.1E", 1.23456e-05) == "+1.2E-05 " +string.format("%0# -+20.1E", 123.456789123) == "+1.2E+02 " +string.format("%0# -+20.1E", 1234567891.23) == "+1.2E+09 " +string.format("%0# -+20.1E", 1.23456789123e-05) == "+1.2E-05 " +string.format("%0# -+20.6E", 0) == "+0.000000E+00 " +string.format("%0# -+20.6E", 1) == "+1.000000E+00 " +string.format("%0# -+20.6E", -1) == "-1.000000E+00 " +string.format("%0# -+20.6E", 2) == "+2.000000E+00 " +string.format("%0# -+20.6E", -2) == "-2.000000E+00 " +string.format("%0# -+20.6E", 3) == "+3.000000E+00 " +string.format("%0# -+20.6E", -3) == "-3.000000E+00 " +string.format("%0# -+20.6E", nan) == "+NAN " +string.format("%0# -+20.6E", inf) == "+INF " +string.format("%0# -+20.6E", -inf) == "-INF " +string.format("%0# -+20.6E", 100) == "+1.000000E+02 " +string.format("%0# -+20.6E", 10000) == "+1.000000E+04 " +string.format("%0# -+20.6E", 100000) == "+1.000000E+05 " +string.format("%0# -+20.6E", 1000000) == "+1.000000E+06 " +string.format("%0# -+20.6E", 10000000) == "+1.000000E+07 " +string.format("%0# -+20.6E", 0.01) == "+1.000000E-02 " +string.format("%0# -+20.6E", 0.0001) == "+1.000000E-04 " +string.format("%0# -+20.6E", 1e-05) == "+1.000000E-05 " +string.format("%0# -+20.6E", 1e-06) == "+1.000000E-06 " +string.format("%0# -+20.6E", 1e-07) == "+1.000000E-07 " +string.format("%0# -+20.6E", 123.456) == "+1.234560E+02 " +string.format("%0# -+20.6E", 1234560000) == "+1.234560E+09 " +string.format("%0# -+20.6E", 1.23456e-05) == "+1.234560E-05 " +string.format("%0# -+20.6E", 123.456789123) == "+1.234568E+02 " +string.format("%0# -+20.6E", 1234567891.23) == "+1.234568E+09 " +string.format("%0# -+20.6E", 1.23456789123e-05) == "+1.234568E-05 " += f = +string.format("%f", 0) == "0.000000" +string.format("%f", 1) == "1.000000" +string.format("%f", -1) == "-1.000000" +string.format("%f", 2) == "2.000000" +string.format("%f", -2) == "-2.000000" +string.format("%f", 3) == "3.000000" +string.format("%f", -3) == "-3.000000" +string.format("%f", nan) == "nan" +string.format("%f", inf) == "inf" +string.format("%f", -inf) == "-inf" +string.format("%f", 100) == "100.000000" +string.format("%f", 10000) == "10000.000000" +string.format("%f", 100000) == "100000.000000" +string.format("%f", 1000000) == "1000000.000000" +string.format("%f", 10000000) == "10000000.000000" +string.format("%f", 0.01) == "0.010000" +string.format("%f", 0.0001) == "0.000100" +string.format("%f", 1e-05) == "0.000010" +string.format("%f", 1e-06) == "0.000001" +string.format("%f", 1e-07) == "0.000000" +string.format("%f", 123.456) == "123.456000" +string.format("%f", 1234560000) == "1234560000.000000" +string.format("%f", 1.23456e-05) == "0.000012" +string.format("%f", 123.456789123) == "123.456789" +string.format("%f", 1234567891.23) == "1234567891.230000" +string.format("%f", 1.23456789123e-05) == "0.000012" +string.format("%.0f", 0) == "0" +string.format("%.0f", 1) == "1" +string.format("%.0f", -1) == "-1" +string.format("%.0f", 2) == "2" +string.format("%.0f", -2) == "-2" +string.format("%.0f", 3) == "3" +string.format("%.0f", -3) == "-3" +string.format("%.0f", 100) == "100" +string.format("%.0f", 10000) == "10000" +string.format("%.0f", 100000) == "100000" +string.format("%.0f", 1000000) == "1000000" +string.format("%.0f", 10000000) == "10000000" +string.format("%.0f", 0.01) == "0" +string.format("%.0f", 0.0001) == "0" +string.format("%.0f", 1e-05) == "0" +string.format("%.0f", 1e-06) == "0" +string.format("%.0f", 1e-07) == "0" +string.format("%.0f", 123.456) == "123" +string.format("%.0f", 1234560000) == "1234560000" +string.format("%.0f", 1.23456e-05) == "0" +string.format("%.0f", 123.456789123) == "123" +string.format("%.0f", 1234567891.23) == "1234567891" +string.format("%.0f", 1.23456789123e-05) == "0" +string.format("%.1f", 0) == "0.0" +string.format("%.1f", 1) == "1.0" +string.format("%.1f", -1) == "-1.0" +string.format("%.1f", 2) == "2.0" +string.format("%.1f", -2) == "-2.0" +string.format("%.1f", 3) == "3.0" +string.format("%.1f", -3) == "-3.0" +string.format("%.1f", 100) == "100.0" +string.format("%.1f", 10000) == "10000.0" +string.format("%.1f", 100000) == "100000.0" +string.format("%.1f", 1000000) == "1000000.0" +string.format("%.1f", 10000000) == "10000000.0" +string.format("%.1f", 0.01) == "0.0" +string.format("%.1f", 0.0001) == "0.0" +string.format("%.1f", 1e-05) == "0.0" +string.format("%.1f", 1e-06) == "0.0" +string.format("%.1f", 1e-07) == "0.0" +string.format("%.1f", 123.456) == "123.5" +string.format("%.1f", 1234560000) == "1234560000.0" +string.format("%.1f", 1.23456e-05) == "0.0" +string.format("%.1f", 123.456789123) == "123.5" +string.format("%.1f", 1234567891.23) == "1234567891.2" +string.format("%.1f", 1.23456789123e-05) == "0.0" +string.format("%1.0f", 0) == "0" +string.format("%1.0f", 1) == "1" +string.format("%1.0f", -1) == "-1" +string.format("%1.0f", 2) == "2" +string.format("%1.0f", -2) == "-2" +string.format("%1.0f", 3) == "3" +string.format("%1.0f", -3) == "-3" +string.format("%1.0f", 100) == "100" +string.format("%1.0f", 10000) == "10000" +string.format("%1.0f", 100000) == "100000" +string.format("%1.0f", 1000000) == "1000000" +string.format("%1.0f", 10000000) == "10000000" +string.format("%1.0f", 0.01) == "0" +string.format("%1.0f", 0.0001) == "0" +string.format("%1.0f", 1e-05) == "0" +string.format("%1.0f", 1e-06) == "0" +string.format("%1.0f", 1e-07) == "0" +string.format("%1.0f", 123.456) == "123" +string.format("%1.0f", 1234560000) == "1234560000" +string.format("%1.0f", 1.23456e-05) == "0" +string.format("%1.0f", 123.456789123) == "123" +string.format("%1.0f", 1234567891.23) == "1234567891" +string.format("%1.0f", 1.23456789123e-05) == "0" +string.format("%1.1f", 0) == "0.0" +string.format("%1.1f", 1) == "1.0" +string.format("%1.1f", -1) == "-1.0" +string.format("%1.1f", 2) == "2.0" +string.format("%1.1f", -2) == "-2.0" +string.format("%1.1f", 3) == "3.0" +string.format("%1.1f", -3) == "-3.0" +string.format("%1.1f", 100) == "100.0" +string.format("%1.1f", 10000) == "10000.0" +string.format("%1.1f", 100000) == "100000.0" +string.format("%1.1f", 1000000) == "1000000.0" +string.format("%1.1f", 10000000) == "10000000.0" +string.format("%1.1f", 0.01) == "0.0" +string.format("%1.1f", 0.0001) == "0.0" +string.format("%1.1f", 1e-05) == "0.0" +string.format("%1.1f", 1e-06) == "0.0" +string.format("%1.1f", 1e-07) == "0.0" +string.format("%1.1f", 123.456) == "123.5" +string.format("%1.1f", 1234560000) == "1234560000.0" +string.format("%1.1f", 1.23456e-05) == "0.0" +string.format("%1.1f", 123.456789123) == "123.5" +string.format("%1.1f", 1234567891.23) == "1234567891.2" +string.format("%1.1f", 1.23456789123e-05) == "0.0" +string.format("%2.0f", 0) == " 0" +string.format("%2.0f", 1) == " 1" +string.format("%2.0f", -1) == "-1" +string.format("%2.0f", 2) == " 2" +string.format("%2.0f", -2) == "-2" +string.format("%2.0f", 3) == " 3" +string.format("%2.0f", -3) == "-3" +string.format("%2.0f", 100) == "100" +string.format("%2.0f", 10000) == "10000" +string.format("%2.0f", 100000) == "100000" +string.format("%2.0f", 1000000) == "1000000" +string.format("%2.0f", 10000000) == "10000000" +string.format("%2.0f", 0.01) == " 0" +string.format("%2.0f", 0.0001) == " 0" +string.format("%2.0f", 1e-05) == " 0" +string.format("%2.0f", 1e-06) == " 0" +string.format("%2.0f", 1e-07) == " 0" +string.format("%2.0f", 123.456) == "123" +string.format("%2.0f", 1234560000) == "1234560000" +string.format("%2.0f", 1.23456e-05) == " 0" +string.format("%2.0f", 123.456789123) == "123" +string.format("%2.0f", 1234567891.23) == "1234567891" +string.format("%2.0f", 1.23456789123e-05) == " 0" +string.format("%2.1f", 0) == "0.0" +string.format("%2.1f", 1) == "1.0" +string.format("%2.1f", -1) == "-1.0" +string.format("%2.1f", 2) == "2.0" +string.format("%2.1f", -2) == "-2.0" +string.format("%2.1f", 3) == "3.0" +string.format("%2.1f", -3) == "-3.0" +string.format("%2.1f", 100) == "100.0" +string.format("%2.1f", 10000) == "10000.0" +string.format("%2.1f", 100000) == "100000.0" +string.format("%2.1f", 1000000) == "1000000.0" +string.format("%2.1f", 10000000) == "10000000.0" +string.format("%2.1f", 0.01) == "0.0" +string.format("%2.1f", 0.0001) == "0.0" +string.format("%2.1f", 1e-05) == "0.0" +string.format("%2.1f", 1e-06) == "0.0" +string.format("%2.1f", 1e-07) == "0.0" +string.format("%2.1f", 123.456) == "123.5" +string.format("%2.1f", 1234560000) == "1234560000.0" +string.format("%2.1f", 1.23456e-05) == "0.0" +string.format("%2.1f", 123.456789123) == "123.5" +string.format("%2.1f", 1234567891.23) == "1234567891.2" +string.format("%2.1f", 1.23456789123e-05) == "0.0" +string.format("%6f", nan) == " nan" +string.format("%6f", inf) == " inf" +string.format("%6f", -inf) == " -inf" +string.format("%6.0f", 0) == " 0" +string.format("%6.0f", 1) == " 1" +string.format("%6.0f", -1) == " -1" +string.format("%6.0f", 2) == " 2" +string.format("%6.0f", -2) == " -2" +string.format("%6.0f", 3) == " 3" +string.format("%6.0f", -3) == " -3" +string.format("%6.0f", nan) == " nan" +string.format("%6.0f", inf) == " inf" +string.format("%6.0f", -inf) == " -inf" +string.format("%6.0f", 100) == " 100" +string.format("%6.0f", 10000) == " 10000" +string.format("%6.0f", 100000) == "100000" +string.format("%6.0f", 1000000) == "1000000" +string.format("%6.0f", 10000000) == "10000000" +string.format("%6.0f", 0.01) == " 0" +string.format("%6.0f", 0.0001) == " 0" +string.format("%6.0f", 1e-05) == " 0" +string.format("%6.0f", 1e-06) == " 0" +string.format("%6.0f", 1e-07) == " 0" +string.format("%6.0f", 123.456) == " 123" +string.format("%6.0f", 1234560000) == "1234560000" +string.format("%6.0f", 1.23456e-05) == " 0" +string.format("%6.0f", 123.456789123) == " 123" +string.format("%6.0f", 1234567891.23) == "1234567891" +string.format("%6.0f", 1.23456789123e-05) == " 0" +string.format("%6.1f", 0) == " 0.0" +string.format("%6.1f", 1) == " 1.0" +string.format("%6.1f", -1) == " -1.0" +string.format("%6.1f", 2) == " 2.0" +string.format("%6.1f", -2) == " -2.0" +string.format("%6.1f", 3) == " 3.0" +string.format("%6.1f", -3) == " -3.0" +string.format("%6.1f", nan) == " nan" +string.format("%6.1f", inf) == " inf" +string.format("%6.1f", -inf) == " -inf" +string.format("%6.1f", 100) == " 100.0" +string.format("%6.1f", 10000) == "10000.0" +string.format("%6.1f", 100000) == "100000.0" +string.format("%6.1f", 1000000) == "1000000.0" +string.format("%6.1f", 10000000) == "10000000.0" +string.format("%6.1f", 0.01) == " 0.0" +string.format("%6.1f", 0.0001) == " 0.0" +string.format("%6.1f", 1e-05) == " 0.0" +string.format("%6.1f", 1e-06) == " 0.0" +string.format("%6.1f", 1e-07) == " 0.0" +string.format("%6.1f", 123.456) == " 123.5" +string.format("%6.1f", 1234560000) == "1234560000.0" +string.format("%6.1f", 1.23456e-05) == " 0.0" +string.format("%6.1f", 123.456789123) == " 123.5" +string.format("%6.1f", 1234567891.23) == "1234567891.2" +string.format("%6.1f", 1.23456789123e-05) == " 0.0" +string.format("%6.6f", nan) == " nan" +string.format("%6.6f", inf) == " inf" +string.format("%6.6f", -inf) == " -inf" +string.format("%20f", 0) == " 0.000000" +string.format("%20f", 1) == " 1.000000" +string.format("%20f", -1) == " -1.000000" +string.format("%20f", 2) == " 2.000000" +string.format("%20f", -2) == " -2.000000" +string.format("%20f", 3) == " 3.000000" +string.format("%20f", -3) == " -3.000000" +string.format("%20f", nan) == " nan" +string.format("%20f", inf) == " inf" +string.format("%20f", -inf) == " -inf" +string.format("%20f", 100) == " 100.000000" +string.format("%20f", 10000) == " 10000.000000" +string.format("%20f", 100000) == " 100000.000000" +string.format("%20f", 1000000) == " 1000000.000000" +string.format("%20f", 10000000) == " 10000000.000000" +string.format("%20f", 0.01) == " 0.010000" +string.format("%20f", 0.0001) == " 0.000100" +string.format("%20f", 1e-05) == " 0.000010" +string.format("%20f", 1e-06) == " 0.000001" +string.format("%20f", 1e-07) == " 0.000000" +string.format("%20f", 123.456) == " 123.456000" +string.format("%20f", 1234560000) == " 1234560000.000000" +string.format("%20f", 1.23456e-05) == " 0.000012" +string.format("%20f", 123.456789123) == " 123.456789" +string.format("%20f", 1234567891.23) == " 1234567891.230000" +string.format("%20f", 1.23456789123e-05) == " 0.000012" +string.format("%20.0f", 0) == " 0" +string.format("%20.0f", 1) == " 1" +string.format("%20.0f", -1) == " -1" +string.format("%20.0f", 2) == " 2" +string.format("%20.0f", -2) == " -2" +string.format("%20.0f", 3) == " 3" +string.format("%20.0f", -3) == " -3" +string.format("%20.0f", nan) == " nan" +string.format("%20.0f", inf) == " inf" +string.format("%20.0f", -inf) == " -inf" +string.format("%20.0f", 100) == " 100" +string.format("%20.0f", 10000) == " 10000" +string.format("%20.0f", 100000) == " 100000" +string.format("%20.0f", 1000000) == " 1000000" +string.format("%20.0f", 10000000) == " 10000000" +string.format("%20.0f", 0.01) == " 0" +string.format("%20.0f", 0.0001) == " 0" +string.format("%20.0f", 1e-05) == " 0" +string.format("%20.0f", 1e-06) == " 0" +string.format("%20.0f", 1e-07) == " 0" +string.format("%20.0f", 123.456) == " 123" +string.format("%20.0f", 1234560000) == " 1234560000" +string.format("%20.0f", 1.23456e-05) == " 0" +string.format("%20.0f", 123.456789123) == " 123" +string.format("%20.0f", 1234567891.23) == " 1234567891" +string.format("%20.0f", 1.23456789123e-05) == " 0" +string.format("%20.1f", 0) == " 0.0" +string.format("%20.1f", 1) == " 1.0" +string.format("%20.1f", -1) == " -1.0" +string.format("%20.1f", 2) == " 2.0" +string.format("%20.1f", -2) == " -2.0" +string.format("%20.1f", 3) == " 3.0" +string.format("%20.1f", -3) == " -3.0" +string.format("%20.1f", nan) == " nan" +string.format("%20.1f", inf) == " inf" +string.format("%20.1f", -inf) == " -inf" +string.format("%20.1f", 100) == " 100.0" +string.format("%20.1f", 10000) == " 10000.0" +string.format("%20.1f", 100000) == " 100000.0" +string.format("%20.1f", 1000000) == " 1000000.0" +string.format("%20.1f", 10000000) == " 10000000.0" +string.format("%20.1f", 0.01) == " 0.0" +string.format("%20.1f", 0.0001) == " 0.0" +string.format("%20.1f", 1e-05) == " 0.0" +string.format("%20.1f", 1e-06) == " 0.0" +string.format("%20.1f", 1e-07) == " 0.0" +string.format("%20.1f", 123.456) == " 123.5" +string.format("%20.1f", 1234560000) == " 1234560000.0" +string.format("%20.1f", 1.23456e-05) == " 0.0" +string.format("%20.1f", 123.456789123) == " 123.5" +string.format("%20.1f", 1234567891.23) == " 1234567891.2" +string.format("%20.1f", 1.23456789123e-05) == " 0.0" +string.format("%20.6f", 0) == " 0.000000" +string.format("%20.6f", 1) == " 1.000000" +string.format("%20.6f", -1) == " -1.000000" +string.format("%20.6f", 2) == " 2.000000" +string.format("%20.6f", -2) == " -2.000000" +string.format("%20.6f", 3) == " 3.000000" +string.format("%20.6f", -3) == " -3.000000" +string.format("%20.6f", nan) == " nan" +string.format("%20.6f", inf) == " inf" +string.format("%20.6f", -inf) == " -inf" +string.format("%20.6f", 100) == " 100.000000" +string.format("%20.6f", 10000) == " 10000.000000" +string.format("%20.6f", 100000) == " 100000.000000" +string.format("%20.6f", 1000000) == " 1000000.000000" +string.format("%20.6f", 10000000) == " 10000000.000000" +string.format("%20.6f", 0.01) == " 0.010000" +string.format("%20.6f", 0.0001) == " 0.000100" +string.format("%20.6f", 1e-05) == " 0.000010" +string.format("%20.6f", 1e-06) == " 0.000001" +string.format("%20.6f", 1e-07) == " 0.000000" +string.format("%20.6f", 123.456) == " 123.456000" +string.format("%20.6f", 1234560000) == " 1234560000.000000" +string.format("%20.6f", 1.23456e-05) == " 0.000012" +string.format("%20.6f", 123.456789123) == " 123.456789" +string.format("%20.6f", 1234567891.23) == " 1234567891.230000" +string.format("%20.6f", 1.23456789123e-05) == " 0.000012" +string.format("%+f", 0) == "+0.000000" +string.format("%+f", 1) == "+1.000000" +string.format("%+f", -1) == "-1.000000" +string.format("%+f", 2) == "+2.000000" +string.format("%+f", -2) == "-2.000000" +string.format("%+f", 3) == "+3.000000" +string.format("%+f", -3) == "-3.000000" +string.format("%+f", nan) == "+nan" +string.format("%+f", inf) == "+inf" +string.format("%+f", -inf) == "-inf" +string.format("%+f", 100) == "+100.000000" +string.format("%+f", 10000) == "+10000.000000" +string.format("%+f", 100000) == "+100000.000000" +string.format("%+f", 1000000) == "+1000000.000000" +string.format("%+f", 10000000) == "+10000000.000000" +string.format("%+f", 0.01) == "+0.010000" +string.format("%+f", 0.0001) == "+0.000100" +string.format("%+f", 1e-05) == "+0.000010" +string.format("%+f", 1e-06) == "+0.000001" +string.format("%+f", 1e-07) == "+0.000000" +string.format("%+f", 123.456) == "+123.456000" +string.format("%+f", 1234560000) == "+1234560000.000000" +string.format("%+f", 1.23456e-05) == "+0.000012" +string.format("%+f", 123.456789123) == "+123.456789" +string.format("%+f", 1234567891.23) == "+1234567891.230000" +string.format("%+f", 1.23456789123e-05) == "+0.000012" +string.format("%+.0f", 0) == "+0" +string.format("%+.0f", 1) == "+1" +string.format("%+.0f", -1) == "-1" +string.format("%+.0f", 2) == "+2" +string.format("%+.0f", -2) == "-2" +string.format("%+.0f", 3) == "+3" +string.format("%+.0f", -3) == "-3" +string.format("%+.0f", 100) == "+100" +string.format("%+.0f", 10000) == "+10000" +string.format("%+.0f", 100000) == "+100000" +string.format("%+.0f", 1000000) == "+1000000" +string.format("%+.0f", 10000000) == "+10000000" +string.format("%+.0f", 0.01) == "+0" +string.format("%+.0f", 0.0001) == "+0" +string.format("%+.0f", 1e-05) == "+0" +string.format("%+.0f", 1e-06) == "+0" +string.format("%+.0f", 1e-07) == "+0" +string.format("%+.0f", 123.456) == "+123" +string.format("%+.0f", 1234560000) == "+1234560000" +string.format("%+.0f", 1.23456e-05) == "+0" +string.format("%+.0f", 123.456789123) == "+123" +string.format("%+.0f", 1234567891.23) == "+1234567891" +string.format("%+.0f", 1.23456789123e-05) == "+0" +string.format("%+.1f", 0) == "+0.0" +string.format("%+.1f", 1) == "+1.0" +string.format("%+.1f", -1) == "-1.0" +string.format("%+.1f", 2) == "+2.0" +string.format("%+.1f", -2) == "-2.0" +string.format("%+.1f", 3) == "+3.0" +string.format("%+.1f", -3) == "-3.0" +string.format("%+.1f", 100) == "+100.0" +string.format("%+.1f", 10000) == "+10000.0" +string.format("%+.1f", 100000) == "+100000.0" +string.format("%+.1f", 1000000) == "+1000000.0" +string.format("%+.1f", 10000000) == "+10000000.0" +string.format("%+.1f", 0.01) == "+0.0" +string.format("%+.1f", 0.0001) == "+0.0" +string.format("%+.1f", 1e-05) == "+0.0" +string.format("%+.1f", 1e-06) == "+0.0" +string.format("%+.1f", 1e-07) == "+0.0" +string.format("%+.1f", 123.456) == "+123.5" +string.format("%+.1f", 1234560000) == "+1234560000.0" +string.format("%+.1f", 1.23456e-05) == "+0.0" +string.format("%+.1f", 123.456789123) == "+123.5" +string.format("%+.1f", 1234567891.23) == "+1234567891.2" +string.format("%+.1f", 1.23456789123e-05) == "+0.0" +string.format("%+1.0f", 0) == "+0" +string.format("%+1.0f", 1) == "+1" +string.format("%+1.0f", -1) == "-1" +string.format("%+1.0f", 2) == "+2" +string.format("%+1.0f", -2) == "-2" +string.format("%+1.0f", 3) == "+3" +string.format("%+1.0f", -3) == "-3" +string.format("%+1.0f", 100) == "+100" +string.format("%+1.0f", 10000) == "+10000" +string.format("%+1.0f", 100000) == "+100000" +string.format("%+1.0f", 1000000) == "+1000000" +string.format("%+1.0f", 10000000) == "+10000000" +string.format("%+1.0f", 0.01) == "+0" +string.format("%+1.0f", 0.0001) == "+0" +string.format("%+1.0f", 1e-05) == "+0" +string.format("%+1.0f", 1e-06) == "+0" +string.format("%+1.0f", 1e-07) == "+0" +string.format("%+1.0f", 123.456) == "+123" +string.format("%+1.0f", 1234560000) == "+1234560000" +string.format("%+1.0f", 1.23456e-05) == "+0" +string.format("%+1.0f", 123.456789123) == "+123" +string.format("%+1.0f", 1234567891.23) == "+1234567891" +string.format("%+1.0f", 1.23456789123e-05) == "+0" +string.format("%+1.1f", 0) == "+0.0" +string.format("%+1.1f", 1) == "+1.0" +string.format("%+1.1f", -1) == "-1.0" +string.format("%+1.1f", 2) == "+2.0" +string.format("%+1.1f", -2) == "-2.0" +string.format("%+1.1f", 3) == "+3.0" +string.format("%+1.1f", -3) == "-3.0" +string.format("%+1.1f", 100) == "+100.0" +string.format("%+1.1f", 10000) == "+10000.0" +string.format("%+1.1f", 100000) == "+100000.0" +string.format("%+1.1f", 1000000) == "+1000000.0" +string.format("%+1.1f", 10000000) == "+10000000.0" +string.format("%+1.1f", 0.01) == "+0.0" +string.format("%+1.1f", 0.0001) == "+0.0" +string.format("%+1.1f", 1e-05) == "+0.0" +string.format("%+1.1f", 1e-06) == "+0.0" +string.format("%+1.1f", 1e-07) == "+0.0" +string.format("%+1.1f", 123.456) == "+123.5" +string.format("%+1.1f", 1234560000) == "+1234560000.0" +string.format("%+1.1f", 1.23456e-05) == "+0.0" +string.format("%+1.1f", 123.456789123) == "+123.5" +string.format("%+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%+2.0f", 0) == "+0" +string.format("%+2.0f", 1) == "+1" +string.format("%+2.0f", -1) == "-1" +string.format("%+2.0f", 2) == "+2" +string.format("%+2.0f", -2) == "-2" +string.format("%+2.0f", 3) == "+3" +string.format("%+2.0f", -3) == "-3" +string.format("%+2.0f", 100) == "+100" +string.format("%+2.0f", 10000) == "+10000" +string.format("%+2.0f", 100000) == "+100000" +string.format("%+2.0f", 1000000) == "+1000000" +string.format("%+2.0f", 10000000) == "+10000000" +string.format("%+2.0f", 0.01) == "+0" +string.format("%+2.0f", 0.0001) == "+0" +string.format("%+2.0f", 1e-05) == "+0" +string.format("%+2.0f", 1e-06) == "+0" +string.format("%+2.0f", 1e-07) == "+0" +string.format("%+2.0f", 123.456) == "+123" +string.format("%+2.0f", 1234560000) == "+1234560000" +string.format("%+2.0f", 1.23456e-05) == "+0" +string.format("%+2.0f", 123.456789123) == "+123" +string.format("%+2.0f", 1234567891.23) == "+1234567891" +string.format("%+2.0f", 1.23456789123e-05) == "+0" +string.format("%+2.1f", 0) == "+0.0" +string.format("%+2.1f", 1) == "+1.0" +string.format("%+2.1f", -1) == "-1.0" +string.format("%+2.1f", 2) == "+2.0" +string.format("%+2.1f", -2) == "-2.0" +string.format("%+2.1f", 3) == "+3.0" +string.format("%+2.1f", -3) == "-3.0" +string.format("%+2.1f", 100) == "+100.0" +string.format("%+2.1f", 10000) == "+10000.0" +string.format("%+2.1f", 100000) == "+100000.0" +string.format("%+2.1f", 1000000) == "+1000000.0" +string.format("%+2.1f", 10000000) == "+10000000.0" +string.format("%+2.1f", 0.01) == "+0.0" +string.format("%+2.1f", 0.0001) == "+0.0" +string.format("%+2.1f", 1e-05) == "+0.0" +string.format("%+2.1f", 1e-06) == "+0.0" +string.format("%+2.1f", 1e-07) == "+0.0" +string.format("%+2.1f", 123.456) == "+123.5" +string.format("%+2.1f", 1234560000) == "+1234560000.0" +string.format("%+2.1f", 1.23456e-05) == "+0.0" +string.format("%+2.1f", 123.456789123) == "+123.5" +string.format("%+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%+6f", nan) == " +nan" +string.format("%+6f", inf) == " +inf" +string.format("%+6f", -inf) == " -inf" +string.format("%+6.0f", 0) == " +0" +string.format("%+6.0f", 1) == " +1" +string.format("%+6.0f", -1) == " -1" +string.format("%+6.0f", 2) == " +2" +string.format("%+6.0f", -2) == " -2" +string.format("%+6.0f", 3) == " +3" +string.format("%+6.0f", -3) == " -3" +string.format("%+6.0f", nan) == " +nan" +string.format("%+6.0f", inf) == " +inf" +string.format("%+6.0f", -inf) == " -inf" +string.format("%+6.0f", 100) == " +100" +string.format("%+6.0f", 10000) == "+10000" +string.format("%+6.0f", 100000) == "+100000" +string.format("%+6.0f", 1000000) == "+1000000" +string.format("%+6.0f", 10000000) == "+10000000" +string.format("%+6.0f", 0.01) == " +0" +string.format("%+6.0f", 0.0001) == " +0" +string.format("%+6.0f", 1e-05) == " +0" +string.format("%+6.0f", 1e-06) == " +0" +string.format("%+6.0f", 1e-07) == " +0" +string.format("%+6.0f", 123.456) == " +123" +string.format("%+6.0f", 1234560000) == "+1234560000" +string.format("%+6.0f", 1.23456e-05) == " +0" +string.format("%+6.0f", 123.456789123) == " +123" +string.format("%+6.0f", 1234567891.23) == "+1234567891" +string.format("%+6.0f", 1.23456789123e-05) == " +0" +string.format("%+6.1f", 0) == " +0.0" +string.format("%+6.1f", 1) == " +1.0" +string.format("%+6.1f", -1) == " -1.0" +string.format("%+6.1f", 2) == " +2.0" +string.format("%+6.1f", -2) == " -2.0" +string.format("%+6.1f", 3) == " +3.0" +string.format("%+6.1f", -3) == " -3.0" +string.format("%+6.1f", nan) == " +nan" +string.format("%+6.1f", inf) == " +inf" +string.format("%+6.1f", -inf) == " -inf" +string.format("%+6.1f", 100) == "+100.0" +string.format("%+6.1f", 10000) == "+10000.0" +string.format("%+6.1f", 100000) == "+100000.0" +string.format("%+6.1f", 1000000) == "+1000000.0" +string.format("%+6.1f", 10000000) == "+10000000.0" +string.format("%+6.1f", 0.01) == " +0.0" +string.format("%+6.1f", 0.0001) == " +0.0" +string.format("%+6.1f", 1e-05) == " +0.0" +string.format("%+6.1f", 1e-06) == " +0.0" +string.format("%+6.1f", 1e-07) == " +0.0" +string.format("%+6.1f", 123.456) == "+123.5" +string.format("%+6.1f", 1234560000) == "+1234560000.0" +string.format("%+6.1f", 1.23456e-05) == " +0.0" +string.format("%+6.1f", 123.456789123) == "+123.5" +string.format("%+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%+6.1f", 1.23456789123e-05) == " +0.0" +string.format("%+6.6f", nan) == " +nan" +string.format("%+6.6f", inf) == " +inf" +string.format("%+6.6f", -inf) == " -inf" +string.format("%+20f", 0) == " +0.000000" +string.format("%+20f", 1) == " +1.000000" +string.format("%+20f", -1) == " -1.000000" +string.format("%+20f", 2) == " +2.000000" +string.format("%+20f", -2) == " -2.000000" +string.format("%+20f", 3) == " +3.000000" +string.format("%+20f", -3) == " -3.000000" +string.format("%+20f", nan) == " +nan" +string.format("%+20f", inf) == " +inf" +string.format("%+20f", -inf) == " -inf" +string.format("%+20f", 100) == " +100.000000" +string.format("%+20f", 10000) == " +10000.000000" +string.format("%+20f", 100000) == " +100000.000000" +string.format("%+20f", 1000000) == " +1000000.000000" +string.format("%+20f", 10000000) == " +10000000.000000" +string.format("%+20f", 0.01) == " +0.010000" +string.format("%+20f", 0.0001) == " +0.000100" +string.format("%+20f", 1e-05) == " +0.000010" +string.format("%+20f", 1e-06) == " +0.000001" +string.format("%+20f", 1e-07) == " +0.000000" +string.format("%+20f", 123.456) == " +123.456000" +string.format("%+20f", 1234560000) == " +1234560000.000000" +string.format("%+20f", 1.23456e-05) == " +0.000012" +string.format("%+20f", 123.456789123) == " +123.456789" +string.format("%+20f", 1234567891.23) == " +1234567891.230000" +string.format("%+20f", 1.23456789123e-05) == " +0.000012" +string.format("%+20.0f", 0) == " +0" +string.format("%+20.0f", 1) == " +1" +string.format("%+20.0f", -1) == " -1" +string.format("%+20.0f", 2) == " +2" +string.format("%+20.0f", -2) == " -2" +string.format("%+20.0f", 3) == " +3" +string.format("%+20.0f", -3) == " -3" +string.format("%+20.0f", nan) == " +nan" +string.format("%+20.0f", inf) == " +inf" +string.format("%+20.0f", -inf) == " -inf" +string.format("%+20.0f", 100) == " +100" +string.format("%+20.0f", 10000) == " +10000" +string.format("%+20.0f", 100000) == " +100000" +string.format("%+20.0f", 1000000) == " +1000000" +string.format("%+20.0f", 10000000) == " +10000000" +string.format("%+20.0f", 0.01) == " +0" +string.format("%+20.0f", 0.0001) == " +0" +string.format("%+20.0f", 1e-05) == " +0" +string.format("%+20.0f", 1e-06) == " +0" +string.format("%+20.0f", 1e-07) == " +0" +string.format("%+20.0f", 123.456) == " +123" +string.format("%+20.0f", 1234560000) == " +1234560000" +string.format("%+20.0f", 1.23456e-05) == " +0" +string.format("%+20.0f", 123.456789123) == " +123" +string.format("%+20.0f", 1234567891.23) == " +1234567891" +string.format("%+20.0f", 1.23456789123e-05) == " +0" +string.format("%+20.1f", 0) == " +0.0" +string.format("%+20.1f", 1) == " +1.0" +string.format("%+20.1f", -1) == " -1.0" +string.format("%+20.1f", 2) == " +2.0" +string.format("%+20.1f", -2) == " -2.0" +string.format("%+20.1f", 3) == " +3.0" +string.format("%+20.1f", -3) == " -3.0" +string.format("%+20.1f", nan) == " +nan" +string.format("%+20.1f", inf) == " +inf" +string.format("%+20.1f", -inf) == " -inf" +string.format("%+20.1f", 100) == " +100.0" +string.format("%+20.1f", 10000) == " +10000.0" +string.format("%+20.1f", 100000) == " +100000.0" +string.format("%+20.1f", 1000000) == " +1000000.0" +string.format("%+20.1f", 10000000) == " +10000000.0" +string.format("%+20.1f", 0.01) == " +0.0" +string.format("%+20.1f", 0.0001) == " +0.0" +string.format("%+20.1f", 1e-05) == " +0.0" +string.format("%+20.1f", 1e-06) == " +0.0" +string.format("%+20.1f", 1e-07) == " +0.0" +string.format("%+20.1f", 123.456) == " +123.5" +string.format("%+20.1f", 1234560000) == " +1234560000.0" +string.format("%+20.1f", 1.23456e-05) == " +0.0" +string.format("%+20.1f", 123.456789123) == " +123.5" +string.format("%+20.1f", 1234567891.23) == " +1234567891.2" +string.format("%+20.1f", 1.23456789123e-05) == " +0.0" +string.format("%+20.6f", 0) == " +0.000000" +string.format("%+20.6f", 1) == " +1.000000" +string.format("%+20.6f", -1) == " -1.000000" +string.format("%+20.6f", 2) == " +2.000000" +string.format("%+20.6f", -2) == " -2.000000" +string.format("%+20.6f", 3) == " +3.000000" +string.format("%+20.6f", -3) == " -3.000000" +string.format("%+20.6f", nan) == " +nan" +string.format("%+20.6f", inf) == " +inf" +string.format("%+20.6f", -inf) == " -inf" +string.format("%+20.6f", 100) == " +100.000000" +string.format("%+20.6f", 10000) == " +10000.000000" +string.format("%+20.6f", 100000) == " +100000.000000" +string.format("%+20.6f", 1000000) == " +1000000.000000" +string.format("%+20.6f", 10000000) == " +10000000.000000" +string.format("%+20.6f", 0.01) == " +0.010000" +string.format("%+20.6f", 0.0001) == " +0.000100" +string.format("%+20.6f", 1e-05) == " +0.000010" +string.format("%+20.6f", 1e-06) == " +0.000001" +string.format("%+20.6f", 1e-07) == " +0.000000" +string.format("%+20.6f", 123.456) == " +123.456000" +string.format("%+20.6f", 1234560000) == " +1234560000.000000" +string.format("%+20.6f", 1.23456e-05) == " +0.000012" +string.format("%+20.6f", 123.456789123) == " +123.456789" +string.format("%+20.6f", 1234567891.23) == " +1234567891.230000" +string.format("%+20.6f", 1.23456789123e-05) == " +0.000012" +string.format("%-f", 0) == "0.000000" +string.format("%-f", 1) == "1.000000" +string.format("%-f", -1) == "-1.000000" +string.format("%-f", 2) == "2.000000" +string.format("%-f", -2) == "-2.000000" +string.format("%-f", 3) == "3.000000" +string.format("%-f", -3) == "-3.000000" +string.format("%-f", nan) == "nan" +string.format("%-f", inf) == "inf" +string.format("%-f", -inf) == "-inf" +string.format("%-f", 100) == "100.000000" +string.format("%-f", 10000) == "10000.000000" +string.format("%-f", 100000) == "100000.000000" +string.format("%-f", 1000000) == "1000000.000000" +string.format("%-f", 10000000) == "10000000.000000" +string.format("%-f", 0.01) == "0.010000" +string.format("%-f", 0.0001) == "0.000100" +string.format("%-f", 1e-05) == "0.000010" +string.format("%-f", 1e-06) == "0.000001" +string.format("%-f", 1e-07) == "0.000000" +string.format("%-f", 123.456) == "123.456000" +string.format("%-f", 1234560000) == "1234560000.000000" +string.format("%-f", 1.23456e-05) == "0.000012" +string.format("%-f", 123.456789123) == "123.456789" +string.format("%-f", 1234567891.23) == "1234567891.230000" +string.format("%-f", 1.23456789123e-05) == "0.000012" +string.format("%-.0f", 0) == "0" +string.format("%-.0f", 1) == "1" +string.format("%-.0f", -1) == "-1" +string.format("%-.0f", 2) == "2" +string.format("%-.0f", -2) == "-2" +string.format("%-.0f", 3) == "3" +string.format("%-.0f", -3) == "-3" +string.format("%-.0f", 100) == "100" +string.format("%-.0f", 10000) == "10000" +string.format("%-.0f", 100000) == "100000" +string.format("%-.0f", 1000000) == "1000000" +string.format("%-.0f", 10000000) == "10000000" +string.format("%-.0f", 0.01) == "0" +string.format("%-.0f", 0.0001) == "0" +string.format("%-.0f", 1e-05) == "0" +string.format("%-.0f", 1e-06) == "0" +string.format("%-.0f", 1e-07) == "0" +string.format("%-.0f", 123.456) == "123" +string.format("%-.0f", 1234560000) == "1234560000" +string.format("%-.0f", 1.23456e-05) == "0" +string.format("%-.0f", 123.456789123) == "123" +string.format("%-.0f", 1234567891.23) == "1234567891" +string.format("%-.0f", 1.23456789123e-05) == "0" +string.format("%-.1f", 0) == "0.0" +string.format("%-.1f", 1) == "1.0" +string.format("%-.1f", -1) == "-1.0" +string.format("%-.1f", 2) == "2.0" +string.format("%-.1f", -2) == "-2.0" +string.format("%-.1f", 3) == "3.0" +string.format("%-.1f", -3) == "-3.0" +string.format("%-.1f", 100) == "100.0" +string.format("%-.1f", 10000) == "10000.0" +string.format("%-.1f", 100000) == "100000.0" +string.format("%-.1f", 1000000) == "1000000.0" +string.format("%-.1f", 10000000) == "10000000.0" +string.format("%-.1f", 0.01) == "0.0" +string.format("%-.1f", 0.0001) == "0.0" +string.format("%-.1f", 1e-05) == "0.0" +string.format("%-.1f", 1e-06) == "0.0" +string.format("%-.1f", 1e-07) == "0.0" +string.format("%-.1f", 123.456) == "123.5" +string.format("%-.1f", 1234560000) == "1234560000.0" +string.format("%-.1f", 1.23456e-05) == "0.0" +string.format("%-.1f", 123.456789123) == "123.5" +string.format("%-.1f", 1234567891.23) == "1234567891.2" +string.format("%-.1f", 1.23456789123e-05) == "0.0" +string.format("%-1.0f", 0) == "0" +string.format("%-1.0f", 1) == "1" +string.format("%-1.0f", -1) == "-1" +string.format("%-1.0f", 2) == "2" +string.format("%-1.0f", -2) == "-2" +string.format("%-1.0f", 3) == "3" +string.format("%-1.0f", -3) == "-3" +string.format("%-1.0f", 100) == "100" +string.format("%-1.0f", 10000) == "10000" +string.format("%-1.0f", 100000) == "100000" +string.format("%-1.0f", 1000000) == "1000000" +string.format("%-1.0f", 10000000) == "10000000" +string.format("%-1.0f", 0.01) == "0" +string.format("%-1.0f", 0.0001) == "0" +string.format("%-1.0f", 1e-05) == "0" +string.format("%-1.0f", 1e-06) == "0" +string.format("%-1.0f", 1e-07) == "0" +string.format("%-1.0f", 123.456) == "123" +string.format("%-1.0f", 1234560000) == "1234560000" +string.format("%-1.0f", 1.23456e-05) == "0" +string.format("%-1.0f", 123.456789123) == "123" +string.format("%-1.0f", 1234567891.23) == "1234567891" +string.format("%-1.0f", 1.23456789123e-05) == "0" +string.format("%-1.1f", 0) == "0.0" +string.format("%-1.1f", 1) == "1.0" +string.format("%-1.1f", -1) == "-1.0" +string.format("%-1.1f", 2) == "2.0" +string.format("%-1.1f", -2) == "-2.0" +string.format("%-1.1f", 3) == "3.0" +string.format("%-1.1f", -3) == "-3.0" +string.format("%-1.1f", 100) == "100.0" +string.format("%-1.1f", 10000) == "10000.0" +string.format("%-1.1f", 100000) == "100000.0" +string.format("%-1.1f", 1000000) == "1000000.0" +string.format("%-1.1f", 10000000) == "10000000.0" +string.format("%-1.1f", 0.01) == "0.0" +string.format("%-1.1f", 0.0001) == "0.0" +string.format("%-1.1f", 1e-05) == "0.0" +string.format("%-1.1f", 1e-06) == "0.0" +string.format("%-1.1f", 1e-07) == "0.0" +string.format("%-1.1f", 123.456) == "123.5" +string.format("%-1.1f", 1234560000) == "1234560000.0" +string.format("%-1.1f", 1.23456e-05) == "0.0" +string.format("%-1.1f", 123.456789123) == "123.5" +string.format("%-1.1f", 1234567891.23) == "1234567891.2" +string.format("%-1.1f", 1.23456789123e-05) == "0.0" +string.format("%-2.0f", 0) == "0 " +string.format("%-2.0f", 1) == "1 " +string.format("%-2.0f", -1) == "-1" +string.format("%-2.0f", 2) == "2 " +string.format("%-2.0f", -2) == "-2" +string.format("%-2.0f", 3) == "3 " +string.format("%-2.0f", -3) == "-3" +string.format("%-2.0f", 100) == "100" +string.format("%-2.0f", 10000) == "10000" +string.format("%-2.0f", 100000) == "100000" +string.format("%-2.0f", 1000000) == "1000000" +string.format("%-2.0f", 10000000) == "10000000" +string.format("%-2.0f", 0.01) == "0 " +string.format("%-2.0f", 0.0001) == "0 " +string.format("%-2.0f", 1e-05) == "0 " +string.format("%-2.0f", 1e-06) == "0 " +string.format("%-2.0f", 1e-07) == "0 " +string.format("%-2.0f", 123.456) == "123" +string.format("%-2.0f", 1234560000) == "1234560000" +string.format("%-2.0f", 1.23456e-05) == "0 " +string.format("%-2.0f", 123.456789123) == "123" +string.format("%-2.0f", 1234567891.23) == "1234567891" +string.format("%-2.0f", 1.23456789123e-05) == "0 " +string.format("%-2.1f", 0) == "0.0" +string.format("%-2.1f", 1) == "1.0" +string.format("%-2.1f", -1) == "-1.0" +string.format("%-2.1f", 2) == "2.0" +string.format("%-2.1f", -2) == "-2.0" +string.format("%-2.1f", 3) == "3.0" +string.format("%-2.1f", -3) == "-3.0" +string.format("%-2.1f", 100) == "100.0" +string.format("%-2.1f", 10000) == "10000.0" +string.format("%-2.1f", 100000) == "100000.0" +string.format("%-2.1f", 1000000) == "1000000.0" +string.format("%-2.1f", 10000000) == "10000000.0" +string.format("%-2.1f", 0.01) == "0.0" +string.format("%-2.1f", 0.0001) == "0.0" +string.format("%-2.1f", 1e-05) == "0.0" +string.format("%-2.1f", 1e-06) == "0.0" +string.format("%-2.1f", 1e-07) == "0.0" +string.format("%-2.1f", 123.456) == "123.5" +string.format("%-2.1f", 1234560000) == "1234560000.0" +string.format("%-2.1f", 1.23456e-05) == "0.0" +string.format("%-2.1f", 123.456789123) == "123.5" +string.format("%-2.1f", 1234567891.23) == "1234567891.2" +string.format("%-2.1f", 1.23456789123e-05) == "0.0" +string.format("%-6f", nan) == "nan " +string.format("%-6f", inf) == "inf " +string.format("%-6f", -inf) == "-inf " +string.format("%-6.0f", 0) == "0 " +string.format("%-6.0f", 1) == "1 " +string.format("%-6.0f", -1) == "-1 " +string.format("%-6.0f", 2) == "2 " +string.format("%-6.0f", -2) == "-2 " +string.format("%-6.0f", 3) == "3 " +string.format("%-6.0f", -3) == "-3 " +string.format("%-6.0f", nan) == "nan " +string.format("%-6.0f", inf) == "inf " +string.format("%-6.0f", -inf) == "-inf " +string.format("%-6.0f", 100) == "100 " +string.format("%-6.0f", 10000) == "10000 " +string.format("%-6.0f", 100000) == "100000" +string.format("%-6.0f", 1000000) == "1000000" +string.format("%-6.0f", 10000000) == "10000000" +string.format("%-6.0f", 0.01) == "0 " +string.format("%-6.0f", 0.0001) == "0 " +string.format("%-6.0f", 1e-05) == "0 " +string.format("%-6.0f", 1e-06) == "0 " +string.format("%-6.0f", 1e-07) == "0 " +string.format("%-6.0f", 123.456) == "123 " +string.format("%-6.0f", 1234560000) == "1234560000" +string.format("%-6.0f", 1.23456e-05) == "0 " +string.format("%-6.0f", 123.456789123) == "123 " +string.format("%-6.0f", 1234567891.23) == "1234567891" +string.format("%-6.0f", 1.23456789123e-05) == "0 " +string.format("%-6.1f", 0) == "0.0 " +string.format("%-6.1f", 1) == "1.0 " +string.format("%-6.1f", -1) == "-1.0 " +string.format("%-6.1f", 2) == "2.0 " +string.format("%-6.1f", -2) == "-2.0 " +string.format("%-6.1f", 3) == "3.0 " +string.format("%-6.1f", -3) == "-3.0 " +string.format("%-6.1f", nan) == "nan " +string.format("%-6.1f", inf) == "inf " +string.format("%-6.1f", -inf) == "-inf " +string.format("%-6.1f", 100) == "100.0 " +string.format("%-6.1f", 10000) == "10000.0" +string.format("%-6.1f", 100000) == "100000.0" +string.format("%-6.1f", 1000000) == "1000000.0" +string.format("%-6.1f", 10000000) == "10000000.0" +string.format("%-6.1f", 0.01) == "0.0 " +string.format("%-6.1f", 0.0001) == "0.0 " +string.format("%-6.1f", 1e-05) == "0.0 " +string.format("%-6.1f", 1e-06) == "0.0 " +string.format("%-6.1f", 1e-07) == "0.0 " +string.format("%-6.1f", 123.456) == "123.5 " +string.format("%-6.1f", 1234560000) == "1234560000.0" +string.format("%-6.1f", 1.23456e-05) == "0.0 " +string.format("%-6.1f", 123.456789123) == "123.5 " +string.format("%-6.1f", 1234567891.23) == "1234567891.2" +string.format("%-6.1f", 1.23456789123e-05) == "0.0 " +string.format("%-6.6f", nan) == "nan " +string.format("%-6.6f", inf) == "inf " +string.format("%-6.6f", -inf) == "-inf " +string.format("%-20f", 0) == "0.000000 " +string.format("%-20f", 1) == "1.000000 " +string.format("%-20f", -1) == "-1.000000 " +string.format("%-20f", 2) == "2.000000 " +string.format("%-20f", -2) == "-2.000000 " +string.format("%-20f", 3) == "3.000000 " +string.format("%-20f", -3) == "-3.000000 " +string.format("%-20f", nan) == "nan " +string.format("%-20f", inf) == "inf " +string.format("%-20f", -inf) == "-inf " +string.format("%-20f", 100) == "100.000000 " +string.format("%-20f", 10000) == "10000.000000 " +string.format("%-20f", 100000) == "100000.000000 " +string.format("%-20f", 1000000) == "1000000.000000 " +string.format("%-20f", 10000000) == "10000000.000000 " +string.format("%-20f", 0.01) == "0.010000 " +string.format("%-20f", 0.0001) == "0.000100 " +string.format("%-20f", 1e-05) == "0.000010 " +string.format("%-20f", 1e-06) == "0.000001 " +string.format("%-20f", 1e-07) == "0.000000 " +string.format("%-20f", 123.456) == "123.456000 " +string.format("%-20f", 1234560000) == "1234560000.000000 " +string.format("%-20f", 1.23456e-05) == "0.000012 " +string.format("%-20f", 123.456789123) == "123.456789 " +string.format("%-20f", 1234567891.23) == "1234567891.230000 " +string.format("%-20f", 1.23456789123e-05) == "0.000012 " +string.format("%-20.0f", 0) == "0 " +string.format("%-20.0f", 1) == "1 " +string.format("%-20.0f", -1) == "-1 " +string.format("%-20.0f", 2) == "2 " +string.format("%-20.0f", -2) == "-2 " +string.format("%-20.0f", 3) == "3 " +string.format("%-20.0f", -3) == "-3 " +string.format("%-20.0f", nan) == "nan " +string.format("%-20.0f", inf) == "inf " +string.format("%-20.0f", -inf) == "-inf " +string.format("%-20.0f", 100) == "100 " +string.format("%-20.0f", 10000) == "10000 " +string.format("%-20.0f", 100000) == "100000 " +string.format("%-20.0f", 1000000) == "1000000 " +string.format("%-20.0f", 10000000) == "10000000 " +string.format("%-20.0f", 0.01) == "0 " +string.format("%-20.0f", 0.0001) == "0 " +string.format("%-20.0f", 1e-05) == "0 " +string.format("%-20.0f", 1e-06) == "0 " +string.format("%-20.0f", 1e-07) == "0 " +string.format("%-20.0f", 123.456) == "123 " +string.format("%-20.0f", 1234560000) == "1234560000 " +string.format("%-20.0f", 1.23456e-05) == "0 " +string.format("%-20.0f", 123.456789123) == "123 " +string.format("%-20.0f", 1234567891.23) == "1234567891 " +string.format("%-20.0f", 1.23456789123e-05) == "0 " +string.format("%-20.1f", 0) == "0.0 " +string.format("%-20.1f", 1) == "1.0 " +string.format("%-20.1f", -1) == "-1.0 " +string.format("%-20.1f", 2) == "2.0 " +string.format("%-20.1f", -2) == "-2.0 " +string.format("%-20.1f", 3) == "3.0 " +string.format("%-20.1f", -3) == "-3.0 " +string.format("%-20.1f", nan) == "nan " +string.format("%-20.1f", inf) == "inf " +string.format("%-20.1f", -inf) == "-inf " +string.format("%-20.1f", 100) == "100.0 " +string.format("%-20.1f", 10000) == "10000.0 " +string.format("%-20.1f", 100000) == "100000.0 " +string.format("%-20.1f", 1000000) == "1000000.0 " +string.format("%-20.1f", 10000000) == "10000000.0 " +string.format("%-20.1f", 0.01) == "0.0 " +string.format("%-20.1f", 0.0001) == "0.0 " +string.format("%-20.1f", 1e-05) == "0.0 " +string.format("%-20.1f", 1e-06) == "0.0 " +string.format("%-20.1f", 1e-07) == "0.0 " +string.format("%-20.1f", 123.456) == "123.5 " +string.format("%-20.1f", 1234560000) == "1234560000.0 " +string.format("%-20.1f", 1.23456e-05) == "0.0 " +string.format("%-20.1f", 123.456789123) == "123.5 " +string.format("%-20.1f", 1234567891.23) == "1234567891.2 " +string.format("%-20.1f", 1.23456789123e-05) == "0.0 " +string.format("%-20.6f", 0) == "0.000000 " +string.format("%-20.6f", 1) == "1.000000 " +string.format("%-20.6f", -1) == "-1.000000 " +string.format("%-20.6f", 2) == "2.000000 " +string.format("%-20.6f", -2) == "-2.000000 " +string.format("%-20.6f", 3) == "3.000000 " +string.format("%-20.6f", -3) == "-3.000000 " +string.format("%-20.6f", nan) == "nan " +string.format("%-20.6f", inf) == "inf " +string.format("%-20.6f", -inf) == "-inf " +string.format("%-20.6f", 100) == "100.000000 " +string.format("%-20.6f", 10000) == "10000.000000 " +string.format("%-20.6f", 100000) == "100000.000000 " +string.format("%-20.6f", 1000000) == "1000000.000000 " +string.format("%-20.6f", 10000000) == "10000000.000000 " +string.format("%-20.6f", 0.01) == "0.010000 " +string.format("%-20.6f", 0.0001) == "0.000100 " +string.format("%-20.6f", 1e-05) == "0.000010 " +string.format("%-20.6f", 1e-06) == "0.000001 " +string.format("%-20.6f", 1e-07) == "0.000000 " +string.format("%-20.6f", 123.456) == "123.456000 " +string.format("%-20.6f", 1234560000) == "1234560000.000000 " +string.format("%-20.6f", 1.23456e-05) == "0.000012 " +string.format("%-20.6f", 123.456789123) == "123.456789 " +string.format("%-20.6f", 1234567891.23) == "1234567891.230000 " +string.format("%-20.6f", 1.23456789123e-05) == "0.000012 " +string.format("%-+f", 0) == "+0.000000" +string.format("%-+f", 1) == "+1.000000" +string.format("%-+f", -1) == "-1.000000" +string.format("%-+f", 2) == "+2.000000" +string.format("%-+f", -2) == "-2.000000" +string.format("%-+f", 3) == "+3.000000" +string.format("%-+f", -3) == "-3.000000" +string.format("%-+f", nan) == "+nan" +string.format("%-+f", inf) == "+inf" +string.format("%-+f", -inf) == "-inf" +string.format("%-+f", 100) == "+100.000000" +string.format("%-+f", 10000) == "+10000.000000" +string.format("%-+f", 100000) == "+100000.000000" +string.format("%-+f", 1000000) == "+1000000.000000" +string.format("%-+f", 10000000) == "+10000000.000000" +string.format("%-+f", 0.01) == "+0.010000" +string.format("%-+f", 0.0001) == "+0.000100" +string.format("%-+f", 1e-05) == "+0.000010" +string.format("%-+f", 1e-06) == "+0.000001" +string.format("%-+f", 1e-07) == "+0.000000" +string.format("%-+f", 123.456) == "+123.456000" +string.format("%-+f", 1234560000) == "+1234560000.000000" +string.format("%-+f", 1.23456e-05) == "+0.000012" +string.format("%-+f", 123.456789123) == "+123.456789" +string.format("%-+f", 1234567891.23) == "+1234567891.230000" +string.format("%-+f", 1.23456789123e-05) == "+0.000012" +string.format("%-+.0f", 0) == "+0" +string.format("%-+.0f", 1) == "+1" +string.format("%-+.0f", -1) == "-1" +string.format("%-+.0f", 2) == "+2" +string.format("%-+.0f", -2) == "-2" +string.format("%-+.0f", 3) == "+3" +string.format("%-+.0f", -3) == "-3" +string.format("%-+.0f", 100) == "+100" +string.format("%-+.0f", 10000) == "+10000" +string.format("%-+.0f", 100000) == "+100000" +string.format("%-+.0f", 1000000) == "+1000000" +string.format("%-+.0f", 10000000) == "+10000000" +string.format("%-+.0f", 0.01) == "+0" +string.format("%-+.0f", 0.0001) == "+0" +string.format("%-+.0f", 1e-05) == "+0" +string.format("%-+.0f", 1e-06) == "+0" +string.format("%-+.0f", 1e-07) == "+0" +string.format("%-+.0f", 123.456) == "+123" +string.format("%-+.0f", 1234560000) == "+1234560000" +string.format("%-+.0f", 1.23456e-05) == "+0" +string.format("%-+.0f", 123.456789123) == "+123" +string.format("%-+.0f", 1234567891.23) == "+1234567891" +string.format("%-+.0f", 1.23456789123e-05) == "+0" +string.format("%-+.1f", 0) == "+0.0" +string.format("%-+.1f", 1) == "+1.0" +string.format("%-+.1f", -1) == "-1.0" +string.format("%-+.1f", 2) == "+2.0" +string.format("%-+.1f", -2) == "-2.0" +string.format("%-+.1f", 3) == "+3.0" +string.format("%-+.1f", -3) == "-3.0" +string.format("%-+.1f", 100) == "+100.0" +string.format("%-+.1f", 10000) == "+10000.0" +string.format("%-+.1f", 100000) == "+100000.0" +string.format("%-+.1f", 1000000) == "+1000000.0" +string.format("%-+.1f", 10000000) == "+10000000.0" +string.format("%-+.1f", 0.01) == "+0.0" +string.format("%-+.1f", 0.0001) == "+0.0" +string.format("%-+.1f", 1e-05) == "+0.0" +string.format("%-+.1f", 1e-06) == "+0.0" +string.format("%-+.1f", 1e-07) == "+0.0" +string.format("%-+.1f", 123.456) == "+123.5" +string.format("%-+.1f", 1234560000) == "+1234560000.0" +string.format("%-+.1f", 1.23456e-05) == "+0.0" +string.format("%-+.1f", 123.456789123) == "+123.5" +string.format("%-+.1f", 1234567891.23) == "+1234567891.2" +string.format("%-+.1f", 1.23456789123e-05) == "+0.0" +string.format("%-+1.0f", 0) == "+0" +string.format("%-+1.0f", 1) == "+1" +string.format("%-+1.0f", -1) == "-1" +string.format("%-+1.0f", 2) == "+2" +string.format("%-+1.0f", -2) == "-2" +string.format("%-+1.0f", 3) == "+3" +string.format("%-+1.0f", -3) == "-3" +string.format("%-+1.0f", 100) == "+100" +string.format("%-+1.0f", 10000) == "+10000" +string.format("%-+1.0f", 100000) == "+100000" +string.format("%-+1.0f", 1000000) == "+1000000" +string.format("%-+1.0f", 10000000) == "+10000000" +string.format("%-+1.0f", 0.01) == "+0" +string.format("%-+1.0f", 0.0001) == "+0" +string.format("%-+1.0f", 1e-05) == "+0" +string.format("%-+1.0f", 1e-06) == "+0" +string.format("%-+1.0f", 1e-07) == "+0" +string.format("%-+1.0f", 123.456) == "+123" +string.format("%-+1.0f", 1234560000) == "+1234560000" +string.format("%-+1.0f", 1.23456e-05) == "+0" +string.format("%-+1.0f", 123.456789123) == "+123" +string.format("%-+1.0f", 1234567891.23) == "+1234567891" +string.format("%-+1.0f", 1.23456789123e-05) == "+0" +string.format("%-+1.1f", 0) == "+0.0" +string.format("%-+1.1f", 1) == "+1.0" +string.format("%-+1.1f", -1) == "-1.0" +string.format("%-+1.1f", 2) == "+2.0" +string.format("%-+1.1f", -2) == "-2.0" +string.format("%-+1.1f", 3) == "+3.0" +string.format("%-+1.1f", -3) == "-3.0" +string.format("%-+1.1f", 100) == "+100.0" +string.format("%-+1.1f", 10000) == "+10000.0" +string.format("%-+1.1f", 100000) == "+100000.0" +string.format("%-+1.1f", 1000000) == "+1000000.0" +string.format("%-+1.1f", 10000000) == "+10000000.0" +string.format("%-+1.1f", 0.01) == "+0.0" +string.format("%-+1.1f", 0.0001) == "+0.0" +string.format("%-+1.1f", 1e-05) == "+0.0" +string.format("%-+1.1f", 1e-06) == "+0.0" +string.format("%-+1.1f", 1e-07) == "+0.0" +string.format("%-+1.1f", 123.456) == "+123.5" +string.format("%-+1.1f", 1234560000) == "+1234560000.0" +string.format("%-+1.1f", 1.23456e-05) == "+0.0" +string.format("%-+1.1f", 123.456789123) == "+123.5" +string.format("%-+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%-+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%-+2.0f", 0) == "+0" +string.format("%-+2.0f", 1) == "+1" +string.format("%-+2.0f", -1) == "-1" +string.format("%-+2.0f", 2) == "+2" +string.format("%-+2.0f", -2) == "-2" +string.format("%-+2.0f", 3) == "+3" +string.format("%-+2.0f", -3) == "-3" +string.format("%-+2.0f", 100) == "+100" +string.format("%-+2.0f", 10000) == "+10000" +string.format("%-+2.0f", 100000) == "+100000" +string.format("%-+2.0f", 1000000) == "+1000000" +string.format("%-+2.0f", 10000000) == "+10000000" +string.format("%-+2.0f", 0.01) == "+0" +string.format("%-+2.0f", 0.0001) == "+0" +string.format("%-+2.0f", 1e-05) == "+0" +string.format("%-+2.0f", 1e-06) == "+0" +string.format("%-+2.0f", 1e-07) == "+0" +string.format("%-+2.0f", 123.456) == "+123" +string.format("%-+2.0f", 1234560000) == "+1234560000" +string.format("%-+2.0f", 1.23456e-05) == "+0" +string.format("%-+2.0f", 123.456789123) == "+123" +string.format("%-+2.0f", 1234567891.23) == "+1234567891" +string.format("%-+2.0f", 1.23456789123e-05) == "+0" +string.format("%-+2.1f", 0) == "+0.0" +string.format("%-+2.1f", 1) == "+1.0" +string.format("%-+2.1f", -1) == "-1.0" +string.format("%-+2.1f", 2) == "+2.0" +string.format("%-+2.1f", -2) == "-2.0" +string.format("%-+2.1f", 3) == "+3.0" +string.format("%-+2.1f", -3) == "-3.0" +string.format("%-+2.1f", 100) == "+100.0" +string.format("%-+2.1f", 10000) == "+10000.0" +string.format("%-+2.1f", 100000) == "+100000.0" +string.format("%-+2.1f", 1000000) == "+1000000.0" +string.format("%-+2.1f", 10000000) == "+10000000.0" +string.format("%-+2.1f", 0.01) == "+0.0" +string.format("%-+2.1f", 0.0001) == "+0.0" +string.format("%-+2.1f", 1e-05) == "+0.0" +string.format("%-+2.1f", 1e-06) == "+0.0" +string.format("%-+2.1f", 1e-07) == "+0.0" +string.format("%-+2.1f", 123.456) == "+123.5" +string.format("%-+2.1f", 1234560000) == "+1234560000.0" +string.format("%-+2.1f", 1.23456e-05) == "+0.0" +string.format("%-+2.1f", 123.456789123) == "+123.5" +string.format("%-+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%-+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%-+6f", nan) == "+nan " +string.format("%-+6f", inf) == "+inf " +string.format("%-+6f", -inf) == "-inf " +string.format("%-+6.0f", 0) == "+0 " +string.format("%-+6.0f", 1) == "+1 " +string.format("%-+6.0f", -1) == "-1 " +string.format("%-+6.0f", 2) == "+2 " +string.format("%-+6.0f", -2) == "-2 " +string.format("%-+6.0f", 3) == "+3 " +string.format("%-+6.0f", -3) == "-3 " +string.format("%-+6.0f", nan) == "+nan " +string.format("%-+6.0f", inf) == "+inf " +string.format("%-+6.0f", -inf) == "-inf " +string.format("%-+6.0f", 100) == "+100 " +string.format("%-+6.0f", 10000) == "+10000" +string.format("%-+6.0f", 100000) == "+100000" +string.format("%-+6.0f", 1000000) == "+1000000" +string.format("%-+6.0f", 10000000) == "+10000000" +string.format("%-+6.0f", 0.01) == "+0 " +string.format("%-+6.0f", 0.0001) == "+0 " +string.format("%-+6.0f", 1e-05) == "+0 " +string.format("%-+6.0f", 1e-06) == "+0 " +string.format("%-+6.0f", 1e-07) == "+0 " +string.format("%-+6.0f", 123.456) == "+123 " +string.format("%-+6.0f", 1234560000) == "+1234560000" +string.format("%-+6.0f", 1.23456e-05) == "+0 " +string.format("%-+6.0f", 123.456789123) == "+123 " +string.format("%-+6.0f", 1234567891.23) == "+1234567891" +string.format("%-+6.0f", 1.23456789123e-05) == "+0 " +string.format("%-+6.1f", 0) == "+0.0 " +string.format("%-+6.1f", 1) == "+1.0 " +string.format("%-+6.1f", -1) == "-1.0 " +string.format("%-+6.1f", 2) == "+2.0 " +string.format("%-+6.1f", -2) == "-2.0 " +string.format("%-+6.1f", 3) == "+3.0 " +string.format("%-+6.1f", -3) == "-3.0 " +string.format("%-+6.1f", nan) == "+nan " +string.format("%-+6.1f", inf) == "+inf " +string.format("%-+6.1f", -inf) == "-inf " +string.format("%-+6.1f", 100) == "+100.0" +string.format("%-+6.1f", 10000) == "+10000.0" +string.format("%-+6.1f", 100000) == "+100000.0" +string.format("%-+6.1f", 1000000) == "+1000000.0" +string.format("%-+6.1f", 10000000) == "+10000000.0" +string.format("%-+6.1f", 0.01) == "+0.0 " +string.format("%-+6.1f", 0.0001) == "+0.0 " +string.format("%-+6.1f", 1e-05) == "+0.0 " +string.format("%-+6.1f", 1e-06) == "+0.0 " +string.format("%-+6.1f", 1e-07) == "+0.0 " +string.format("%-+6.1f", 123.456) == "+123.5" +string.format("%-+6.1f", 1234560000) == "+1234560000.0" +string.format("%-+6.1f", 1.23456e-05) == "+0.0 " +string.format("%-+6.1f", 123.456789123) == "+123.5" +string.format("%-+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%-+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%-+6.6f", nan) == "+nan " +string.format("%-+6.6f", inf) == "+inf " +string.format("%-+6.6f", -inf) == "-inf " +string.format("%-+20f", 0) == "+0.000000 " +string.format("%-+20f", 1) == "+1.000000 " +string.format("%-+20f", -1) == "-1.000000 " +string.format("%-+20f", 2) == "+2.000000 " +string.format("%-+20f", -2) == "-2.000000 " +string.format("%-+20f", 3) == "+3.000000 " +string.format("%-+20f", -3) == "-3.000000 " +string.format("%-+20f", nan) == "+nan " +string.format("%-+20f", inf) == "+inf " +string.format("%-+20f", -inf) == "-inf " +string.format("%-+20f", 100) == "+100.000000 " +string.format("%-+20f", 10000) == "+10000.000000 " +string.format("%-+20f", 100000) == "+100000.000000 " +string.format("%-+20f", 1000000) == "+1000000.000000 " +string.format("%-+20f", 10000000) == "+10000000.000000 " +string.format("%-+20f", 0.01) == "+0.010000 " +string.format("%-+20f", 0.0001) == "+0.000100 " +string.format("%-+20f", 1e-05) == "+0.000010 " +string.format("%-+20f", 1e-06) == "+0.000001 " +string.format("%-+20f", 1e-07) == "+0.000000 " +string.format("%-+20f", 123.456) == "+123.456000 " +string.format("%-+20f", 1234560000) == "+1234560000.000000 " +string.format("%-+20f", 1.23456e-05) == "+0.000012 " +string.format("%-+20f", 123.456789123) == "+123.456789 " +string.format("%-+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%-+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%-+20.0f", 0) == "+0 " +string.format("%-+20.0f", 1) == "+1 " +string.format("%-+20.0f", -1) == "-1 " +string.format("%-+20.0f", 2) == "+2 " +string.format("%-+20.0f", -2) == "-2 " +string.format("%-+20.0f", 3) == "+3 " +string.format("%-+20.0f", -3) == "-3 " +string.format("%-+20.0f", nan) == "+nan " +string.format("%-+20.0f", inf) == "+inf " +string.format("%-+20.0f", -inf) == "-inf " +string.format("%-+20.0f", 100) == "+100 " +string.format("%-+20.0f", 10000) == "+10000 " +string.format("%-+20.0f", 100000) == "+100000 " +string.format("%-+20.0f", 1000000) == "+1000000 " +string.format("%-+20.0f", 10000000) == "+10000000 " +string.format("%-+20.0f", 0.01) == "+0 " +string.format("%-+20.0f", 0.0001) == "+0 " +string.format("%-+20.0f", 1e-05) == "+0 " +string.format("%-+20.0f", 1e-06) == "+0 " +string.format("%-+20.0f", 1e-07) == "+0 " +string.format("%-+20.0f", 123.456) == "+123 " +string.format("%-+20.0f", 1234560000) == "+1234560000 " +string.format("%-+20.0f", 1.23456e-05) == "+0 " +string.format("%-+20.0f", 123.456789123) == "+123 " +string.format("%-+20.0f", 1234567891.23) == "+1234567891 " +string.format("%-+20.0f", 1.23456789123e-05) == "+0 " +string.format("%-+20.1f", 0) == "+0.0 " +string.format("%-+20.1f", 1) == "+1.0 " +string.format("%-+20.1f", -1) == "-1.0 " +string.format("%-+20.1f", 2) == "+2.0 " +string.format("%-+20.1f", -2) == "-2.0 " +string.format("%-+20.1f", 3) == "+3.0 " +string.format("%-+20.1f", -3) == "-3.0 " +string.format("%-+20.1f", nan) == "+nan " +string.format("%-+20.1f", inf) == "+inf " +string.format("%-+20.1f", -inf) == "-inf " +string.format("%-+20.1f", 100) == "+100.0 " +string.format("%-+20.1f", 10000) == "+10000.0 " +string.format("%-+20.1f", 100000) == "+100000.0 " +string.format("%-+20.1f", 1000000) == "+1000000.0 " +string.format("%-+20.1f", 10000000) == "+10000000.0 " +string.format("%-+20.1f", 0.01) == "+0.0 " +string.format("%-+20.1f", 0.0001) == "+0.0 " +string.format("%-+20.1f", 1e-05) == "+0.0 " +string.format("%-+20.1f", 1e-06) == "+0.0 " +string.format("%-+20.1f", 1e-07) == "+0.0 " +string.format("%-+20.1f", 123.456) == "+123.5 " +string.format("%-+20.1f", 1234560000) == "+1234560000.0 " +string.format("%-+20.1f", 1.23456e-05) == "+0.0 " +string.format("%-+20.1f", 123.456789123) == "+123.5 " +string.format("%-+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%-+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%-+20.6f", 0) == "+0.000000 " +string.format("%-+20.6f", 1) == "+1.000000 " +string.format("%-+20.6f", -1) == "-1.000000 " +string.format("%-+20.6f", 2) == "+2.000000 " +string.format("%-+20.6f", -2) == "-2.000000 " +string.format("%-+20.6f", 3) == "+3.000000 " +string.format("%-+20.6f", -3) == "-3.000000 " +string.format("%-+20.6f", nan) == "+nan " +string.format("%-+20.6f", inf) == "+inf " +string.format("%-+20.6f", -inf) == "-inf " +string.format("%-+20.6f", 100) == "+100.000000 " +string.format("%-+20.6f", 10000) == "+10000.000000 " +string.format("%-+20.6f", 100000) == "+100000.000000 " +string.format("%-+20.6f", 1000000) == "+1000000.000000 " +string.format("%-+20.6f", 10000000) == "+10000000.000000 " +string.format("%-+20.6f", 0.01) == "+0.010000 " +string.format("%-+20.6f", 0.0001) == "+0.000100 " +string.format("%-+20.6f", 1e-05) == "+0.000010 " +string.format("%-+20.6f", 1e-06) == "+0.000001 " +string.format("%-+20.6f", 1e-07) == "+0.000000 " +string.format("%-+20.6f", 123.456) == "+123.456000 " +string.format("%-+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%-+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%-+20.6f", 123.456789123) == "+123.456789 " +string.format("%-+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%-+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("% f", 0) == " 0.000000" +string.format("% f", 1) == " 1.000000" +string.format("% f", -1) == "-1.000000" +string.format("% f", 2) == " 2.000000" +string.format("% f", -2) == "-2.000000" +string.format("% f", 3) == " 3.000000" +string.format("% f", -3) == "-3.000000" +string.format("% f", nan) == " nan" +string.format("% f", inf) == " inf" +string.format("% f", -inf) == "-inf" +string.format("% f", 100) == " 100.000000" +string.format("% f", 10000) == " 10000.000000" +string.format("% f", 100000) == " 100000.000000" +string.format("% f", 1000000) == " 1000000.000000" +string.format("% f", 10000000) == " 10000000.000000" +string.format("% f", 0.01) == " 0.010000" +string.format("% f", 0.0001) == " 0.000100" +string.format("% f", 1e-05) == " 0.000010" +string.format("% f", 1e-06) == " 0.000001" +string.format("% f", 1e-07) == " 0.000000" +string.format("% f", 123.456) == " 123.456000" +string.format("% f", 1234560000) == " 1234560000.000000" +string.format("% f", 1.23456e-05) == " 0.000012" +string.format("% f", 123.456789123) == " 123.456789" +string.format("% f", 1234567891.23) == " 1234567891.230000" +string.format("% f", 1.23456789123e-05) == " 0.000012" +string.format("% .0f", 0) == " 0" +string.format("% .0f", 1) == " 1" +string.format("% .0f", -1) == "-1" +string.format("% .0f", 2) == " 2" +string.format("% .0f", -2) == "-2" +string.format("% .0f", 3) == " 3" +string.format("% .0f", -3) == "-3" +string.format("% .0f", 100) == " 100" +string.format("% .0f", 10000) == " 10000" +string.format("% .0f", 100000) == " 100000" +string.format("% .0f", 1000000) == " 1000000" +string.format("% .0f", 10000000) == " 10000000" +string.format("% .0f", 0.01) == " 0" +string.format("% .0f", 0.0001) == " 0" +string.format("% .0f", 1e-05) == " 0" +string.format("% .0f", 1e-06) == " 0" +string.format("% .0f", 1e-07) == " 0" +string.format("% .0f", 123.456) == " 123" +string.format("% .0f", 1234560000) == " 1234560000" +string.format("% .0f", 1.23456e-05) == " 0" +string.format("% .0f", 123.456789123) == " 123" +string.format("% .0f", 1234567891.23) == " 1234567891" +string.format("% .0f", 1.23456789123e-05) == " 0" +string.format("% .1f", 0) == " 0.0" +string.format("% .1f", 1) == " 1.0" +string.format("% .1f", -1) == "-1.0" +string.format("% .1f", 2) == " 2.0" +string.format("% .1f", -2) == "-2.0" +string.format("% .1f", 3) == " 3.0" +string.format("% .1f", -3) == "-3.0" +string.format("% .1f", 100) == " 100.0" +string.format("% .1f", 10000) == " 10000.0" +string.format("% .1f", 100000) == " 100000.0" +string.format("% .1f", 1000000) == " 1000000.0" +string.format("% .1f", 10000000) == " 10000000.0" +string.format("% .1f", 0.01) == " 0.0" +string.format("% .1f", 0.0001) == " 0.0" +string.format("% .1f", 1e-05) == " 0.0" +string.format("% .1f", 1e-06) == " 0.0" +string.format("% .1f", 1e-07) == " 0.0" +string.format("% .1f", 123.456) == " 123.5" +string.format("% .1f", 1234560000) == " 1234560000.0" +string.format("% .1f", 1.23456e-05) == " 0.0" +string.format("% .1f", 123.456789123) == " 123.5" +string.format("% .1f", 1234567891.23) == " 1234567891.2" +string.format("% .1f", 1.23456789123e-05) == " 0.0" +string.format("% 1.0f", 0) == " 0" +string.format("% 1.0f", 1) == " 1" +string.format("% 1.0f", -1) == "-1" +string.format("% 1.0f", 2) == " 2" +string.format("% 1.0f", -2) == "-2" +string.format("% 1.0f", 3) == " 3" +string.format("% 1.0f", -3) == "-3" +string.format("% 1.0f", 100) == " 100" +string.format("% 1.0f", 10000) == " 10000" +string.format("% 1.0f", 100000) == " 100000" +string.format("% 1.0f", 1000000) == " 1000000" +string.format("% 1.0f", 10000000) == " 10000000" +string.format("% 1.0f", 0.01) == " 0" +string.format("% 1.0f", 0.0001) == " 0" +string.format("% 1.0f", 1e-05) == " 0" +string.format("% 1.0f", 1e-06) == " 0" +string.format("% 1.0f", 1e-07) == " 0" +string.format("% 1.0f", 123.456) == " 123" +string.format("% 1.0f", 1234560000) == " 1234560000" +string.format("% 1.0f", 1.23456e-05) == " 0" +string.format("% 1.0f", 123.456789123) == " 123" +string.format("% 1.0f", 1234567891.23) == " 1234567891" +string.format("% 1.0f", 1.23456789123e-05) == " 0" +string.format("% 1.1f", 0) == " 0.0" +string.format("% 1.1f", 1) == " 1.0" +string.format("% 1.1f", -1) == "-1.0" +string.format("% 1.1f", 2) == " 2.0" +string.format("% 1.1f", -2) == "-2.0" +string.format("% 1.1f", 3) == " 3.0" +string.format("% 1.1f", -3) == "-3.0" +string.format("% 1.1f", 100) == " 100.0" +string.format("% 1.1f", 10000) == " 10000.0" +string.format("% 1.1f", 100000) == " 100000.0" +string.format("% 1.1f", 1000000) == " 1000000.0" +string.format("% 1.1f", 10000000) == " 10000000.0" +string.format("% 1.1f", 0.01) == " 0.0" +string.format("% 1.1f", 0.0001) == " 0.0" +string.format("% 1.1f", 1e-05) == " 0.0" +string.format("% 1.1f", 1e-06) == " 0.0" +string.format("% 1.1f", 1e-07) == " 0.0" +string.format("% 1.1f", 123.456) == " 123.5" +string.format("% 1.1f", 1234560000) == " 1234560000.0" +string.format("% 1.1f", 1.23456e-05) == " 0.0" +string.format("% 1.1f", 123.456789123) == " 123.5" +string.format("% 1.1f", 1234567891.23) == " 1234567891.2" +string.format("% 1.1f", 1.23456789123e-05) == " 0.0" +string.format("% 2.0f", 0) == " 0" +string.format("% 2.0f", 1) == " 1" +string.format("% 2.0f", -1) == "-1" +string.format("% 2.0f", 2) == " 2" +string.format("% 2.0f", -2) == "-2" +string.format("% 2.0f", 3) == " 3" +string.format("% 2.0f", -3) == "-3" +string.format("% 2.0f", 100) == " 100" +string.format("% 2.0f", 10000) == " 10000" +string.format("% 2.0f", 100000) == " 100000" +string.format("% 2.0f", 1000000) == " 1000000" +string.format("% 2.0f", 10000000) == " 10000000" +string.format("% 2.0f", 0.01) == " 0" +string.format("% 2.0f", 0.0001) == " 0" +string.format("% 2.0f", 1e-05) == " 0" +string.format("% 2.0f", 1e-06) == " 0" +string.format("% 2.0f", 1e-07) == " 0" +string.format("% 2.0f", 123.456) == " 123" +string.format("% 2.0f", 1234560000) == " 1234560000" +string.format("% 2.0f", 1.23456e-05) == " 0" +string.format("% 2.0f", 123.456789123) == " 123" +string.format("% 2.0f", 1234567891.23) == " 1234567891" +string.format("% 2.0f", 1.23456789123e-05) == " 0" +string.format("% 2.1f", 0) == " 0.0" +string.format("% 2.1f", 1) == " 1.0" +string.format("% 2.1f", -1) == "-1.0" +string.format("% 2.1f", 2) == " 2.0" +string.format("% 2.1f", -2) == "-2.0" +string.format("% 2.1f", 3) == " 3.0" +string.format("% 2.1f", -3) == "-3.0" +string.format("% 2.1f", 100) == " 100.0" +string.format("% 2.1f", 10000) == " 10000.0" +string.format("% 2.1f", 100000) == " 100000.0" +string.format("% 2.1f", 1000000) == " 1000000.0" +string.format("% 2.1f", 10000000) == " 10000000.0" +string.format("% 2.1f", 0.01) == " 0.0" +string.format("% 2.1f", 0.0001) == " 0.0" +string.format("% 2.1f", 1e-05) == " 0.0" +string.format("% 2.1f", 1e-06) == " 0.0" +string.format("% 2.1f", 1e-07) == " 0.0" +string.format("% 2.1f", 123.456) == " 123.5" +string.format("% 2.1f", 1234560000) == " 1234560000.0" +string.format("% 2.1f", 1.23456e-05) == " 0.0" +string.format("% 2.1f", 123.456789123) == " 123.5" +string.format("% 2.1f", 1234567891.23) == " 1234567891.2" +string.format("% 2.1f", 1.23456789123e-05) == " 0.0" +string.format("% 6f", nan) == " nan" +string.format("% 6f", inf) == " inf" +string.format("% 6f", -inf) == " -inf" +string.format("% 6.0f", 0) == " 0" +string.format("% 6.0f", 1) == " 1" +string.format("% 6.0f", -1) == " -1" +string.format("% 6.0f", 2) == " 2" +string.format("% 6.0f", -2) == " -2" +string.format("% 6.0f", 3) == " 3" +string.format("% 6.0f", -3) == " -3" +string.format("% 6.0f", nan) == " nan" +string.format("% 6.0f", inf) == " inf" +string.format("% 6.0f", -inf) == " -inf" +string.format("% 6.0f", 100) == " 100" +string.format("% 6.0f", 10000) == " 10000" +string.format("% 6.0f", 100000) == " 100000" +string.format("% 6.0f", 1000000) == " 1000000" +string.format("% 6.0f", 10000000) == " 10000000" +string.format("% 6.0f", 0.01) == " 0" +string.format("% 6.0f", 0.0001) == " 0" +string.format("% 6.0f", 1e-05) == " 0" +string.format("% 6.0f", 1e-06) == " 0" +string.format("% 6.0f", 1e-07) == " 0" +string.format("% 6.0f", 123.456) == " 123" +string.format("% 6.0f", 1234560000) == " 1234560000" +string.format("% 6.0f", 1.23456e-05) == " 0" +string.format("% 6.0f", 123.456789123) == " 123" +string.format("% 6.0f", 1234567891.23) == " 1234567891" +string.format("% 6.0f", 1.23456789123e-05) == " 0" +string.format("% 6.1f", 0) == " 0.0" +string.format("% 6.1f", 1) == " 1.0" +string.format("% 6.1f", -1) == " -1.0" +string.format("% 6.1f", 2) == " 2.0" +string.format("% 6.1f", -2) == " -2.0" +string.format("% 6.1f", 3) == " 3.0" +string.format("% 6.1f", -3) == " -3.0" +string.format("% 6.1f", nan) == " nan" +string.format("% 6.1f", inf) == " inf" +string.format("% 6.1f", -inf) == " -inf" +string.format("% 6.1f", 100) == " 100.0" +string.format("% 6.1f", 10000) == " 10000.0" +string.format("% 6.1f", 100000) == " 100000.0" +string.format("% 6.1f", 1000000) == " 1000000.0" +string.format("% 6.1f", 10000000) == " 10000000.0" +string.format("% 6.1f", 0.01) == " 0.0" +string.format("% 6.1f", 0.0001) == " 0.0" +string.format("% 6.1f", 1e-05) == " 0.0" +string.format("% 6.1f", 1e-06) == " 0.0" +string.format("% 6.1f", 1e-07) == " 0.0" +string.format("% 6.1f", 123.456) == " 123.5" +string.format("% 6.1f", 1234560000) == " 1234560000.0" +string.format("% 6.1f", 1.23456e-05) == " 0.0" +string.format("% 6.1f", 123.456789123) == " 123.5" +string.format("% 6.1f", 1234567891.23) == " 1234567891.2" +string.format("% 6.1f", 1.23456789123e-05) == " 0.0" +string.format("% 6.6f", nan) == " nan" +string.format("% 6.6f", inf) == " inf" +string.format("% 6.6f", -inf) == " -inf" +string.format("% 20f", 0) == " 0.000000" +string.format("% 20f", 1) == " 1.000000" +string.format("% 20f", -1) == " -1.000000" +string.format("% 20f", 2) == " 2.000000" +string.format("% 20f", -2) == " -2.000000" +string.format("% 20f", 3) == " 3.000000" +string.format("% 20f", -3) == " -3.000000" +string.format("% 20f", nan) == " nan" +string.format("% 20f", inf) == " inf" +string.format("% 20f", -inf) == " -inf" +string.format("% 20f", 100) == " 100.000000" +string.format("% 20f", 10000) == " 10000.000000" +string.format("% 20f", 100000) == " 100000.000000" +string.format("% 20f", 1000000) == " 1000000.000000" +string.format("% 20f", 10000000) == " 10000000.000000" +string.format("% 20f", 0.01) == " 0.010000" +string.format("% 20f", 0.0001) == " 0.000100" +string.format("% 20f", 1e-05) == " 0.000010" +string.format("% 20f", 1e-06) == " 0.000001" +string.format("% 20f", 1e-07) == " 0.000000" +string.format("% 20f", 123.456) == " 123.456000" +string.format("% 20f", 1234560000) == " 1234560000.000000" +string.format("% 20f", 1.23456e-05) == " 0.000012" +string.format("% 20f", 123.456789123) == " 123.456789" +string.format("% 20f", 1234567891.23) == " 1234567891.230000" +string.format("% 20f", 1.23456789123e-05) == " 0.000012" +string.format("% 20.0f", 0) == " 0" +string.format("% 20.0f", 1) == " 1" +string.format("% 20.0f", -1) == " -1" +string.format("% 20.0f", 2) == " 2" +string.format("% 20.0f", -2) == " -2" +string.format("% 20.0f", 3) == " 3" +string.format("% 20.0f", -3) == " -3" +string.format("% 20.0f", nan) == " nan" +string.format("% 20.0f", inf) == " inf" +string.format("% 20.0f", -inf) == " -inf" +string.format("% 20.0f", 100) == " 100" +string.format("% 20.0f", 10000) == " 10000" +string.format("% 20.0f", 100000) == " 100000" +string.format("% 20.0f", 1000000) == " 1000000" +string.format("% 20.0f", 10000000) == " 10000000" +string.format("% 20.0f", 0.01) == " 0" +string.format("% 20.0f", 0.0001) == " 0" +string.format("% 20.0f", 1e-05) == " 0" +string.format("% 20.0f", 1e-06) == " 0" +string.format("% 20.0f", 1e-07) == " 0" +string.format("% 20.0f", 123.456) == " 123" +string.format("% 20.0f", 1234560000) == " 1234560000" +string.format("% 20.0f", 1.23456e-05) == " 0" +string.format("% 20.0f", 123.456789123) == " 123" +string.format("% 20.0f", 1234567891.23) == " 1234567891" +string.format("% 20.0f", 1.23456789123e-05) == " 0" +string.format("% 20.1f", 0) == " 0.0" +string.format("% 20.1f", 1) == " 1.0" +string.format("% 20.1f", -1) == " -1.0" +string.format("% 20.1f", 2) == " 2.0" +string.format("% 20.1f", -2) == " -2.0" +string.format("% 20.1f", 3) == " 3.0" +string.format("% 20.1f", -3) == " -3.0" +string.format("% 20.1f", nan) == " nan" +string.format("% 20.1f", inf) == " inf" +string.format("% 20.1f", -inf) == " -inf" +string.format("% 20.1f", 100) == " 100.0" +string.format("% 20.1f", 10000) == " 10000.0" +string.format("% 20.1f", 100000) == " 100000.0" +string.format("% 20.1f", 1000000) == " 1000000.0" +string.format("% 20.1f", 10000000) == " 10000000.0" +string.format("% 20.1f", 0.01) == " 0.0" +string.format("% 20.1f", 0.0001) == " 0.0" +string.format("% 20.1f", 1e-05) == " 0.0" +string.format("% 20.1f", 1e-06) == " 0.0" +string.format("% 20.1f", 1e-07) == " 0.0" +string.format("% 20.1f", 123.456) == " 123.5" +string.format("% 20.1f", 1234560000) == " 1234560000.0" +string.format("% 20.1f", 1.23456e-05) == " 0.0" +string.format("% 20.1f", 123.456789123) == " 123.5" +string.format("% 20.1f", 1234567891.23) == " 1234567891.2" +string.format("% 20.1f", 1.23456789123e-05) == " 0.0" +string.format("% 20.6f", 0) == " 0.000000" +string.format("% 20.6f", 1) == " 1.000000" +string.format("% 20.6f", -1) == " -1.000000" +string.format("% 20.6f", 2) == " 2.000000" +string.format("% 20.6f", -2) == " -2.000000" +string.format("% 20.6f", 3) == " 3.000000" +string.format("% 20.6f", -3) == " -3.000000" +string.format("% 20.6f", nan) == " nan" +string.format("% 20.6f", inf) == " inf" +string.format("% 20.6f", -inf) == " -inf" +string.format("% 20.6f", 100) == " 100.000000" +string.format("% 20.6f", 10000) == " 10000.000000" +string.format("% 20.6f", 100000) == " 100000.000000" +string.format("% 20.6f", 1000000) == " 1000000.000000" +string.format("% 20.6f", 10000000) == " 10000000.000000" +string.format("% 20.6f", 0.01) == " 0.010000" +string.format("% 20.6f", 0.0001) == " 0.000100" +string.format("% 20.6f", 1e-05) == " 0.000010" +string.format("% 20.6f", 1e-06) == " 0.000001" +string.format("% 20.6f", 1e-07) == " 0.000000" +string.format("% 20.6f", 123.456) == " 123.456000" +string.format("% 20.6f", 1234560000) == " 1234560000.000000" +string.format("% 20.6f", 1.23456e-05) == " 0.000012" +string.format("% 20.6f", 123.456789123) == " 123.456789" +string.format("% 20.6f", 1234567891.23) == " 1234567891.230000" +string.format("% 20.6f", 1.23456789123e-05) == " 0.000012" +string.format("% +f", 0) == "+0.000000" +string.format("% +f", 1) == "+1.000000" +string.format("% +f", -1) == "-1.000000" +string.format("% +f", 2) == "+2.000000" +string.format("% +f", -2) == "-2.000000" +string.format("% +f", 3) == "+3.000000" +string.format("% +f", -3) == "-3.000000" +string.format("% +f", nan) == "+nan" +string.format("% +f", inf) == "+inf" +string.format("% +f", -inf) == "-inf" +string.format("% +f", 100) == "+100.000000" +string.format("% +f", 10000) == "+10000.000000" +string.format("% +f", 100000) == "+100000.000000" +string.format("% +f", 1000000) == "+1000000.000000" +string.format("% +f", 10000000) == "+10000000.000000" +string.format("% +f", 0.01) == "+0.010000" +string.format("% +f", 0.0001) == "+0.000100" +string.format("% +f", 1e-05) == "+0.000010" +string.format("% +f", 1e-06) == "+0.000001" +string.format("% +f", 1e-07) == "+0.000000" +string.format("% +f", 123.456) == "+123.456000" +string.format("% +f", 1234560000) == "+1234560000.000000" +string.format("% +f", 1.23456e-05) == "+0.000012" +string.format("% +f", 123.456789123) == "+123.456789" +string.format("% +f", 1234567891.23) == "+1234567891.230000" +string.format("% +f", 1.23456789123e-05) == "+0.000012" +string.format("% +.0f", 0) == "+0" +string.format("% +.0f", 1) == "+1" +string.format("% +.0f", -1) == "-1" +string.format("% +.0f", 2) == "+2" +string.format("% +.0f", -2) == "-2" +string.format("% +.0f", 3) == "+3" +string.format("% +.0f", -3) == "-3" +string.format("% +.0f", 100) == "+100" +string.format("% +.0f", 10000) == "+10000" +string.format("% +.0f", 100000) == "+100000" +string.format("% +.0f", 1000000) == "+1000000" +string.format("% +.0f", 10000000) == "+10000000" +string.format("% +.0f", 0.01) == "+0" +string.format("% +.0f", 0.0001) == "+0" +string.format("% +.0f", 1e-05) == "+0" +string.format("% +.0f", 1e-06) == "+0" +string.format("% +.0f", 1e-07) == "+0" +string.format("% +.0f", 123.456) == "+123" +string.format("% +.0f", 1234560000) == "+1234560000" +string.format("% +.0f", 1.23456e-05) == "+0" +string.format("% +.0f", 123.456789123) == "+123" +string.format("% +.0f", 1234567891.23) == "+1234567891" +string.format("% +.0f", 1.23456789123e-05) == "+0" +string.format("% +.1f", 0) == "+0.0" +string.format("% +.1f", 1) == "+1.0" +string.format("% +.1f", -1) == "-1.0" +string.format("% +.1f", 2) == "+2.0" +string.format("% +.1f", -2) == "-2.0" +string.format("% +.1f", 3) == "+3.0" +string.format("% +.1f", -3) == "-3.0" +string.format("% +.1f", 100) == "+100.0" +string.format("% +.1f", 10000) == "+10000.0" +string.format("% +.1f", 100000) == "+100000.0" +string.format("% +.1f", 1000000) == "+1000000.0" +string.format("% +.1f", 10000000) == "+10000000.0" +string.format("% +.1f", 0.01) == "+0.0" +string.format("% +.1f", 0.0001) == "+0.0" +string.format("% +.1f", 1e-05) == "+0.0" +string.format("% +.1f", 1e-06) == "+0.0" +string.format("% +.1f", 1e-07) == "+0.0" +string.format("% +.1f", 123.456) == "+123.5" +string.format("% +.1f", 1234560000) == "+1234560000.0" +string.format("% +.1f", 1.23456e-05) == "+0.0" +string.format("% +.1f", 123.456789123) == "+123.5" +string.format("% +.1f", 1234567891.23) == "+1234567891.2" +string.format("% +.1f", 1.23456789123e-05) == "+0.0" +string.format("% +1.0f", 0) == "+0" +string.format("% +1.0f", 1) == "+1" +string.format("% +1.0f", -1) == "-1" +string.format("% +1.0f", 2) == "+2" +string.format("% +1.0f", -2) == "-2" +string.format("% +1.0f", 3) == "+3" +string.format("% +1.0f", -3) == "-3" +string.format("% +1.0f", 100) == "+100" +string.format("% +1.0f", 10000) == "+10000" +string.format("% +1.0f", 100000) == "+100000" +string.format("% +1.0f", 1000000) == "+1000000" +string.format("% +1.0f", 10000000) == "+10000000" +string.format("% +1.0f", 0.01) == "+0" +string.format("% +1.0f", 0.0001) == "+0" +string.format("% +1.0f", 1e-05) == "+0" +string.format("% +1.0f", 1e-06) == "+0" +string.format("% +1.0f", 1e-07) == "+0" +string.format("% +1.0f", 123.456) == "+123" +string.format("% +1.0f", 1234560000) == "+1234560000" +string.format("% +1.0f", 1.23456e-05) == "+0" +string.format("% +1.0f", 123.456789123) == "+123" +string.format("% +1.0f", 1234567891.23) == "+1234567891" +string.format("% +1.0f", 1.23456789123e-05) == "+0" +string.format("% +1.1f", 0) == "+0.0" +string.format("% +1.1f", 1) == "+1.0" +string.format("% +1.1f", -1) == "-1.0" +string.format("% +1.1f", 2) == "+2.0" +string.format("% +1.1f", -2) == "-2.0" +string.format("% +1.1f", 3) == "+3.0" +string.format("% +1.1f", -3) == "-3.0" +string.format("% +1.1f", 100) == "+100.0" +string.format("% +1.1f", 10000) == "+10000.0" +string.format("% +1.1f", 100000) == "+100000.0" +string.format("% +1.1f", 1000000) == "+1000000.0" +string.format("% +1.1f", 10000000) == "+10000000.0" +string.format("% +1.1f", 0.01) == "+0.0" +string.format("% +1.1f", 0.0001) == "+0.0" +string.format("% +1.1f", 1e-05) == "+0.0" +string.format("% +1.1f", 1e-06) == "+0.0" +string.format("% +1.1f", 1e-07) == "+0.0" +string.format("% +1.1f", 123.456) == "+123.5" +string.format("% +1.1f", 1234560000) == "+1234560000.0" +string.format("% +1.1f", 1.23456e-05) == "+0.0" +string.format("% +1.1f", 123.456789123) == "+123.5" +string.format("% +1.1f", 1234567891.23) == "+1234567891.2" +string.format("% +1.1f", 1.23456789123e-05) == "+0.0" +string.format("% +2.0f", 0) == "+0" +string.format("% +2.0f", 1) == "+1" +string.format("% +2.0f", -1) == "-1" +string.format("% +2.0f", 2) == "+2" +string.format("% +2.0f", -2) == "-2" +string.format("% +2.0f", 3) == "+3" +string.format("% +2.0f", -3) == "-3" +string.format("% +2.0f", 100) == "+100" +string.format("% +2.0f", 10000) == "+10000" +string.format("% +2.0f", 100000) == "+100000" +string.format("% +2.0f", 1000000) == "+1000000" +string.format("% +2.0f", 10000000) == "+10000000" +string.format("% +2.0f", 0.01) == "+0" +string.format("% +2.0f", 0.0001) == "+0" +string.format("% +2.0f", 1e-05) == "+0" +string.format("% +2.0f", 1e-06) == "+0" +string.format("% +2.0f", 1e-07) == "+0" +string.format("% +2.0f", 123.456) == "+123" +string.format("% +2.0f", 1234560000) == "+1234560000" +string.format("% +2.0f", 1.23456e-05) == "+0" +string.format("% +2.0f", 123.456789123) == "+123" +string.format("% +2.0f", 1234567891.23) == "+1234567891" +string.format("% +2.0f", 1.23456789123e-05) == "+0" +string.format("% +2.1f", 0) == "+0.0" +string.format("% +2.1f", 1) == "+1.0" +string.format("% +2.1f", -1) == "-1.0" +string.format("% +2.1f", 2) == "+2.0" +string.format("% +2.1f", -2) == "-2.0" +string.format("% +2.1f", 3) == "+3.0" +string.format("% +2.1f", -3) == "-3.0" +string.format("% +2.1f", 100) == "+100.0" +string.format("% +2.1f", 10000) == "+10000.0" +string.format("% +2.1f", 100000) == "+100000.0" +string.format("% +2.1f", 1000000) == "+1000000.0" +string.format("% +2.1f", 10000000) == "+10000000.0" +string.format("% +2.1f", 0.01) == "+0.0" +string.format("% +2.1f", 0.0001) == "+0.0" +string.format("% +2.1f", 1e-05) == "+0.0" +string.format("% +2.1f", 1e-06) == "+0.0" +string.format("% +2.1f", 1e-07) == "+0.0" +string.format("% +2.1f", 123.456) == "+123.5" +string.format("% +2.1f", 1234560000) == "+1234560000.0" +string.format("% +2.1f", 1.23456e-05) == "+0.0" +string.format("% +2.1f", 123.456789123) == "+123.5" +string.format("% +2.1f", 1234567891.23) == "+1234567891.2" +string.format("% +2.1f", 1.23456789123e-05) == "+0.0" +string.format("% +6f", nan) == " +nan" +string.format("% +6f", inf) == " +inf" +string.format("% +6f", -inf) == " -inf" +string.format("% +6.0f", 0) == " +0" +string.format("% +6.0f", 1) == " +1" +string.format("% +6.0f", -1) == " -1" +string.format("% +6.0f", 2) == " +2" +string.format("% +6.0f", -2) == " -2" +string.format("% +6.0f", 3) == " +3" +string.format("% +6.0f", -3) == " -3" +string.format("% +6.0f", nan) == " +nan" +string.format("% +6.0f", inf) == " +inf" +string.format("% +6.0f", -inf) == " -inf" +string.format("% +6.0f", 100) == " +100" +string.format("% +6.0f", 10000) == "+10000" +string.format("% +6.0f", 100000) == "+100000" +string.format("% +6.0f", 1000000) == "+1000000" +string.format("% +6.0f", 10000000) == "+10000000" +string.format("% +6.0f", 0.01) == " +0" +string.format("% +6.0f", 0.0001) == " +0" +string.format("% +6.0f", 1e-05) == " +0" +string.format("% +6.0f", 1e-06) == " +0" +string.format("% +6.0f", 1e-07) == " +0" +string.format("% +6.0f", 123.456) == " +123" +string.format("% +6.0f", 1234560000) == "+1234560000" +string.format("% +6.0f", 1.23456e-05) == " +0" +string.format("% +6.0f", 123.456789123) == " +123" +string.format("% +6.0f", 1234567891.23) == "+1234567891" +string.format("% +6.0f", 1.23456789123e-05) == " +0" +string.format("% +6.1f", 0) == " +0.0" +string.format("% +6.1f", 1) == " +1.0" +string.format("% +6.1f", -1) == " -1.0" +string.format("% +6.1f", 2) == " +2.0" +string.format("% +6.1f", -2) == " -2.0" +string.format("% +6.1f", 3) == " +3.0" +string.format("% +6.1f", -3) == " -3.0" +string.format("% +6.1f", nan) == " +nan" +string.format("% +6.1f", inf) == " +inf" +string.format("% +6.1f", -inf) == " -inf" +string.format("% +6.1f", 100) == "+100.0" +string.format("% +6.1f", 10000) == "+10000.0" +string.format("% +6.1f", 100000) == "+100000.0" +string.format("% +6.1f", 1000000) == "+1000000.0" +string.format("% +6.1f", 10000000) == "+10000000.0" +string.format("% +6.1f", 0.01) == " +0.0" +string.format("% +6.1f", 0.0001) == " +0.0" +string.format("% +6.1f", 1e-05) == " +0.0" +string.format("% +6.1f", 1e-06) == " +0.0" +string.format("% +6.1f", 1e-07) == " +0.0" +string.format("% +6.1f", 123.456) == "+123.5" +string.format("% +6.1f", 1234560000) == "+1234560000.0" +string.format("% +6.1f", 1.23456e-05) == " +0.0" +string.format("% +6.1f", 123.456789123) == "+123.5" +string.format("% +6.1f", 1234567891.23) == "+1234567891.2" +string.format("% +6.1f", 1.23456789123e-05) == " +0.0" +string.format("% +6.6f", nan) == " +nan" +string.format("% +6.6f", inf) == " +inf" +string.format("% +6.6f", -inf) == " -inf" +string.format("% +20f", 0) == " +0.000000" +string.format("% +20f", 1) == " +1.000000" +string.format("% +20f", -1) == " -1.000000" +string.format("% +20f", 2) == " +2.000000" +string.format("% +20f", -2) == " -2.000000" +string.format("% +20f", 3) == " +3.000000" +string.format("% +20f", -3) == " -3.000000" +string.format("% +20f", nan) == " +nan" +string.format("% +20f", inf) == " +inf" +string.format("% +20f", -inf) == " -inf" +string.format("% +20f", 100) == " +100.000000" +string.format("% +20f", 10000) == " +10000.000000" +string.format("% +20f", 100000) == " +100000.000000" +string.format("% +20f", 1000000) == " +1000000.000000" +string.format("% +20f", 10000000) == " +10000000.000000" +string.format("% +20f", 0.01) == " +0.010000" +string.format("% +20f", 0.0001) == " +0.000100" +string.format("% +20f", 1e-05) == " +0.000010" +string.format("% +20f", 1e-06) == " +0.000001" +string.format("% +20f", 1e-07) == " +0.000000" +string.format("% +20f", 123.456) == " +123.456000" +string.format("% +20f", 1234560000) == " +1234560000.000000" +string.format("% +20f", 1.23456e-05) == " +0.000012" +string.format("% +20f", 123.456789123) == " +123.456789" +string.format("% +20f", 1234567891.23) == " +1234567891.230000" +string.format("% +20f", 1.23456789123e-05) == " +0.000012" +string.format("% +20.0f", 0) == " +0" +string.format("% +20.0f", 1) == " +1" +string.format("% +20.0f", -1) == " -1" +string.format("% +20.0f", 2) == " +2" +string.format("% +20.0f", -2) == " -2" +string.format("% +20.0f", 3) == " +3" +string.format("% +20.0f", -3) == " -3" +string.format("% +20.0f", nan) == " +nan" +string.format("% +20.0f", inf) == " +inf" +string.format("% +20.0f", -inf) == " -inf" +string.format("% +20.0f", 100) == " +100" +string.format("% +20.0f", 10000) == " +10000" +string.format("% +20.0f", 100000) == " +100000" +string.format("% +20.0f", 1000000) == " +1000000" +string.format("% +20.0f", 10000000) == " +10000000" +string.format("% +20.0f", 0.01) == " +0" +string.format("% +20.0f", 0.0001) == " +0" +string.format("% +20.0f", 1e-05) == " +0" +string.format("% +20.0f", 1e-06) == " +0" +string.format("% +20.0f", 1e-07) == " +0" +string.format("% +20.0f", 123.456) == " +123" +string.format("% +20.0f", 1234560000) == " +1234560000" +string.format("% +20.0f", 1.23456e-05) == " +0" +string.format("% +20.0f", 123.456789123) == " +123" +string.format("% +20.0f", 1234567891.23) == " +1234567891" +string.format("% +20.0f", 1.23456789123e-05) == " +0" +string.format("% +20.1f", 0) == " +0.0" +string.format("% +20.1f", 1) == " +1.0" +string.format("% +20.1f", -1) == " -1.0" +string.format("% +20.1f", 2) == " +2.0" +string.format("% +20.1f", -2) == " -2.0" +string.format("% +20.1f", 3) == " +3.0" +string.format("% +20.1f", -3) == " -3.0" +string.format("% +20.1f", nan) == " +nan" +string.format("% +20.1f", inf) == " +inf" +string.format("% +20.1f", -inf) == " -inf" +string.format("% +20.1f", 100) == " +100.0" +string.format("% +20.1f", 10000) == " +10000.0" +string.format("% +20.1f", 100000) == " +100000.0" +string.format("% +20.1f", 1000000) == " +1000000.0" +string.format("% +20.1f", 10000000) == " +10000000.0" +string.format("% +20.1f", 0.01) == " +0.0" +string.format("% +20.1f", 0.0001) == " +0.0" +string.format("% +20.1f", 1e-05) == " +0.0" +string.format("% +20.1f", 1e-06) == " +0.0" +string.format("% +20.1f", 1e-07) == " +0.0" +string.format("% +20.1f", 123.456) == " +123.5" +string.format("% +20.1f", 1234560000) == " +1234560000.0" +string.format("% +20.1f", 1.23456e-05) == " +0.0" +string.format("% +20.1f", 123.456789123) == " +123.5" +string.format("% +20.1f", 1234567891.23) == " +1234567891.2" +string.format("% +20.1f", 1.23456789123e-05) == " +0.0" +string.format("% +20.6f", 0) == " +0.000000" +string.format("% +20.6f", 1) == " +1.000000" +string.format("% +20.6f", -1) == " -1.000000" +string.format("% +20.6f", 2) == " +2.000000" +string.format("% +20.6f", -2) == " -2.000000" +string.format("% +20.6f", 3) == " +3.000000" +string.format("% +20.6f", -3) == " -3.000000" +string.format("% +20.6f", nan) == " +nan" +string.format("% +20.6f", inf) == " +inf" +string.format("% +20.6f", -inf) == " -inf" +string.format("% +20.6f", 100) == " +100.000000" +string.format("% +20.6f", 10000) == " +10000.000000" +string.format("% +20.6f", 100000) == " +100000.000000" +string.format("% +20.6f", 1000000) == " +1000000.000000" +string.format("% +20.6f", 10000000) == " +10000000.000000" +string.format("% +20.6f", 0.01) == " +0.010000" +string.format("% +20.6f", 0.0001) == " +0.000100" +string.format("% +20.6f", 1e-05) == " +0.000010" +string.format("% +20.6f", 1e-06) == " +0.000001" +string.format("% +20.6f", 1e-07) == " +0.000000" +string.format("% +20.6f", 123.456) == " +123.456000" +string.format("% +20.6f", 1234560000) == " +1234560000.000000" +string.format("% +20.6f", 1.23456e-05) == " +0.000012" +string.format("% +20.6f", 123.456789123) == " +123.456789" +string.format("% +20.6f", 1234567891.23) == " +1234567891.230000" +string.format("% +20.6f", 1.23456789123e-05) == " +0.000012" +string.format("% -f", 0) == " 0.000000" +string.format("% -f", 1) == " 1.000000" +string.format("% -f", -1) == "-1.000000" +string.format("% -f", 2) == " 2.000000" +string.format("% -f", -2) == "-2.000000" +string.format("% -f", 3) == " 3.000000" +string.format("% -f", -3) == "-3.000000" +string.format("% -f", nan) == " nan" +string.format("% -f", inf) == " inf" +string.format("% -f", -inf) == "-inf" +string.format("% -f", 100) == " 100.000000" +string.format("% -f", 10000) == " 10000.000000" +string.format("% -f", 100000) == " 100000.000000" +string.format("% -f", 1000000) == " 1000000.000000" +string.format("% -f", 10000000) == " 10000000.000000" +string.format("% -f", 0.01) == " 0.010000" +string.format("% -f", 0.0001) == " 0.000100" +string.format("% -f", 1e-05) == " 0.000010" +string.format("% -f", 1e-06) == " 0.000001" +string.format("% -f", 1e-07) == " 0.000000" +string.format("% -f", 123.456) == " 123.456000" +string.format("% -f", 1234560000) == " 1234560000.000000" +string.format("% -f", 1.23456e-05) == " 0.000012" +string.format("% -f", 123.456789123) == " 123.456789" +string.format("% -f", 1234567891.23) == " 1234567891.230000" +string.format("% -f", 1.23456789123e-05) == " 0.000012" +string.format("% -.0f", 0) == " 0" +string.format("% -.0f", 1) == " 1" +string.format("% -.0f", -1) == "-1" +string.format("% -.0f", 2) == " 2" +string.format("% -.0f", -2) == "-2" +string.format("% -.0f", 3) == " 3" +string.format("% -.0f", -3) == "-3" +string.format("% -.0f", 100) == " 100" +string.format("% -.0f", 10000) == " 10000" +string.format("% -.0f", 100000) == " 100000" +string.format("% -.0f", 1000000) == " 1000000" +string.format("% -.0f", 10000000) == " 10000000" +string.format("% -.0f", 0.01) == " 0" +string.format("% -.0f", 0.0001) == " 0" +string.format("% -.0f", 1e-05) == " 0" +string.format("% -.0f", 1e-06) == " 0" +string.format("% -.0f", 1e-07) == " 0" +string.format("% -.0f", 123.456) == " 123" +string.format("% -.0f", 1234560000) == " 1234560000" +string.format("% -.0f", 1.23456e-05) == " 0" +string.format("% -.0f", 123.456789123) == " 123" +string.format("% -.0f", 1234567891.23) == " 1234567891" +string.format("% -.0f", 1.23456789123e-05) == " 0" +string.format("% -.1f", 0) == " 0.0" +string.format("% -.1f", 1) == " 1.0" +string.format("% -.1f", -1) == "-1.0" +string.format("% -.1f", 2) == " 2.0" +string.format("% -.1f", -2) == "-2.0" +string.format("% -.1f", 3) == " 3.0" +string.format("% -.1f", -3) == "-3.0" +string.format("% -.1f", 100) == " 100.0" +string.format("% -.1f", 10000) == " 10000.0" +string.format("% -.1f", 100000) == " 100000.0" +string.format("% -.1f", 1000000) == " 1000000.0" +string.format("% -.1f", 10000000) == " 10000000.0" +string.format("% -.1f", 0.01) == " 0.0" +string.format("% -.1f", 0.0001) == " 0.0" +string.format("% -.1f", 1e-05) == " 0.0" +string.format("% -.1f", 1e-06) == " 0.0" +string.format("% -.1f", 1e-07) == " 0.0" +string.format("% -.1f", 123.456) == " 123.5" +string.format("% -.1f", 1234560000) == " 1234560000.0" +string.format("% -.1f", 1.23456e-05) == " 0.0" +string.format("% -.1f", 123.456789123) == " 123.5" +string.format("% -.1f", 1234567891.23) == " 1234567891.2" +string.format("% -.1f", 1.23456789123e-05) == " 0.0" +string.format("% -1.0f", 0) == " 0" +string.format("% -1.0f", 1) == " 1" +string.format("% -1.0f", -1) == "-1" +string.format("% -1.0f", 2) == " 2" +string.format("% -1.0f", -2) == "-2" +string.format("% -1.0f", 3) == " 3" +string.format("% -1.0f", -3) == "-3" +string.format("% -1.0f", 100) == " 100" +string.format("% -1.0f", 10000) == " 10000" +string.format("% -1.0f", 100000) == " 100000" +string.format("% -1.0f", 1000000) == " 1000000" +string.format("% -1.0f", 10000000) == " 10000000" +string.format("% -1.0f", 0.01) == " 0" +string.format("% -1.0f", 0.0001) == " 0" +string.format("% -1.0f", 1e-05) == " 0" +string.format("% -1.0f", 1e-06) == " 0" +string.format("% -1.0f", 1e-07) == " 0" +string.format("% -1.0f", 123.456) == " 123" +string.format("% -1.0f", 1234560000) == " 1234560000" +string.format("% -1.0f", 1.23456e-05) == " 0" +string.format("% -1.0f", 123.456789123) == " 123" +string.format("% -1.0f", 1234567891.23) == " 1234567891" +string.format("% -1.0f", 1.23456789123e-05) == " 0" +string.format("% -1.1f", 0) == " 0.0" +string.format("% -1.1f", 1) == " 1.0" +string.format("% -1.1f", -1) == "-1.0" +string.format("% -1.1f", 2) == " 2.0" +string.format("% -1.1f", -2) == "-2.0" +string.format("% -1.1f", 3) == " 3.0" +string.format("% -1.1f", -3) == "-3.0" +string.format("% -1.1f", 100) == " 100.0" +string.format("% -1.1f", 10000) == " 10000.0" +string.format("% -1.1f", 100000) == " 100000.0" +string.format("% -1.1f", 1000000) == " 1000000.0" +string.format("% -1.1f", 10000000) == " 10000000.0" +string.format("% -1.1f", 0.01) == " 0.0" +string.format("% -1.1f", 0.0001) == " 0.0" +string.format("% -1.1f", 1e-05) == " 0.0" +string.format("% -1.1f", 1e-06) == " 0.0" +string.format("% -1.1f", 1e-07) == " 0.0" +string.format("% -1.1f", 123.456) == " 123.5" +string.format("% -1.1f", 1234560000) == " 1234560000.0" +string.format("% -1.1f", 1.23456e-05) == " 0.0" +string.format("% -1.1f", 123.456789123) == " 123.5" +string.format("% -1.1f", 1234567891.23) == " 1234567891.2" +string.format("% -1.1f", 1.23456789123e-05) == " 0.0" +string.format("% -2.0f", 0) == " 0" +string.format("% -2.0f", 1) == " 1" +string.format("% -2.0f", -1) == "-1" +string.format("% -2.0f", 2) == " 2" +string.format("% -2.0f", -2) == "-2" +string.format("% -2.0f", 3) == " 3" +string.format("% -2.0f", -3) == "-3" +string.format("% -2.0f", 100) == " 100" +string.format("% -2.0f", 10000) == " 10000" +string.format("% -2.0f", 100000) == " 100000" +string.format("% -2.0f", 1000000) == " 1000000" +string.format("% -2.0f", 10000000) == " 10000000" +string.format("% -2.0f", 0.01) == " 0" +string.format("% -2.0f", 0.0001) == " 0" +string.format("% -2.0f", 1e-05) == " 0" +string.format("% -2.0f", 1e-06) == " 0" +string.format("% -2.0f", 1e-07) == " 0" +string.format("% -2.0f", 123.456) == " 123" +string.format("% -2.0f", 1234560000) == " 1234560000" +string.format("% -2.0f", 1.23456e-05) == " 0" +string.format("% -2.0f", 123.456789123) == " 123" +string.format("% -2.0f", 1234567891.23) == " 1234567891" +string.format("% -2.0f", 1.23456789123e-05) == " 0" +string.format("% -2.1f", 0) == " 0.0" +string.format("% -2.1f", 1) == " 1.0" +string.format("% -2.1f", -1) == "-1.0" +string.format("% -2.1f", 2) == " 2.0" +string.format("% -2.1f", -2) == "-2.0" +string.format("% -2.1f", 3) == " 3.0" +string.format("% -2.1f", -3) == "-3.0" +string.format("% -2.1f", 100) == " 100.0" +string.format("% -2.1f", 10000) == " 10000.0" +string.format("% -2.1f", 100000) == " 100000.0" +string.format("% -2.1f", 1000000) == " 1000000.0" +string.format("% -2.1f", 10000000) == " 10000000.0" +string.format("% -2.1f", 0.01) == " 0.0" +string.format("% -2.1f", 0.0001) == " 0.0" +string.format("% -2.1f", 1e-05) == " 0.0" +string.format("% -2.1f", 1e-06) == " 0.0" +string.format("% -2.1f", 1e-07) == " 0.0" +string.format("% -2.1f", 123.456) == " 123.5" +string.format("% -2.1f", 1234560000) == " 1234560000.0" +string.format("% -2.1f", 1.23456e-05) == " 0.0" +string.format("% -2.1f", 123.456789123) == " 123.5" +string.format("% -2.1f", 1234567891.23) == " 1234567891.2" +string.format("% -2.1f", 1.23456789123e-05) == " 0.0" +string.format("% -6f", nan) == " nan " +string.format("% -6f", inf) == " inf " +string.format("% -6f", -inf) == "-inf " +string.format("% -6.0f", 0) == " 0 " +string.format("% -6.0f", 1) == " 1 " +string.format("% -6.0f", -1) == "-1 " +string.format("% -6.0f", 2) == " 2 " +string.format("% -6.0f", -2) == "-2 " +string.format("% -6.0f", 3) == " 3 " +string.format("% -6.0f", -3) == "-3 " +string.format("% -6.0f", nan) == " nan " +string.format("% -6.0f", inf) == " inf " +string.format("% -6.0f", -inf) == "-inf " +string.format("% -6.0f", 100) == " 100 " +string.format("% -6.0f", 10000) == " 10000" +string.format("% -6.0f", 100000) == " 100000" +string.format("% -6.0f", 1000000) == " 1000000" +string.format("% -6.0f", 10000000) == " 10000000" +string.format("% -6.0f", 0.01) == " 0 " +string.format("% -6.0f", 0.0001) == " 0 " +string.format("% -6.0f", 1e-05) == " 0 " +string.format("% -6.0f", 1e-06) == " 0 " +string.format("% -6.0f", 1e-07) == " 0 " +string.format("% -6.0f", 123.456) == " 123 " +string.format("% -6.0f", 1234560000) == " 1234560000" +string.format("% -6.0f", 1.23456e-05) == " 0 " +string.format("% -6.0f", 123.456789123) == " 123 " +string.format("% -6.0f", 1234567891.23) == " 1234567891" +string.format("% -6.0f", 1.23456789123e-05) == " 0 " +string.format("% -6.1f", 0) == " 0.0 " +string.format("% -6.1f", 1) == " 1.0 " +string.format("% -6.1f", -1) == "-1.0 " +string.format("% -6.1f", 2) == " 2.0 " +string.format("% -6.1f", -2) == "-2.0 " +string.format("% -6.1f", 3) == " 3.0 " +string.format("% -6.1f", -3) == "-3.0 " +string.format("% -6.1f", nan) == " nan " +string.format("% -6.1f", inf) == " inf " +string.format("% -6.1f", -inf) == "-inf " +string.format("% -6.1f", 100) == " 100.0" +string.format("% -6.1f", 10000) == " 10000.0" +string.format("% -6.1f", 100000) == " 100000.0" +string.format("% -6.1f", 1000000) == " 1000000.0" +string.format("% -6.1f", 10000000) == " 10000000.0" +string.format("% -6.1f", 0.01) == " 0.0 " +string.format("% -6.1f", 0.0001) == " 0.0 " +string.format("% -6.1f", 1e-05) == " 0.0 " +string.format("% -6.1f", 1e-06) == " 0.0 " +string.format("% -6.1f", 1e-07) == " 0.0 " +string.format("% -6.1f", 123.456) == " 123.5" +string.format("% -6.1f", 1234560000) == " 1234560000.0" +string.format("% -6.1f", 1.23456e-05) == " 0.0 " +string.format("% -6.1f", 123.456789123) == " 123.5" +string.format("% -6.1f", 1234567891.23) == " 1234567891.2" +string.format("% -6.1f", 1.23456789123e-05) == " 0.0 " +string.format("% -6.6f", nan) == " nan " +string.format("% -6.6f", inf) == " inf " +string.format("% -6.6f", -inf) == "-inf " +string.format("% -20f", 0) == " 0.000000 " +string.format("% -20f", 1) == " 1.000000 " +string.format("% -20f", -1) == "-1.000000 " +string.format("% -20f", 2) == " 2.000000 " +string.format("% -20f", -2) == "-2.000000 " +string.format("% -20f", 3) == " 3.000000 " +string.format("% -20f", -3) == "-3.000000 " +string.format("% -20f", nan) == " nan " +string.format("% -20f", inf) == " inf " +string.format("% -20f", -inf) == "-inf " +string.format("% -20f", 100) == " 100.000000 " +string.format("% -20f", 10000) == " 10000.000000 " +string.format("% -20f", 100000) == " 100000.000000 " +string.format("% -20f", 1000000) == " 1000000.000000 " +string.format("% -20f", 10000000) == " 10000000.000000 " +string.format("% -20f", 0.01) == " 0.010000 " +string.format("% -20f", 0.0001) == " 0.000100 " +string.format("% -20f", 1e-05) == " 0.000010 " +string.format("% -20f", 1e-06) == " 0.000001 " +string.format("% -20f", 1e-07) == " 0.000000 " +string.format("% -20f", 123.456) == " 123.456000 " +string.format("% -20f", 1234560000) == " 1234560000.000000 " +string.format("% -20f", 1.23456e-05) == " 0.000012 " +string.format("% -20f", 123.456789123) == " 123.456789 " +string.format("% -20f", 1234567891.23) == " 1234567891.230000 " +string.format("% -20f", 1.23456789123e-05) == " 0.000012 " +string.format("% -20.0f", 0) == " 0 " +string.format("% -20.0f", 1) == " 1 " +string.format("% -20.0f", -1) == "-1 " +string.format("% -20.0f", 2) == " 2 " +string.format("% -20.0f", -2) == "-2 " +string.format("% -20.0f", 3) == " 3 " +string.format("% -20.0f", -3) == "-3 " +string.format("% -20.0f", nan) == " nan " +string.format("% -20.0f", inf) == " inf " +string.format("% -20.0f", -inf) == "-inf " +string.format("% -20.0f", 100) == " 100 " +string.format("% -20.0f", 10000) == " 10000 " +string.format("% -20.0f", 100000) == " 100000 " +string.format("% -20.0f", 1000000) == " 1000000 " +string.format("% -20.0f", 10000000) == " 10000000 " +string.format("% -20.0f", 0.01) == " 0 " +string.format("% -20.0f", 0.0001) == " 0 " +string.format("% -20.0f", 1e-05) == " 0 " +string.format("% -20.0f", 1e-06) == " 0 " +string.format("% -20.0f", 1e-07) == " 0 " +string.format("% -20.0f", 123.456) == " 123 " +string.format("% -20.0f", 1234560000) == " 1234560000 " +string.format("% -20.0f", 1.23456e-05) == " 0 " +string.format("% -20.0f", 123.456789123) == " 123 " +string.format("% -20.0f", 1234567891.23) == " 1234567891 " +string.format("% -20.0f", 1.23456789123e-05) == " 0 " +string.format("% -20.1f", 0) == " 0.0 " +string.format("% -20.1f", 1) == " 1.0 " +string.format("% -20.1f", -1) == "-1.0 " +string.format("% -20.1f", 2) == " 2.0 " +string.format("% -20.1f", -2) == "-2.0 " +string.format("% -20.1f", 3) == " 3.0 " +string.format("% -20.1f", -3) == "-3.0 " +string.format("% -20.1f", nan) == " nan " +string.format("% -20.1f", inf) == " inf " +string.format("% -20.1f", -inf) == "-inf " +string.format("% -20.1f", 100) == " 100.0 " +string.format("% -20.1f", 10000) == " 10000.0 " +string.format("% -20.1f", 100000) == " 100000.0 " +string.format("% -20.1f", 1000000) == " 1000000.0 " +string.format("% -20.1f", 10000000) == " 10000000.0 " +string.format("% -20.1f", 0.01) == " 0.0 " +string.format("% -20.1f", 0.0001) == " 0.0 " +string.format("% -20.1f", 1e-05) == " 0.0 " +string.format("% -20.1f", 1e-06) == " 0.0 " +string.format("% -20.1f", 1e-07) == " 0.0 " +string.format("% -20.1f", 123.456) == " 123.5 " +string.format("% -20.1f", 1234560000) == " 1234560000.0 " +string.format("% -20.1f", 1.23456e-05) == " 0.0 " +string.format("% -20.1f", 123.456789123) == " 123.5 " +string.format("% -20.1f", 1234567891.23) == " 1234567891.2 " +string.format("% -20.1f", 1.23456789123e-05) == " 0.0 " +string.format("% -20.6f", 0) == " 0.000000 " +string.format("% -20.6f", 1) == " 1.000000 " +string.format("% -20.6f", -1) == "-1.000000 " +string.format("% -20.6f", 2) == " 2.000000 " +string.format("% -20.6f", -2) == "-2.000000 " +string.format("% -20.6f", 3) == " 3.000000 " +string.format("% -20.6f", -3) == "-3.000000 " +string.format("% -20.6f", nan) == " nan " +string.format("% -20.6f", inf) == " inf " +string.format("% -20.6f", -inf) == "-inf " +string.format("% -20.6f", 100) == " 100.000000 " +string.format("% -20.6f", 10000) == " 10000.000000 " +string.format("% -20.6f", 100000) == " 100000.000000 " +string.format("% -20.6f", 1000000) == " 1000000.000000 " +string.format("% -20.6f", 10000000) == " 10000000.000000 " +string.format("% -20.6f", 0.01) == " 0.010000 " +string.format("% -20.6f", 0.0001) == " 0.000100 " +string.format("% -20.6f", 1e-05) == " 0.000010 " +string.format("% -20.6f", 1e-06) == " 0.000001 " +string.format("% -20.6f", 1e-07) == " 0.000000 " +string.format("% -20.6f", 123.456) == " 123.456000 " +string.format("% -20.6f", 1234560000) == " 1234560000.000000 " +string.format("% -20.6f", 1.23456e-05) == " 0.000012 " +string.format("% -20.6f", 123.456789123) == " 123.456789 " +string.format("% -20.6f", 1234567891.23) == " 1234567891.230000 " +string.format("% -20.6f", 1.23456789123e-05) == " 0.000012 " +string.format("% -+f", 0) == "+0.000000" +string.format("% -+f", 1) == "+1.000000" +string.format("% -+f", -1) == "-1.000000" +string.format("% -+f", 2) == "+2.000000" +string.format("% -+f", -2) == "-2.000000" +string.format("% -+f", 3) == "+3.000000" +string.format("% -+f", -3) == "-3.000000" +string.format("% -+f", nan) == "+nan" +string.format("% -+f", inf) == "+inf" +string.format("% -+f", -inf) == "-inf" +string.format("% -+f", 100) == "+100.000000" +string.format("% -+f", 10000) == "+10000.000000" +string.format("% -+f", 100000) == "+100000.000000" +string.format("% -+f", 1000000) == "+1000000.000000" +string.format("% -+f", 10000000) == "+10000000.000000" +string.format("% -+f", 0.01) == "+0.010000" +string.format("% -+f", 0.0001) == "+0.000100" +string.format("% -+f", 1e-05) == "+0.000010" +string.format("% -+f", 1e-06) == "+0.000001" +string.format("% -+f", 1e-07) == "+0.000000" +string.format("% -+f", 123.456) == "+123.456000" +string.format("% -+f", 1234560000) == "+1234560000.000000" +string.format("% -+f", 1.23456e-05) == "+0.000012" +string.format("% -+f", 123.456789123) == "+123.456789" +string.format("% -+f", 1234567891.23) == "+1234567891.230000" +string.format("% -+f", 1.23456789123e-05) == "+0.000012" +string.format("% -+.0f", 0) == "+0" +string.format("% -+.0f", 1) == "+1" +string.format("% -+.0f", -1) == "-1" +string.format("% -+.0f", 2) == "+2" +string.format("% -+.0f", -2) == "-2" +string.format("% -+.0f", 3) == "+3" +string.format("% -+.0f", -3) == "-3" +string.format("% -+.0f", 100) == "+100" +string.format("% -+.0f", 10000) == "+10000" +string.format("% -+.0f", 100000) == "+100000" +string.format("% -+.0f", 1000000) == "+1000000" +string.format("% -+.0f", 10000000) == "+10000000" +string.format("% -+.0f", 0.01) == "+0" +string.format("% -+.0f", 0.0001) == "+0" +string.format("% -+.0f", 1e-05) == "+0" +string.format("% -+.0f", 1e-06) == "+0" +string.format("% -+.0f", 1e-07) == "+0" +string.format("% -+.0f", 123.456) == "+123" +string.format("% -+.0f", 1234560000) == "+1234560000" +string.format("% -+.0f", 1.23456e-05) == "+0" +string.format("% -+.0f", 123.456789123) == "+123" +string.format("% -+.0f", 1234567891.23) == "+1234567891" +string.format("% -+.0f", 1.23456789123e-05) == "+0" +string.format("% -+.1f", 0) == "+0.0" +string.format("% -+.1f", 1) == "+1.0" +string.format("% -+.1f", -1) == "-1.0" +string.format("% -+.1f", 2) == "+2.0" +string.format("% -+.1f", -2) == "-2.0" +string.format("% -+.1f", 3) == "+3.0" +string.format("% -+.1f", -3) == "-3.0" +string.format("% -+.1f", 100) == "+100.0" +string.format("% -+.1f", 10000) == "+10000.0" +string.format("% -+.1f", 100000) == "+100000.0" +string.format("% -+.1f", 1000000) == "+1000000.0" +string.format("% -+.1f", 10000000) == "+10000000.0" +string.format("% -+.1f", 0.01) == "+0.0" +string.format("% -+.1f", 0.0001) == "+0.0" +string.format("% -+.1f", 1e-05) == "+0.0" +string.format("% -+.1f", 1e-06) == "+0.0" +string.format("% -+.1f", 1e-07) == "+0.0" +string.format("% -+.1f", 123.456) == "+123.5" +string.format("% -+.1f", 1234560000) == "+1234560000.0" +string.format("% -+.1f", 1.23456e-05) == "+0.0" +string.format("% -+.1f", 123.456789123) == "+123.5" +string.format("% -+.1f", 1234567891.23) == "+1234567891.2" +string.format("% -+.1f", 1.23456789123e-05) == "+0.0" +string.format("% -+1.0f", 0) == "+0" +string.format("% -+1.0f", 1) == "+1" +string.format("% -+1.0f", -1) == "-1" +string.format("% -+1.0f", 2) == "+2" +string.format("% -+1.0f", -2) == "-2" +string.format("% -+1.0f", 3) == "+3" +string.format("% -+1.0f", -3) == "-3" +string.format("% -+1.0f", 100) == "+100" +string.format("% -+1.0f", 10000) == "+10000" +string.format("% -+1.0f", 100000) == "+100000" +string.format("% -+1.0f", 1000000) == "+1000000" +string.format("% -+1.0f", 10000000) == "+10000000" +string.format("% -+1.0f", 0.01) == "+0" +string.format("% -+1.0f", 0.0001) == "+0" +string.format("% -+1.0f", 1e-05) == "+0" +string.format("% -+1.0f", 1e-06) == "+0" +string.format("% -+1.0f", 1e-07) == "+0" +string.format("% -+1.0f", 123.456) == "+123" +string.format("% -+1.0f", 1234560000) == "+1234560000" +string.format("% -+1.0f", 1.23456e-05) == "+0" +string.format("% -+1.0f", 123.456789123) == "+123" +string.format("% -+1.0f", 1234567891.23) == "+1234567891" +string.format("% -+1.0f", 1.23456789123e-05) == "+0" +string.format("% -+1.1f", 0) == "+0.0" +string.format("% -+1.1f", 1) == "+1.0" +string.format("% -+1.1f", -1) == "-1.0" +string.format("% -+1.1f", 2) == "+2.0" +string.format("% -+1.1f", -2) == "-2.0" +string.format("% -+1.1f", 3) == "+3.0" +string.format("% -+1.1f", -3) == "-3.0" +string.format("% -+1.1f", 100) == "+100.0" +string.format("% -+1.1f", 10000) == "+10000.0" +string.format("% -+1.1f", 100000) == "+100000.0" +string.format("% -+1.1f", 1000000) == "+1000000.0" +string.format("% -+1.1f", 10000000) == "+10000000.0" +string.format("% -+1.1f", 0.01) == "+0.0" +string.format("% -+1.1f", 0.0001) == "+0.0" +string.format("% -+1.1f", 1e-05) == "+0.0" +string.format("% -+1.1f", 1e-06) == "+0.0" +string.format("% -+1.1f", 1e-07) == "+0.0" +string.format("% -+1.1f", 123.456) == "+123.5" +string.format("% -+1.1f", 1234560000) == "+1234560000.0" +string.format("% -+1.1f", 1.23456e-05) == "+0.0" +string.format("% -+1.1f", 123.456789123) == "+123.5" +string.format("% -+1.1f", 1234567891.23) == "+1234567891.2" +string.format("% -+1.1f", 1.23456789123e-05) == "+0.0" +string.format("% -+2.0f", 0) == "+0" +string.format("% -+2.0f", 1) == "+1" +string.format("% -+2.0f", -1) == "-1" +string.format("% -+2.0f", 2) == "+2" +string.format("% -+2.0f", -2) == "-2" +string.format("% -+2.0f", 3) == "+3" +string.format("% -+2.0f", -3) == "-3" +string.format("% -+2.0f", 100) == "+100" +string.format("% -+2.0f", 10000) == "+10000" +string.format("% -+2.0f", 100000) == "+100000" +string.format("% -+2.0f", 1000000) == "+1000000" +string.format("% -+2.0f", 10000000) == "+10000000" +string.format("% -+2.0f", 0.01) == "+0" +string.format("% -+2.0f", 0.0001) == "+0" +string.format("% -+2.0f", 1e-05) == "+0" +string.format("% -+2.0f", 1e-06) == "+0" +string.format("% -+2.0f", 1e-07) == "+0" +string.format("% -+2.0f", 123.456) == "+123" +string.format("% -+2.0f", 1234560000) == "+1234560000" +string.format("% -+2.0f", 1.23456e-05) == "+0" +string.format("% -+2.0f", 123.456789123) == "+123" +string.format("% -+2.0f", 1234567891.23) == "+1234567891" +string.format("% -+2.0f", 1.23456789123e-05) == "+0" +string.format("% -+2.1f", 0) == "+0.0" +string.format("% -+2.1f", 1) == "+1.0" +string.format("% -+2.1f", -1) == "-1.0" +string.format("% -+2.1f", 2) == "+2.0" +string.format("% -+2.1f", -2) == "-2.0" +string.format("% -+2.1f", 3) == "+3.0" +string.format("% -+2.1f", -3) == "-3.0" +string.format("% -+2.1f", 100) == "+100.0" +string.format("% -+2.1f", 10000) == "+10000.0" +string.format("% -+2.1f", 100000) == "+100000.0" +string.format("% -+2.1f", 1000000) == "+1000000.0" +string.format("% -+2.1f", 10000000) == "+10000000.0" +string.format("% -+2.1f", 0.01) == "+0.0" +string.format("% -+2.1f", 0.0001) == "+0.0" +string.format("% -+2.1f", 1e-05) == "+0.0" +string.format("% -+2.1f", 1e-06) == "+0.0" +string.format("% -+2.1f", 1e-07) == "+0.0" +string.format("% -+2.1f", 123.456) == "+123.5" +string.format("% -+2.1f", 1234560000) == "+1234560000.0" +string.format("% -+2.1f", 1.23456e-05) == "+0.0" +string.format("% -+2.1f", 123.456789123) == "+123.5" +string.format("% -+2.1f", 1234567891.23) == "+1234567891.2" +string.format("% -+2.1f", 1.23456789123e-05) == "+0.0" +string.format("% -+6f", nan) == "+nan " +string.format("% -+6f", inf) == "+inf " +string.format("% -+6f", -inf) == "-inf " +string.format("% -+6.0f", 0) == "+0 " +string.format("% -+6.0f", 1) == "+1 " +string.format("% -+6.0f", -1) == "-1 " +string.format("% -+6.0f", 2) == "+2 " +string.format("% -+6.0f", -2) == "-2 " +string.format("% -+6.0f", 3) == "+3 " +string.format("% -+6.0f", -3) == "-3 " +string.format("% -+6.0f", nan) == "+nan " +string.format("% -+6.0f", inf) == "+inf " +string.format("% -+6.0f", -inf) == "-inf " +string.format("% -+6.0f", 100) == "+100 " +string.format("% -+6.0f", 10000) == "+10000" +string.format("% -+6.0f", 100000) == "+100000" +string.format("% -+6.0f", 1000000) == "+1000000" +string.format("% -+6.0f", 10000000) == "+10000000" +string.format("% -+6.0f", 0.01) == "+0 " +string.format("% -+6.0f", 0.0001) == "+0 " +string.format("% -+6.0f", 1e-05) == "+0 " +string.format("% -+6.0f", 1e-06) == "+0 " +string.format("% -+6.0f", 1e-07) == "+0 " +string.format("% -+6.0f", 123.456) == "+123 " +string.format("% -+6.0f", 1234560000) == "+1234560000" +string.format("% -+6.0f", 1.23456e-05) == "+0 " +string.format("% -+6.0f", 123.456789123) == "+123 " +string.format("% -+6.0f", 1234567891.23) == "+1234567891" +string.format("% -+6.0f", 1.23456789123e-05) == "+0 " +string.format("% -+6.1f", 0) == "+0.0 " +string.format("% -+6.1f", 1) == "+1.0 " +string.format("% -+6.1f", -1) == "-1.0 " +string.format("% -+6.1f", 2) == "+2.0 " +string.format("% -+6.1f", -2) == "-2.0 " +string.format("% -+6.1f", 3) == "+3.0 " +string.format("% -+6.1f", -3) == "-3.0 " +string.format("% -+6.1f", nan) == "+nan " +string.format("% -+6.1f", inf) == "+inf " +string.format("% -+6.1f", -inf) == "-inf " +string.format("% -+6.1f", 100) == "+100.0" +string.format("% -+6.1f", 10000) == "+10000.0" +string.format("% -+6.1f", 100000) == "+100000.0" +string.format("% -+6.1f", 1000000) == "+1000000.0" +string.format("% -+6.1f", 10000000) == "+10000000.0" +string.format("% -+6.1f", 0.01) == "+0.0 " +string.format("% -+6.1f", 0.0001) == "+0.0 " +string.format("% -+6.1f", 1e-05) == "+0.0 " +string.format("% -+6.1f", 1e-06) == "+0.0 " +string.format("% -+6.1f", 1e-07) == "+0.0 " +string.format("% -+6.1f", 123.456) == "+123.5" +string.format("% -+6.1f", 1234560000) == "+1234560000.0" +string.format("% -+6.1f", 1.23456e-05) == "+0.0 " +string.format("% -+6.1f", 123.456789123) == "+123.5" +string.format("% -+6.1f", 1234567891.23) == "+1234567891.2" +string.format("% -+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("% -+6.6f", nan) == "+nan " +string.format("% -+6.6f", inf) == "+inf " +string.format("% -+6.6f", -inf) == "-inf " +string.format("% -+20f", 0) == "+0.000000 " +string.format("% -+20f", 1) == "+1.000000 " +string.format("% -+20f", -1) == "-1.000000 " +string.format("% -+20f", 2) == "+2.000000 " +string.format("% -+20f", -2) == "-2.000000 " +string.format("% -+20f", 3) == "+3.000000 " +string.format("% -+20f", -3) == "-3.000000 " +string.format("% -+20f", nan) == "+nan " +string.format("% -+20f", inf) == "+inf " +string.format("% -+20f", -inf) == "-inf " +string.format("% -+20f", 100) == "+100.000000 " +string.format("% -+20f", 10000) == "+10000.000000 " +string.format("% -+20f", 100000) == "+100000.000000 " +string.format("% -+20f", 1000000) == "+1000000.000000 " +string.format("% -+20f", 10000000) == "+10000000.000000 " +string.format("% -+20f", 0.01) == "+0.010000 " +string.format("% -+20f", 0.0001) == "+0.000100 " +string.format("% -+20f", 1e-05) == "+0.000010 " +string.format("% -+20f", 1e-06) == "+0.000001 " +string.format("% -+20f", 1e-07) == "+0.000000 " +string.format("% -+20f", 123.456) == "+123.456000 " +string.format("% -+20f", 1234560000) == "+1234560000.000000 " +string.format("% -+20f", 1.23456e-05) == "+0.000012 " +string.format("% -+20f", 123.456789123) == "+123.456789 " +string.format("% -+20f", 1234567891.23) == "+1234567891.230000 " +string.format("% -+20f", 1.23456789123e-05) == "+0.000012 " +string.format("% -+20.0f", 0) == "+0 " +string.format("% -+20.0f", 1) == "+1 " +string.format("% -+20.0f", -1) == "-1 " +string.format("% -+20.0f", 2) == "+2 " +string.format("% -+20.0f", -2) == "-2 " +string.format("% -+20.0f", 3) == "+3 " +string.format("% -+20.0f", -3) == "-3 " +string.format("% -+20.0f", nan) == "+nan " +string.format("% -+20.0f", inf) == "+inf " +string.format("% -+20.0f", -inf) == "-inf " +string.format("% -+20.0f", 100) == "+100 " +string.format("% -+20.0f", 10000) == "+10000 " +string.format("% -+20.0f", 100000) == "+100000 " +string.format("% -+20.0f", 1000000) == "+1000000 " +string.format("% -+20.0f", 10000000) == "+10000000 " +string.format("% -+20.0f", 0.01) == "+0 " +string.format("% -+20.0f", 0.0001) == "+0 " +string.format("% -+20.0f", 1e-05) == "+0 " +string.format("% -+20.0f", 1e-06) == "+0 " +string.format("% -+20.0f", 1e-07) == "+0 " +string.format("% -+20.0f", 123.456) == "+123 " +string.format("% -+20.0f", 1234560000) == "+1234560000 " +string.format("% -+20.0f", 1.23456e-05) == "+0 " +string.format("% -+20.0f", 123.456789123) == "+123 " +string.format("% -+20.0f", 1234567891.23) == "+1234567891 " +string.format("% -+20.0f", 1.23456789123e-05) == "+0 " +string.format("% -+20.1f", 0) == "+0.0 " +string.format("% -+20.1f", 1) == "+1.0 " +string.format("% -+20.1f", -1) == "-1.0 " +string.format("% -+20.1f", 2) == "+2.0 " +string.format("% -+20.1f", -2) == "-2.0 " +string.format("% -+20.1f", 3) == "+3.0 " +string.format("% -+20.1f", -3) == "-3.0 " +string.format("% -+20.1f", nan) == "+nan " +string.format("% -+20.1f", inf) == "+inf " +string.format("% -+20.1f", -inf) == "-inf " +string.format("% -+20.1f", 100) == "+100.0 " +string.format("% -+20.1f", 10000) == "+10000.0 " +string.format("% -+20.1f", 100000) == "+100000.0 " +string.format("% -+20.1f", 1000000) == "+1000000.0 " +string.format("% -+20.1f", 10000000) == "+10000000.0 " +string.format("% -+20.1f", 0.01) == "+0.0 " +string.format("% -+20.1f", 0.0001) == "+0.0 " +string.format("% -+20.1f", 1e-05) == "+0.0 " +string.format("% -+20.1f", 1e-06) == "+0.0 " +string.format("% -+20.1f", 1e-07) == "+0.0 " +string.format("% -+20.1f", 123.456) == "+123.5 " +string.format("% -+20.1f", 1234560000) == "+1234560000.0 " +string.format("% -+20.1f", 1.23456e-05) == "+0.0 " +string.format("% -+20.1f", 123.456789123) == "+123.5 " +string.format("% -+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("% -+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("% -+20.6f", 0) == "+0.000000 " +string.format("% -+20.6f", 1) == "+1.000000 " +string.format("% -+20.6f", -1) == "-1.000000 " +string.format("% -+20.6f", 2) == "+2.000000 " +string.format("% -+20.6f", -2) == "-2.000000 " +string.format("% -+20.6f", 3) == "+3.000000 " +string.format("% -+20.6f", -3) == "-3.000000 " +string.format("% -+20.6f", nan) == "+nan " +string.format("% -+20.6f", inf) == "+inf " +string.format("% -+20.6f", -inf) == "-inf " +string.format("% -+20.6f", 100) == "+100.000000 " +string.format("% -+20.6f", 10000) == "+10000.000000 " +string.format("% -+20.6f", 100000) == "+100000.000000 " +string.format("% -+20.6f", 1000000) == "+1000000.000000 " +string.format("% -+20.6f", 10000000) == "+10000000.000000 " +string.format("% -+20.6f", 0.01) == "+0.010000 " +string.format("% -+20.6f", 0.0001) == "+0.000100 " +string.format("% -+20.6f", 1e-05) == "+0.000010 " +string.format("% -+20.6f", 1e-06) == "+0.000001 " +string.format("% -+20.6f", 1e-07) == "+0.000000 " +string.format("% -+20.6f", 123.456) == "+123.456000 " +string.format("% -+20.6f", 1234560000) == "+1234560000.000000 " +string.format("% -+20.6f", 1.23456e-05) == "+0.000012 " +string.format("% -+20.6f", 123.456789123) == "+123.456789 " +string.format("% -+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("% -+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%#f", 0) == "0.000000" +string.format("%#f", 1) == "1.000000" +string.format("%#f", -1) == "-1.000000" +string.format("%#f", 2) == "2.000000" +string.format("%#f", -2) == "-2.000000" +string.format("%#f", 3) == "3.000000" +string.format("%#f", -3) == "-3.000000" +string.format("%#f", nan) == "nan" +string.format("%#f", inf) == "inf" +string.format("%#f", -inf) == "-inf" +string.format("%#f", 100) == "100.000000" +string.format("%#f", 10000) == "10000.000000" +string.format("%#f", 100000) == "100000.000000" +string.format("%#f", 1000000) == "1000000.000000" +string.format("%#f", 10000000) == "10000000.000000" +string.format("%#f", 0.01) == "0.010000" +string.format("%#f", 0.0001) == "0.000100" +string.format("%#f", 1e-05) == "0.000010" +string.format("%#f", 1e-06) == "0.000001" +string.format("%#f", 1e-07) == "0.000000" +string.format("%#f", 123.456) == "123.456000" +string.format("%#f", 1234560000) == "1234560000.000000" +string.format("%#f", 1.23456e-05) == "0.000012" +string.format("%#f", 123.456789123) == "123.456789" +string.format("%#f", 1234567891.23) == "1234567891.230000" +string.format("%#f", 1.23456789123e-05) == "0.000012" +string.format("%#.0f", 0) == "0." +string.format("%#.0f", 1) == "1." +string.format("%#.0f", -1) == "-1." +string.format("%#.0f", 2) == "2." +string.format("%#.0f", -2) == "-2." +string.format("%#.0f", 3) == "3." +string.format("%#.0f", -3) == "-3." +string.format("%#.0f", 100) == "100." +string.format("%#.0f", 10000) == "10000." +string.format("%#.0f", 100000) == "100000." +string.format("%#.0f", 1000000) == "1000000." +string.format("%#.0f", 10000000) == "10000000." +string.format("%#.0f", 0.01) == "0." +string.format("%#.0f", 0.0001) == "0." +string.format("%#.0f", 1e-05) == "0." +string.format("%#.0f", 1e-06) == "0." +string.format("%#.0f", 1e-07) == "0." +string.format("%#.0f", 123.456) == "123." +string.format("%#.0f", 1234560000) == "1234560000." +string.format("%#.0f", 1.23456e-05) == "0." +string.format("%#.0f", 123.456789123) == "123." +string.format("%#.0f", 1234567891.23) == "1234567891." +string.format("%#.0f", 1.23456789123e-05) == "0." +string.format("%#.1f", 0) == "0.0" +string.format("%#.1f", 1) == "1.0" +string.format("%#.1f", -1) == "-1.0" +string.format("%#.1f", 2) == "2.0" +string.format("%#.1f", -2) == "-2.0" +string.format("%#.1f", 3) == "3.0" +string.format("%#.1f", -3) == "-3.0" +string.format("%#.1f", 100) == "100.0" +string.format("%#.1f", 10000) == "10000.0" +string.format("%#.1f", 100000) == "100000.0" +string.format("%#.1f", 1000000) == "1000000.0" +string.format("%#.1f", 10000000) == "10000000.0" +string.format("%#.1f", 0.01) == "0.0" +string.format("%#.1f", 0.0001) == "0.0" +string.format("%#.1f", 1e-05) == "0.0" +string.format("%#.1f", 1e-06) == "0.0" +string.format("%#.1f", 1e-07) == "0.0" +string.format("%#.1f", 123.456) == "123.5" +string.format("%#.1f", 1234560000) == "1234560000.0" +string.format("%#.1f", 1.23456e-05) == "0.0" +string.format("%#.1f", 123.456789123) == "123.5" +string.format("%#.1f", 1234567891.23) == "1234567891.2" +string.format("%#.1f", 1.23456789123e-05) == "0.0" +string.format("%#1.0f", 0) == "0." +string.format("%#1.0f", 1) == "1." +string.format("%#1.0f", -1) == "-1." +string.format("%#1.0f", 2) == "2." +string.format("%#1.0f", -2) == "-2." +string.format("%#1.0f", 3) == "3." +string.format("%#1.0f", -3) == "-3." +string.format("%#1.0f", 100) == "100." +string.format("%#1.0f", 10000) == "10000." +string.format("%#1.0f", 100000) == "100000." +string.format("%#1.0f", 1000000) == "1000000." +string.format("%#1.0f", 10000000) == "10000000." +string.format("%#1.0f", 0.01) == "0." +string.format("%#1.0f", 0.0001) == "0." +string.format("%#1.0f", 1e-05) == "0." +string.format("%#1.0f", 1e-06) == "0." +string.format("%#1.0f", 1e-07) == "0." +string.format("%#1.0f", 123.456) == "123." +string.format("%#1.0f", 1234560000) == "1234560000." +string.format("%#1.0f", 1.23456e-05) == "0." +string.format("%#1.0f", 123.456789123) == "123." +string.format("%#1.0f", 1234567891.23) == "1234567891." +string.format("%#1.0f", 1.23456789123e-05) == "0." +string.format("%#1.1f", 0) == "0.0" +string.format("%#1.1f", 1) == "1.0" +string.format("%#1.1f", -1) == "-1.0" +string.format("%#1.1f", 2) == "2.0" +string.format("%#1.1f", -2) == "-2.0" +string.format("%#1.1f", 3) == "3.0" +string.format("%#1.1f", -3) == "-3.0" +string.format("%#1.1f", 100) == "100.0" +string.format("%#1.1f", 10000) == "10000.0" +string.format("%#1.1f", 100000) == "100000.0" +string.format("%#1.1f", 1000000) == "1000000.0" +string.format("%#1.1f", 10000000) == "10000000.0" +string.format("%#1.1f", 0.01) == "0.0" +string.format("%#1.1f", 0.0001) == "0.0" +string.format("%#1.1f", 1e-05) == "0.0" +string.format("%#1.1f", 1e-06) == "0.0" +string.format("%#1.1f", 1e-07) == "0.0" +string.format("%#1.1f", 123.456) == "123.5" +string.format("%#1.1f", 1234560000) == "1234560000.0" +string.format("%#1.1f", 1.23456e-05) == "0.0" +string.format("%#1.1f", 123.456789123) == "123.5" +string.format("%#1.1f", 1234567891.23) == "1234567891.2" +string.format("%#1.1f", 1.23456789123e-05) == "0.0" +string.format("%#2.0f", 0) == "0." +string.format("%#2.0f", 1) == "1." +string.format("%#2.0f", -1) == "-1." +string.format("%#2.0f", 2) == "2." +string.format("%#2.0f", -2) == "-2." +string.format("%#2.0f", 3) == "3." +string.format("%#2.0f", -3) == "-3." +string.format("%#2.0f", 100) == "100." +string.format("%#2.0f", 10000) == "10000." +string.format("%#2.0f", 100000) == "100000." +string.format("%#2.0f", 1000000) == "1000000." +string.format("%#2.0f", 10000000) == "10000000." +string.format("%#2.0f", 0.01) == "0." +string.format("%#2.0f", 0.0001) == "0." +string.format("%#2.0f", 1e-05) == "0." +string.format("%#2.0f", 1e-06) == "0." +string.format("%#2.0f", 1e-07) == "0." +string.format("%#2.0f", 123.456) == "123." +string.format("%#2.0f", 1234560000) == "1234560000." +string.format("%#2.0f", 1.23456e-05) == "0." +string.format("%#2.0f", 123.456789123) == "123." +string.format("%#2.0f", 1234567891.23) == "1234567891." +string.format("%#2.0f", 1.23456789123e-05) == "0." +string.format("%#2.1f", 0) == "0.0" +string.format("%#2.1f", 1) == "1.0" +string.format("%#2.1f", -1) == "-1.0" +string.format("%#2.1f", 2) == "2.0" +string.format("%#2.1f", -2) == "-2.0" +string.format("%#2.1f", 3) == "3.0" +string.format("%#2.1f", -3) == "-3.0" +string.format("%#2.1f", 100) == "100.0" +string.format("%#2.1f", 10000) == "10000.0" +string.format("%#2.1f", 100000) == "100000.0" +string.format("%#2.1f", 1000000) == "1000000.0" +string.format("%#2.1f", 10000000) == "10000000.0" +string.format("%#2.1f", 0.01) == "0.0" +string.format("%#2.1f", 0.0001) == "0.0" +string.format("%#2.1f", 1e-05) == "0.0" +string.format("%#2.1f", 1e-06) == "0.0" +string.format("%#2.1f", 1e-07) == "0.0" +string.format("%#2.1f", 123.456) == "123.5" +string.format("%#2.1f", 1234560000) == "1234560000.0" +string.format("%#2.1f", 1.23456e-05) == "0.0" +string.format("%#2.1f", 123.456789123) == "123.5" +string.format("%#2.1f", 1234567891.23) == "1234567891.2" +string.format("%#2.1f", 1.23456789123e-05) == "0.0" +string.format("%#6f", nan) == " nan" +string.format("%#6f", inf) == " inf" +string.format("%#6f", -inf) == " -inf" +string.format("%#6.0f", 0) == " 0." +string.format("%#6.0f", 1) == " 1." +string.format("%#6.0f", -1) == " -1." +string.format("%#6.0f", 2) == " 2." +string.format("%#6.0f", -2) == " -2." +string.format("%#6.0f", 3) == " 3." +string.format("%#6.0f", -3) == " -3." +string.format("%#6.0f", nan) == " nan" +string.format("%#6.0f", inf) == " inf" +string.format("%#6.0f", -inf) == " -inf" +string.format("%#6.0f", 100) == " 100." +string.format("%#6.0f", 10000) == "10000." +string.format("%#6.0f", 100000) == "100000." +string.format("%#6.0f", 1000000) == "1000000." +string.format("%#6.0f", 10000000) == "10000000." +string.format("%#6.0f", 0.01) == " 0." +string.format("%#6.0f", 0.0001) == " 0." +string.format("%#6.0f", 1e-05) == " 0." +string.format("%#6.0f", 1e-06) == " 0." +string.format("%#6.0f", 1e-07) == " 0." +string.format("%#6.0f", 123.456) == " 123." +string.format("%#6.0f", 1234560000) == "1234560000." +string.format("%#6.0f", 1.23456e-05) == " 0." +string.format("%#6.0f", 123.456789123) == " 123." +string.format("%#6.0f", 1234567891.23) == "1234567891." +string.format("%#6.0f", 1.23456789123e-05) == " 0." +string.format("%#6.1f", 0) == " 0.0" +string.format("%#6.1f", 1) == " 1.0" +string.format("%#6.1f", -1) == " -1.0" +string.format("%#6.1f", 2) == " 2.0" +string.format("%#6.1f", -2) == " -2.0" +string.format("%#6.1f", 3) == " 3.0" +string.format("%#6.1f", -3) == " -3.0" +string.format("%#6.1f", nan) == " nan" +string.format("%#6.1f", inf) == " inf" +string.format("%#6.1f", -inf) == " -inf" +string.format("%#6.1f", 100) == " 100.0" +string.format("%#6.1f", 10000) == "10000.0" +string.format("%#6.1f", 100000) == "100000.0" +string.format("%#6.1f", 1000000) == "1000000.0" +string.format("%#6.1f", 10000000) == "10000000.0" +string.format("%#6.1f", 0.01) == " 0.0" +string.format("%#6.1f", 0.0001) == " 0.0" +string.format("%#6.1f", 1e-05) == " 0.0" +string.format("%#6.1f", 1e-06) == " 0.0" +string.format("%#6.1f", 1e-07) == " 0.0" +string.format("%#6.1f", 123.456) == " 123.5" +string.format("%#6.1f", 1234560000) == "1234560000.0" +string.format("%#6.1f", 1.23456e-05) == " 0.0" +string.format("%#6.1f", 123.456789123) == " 123.5" +string.format("%#6.1f", 1234567891.23) == "1234567891.2" +string.format("%#6.1f", 1.23456789123e-05) == " 0.0" +string.format("%#6.6f", nan) == " nan" +string.format("%#6.6f", inf) == " inf" +string.format("%#6.6f", -inf) == " -inf" +string.format("%#20f", 0) == " 0.000000" +string.format("%#20f", 1) == " 1.000000" +string.format("%#20f", -1) == " -1.000000" +string.format("%#20f", 2) == " 2.000000" +string.format("%#20f", -2) == " -2.000000" +string.format("%#20f", 3) == " 3.000000" +string.format("%#20f", -3) == " -3.000000" +string.format("%#20f", nan) == " nan" +string.format("%#20f", inf) == " inf" +string.format("%#20f", -inf) == " -inf" +string.format("%#20f", 100) == " 100.000000" +string.format("%#20f", 10000) == " 10000.000000" +string.format("%#20f", 100000) == " 100000.000000" +string.format("%#20f", 1000000) == " 1000000.000000" +string.format("%#20f", 10000000) == " 10000000.000000" +string.format("%#20f", 0.01) == " 0.010000" +string.format("%#20f", 0.0001) == " 0.000100" +string.format("%#20f", 1e-05) == " 0.000010" +string.format("%#20f", 1e-06) == " 0.000001" +string.format("%#20f", 1e-07) == " 0.000000" +string.format("%#20f", 123.456) == " 123.456000" +string.format("%#20f", 1234560000) == " 1234560000.000000" +string.format("%#20f", 1.23456e-05) == " 0.000012" +string.format("%#20f", 123.456789123) == " 123.456789" +string.format("%#20f", 1234567891.23) == " 1234567891.230000" +string.format("%#20f", 1.23456789123e-05) == " 0.000012" +string.format("%#20.0f", 0) == " 0." +string.format("%#20.0f", 1) == " 1." +string.format("%#20.0f", -1) == " -1." +string.format("%#20.0f", 2) == " 2." +string.format("%#20.0f", -2) == " -2." +string.format("%#20.0f", 3) == " 3." +string.format("%#20.0f", -3) == " -3." +string.format("%#20.0f", nan) == " nan" +string.format("%#20.0f", inf) == " inf" +string.format("%#20.0f", -inf) == " -inf" +string.format("%#20.0f", 100) == " 100." +string.format("%#20.0f", 10000) == " 10000." +string.format("%#20.0f", 100000) == " 100000." +string.format("%#20.0f", 1000000) == " 1000000." +string.format("%#20.0f", 10000000) == " 10000000." +string.format("%#20.0f", 0.01) == " 0." +string.format("%#20.0f", 0.0001) == " 0." +string.format("%#20.0f", 1e-05) == " 0." +string.format("%#20.0f", 1e-06) == " 0." +string.format("%#20.0f", 1e-07) == " 0." +string.format("%#20.0f", 123.456) == " 123." +string.format("%#20.0f", 1234560000) == " 1234560000." +string.format("%#20.0f", 1.23456e-05) == " 0." +string.format("%#20.0f", 123.456789123) == " 123." +string.format("%#20.0f", 1234567891.23) == " 1234567891." +string.format("%#20.0f", 1.23456789123e-05) == " 0." +string.format("%#20.1f", 0) == " 0.0" +string.format("%#20.1f", 1) == " 1.0" +string.format("%#20.1f", -1) == " -1.0" +string.format("%#20.1f", 2) == " 2.0" +string.format("%#20.1f", -2) == " -2.0" +string.format("%#20.1f", 3) == " 3.0" +string.format("%#20.1f", -3) == " -3.0" +string.format("%#20.1f", nan) == " nan" +string.format("%#20.1f", inf) == " inf" +string.format("%#20.1f", -inf) == " -inf" +string.format("%#20.1f", 100) == " 100.0" +string.format("%#20.1f", 10000) == " 10000.0" +string.format("%#20.1f", 100000) == " 100000.0" +string.format("%#20.1f", 1000000) == " 1000000.0" +string.format("%#20.1f", 10000000) == " 10000000.0" +string.format("%#20.1f", 0.01) == " 0.0" +string.format("%#20.1f", 0.0001) == " 0.0" +string.format("%#20.1f", 1e-05) == " 0.0" +string.format("%#20.1f", 1e-06) == " 0.0" +string.format("%#20.1f", 1e-07) == " 0.0" +string.format("%#20.1f", 123.456) == " 123.5" +string.format("%#20.1f", 1234560000) == " 1234560000.0" +string.format("%#20.1f", 1.23456e-05) == " 0.0" +string.format("%#20.1f", 123.456789123) == " 123.5" +string.format("%#20.1f", 1234567891.23) == " 1234567891.2" +string.format("%#20.1f", 1.23456789123e-05) == " 0.0" +string.format("%#20.6f", 0) == " 0.000000" +string.format("%#20.6f", 1) == " 1.000000" +string.format("%#20.6f", -1) == " -1.000000" +string.format("%#20.6f", 2) == " 2.000000" +string.format("%#20.6f", -2) == " -2.000000" +string.format("%#20.6f", 3) == " 3.000000" +string.format("%#20.6f", -3) == " -3.000000" +string.format("%#20.6f", nan) == " nan" +string.format("%#20.6f", inf) == " inf" +string.format("%#20.6f", -inf) == " -inf" +string.format("%#20.6f", 100) == " 100.000000" +string.format("%#20.6f", 10000) == " 10000.000000" +string.format("%#20.6f", 100000) == " 100000.000000" +string.format("%#20.6f", 1000000) == " 1000000.000000" +string.format("%#20.6f", 10000000) == " 10000000.000000" +string.format("%#20.6f", 0.01) == " 0.010000" +string.format("%#20.6f", 0.0001) == " 0.000100" +string.format("%#20.6f", 1e-05) == " 0.000010" +string.format("%#20.6f", 1e-06) == " 0.000001" +string.format("%#20.6f", 1e-07) == " 0.000000" +string.format("%#20.6f", 123.456) == " 123.456000" +string.format("%#20.6f", 1234560000) == " 1234560000.000000" +string.format("%#20.6f", 1.23456e-05) == " 0.000012" +string.format("%#20.6f", 123.456789123) == " 123.456789" +string.format("%#20.6f", 1234567891.23) == " 1234567891.230000" +string.format("%#20.6f", 1.23456789123e-05) == " 0.000012" +string.format("%#+f", 0) == "+0.000000" +string.format("%#+f", 1) == "+1.000000" +string.format("%#+f", -1) == "-1.000000" +string.format("%#+f", 2) == "+2.000000" +string.format("%#+f", -2) == "-2.000000" +string.format("%#+f", 3) == "+3.000000" +string.format("%#+f", -3) == "-3.000000" +string.format("%#+f", nan) == "+nan" +string.format("%#+f", inf) == "+inf" +string.format("%#+f", -inf) == "-inf" +string.format("%#+f", 100) == "+100.000000" +string.format("%#+f", 10000) == "+10000.000000" +string.format("%#+f", 100000) == "+100000.000000" +string.format("%#+f", 1000000) == "+1000000.000000" +string.format("%#+f", 10000000) == "+10000000.000000" +string.format("%#+f", 0.01) == "+0.010000" +string.format("%#+f", 0.0001) == "+0.000100" +string.format("%#+f", 1e-05) == "+0.000010" +string.format("%#+f", 1e-06) == "+0.000001" +string.format("%#+f", 1e-07) == "+0.000000" +string.format("%#+f", 123.456) == "+123.456000" +string.format("%#+f", 1234560000) == "+1234560000.000000" +string.format("%#+f", 1.23456e-05) == "+0.000012" +string.format("%#+f", 123.456789123) == "+123.456789" +string.format("%#+f", 1234567891.23) == "+1234567891.230000" +string.format("%#+f", 1.23456789123e-05) == "+0.000012" +string.format("%#+.0f", 0) == "+0." +string.format("%#+.0f", 1) == "+1." +string.format("%#+.0f", -1) == "-1." +string.format("%#+.0f", 2) == "+2." +string.format("%#+.0f", -2) == "-2." +string.format("%#+.0f", 3) == "+3." +string.format("%#+.0f", -3) == "-3." +string.format("%#+.0f", 100) == "+100." +string.format("%#+.0f", 10000) == "+10000." +string.format("%#+.0f", 100000) == "+100000." +string.format("%#+.0f", 1000000) == "+1000000." +string.format("%#+.0f", 10000000) == "+10000000." +string.format("%#+.0f", 0.01) == "+0." +string.format("%#+.0f", 0.0001) == "+0." +string.format("%#+.0f", 1e-05) == "+0." +string.format("%#+.0f", 1e-06) == "+0." +string.format("%#+.0f", 1e-07) == "+0." +string.format("%#+.0f", 123.456) == "+123." +string.format("%#+.0f", 1234560000) == "+1234560000." +string.format("%#+.0f", 1.23456e-05) == "+0." +string.format("%#+.0f", 123.456789123) == "+123." +string.format("%#+.0f", 1234567891.23) == "+1234567891." +string.format("%#+.0f", 1.23456789123e-05) == "+0." +string.format("%#+.1f", 0) == "+0.0" +string.format("%#+.1f", 1) == "+1.0" +string.format("%#+.1f", -1) == "-1.0" +string.format("%#+.1f", 2) == "+2.0" +string.format("%#+.1f", -2) == "-2.0" +string.format("%#+.1f", 3) == "+3.0" +string.format("%#+.1f", -3) == "-3.0" +string.format("%#+.1f", 100) == "+100.0" +string.format("%#+.1f", 10000) == "+10000.0" +string.format("%#+.1f", 100000) == "+100000.0" +string.format("%#+.1f", 1000000) == "+1000000.0" +string.format("%#+.1f", 10000000) == "+10000000.0" +string.format("%#+.1f", 0.01) == "+0.0" +string.format("%#+.1f", 0.0001) == "+0.0" +string.format("%#+.1f", 1e-05) == "+0.0" +string.format("%#+.1f", 1e-06) == "+0.0" +string.format("%#+.1f", 1e-07) == "+0.0" +string.format("%#+.1f", 123.456) == "+123.5" +string.format("%#+.1f", 1234560000) == "+1234560000.0" +string.format("%#+.1f", 1.23456e-05) == "+0.0" +string.format("%#+.1f", 123.456789123) == "+123.5" +string.format("%#+.1f", 1234567891.23) == "+1234567891.2" +string.format("%#+.1f", 1.23456789123e-05) == "+0.0" +string.format("%#+1.0f", 0) == "+0." +string.format("%#+1.0f", 1) == "+1." +string.format("%#+1.0f", -1) == "-1." +string.format("%#+1.0f", 2) == "+2." +string.format("%#+1.0f", -2) == "-2." +string.format("%#+1.0f", 3) == "+3." +string.format("%#+1.0f", -3) == "-3." +string.format("%#+1.0f", 100) == "+100." +string.format("%#+1.0f", 10000) == "+10000." +string.format("%#+1.0f", 100000) == "+100000." +string.format("%#+1.0f", 1000000) == "+1000000." +string.format("%#+1.0f", 10000000) == "+10000000." +string.format("%#+1.0f", 0.01) == "+0." +string.format("%#+1.0f", 0.0001) == "+0." +string.format("%#+1.0f", 1e-05) == "+0." +string.format("%#+1.0f", 1e-06) == "+0." +string.format("%#+1.0f", 1e-07) == "+0." +string.format("%#+1.0f", 123.456) == "+123." +string.format("%#+1.0f", 1234560000) == "+1234560000." +string.format("%#+1.0f", 1.23456e-05) == "+0." +string.format("%#+1.0f", 123.456789123) == "+123." +string.format("%#+1.0f", 1234567891.23) == "+1234567891." +string.format("%#+1.0f", 1.23456789123e-05) == "+0." +string.format("%#+1.1f", 0) == "+0.0" +string.format("%#+1.1f", 1) == "+1.0" +string.format("%#+1.1f", -1) == "-1.0" +string.format("%#+1.1f", 2) == "+2.0" +string.format("%#+1.1f", -2) == "-2.0" +string.format("%#+1.1f", 3) == "+3.0" +string.format("%#+1.1f", -3) == "-3.0" +string.format("%#+1.1f", 100) == "+100.0" +string.format("%#+1.1f", 10000) == "+10000.0" +string.format("%#+1.1f", 100000) == "+100000.0" +string.format("%#+1.1f", 1000000) == "+1000000.0" +string.format("%#+1.1f", 10000000) == "+10000000.0" +string.format("%#+1.1f", 0.01) == "+0.0" +string.format("%#+1.1f", 0.0001) == "+0.0" +string.format("%#+1.1f", 1e-05) == "+0.0" +string.format("%#+1.1f", 1e-06) == "+0.0" +string.format("%#+1.1f", 1e-07) == "+0.0" +string.format("%#+1.1f", 123.456) == "+123.5" +string.format("%#+1.1f", 1234560000) == "+1234560000.0" +string.format("%#+1.1f", 1.23456e-05) == "+0.0" +string.format("%#+1.1f", 123.456789123) == "+123.5" +string.format("%#+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%#+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%#+2.0f", 0) == "+0." +string.format("%#+2.0f", 1) == "+1." +string.format("%#+2.0f", -1) == "-1." +string.format("%#+2.0f", 2) == "+2." +string.format("%#+2.0f", -2) == "-2." +string.format("%#+2.0f", 3) == "+3." +string.format("%#+2.0f", -3) == "-3." +string.format("%#+2.0f", 100) == "+100." +string.format("%#+2.0f", 10000) == "+10000." +string.format("%#+2.0f", 100000) == "+100000." +string.format("%#+2.0f", 1000000) == "+1000000." +string.format("%#+2.0f", 10000000) == "+10000000." +string.format("%#+2.0f", 0.01) == "+0." +string.format("%#+2.0f", 0.0001) == "+0." +string.format("%#+2.0f", 1e-05) == "+0." +string.format("%#+2.0f", 1e-06) == "+0." +string.format("%#+2.0f", 1e-07) == "+0." +string.format("%#+2.0f", 123.456) == "+123." +string.format("%#+2.0f", 1234560000) == "+1234560000." +string.format("%#+2.0f", 1.23456e-05) == "+0." +string.format("%#+2.0f", 123.456789123) == "+123." +string.format("%#+2.0f", 1234567891.23) == "+1234567891." +string.format("%#+2.0f", 1.23456789123e-05) == "+0." +string.format("%#+2.1f", 0) == "+0.0" +string.format("%#+2.1f", 1) == "+1.0" +string.format("%#+2.1f", -1) == "-1.0" +string.format("%#+2.1f", 2) == "+2.0" +string.format("%#+2.1f", -2) == "-2.0" +string.format("%#+2.1f", 3) == "+3.0" +string.format("%#+2.1f", -3) == "-3.0" +string.format("%#+2.1f", 100) == "+100.0" +string.format("%#+2.1f", 10000) == "+10000.0" +string.format("%#+2.1f", 100000) == "+100000.0" +string.format("%#+2.1f", 1000000) == "+1000000.0" +string.format("%#+2.1f", 10000000) == "+10000000.0" +string.format("%#+2.1f", 0.01) == "+0.0" +string.format("%#+2.1f", 0.0001) == "+0.0" +string.format("%#+2.1f", 1e-05) == "+0.0" +string.format("%#+2.1f", 1e-06) == "+0.0" +string.format("%#+2.1f", 1e-07) == "+0.0" +string.format("%#+2.1f", 123.456) == "+123.5" +string.format("%#+2.1f", 1234560000) == "+1234560000.0" +string.format("%#+2.1f", 1.23456e-05) == "+0.0" +string.format("%#+2.1f", 123.456789123) == "+123.5" +string.format("%#+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%#+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%#+6f", nan) == " +nan" +string.format("%#+6f", inf) == " +inf" +string.format("%#+6f", -inf) == " -inf" +string.format("%#+6.0f", 0) == " +0." +string.format("%#+6.0f", 1) == " +1." +string.format("%#+6.0f", -1) == " -1." +string.format("%#+6.0f", 2) == " +2." +string.format("%#+6.0f", -2) == " -2." +string.format("%#+6.0f", 3) == " +3." +string.format("%#+6.0f", -3) == " -3." +string.format("%#+6.0f", nan) == " +nan" +string.format("%#+6.0f", inf) == " +inf" +string.format("%#+6.0f", -inf) == " -inf" +string.format("%#+6.0f", 100) == " +100." +string.format("%#+6.0f", 10000) == "+10000." +string.format("%#+6.0f", 100000) == "+100000." +string.format("%#+6.0f", 1000000) == "+1000000." +string.format("%#+6.0f", 10000000) == "+10000000." +string.format("%#+6.0f", 0.01) == " +0." +string.format("%#+6.0f", 0.0001) == " +0." +string.format("%#+6.0f", 1e-05) == " +0." +string.format("%#+6.0f", 1e-06) == " +0." +string.format("%#+6.0f", 1e-07) == " +0." +string.format("%#+6.0f", 123.456) == " +123." +string.format("%#+6.0f", 1234560000) == "+1234560000." +string.format("%#+6.0f", 1.23456e-05) == " +0." +string.format("%#+6.0f", 123.456789123) == " +123." +string.format("%#+6.0f", 1234567891.23) == "+1234567891." +string.format("%#+6.0f", 1.23456789123e-05) == " +0." +string.format("%#+6.1f", 0) == " +0.0" +string.format("%#+6.1f", 1) == " +1.0" +string.format("%#+6.1f", -1) == " -1.0" +string.format("%#+6.1f", 2) == " +2.0" +string.format("%#+6.1f", -2) == " -2.0" +string.format("%#+6.1f", 3) == " +3.0" +string.format("%#+6.1f", -3) == " -3.0" +string.format("%#+6.1f", nan) == " +nan" +string.format("%#+6.1f", inf) == " +inf" +string.format("%#+6.1f", -inf) == " -inf" +string.format("%#+6.1f", 100) == "+100.0" +string.format("%#+6.1f", 10000) == "+10000.0" +string.format("%#+6.1f", 100000) == "+100000.0" +string.format("%#+6.1f", 1000000) == "+1000000.0" +string.format("%#+6.1f", 10000000) == "+10000000.0" +string.format("%#+6.1f", 0.01) == " +0.0" +string.format("%#+6.1f", 0.0001) == " +0.0" +string.format("%#+6.1f", 1e-05) == " +0.0" +string.format("%#+6.1f", 1e-06) == " +0.0" +string.format("%#+6.1f", 1e-07) == " +0.0" +string.format("%#+6.1f", 123.456) == "+123.5" +string.format("%#+6.1f", 1234560000) == "+1234560000.0" +string.format("%#+6.1f", 1.23456e-05) == " +0.0" +string.format("%#+6.1f", 123.456789123) == "+123.5" +string.format("%#+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%#+6.1f", 1.23456789123e-05) == " +0.0" +string.format("%#+6.6f", nan) == " +nan" +string.format("%#+6.6f", inf) == " +inf" +string.format("%#+6.6f", -inf) == " -inf" +string.format("%#+20f", 0) == " +0.000000" +string.format("%#+20f", 1) == " +1.000000" +string.format("%#+20f", -1) == " -1.000000" +string.format("%#+20f", 2) == " +2.000000" +string.format("%#+20f", -2) == " -2.000000" +string.format("%#+20f", 3) == " +3.000000" +string.format("%#+20f", -3) == " -3.000000" +string.format("%#+20f", nan) == " +nan" +string.format("%#+20f", inf) == " +inf" +string.format("%#+20f", -inf) == " -inf" +string.format("%#+20f", 100) == " +100.000000" +string.format("%#+20f", 10000) == " +10000.000000" +string.format("%#+20f", 100000) == " +100000.000000" +string.format("%#+20f", 1000000) == " +1000000.000000" +string.format("%#+20f", 10000000) == " +10000000.000000" +string.format("%#+20f", 0.01) == " +0.010000" +string.format("%#+20f", 0.0001) == " +0.000100" +string.format("%#+20f", 1e-05) == " +0.000010" +string.format("%#+20f", 1e-06) == " +0.000001" +string.format("%#+20f", 1e-07) == " +0.000000" +string.format("%#+20f", 123.456) == " +123.456000" +string.format("%#+20f", 1234560000) == " +1234560000.000000" +string.format("%#+20f", 1.23456e-05) == " +0.000012" +string.format("%#+20f", 123.456789123) == " +123.456789" +string.format("%#+20f", 1234567891.23) == " +1234567891.230000" +string.format("%#+20f", 1.23456789123e-05) == " +0.000012" +string.format("%#+20.0f", 0) == " +0." +string.format("%#+20.0f", 1) == " +1." +string.format("%#+20.0f", -1) == " -1." +string.format("%#+20.0f", 2) == " +2." +string.format("%#+20.0f", -2) == " -2." +string.format("%#+20.0f", 3) == " +3." +string.format("%#+20.0f", -3) == " -3." +string.format("%#+20.0f", nan) == " +nan" +string.format("%#+20.0f", inf) == " +inf" +string.format("%#+20.0f", -inf) == " -inf" +string.format("%#+20.0f", 100) == " +100." +string.format("%#+20.0f", 10000) == " +10000." +string.format("%#+20.0f", 100000) == " +100000." +string.format("%#+20.0f", 1000000) == " +1000000." +string.format("%#+20.0f", 10000000) == " +10000000." +string.format("%#+20.0f", 0.01) == " +0." +string.format("%#+20.0f", 0.0001) == " +0." +string.format("%#+20.0f", 1e-05) == " +0." +string.format("%#+20.0f", 1e-06) == " +0." +string.format("%#+20.0f", 1e-07) == " +0." +string.format("%#+20.0f", 123.456) == " +123." +string.format("%#+20.0f", 1234560000) == " +1234560000." +string.format("%#+20.0f", 1.23456e-05) == " +0." +string.format("%#+20.0f", 123.456789123) == " +123." +string.format("%#+20.0f", 1234567891.23) == " +1234567891." +string.format("%#+20.0f", 1.23456789123e-05) == " +0." +string.format("%#+20.1f", 0) == " +0.0" +string.format("%#+20.1f", 1) == " +1.0" +string.format("%#+20.1f", -1) == " -1.0" +string.format("%#+20.1f", 2) == " +2.0" +string.format("%#+20.1f", -2) == " -2.0" +string.format("%#+20.1f", 3) == " +3.0" +string.format("%#+20.1f", -3) == " -3.0" +string.format("%#+20.1f", nan) == " +nan" +string.format("%#+20.1f", inf) == " +inf" +string.format("%#+20.1f", -inf) == " -inf" +string.format("%#+20.1f", 100) == " +100.0" +string.format("%#+20.1f", 10000) == " +10000.0" +string.format("%#+20.1f", 100000) == " +100000.0" +string.format("%#+20.1f", 1000000) == " +1000000.0" +string.format("%#+20.1f", 10000000) == " +10000000.0" +string.format("%#+20.1f", 0.01) == " +0.0" +string.format("%#+20.1f", 0.0001) == " +0.0" +string.format("%#+20.1f", 1e-05) == " +0.0" +string.format("%#+20.1f", 1e-06) == " +0.0" +string.format("%#+20.1f", 1e-07) == " +0.0" +string.format("%#+20.1f", 123.456) == " +123.5" +string.format("%#+20.1f", 1234560000) == " +1234560000.0" +string.format("%#+20.1f", 1.23456e-05) == " +0.0" +string.format("%#+20.1f", 123.456789123) == " +123.5" +string.format("%#+20.1f", 1234567891.23) == " +1234567891.2" +string.format("%#+20.1f", 1.23456789123e-05) == " +0.0" +string.format("%#+20.6f", 0) == " +0.000000" +string.format("%#+20.6f", 1) == " +1.000000" +string.format("%#+20.6f", -1) == " -1.000000" +string.format("%#+20.6f", 2) == " +2.000000" +string.format("%#+20.6f", -2) == " -2.000000" +string.format("%#+20.6f", 3) == " +3.000000" +string.format("%#+20.6f", -3) == " -3.000000" +string.format("%#+20.6f", nan) == " +nan" +string.format("%#+20.6f", inf) == " +inf" +string.format("%#+20.6f", -inf) == " -inf" +string.format("%#+20.6f", 100) == " +100.000000" +string.format("%#+20.6f", 10000) == " +10000.000000" +string.format("%#+20.6f", 100000) == " +100000.000000" +string.format("%#+20.6f", 1000000) == " +1000000.000000" +string.format("%#+20.6f", 10000000) == " +10000000.000000" +string.format("%#+20.6f", 0.01) == " +0.010000" +string.format("%#+20.6f", 0.0001) == " +0.000100" +string.format("%#+20.6f", 1e-05) == " +0.000010" +string.format("%#+20.6f", 1e-06) == " +0.000001" +string.format("%#+20.6f", 1e-07) == " +0.000000" +string.format("%#+20.6f", 123.456) == " +123.456000" +string.format("%#+20.6f", 1234560000) == " +1234560000.000000" +string.format("%#+20.6f", 1.23456e-05) == " +0.000012" +string.format("%#+20.6f", 123.456789123) == " +123.456789" +string.format("%#+20.6f", 1234567891.23) == " +1234567891.230000" +string.format("%#+20.6f", 1.23456789123e-05) == " +0.000012" +string.format("%#-f", 0) == "0.000000" +string.format("%#-f", 1) == "1.000000" +string.format("%#-f", -1) == "-1.000000" +string.format("%#-f", 2) == "2.000000" +string.format("%#-f", -2) == "-2.000000" +string.format("%#-f", 3) == "3.000000" +string.format("%#-f", -3) == "-3.000000" +string.format("%#-f", nan) == "nan" +string.format("%#-f", inf) == "inf" +string.format("%#-f", -inf) == "-inf" +string.format("%#-f", 100) == "100.000000" +string.format("%#-f", 10000) == "10000.000000" +string.format("%#-f", 100000) == "100000.000000" +string.format("%#-f", 1000000) == "1000000.000000" +string.format("%#-f", 10000000) == "10000000.000000" +string.format("%#-f", 0.01) == "0.010000" +string.format("%#-f", 0.0001) == "0.000100" +string.format("%#-f", 1e-05) == "0.000010" +string.format("%#-f", 1e-06) == "0.000001" +string.format("%#-f", 1e-07) == "0.000000" +string.format("%#-f", 123.456) == "123.456000" +string.format("%#-f", 1234560000) == "1234560000.000000" +string.format("%#-f", 1.23456e-05) == "0.000012" +string.format("%#-f", 123.456789123) == "123.456789" +string.format("%#-f", 1234567891.23) == "1234567891.230000" +string.format("%#-f", 1.23456789123e-05) == "0.000012" +string.format("%#-.0f", 0) == "0." +string.format("%#-.0f", 1) == "1." +string.format("%#-.0f", -1) == "-1." +string.format("%#-.0f", 2) == "2." +string.format("%#-.0f", -2) == "-2." +string.format("%#-.0f", 3) == "3." +string.format("%#-.0f", -3) == "-3." +string.format("%#-.0f", 100) == "100." +string.format("%#-.0f", 10000) == "10000." +string.format("%#-.0f", 100000) == "100000." +string.format("%#-.0f", 1000000) == "1000000." +string.format("%#-.0f", 10000000) == "10000000." +string.format("%#-.0f", 0.01) == "0." +string.format("%#-.0f", 0.0001) == "0." +string.format("%#-.0f", 1e-05) == "0." +string.format("%#-.0f", 1e-06) == "0." +string.format("%#-.0f", 1e-07) == "0." +string.format("%#-.0f", 123.456) == "123." +string.format("%#-.0f", 1234560000) == "1234560000." +string.format("%#-.0f", 1.23456e-05) == "0." +string.format("%#-.0f", 123.456789123) == "123." +string.format("%#-.0f", 1234567891.23) == "1234567891." +string.format("%#-.0f", 1.23456789123e-05) == "0." +string.format("%#-.1f", 0) == "0.0" +string.format("%#-.1f", 1) == "1.0" +string.format("%#-.1f", -1) == "-1.0" +string.format("%#-.1f", 2) == "2.0" +string.format("%#-.1f", -2) == "-2.0" +string.format("%#-.1f", 3) == "3.0" +string.format("%#-.1f", -3) == "-3.0" +string.format("%#-.1f", 100) == "100.0" +string.format("%#-.1f", 10000) == "10000.0" +string.format("%#-.1f", 100000) == "100000.0" +string.format("%#-.1f", 1000000) == "1000000.0" +string.format("%#-.1f", 10000000) == "10000000.0" +string.format("%#-.1f", 0.01) == "0.0" +string.format("%#-.1f", 0.0001) == "0.0" +string.format("%#-.1f", 1e-05) == "0.0" +string.format("%#-.1f", 1e-06) == "0.0" +string.format("%#-.1f", 1e-07) == "0.0" +string.format("%#-.1f", 123.456) == "123.5" +string.format("%#-.1f", 1234560000) == "1234560000.0" +string.format("%#-.1f", 1.23456e-05) == "0.0" +string.format("%#-.1f", 123.456789123) == "123.5" +string.format("%#-.1f", 1234567891.23) == "1234567891.2" +string.format("%#-.1f", 1.23456789123e-05) == "0.0" +string.format("%#-1.0f", 0) == "0." +string.format("%#-1.0f", 1) == "1." +string.format("%#-1.0f", -1) == "-1." +string.format("%#-1.0f", 2) == "2." +string.format("%#-1.0f", -2) == "-2." +string.format("%#-1.0f", 3) == "3." +string.format("%#-1.0f", -3) == "-3." +string.format("%#-1.0f", 100) == "100." +string.format("%#-1.0f", 10000) == "10000." +string.format("%#-1.0f", 100000) == "100000." +string.format("%#-1.0f", 1000000) == "1000000." +string.format("%#-1.0f", 10000000) == "10000000." +string.format("%#-1.0f", 0.01) == "0." +string.format("%#-1.0f", 0.0001) == "0." +string.format("%#-1.0f", 1e-05) == "0." +string.format("%#-1.0f", 1e-06) == "0." +string.format("%#-1.0f", 1e-07) == "0." +string.format("%#-1.0f", 123.456) == "123." +string.format("%#-1.0f", 1234560000) == "1234560000." +string.format("%#-1.0f", 1.23456e-05) == "0." +string.format("%#-1.0f", 123.456789123) == "123." +string.format("%#-1.0f", 1234567891.23) == "1234567891." +string.format("%#-1.0f", 1.23456789123e-05) == "0." +string.format("%#-1.1f", 0) == "0.0" +string.format("%#-1.1f", 1) == "1.0" +string.format("%#-1.1f", -1) == "-1.0" +string.format("%#-1.1f", 2) == "2.0" +string.format("%#-1.1f", -2) == "-2.0" +string.format("%#-1.1f", 3) == "3.0" +string.format("%#-1.1f", -3) == "-3.0" +string.format("%#-1.1f", 100) == "100.0" +string.format("%#-1.1f", 10000) == "10000.0" +string.format("%#-1.1f", 100000) == "100000.0" +string.format("%#-1.1f", 1000000) == "1000000.0" +string.format("%#-1.1f", 10000000) == "10000000.0" +string.format("%#-1.1f", 0.01) == "0.0" +string.format("%#-1.1f", 0.0001) == "0.0" +string.format("%#-1.1f", 1e-05) == "0.0" +string.format("%#-1.1f", 1e-06) == "0.0" +string.format("%#-1.1f", 1e-07) == "0.0" +string.format("%#-1.1f", 123.456) == "123.5" +string.format("%#-1.1f", 1234560000) == "1234560000.0" +string.format("%#-1.1f", 1.23456e-05) == "0.0" +string.format("%#-1.1f", 123.456789123) == "123.5" +string.format("%#-1.1f", 1234567891.23) == "1234567891.2" +string.format("%#-1.1f", 1.23456789123e-05) == "0.0" +string.format("%#-2.0f", 0) == "0." +string.format("%#-2.0f", 1) == "1." +string.format("%#-2.0f", -1) == "-1." +string.format("%#-2.0f", 2) == "2." +string.format("%#-2.0f", -2) == "-2." +string.format("%#-2.0f", 3) == "3." +string.format("%#-2.0f", -3) == "-3." +string.format("%#-2.0f", 100) == "100." +string.format("%#-2.0f", 10000) == "10000." +string.format("%#-2.0f", 100000) == "100000." +string.format("%#-2.0f", 1000000) == "1000000." +string.format("%#-2.0f", 10000000) == "10000000." +string.format("%#-2.0f", 0.01) == "0." +string.format("%#-2.0f", 0.0001) == "0." +string.format("%#-2.0f", 1e-05) == "0." +string.format("%#-2.0f", 1e-06) == "0." +string.format("%#-2.0f", 1e-07) == "0." +string.format("%#-2.0f", 123.456) == "123." +string.format("%#-2.0f", 1234560000) == "1234560000." +string.format("%#-2.0f", 1.23456e-05) == "0." +string.format("%#-2.0f", 123.456789123) == "123." +string.format("%#-2.0f", 1234567891.23) == "1234567891." +string.format("%#-2.0f", 1.23456789123e-05) == "0." +string.format("%#-2.1f", 0) == "0.0" +string.format("%#-2.1f", 1) == "1.0" +string.format("%#-2.1f", -1) == "-1.0" +string.format("%#-2.1f", 2) == "2.0" +string.format("%#-2.1f", -2) == "-2.0" +string.format("%#-2.1f", 3) == "3.0" +string.format("%#-2.1f", -3) == "-3.0" +string.format("%#-2.1f", 100) == "100.0" +string.format("%#-2.1f", 10000) == "10000.0" +string.format("%#-2.1f", 100000) == "100000.0" +string.format("%#-2.1f", 1000000) == "1000000.0" +string.format("%#-2.1f", 10000000) == "10000000.0" +string.format("%#-2.1f", 0.01) == "0.0" +string.format("%#-2.1f", 0.0001) == "0.0" +string.format("%#-2.1f", 1e-05) == "0.0" +string.format("%#-2.1f", 1e-06) == "0.0" +string.format("%#-2.1f", 1e-07) == "0.0" +string.format("%#-2.1f", 123.456) == "123.5" +string.format("%#-2.1f", 1234560000) == "1234560000.0" +string.format("%#-2.1f", 1.23456e-05) == "0.0" +string.format("%#-2.1f", 123.456789123) == "123.5" +string.format("%#-2.1f", 1234567891.23) == "1234567891.2" +string.format("%#-2.1f", 1.23456789123e-05) == "0.0" +string.format("%#-6f", nan) == "nan " +string.format("%#-6f", inf) == "inf " +string.format("%#-6f", -inf) == "-inf " +string.format("%#-6.0f", 0) == "0. " +string.format("%#-6.0f", 1) == "1. " +string.format("%#-6.0f", -1) == "-1. " +string.format("%#-6.0f", 2) == "2. " +string.format("%#-6.0f", -2) == "-2. " +string.format("%#-6.0f", 3) == "3. " +string.format("%#-6.0f", -3) == "-3. " +string.format("%#-6.0f", nan) == "nan " +string.format("%#-6.0f", inf) == "inf " +string.format("%#-6.0f", -inf) == "-inf " +string.format("%#-6.0f", 100) == "100. " +string.format("%#-6.0f", 10000) == "10000." +string.format("%#-6.0f", 100000) == "100000." +string.format("%#-6.0f", 1000000) == "1000000." +string.format("%#-6.0f", 10000000) == "10000000." +string.format("%#-6.0f", 0.01) == "0. " +string.format("%#-6.0f", 0.0001) == "0. " +string.format("%#-6.0f", 1e-05) == "0. " +string.format("%#-6.0f", 1e-06) == "0. " +string.format("%#-6.0f", 1e-07) == "0. " +string.format("%#-6.0f", 123.456) == "123. " +string.format("%#-6.0f", 1234560000) == "1234560000." +string.format("%#-6.0f", 1.23456e-05) == "0. " +string.format("%#-6.0f", 123.456789123) == "123. " +string.format("%#-6.0f", 1234567891.23) == "1234567891." +string.format("%#-6.0f", 1.23456789123e-05) == "0. " +string.format("%#-6.1f", 0) == "0.0 " +string.format("%#-6.1f", 1) == "1.0 " +string.format("%#-6.1f", -1) == "-1.0 " +string.format("%#-6.1f", 2) == "2.0 " +string.format("%#-6.1f", -2) == "-2.0 " +string.format("%#-6.1f", 3) == "3.0 " +string.format("%#-6.1f", -3) == "-3.0 " +string.format("%#-6.1f", nan) == "nan " +string.format("%#-6.1f", inf) == "inf " +string.format("%#-6.1f", -inf) == "-inf " +string.format("%#-6.1f", 100) == "100.0 " +string.format("%#-6.1f", 10000) == "10000.0" +string.format("%#-6.1f", 100000) == "100000.0" +string.format("%#-6.1f", 1000000) == "1000000.0" +string.format("%#-6.1f", 10000000) == "10000000.0" +string.format("%#-6.1f", 0.01) == "0.0 " +string.format("%#-6.1f", 0.0001) == "0.0 " +string.format("%#-6.1f", 1e-05) == "0.0 " +string.format("%#-6.1f", 1e-06) == "0.0 " +string.format("%#-6.1f", 1e-07) == "0.0 " +string.format("%#-6.1f", 123.456) == "123.5 " +string.format("%#-6.1f", 1234560000) == "1234560000.0" +string.format("%#-6.1f", 1.23456e-05) == "0.0 " +string.format("%#-6.1f", 123.456789123) == "123.5 " +string.format("%#-6.1f", 1234567891.23) == "1234567891.2" +string.format("%#-6.1f", 1.23456789123e-05) == "0.0 " +string.format("%#-6.6f", nan) == "nan " +string.format("%#-6.6f", inf) == "inf " +string.format("%#-6.6f", -inf) == "-inf " +string.format("%#-20f", 0) == "0.000000 " +string.format("%#-20f", 1) == "1.000000 " +string.format("%#-20f", -1) == "-1.000000 " +string.format("%#-20f", 2) == "2.000000 " +string.format("%#-20f", -2) == "-2.000000 " +string.format("%#-20f", 3) == "3.000000 " +string.format("%#-20f", -3) == "-3.000000 " +string.format("%#-20f", nan) == "nan " +string.format("%#-20f", inf) == "inf " +string.format("%#-20f", -inf) == "-inf " +string.format("%#-20f", 100) == "100.000000 " +string.format("%#-20f", 10000) == "10000.000000 " +string.format("%#-20f", 100000) == "100000.000000 " +string.format("%#-20f", 1000000) == "1000000.000000 " +string.format("%#-20f", 10000000) == "10000000.000000 " +string.format("%#-20f", 0.01) == "0.010000 " +string.format("%#-20f", 0.0001) == "0.000100 " +string.format("%#-20f", 1e-05) == "0.000010 " +string.format("%#-20f", 1e-06) == "0.000001 " +string.format("%#-20f", 1e-07) == "0.000000 " +string.format("%#-20f", 123.456) == "123.456000 " +string.format("%#-20f", 1234560000) == "1234560000.000000 " +string.format("%#-20f", 1.23456e-05) == "0.000012 " +string.format("%#-20f", 123.456789123) == "123.456789 " +string.format("%#-20f", 1234567891.23) == "1234567891.230000 " +string.format("%#-20f", 1.23456789123e-05) == "0.000012 " +string.format("%#-20.0f", 0) == "0. " +string.format("%#-20.0f", 1) == "1. " +string.format("%#-20.0f", -1) == "-1. " +string.format("%#-20.0f", 2) == "2. " +string.format("%#-20.0f", -2) == "-2. " +string.format("%#-20.0f", 3) == "3. " +string.format("%#-20.0f", -3) == "-3. " +string.format("%#-20.0f", nan) == "nan " +string.format("%#-20.0f", inf) == "inf " +string.format("%#-20.0f", -inf) == "-inf " +string.format("%#-20.0f", 100) == "100. " +string.format("%#-20.0f", 10000) == "10000. " +string.format("%#-20.0f", 100000) == "100000. " +string.format("%#-20.0f", 1000000) == "1000000. " +string.format("%#-20.0f", 10000000) == "10000000. " +string.format("%#-20.0f", 0.01) == "0. " +string.format("%#-20.0f", 0.0001) == "0. " +string.format("%#-20.0f", 1e-05) == "0. " +string.format("%#-20.0f", 1e-06) == "0. " +string.format("%#-20.0f", 1e-07) == "0. " +string.format("%#-20.0f", 123.456) == "123. " +string.format("%#-20.0f", 1234560000) == "1234560000. " +string.format("%#-20.0f", 1.23456e-05) == "0. " +string.format("%#-20.0f", 123.456789123) == "123. " +string.format("%#-20.0f", 1234567891.23) == "1234567891. " +string.format("%#-20.0f", 1.23456789123e-05) == "0. " +string.format("%#-20.1f", 0) == "0.0 " +string.format("%#-20.1f", 1) == "1.0 " +string.format("%#-20.1f", -1) == "-1.0 " +string.format("%#-20.1f", 2) == "2.0 " +string.format("%#-20.1f", -2) == "-2.0 " +string.format("%#-20.1f", 3) == "3.0 " +string.format("%#-20.1f", -3) == "-3.0 " +string.format("%#-20.1f", nan) == "nan " +string.format("%#-20.1f", inf) == "inf " +string.format("%#-20.1f", -inf) == "-inf " +string.format("%#-20.1f", 100) == "100.0 " +string.format("%#-20.1f", 10000) == "10000.0 " +string.format("%#-20.1f", 100000) == "100000.0 " +string.format("%#-20.1f", 1000000) == "1000000.0 " +string.format("%#-20.1f", 10000000) == "10000000.0 " +string.format("%#-20.1f", 0.01) == "0.0 " +string.format("%#-20.1f", 0.0001) == "0.0 " +string.format("%#-20.1f", 1e-05) == "0.0 " +string.format("%#-20.1f", 1e-06) == "0.0 " +string.format("%#-20.1f", 1e-07) == "0.0 " +string.format("%#-20.1f", 123.456) == "123.5 " +string.format("%#-20.1f", 1234560000) == "1234560000.0 " +string.format("%#-20.1f", 1.23456e-05) == "0.0 " +string.format("%#-20.1f", 123.456789123) == "123.5 " +string.format("%#-20.1f", 1234567891.23) == "1234567891.2 " +string.format("%#-20.1f", 1.23456789123e-05) == "0.0 " +string.format("%#-20.6f", 0) == "0.000000 " +string.format("%#-20.6f", 1) == "1.000000 " +string.format("%#-20.6f", -1) == "-1.000000 " +string.format("%#-20.6f", 2) == "2.000000 " +string.format("%#-20.6f", -2) == "-2.000000 " +string.format("%#-20.6f", 3) == "3.000000 " +string.format("%#-20.6f", -3) == "-3.000000 " +string.format("%#-20.6f", nan) == "nan " +string.format("%#-20.6f", inf) == "inf " +string.format("%#-20.6f", -inf) == "-inf " +string.format("%#-20.6f", 100) == "100.000000 " +string.format("%#-20.6f", 10000) == "10000.000000 " +string.format("%#-20.6f", 100000) == "100000.000000 " +string.format("%#-20.6f", 1000000) == "1000000.000000 " +string.format("%#-20.6f", 10000000) == "10000000.000000 " +string.format("%#-20.6f", 0.01) == "0.010000 " +string.format("%#-20.6f", 0.0001) == "0.000100 " +string.format("%#-20.6f", 1e-05) == "0.000010 " +string.format("%#-20.6f", 1e-06) == "0.000001 " +string.format("%#-20.6f", 1e-07) == "0.000000 " +string.format("%#-20.6f", 123.456) == "123.456000 " +string.format("%#-20.6f", 1234560000) == "1234560000.000000 " +string.format("%#-20.6f", 1.23456e-05) == "0.000012 " +string.format("%#-20.6f", 123.456789123) == "123.456789 " +string.format("%#-20.6f", 1234567891.23) == "1234567891.230000 " +string.format("%#-20.6f", 1.23456789123e-05) == "0.000012 " +string.format("%#-+f", 0) == "+0.000000" +string.format("%#-+f", 1) == "+1.000000" +string.format("%#-+f", -1) == "-1.000000" +string.format("%#-+f", 2) == "+2.000000" +string.format("%#-+f", -2) == "-2.000000" +string.format("%#-+f", 3) == "+3.000000" +string.format("%#-+f", -3) == "-3.000000" +string.format("%#-+f", nan) == "+nan" +string.format("%#-+f", inf) == "+inf" +string.format("%#-+f", -inf) == "-inf" +string.format("%#-+f", 100) == "+100.000000" +string.format("%#-+f", 10000) == "+10000.000000" +string.format("%#-+f", 100000) == "+100000.000000" +string.format("%#-+f", 1000000) == "+1000000.000000" +string.format("%#-+f", 10000000) == "+10000000.000000" +string.format("%#-+f", 0.01) == "+0.010000" +string.format("%#-+f", 0.0001) == "+0.000100" +string.format("%#-+f", 1e-05) == "+0.000010" +string.format("%#-+f", 1e-06) == "+0.000001" +string.format("%#-+f", 1e-07) == "+0.000000" +string.format("%#-+f", 123.456) == "+123.456000" +string.format("%#-+f", 1234560000) == "+1234560000.000000" +string.format("%#-+f", 1.23456e-05) == "+0.000012" +string.format("%#-+f", 123.456789123) == "+123.456789" +string.format("%#-+f", 1234567891.23) == "+1234567891.230000" +string.format("%#-+f", 1.23456789123e-05) == "+0.000012" +string.format("%#-+.0f", 0) == "+0." +string.format("%#-+.0f", 1) == "+1." +string.format("%#-+.0f", -1) == "-1." +string.format("%#-+.0f", 2) == "+2." +string.format("%#-+.0f", -2) == "-2." +string.format("%#-+.0f", 3) == "+3." +string.format("%#-+.0f", -3) == "-3." +string.format("%#-+.0f", 100) == "+100." +string.format("%#-+.0f", 10000) == "+10000." +string.format("%#-+.0f", 100000) == "+100000." +string.format("%#-+.0f", 1000000) == "+1000000." +string.format("%#-+.0f", 10000000) == "+10000000." +string.format("%#-+.0f", 0.01) == "+0." +string.format("%#-+.0f", 0.0001) == "+0." +string.format("%#-+.0f", 1e-05) == "+0." +string.format("%#-+.0f", 1e-06) == "+0." +string.format("%#-+.0f", 1e-07) == "+0." +string.format("%#-+.0f", 123.456) == "+123." +string.format("%#-+.0f", 1234560000) == "+1234560000." +string.format("%#-+.0f", 1.23456e-05) == "+0." +string.format("%#-+.0f", 123.456789123) == "+123." +string.format("%#-+.0f", 1234567891.23) == "+1234567891." +string.format("%#-+.0f", 1.23456789123e-05) == "+0." +string.format("%#-+.1f", 0) == "+0.0" +string.format("%#-+.1f", 1) == "+1.0" +string.format("%#-+.1f", -1) == "-1.0" +string.format("%#-+.1f", 2) == "+2.0" +string.format("%#-+.1f", -2) == "-2.0" +string.format("%#-+.1f", 3) == "+3.0" +string.format("%#-+.1f", -3) == "-3.0" +string.format("%#-+.1f", 100) == "+100.0" +string.format("%#-+.1f", 10000) == "+10000.0" +string.format("%#-+.1f", 100000) == "+100000.0" +string.format("%#-+.1f", 1000000) == "+1000000.0" +string.format("%#-+.1f", 10000000) == "+10000000.0" +string.format("%#-+.1f", 0.01) == "+0.0" +string.format("%#-+.1f", 0.0001) == "+0.0" +string.format("%#-+.1f", 1e-05) == "+0.0" +string.format("%#-+.1f", 1e-06) == "+0.0" +string.format("%#-+.1f", 1e-07) == "+0.0" +string.format("%#-+.1f", 123.456) == "+123.5" +string.format("%#-+.1f", 1234560000) == "+1234560000.0" +string.format("%#-+.1f", 1.23456e-05) == "+0.0" +string.format("%#-+.1f", 123.456789123) == "+123.5" +string.format("%#-+.1f", 1234567891.23) == "+1234567891.2" +string.format("%#-+.1f", 1.23456789123e-05) == "+0.0" +string.format("%#-+1.0f", 0) == "+0." +string.format("%#-+1.0f", 1) == "+1." +string.format("%#-+1.0f", -1) == "-1." +string.format("%#-+1.0f", 2) == "+2." +string.format("%#-+1.0f", -2) == "-2." +string.format("%#-+1.0f", 3) == "+3." +string.format("%#-+1.0f", -3) == "-3." +string.format("%#-+1.0f", 100) == "+100." +string.format("%#-+1.0f", 10000) == "+10000." +string.format("%#-+1.0f", 100000) == "+100000." +string.format("%#-+1.0f", 1000000) == "+1000000." +string.format("%#-+1.0f", 10000000) == "+10000000." +string.format("%#-+1.0f", 0.01) == "+0." +string.format("%#-+1.0f", 0.0001) == "+0." +string.format("%#-+1.0f", 1e-05) == "+0." +string.format("%#-+1.0f", 1e-06) == "+0." +string.format("%#-+1.0f", 1e-07) == "+0." +string.format("%#-+1.0f", 123.456) == "+123." +string.format("%#-+1.0f", 1234560000) == "+1234560000." +string.format("%#-+1.0f", 1.23456e-05) == "+0." +string.format("%#-+1.0f", 123.456789123) == "+123." +string.format("%#-+1.0f", 1234567891.23) == "+1234567891." +string.format("%#-+1.0f", 1.23456789123e-05) == "+0." +string.format("%#-+1.1f", 0) == "+0.0" +string.format("%#-+1.1f", 1) == "+1.0" +string.format("%#-+1.1f", -1) == "-1.0" +string.format("%#-+1.1f", 2) == "+2.0" +string.format("%#-+1.1f", -2) == "-2.0" +string.format("%#-+1.1f", 3) == "+3.0" +string.format("%#-+1.1f", -3) == "-3.0" +string.format("%#-+1.1f", 100) == "+100.0" +string.format("%#-+1.1f", 10000) == "+10000.0" +string.format("%#-+1.1f", 100000) == "+100000.0" +string.format("%#-+1.1f", 1000000) == "+1000000.0" +string.format("%#-+1.1f", 10000000) == "+10000000.0" +string.format("%#-+1.1f", 0.01) == "+0.0" +string.format("%#-+1.1f", 0.0001) == "+0.0" +string.format("%#-+1.1f", 1e-05) == "+0.0" +string.format("%#-+1.1f", 1e-06) == "+0.0" +string.format("%#-+1.1f", 1e-07) == "+0.0" +string.format("%#-+1.1f", 123.456) == "+123.5" +string.format("%#-+1.1f", 1234560000) == "+1234560000.0" +string.format("%#-+1.1f", 1.23456e-05) == "+0.0" +string.format("%#-+1.1f", 123.456789123) == "+123.5" +string.format("%#-+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%#-+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%#-+2.0f", 0) == "+0." +string.format("%#-+2.0f", 1) == "+1." +string.format("%#-+2.0f", -1) == "-1." +string.format("%#-+2.0f", 2) == "+2." +string.format("%#-+2.0f", -2) == "-2." +string.format("%#-+2.0f", 3) == "+3." +string.format("%#-+2.0f", -3) == "-3." +string.format("%#-+2.0f", 100) == "+100." +string.format("%#-+2.0f", 10000) == "+10000." +string.format("%#-+2.0f", 100000) == "+100000." +string.format("%#-+2.0f", 1000000) == "+1000000." +string.format("%#-+2.0f", 10000000) == "+10000000." +string.format("%#-+2.0f", 0.01) == "+0." +string.format("%#-+2.0f", 0.0001) == "+0." +string.format("%#-+2.0f", 1e-05) == "+0." +string.format("%#-+2.0f", 1e-06) == "+0." +string.format("%#-+2.0f", 1e-07) == "+0." +string.format("%#-+2.0f", 123.456) == "+123." +string.format("%#-+2.0f", 1234560000) == "+1234560000." +string.format("%#-+2.0f", 1.23456e-05) == "+0." +string.format("%#-+2.0f", 123.456789123) == "+123." +string.format("%#-+2.0f", 1234567891.23) == "+1234567891." +string.format("%#-+2.0f", 1.23456789123e-05) == "+0." +string.format("%#-+2.1f", 0) == "+0.0" +string.format("%#-+2.1f", 1) == "+1.0" +string.format("%#-+2.1f", -1) == "-1.0" +string.format("%#-+2.1f", 2) == "+2.0" +string.format("%#-+2.1f", -2) == "-2.0" +string.format("%#-+2.1f", 3) == "+3.0" +string.format("%#-+2.1f", -3) == "-3.0" +string.format("%#-+2.1f", 100) == "+100.0" +string.format("%#-+2.1f", 10000) == "+10000.0" +string.format("%#-+2.1f", 100000) == "+100000.0" +string.format("%#-+2.1f", 1000000) == "+1000000.0" +string.format("%#-+2.1f", 10000000) == "+10000000.0" +string.format("%#-+2.1f", 0.01) == "+0.0" +string.format("%#-+2.1f", 0.0001) == "+0.0" +string.format("%#-+2.1f", 1e-05) == "+0.0" +string.format("%#-+2.1f", 1e-06) == "+0.0" +string.format("%#-+2.1f", 1e-07) == "+0.0" +string.format("%#-+2.1f", 123.456) == "+123.5" +string.format("%#-+2.1f", 1234560000) == "+1234560000.0" +string.format("%#-+2.1f", 1.23456e-05) == "+0.0" +string.format("%#-+2.1f", 123.456789123) == "+123.5" +string.format("%#-+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%#-+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%#-+6f", nan) == "+nan " +string.format("%#-+6f", inf) == "+inf " +string.format("%#-+6f", -inf) == "-inf " +string.format("%#-+6.0f", 0) == "+0. " +string.format("%#-+6.0f", 1) == "+1. " +string.format("%#-+6.0f", -1) == "-1. " +string.format("%#-+6.0f", 2) == "+2. " +string.format("%#-+6.0f", -2) == "-2. " +string.format("%#-+6.0f", 3) == "+3. " +string.format("%#-+6.0f", -3) == "-3. " +string.format("%#-+6.0f", nan) == "+nan " +string.format("%#-+6.0f", inf) == "+inf " +string.format("%#-+6.0f", -inf) == "-inf " +string.format("%#-+6.0f", 100) == "+100. " +string.format("%#-+6.0f", 10000) == "+10000." +string.format("%#-+6.0f", 100000) == "+100000." +string.format("%#-+6.0f", 1000000) == "+1000000." +string.format("%#-+6.0f", 10000000) == "+10000000." +string.format("%#-+6.0f", 0.01) == "+0. " +string.format("%#-+6.0f", 0.0001) == "+0. " +string.format("%#-+6.0f", 1e-05) == "+0. " +string.format("%#-+6.0f", 1e-06) == "+0. " +string.format("%#-+6.0f", 1e-07) == "+0. " +string.format("%#-+6.0f", 123.456) == "+123. " +string.format("%#-+6.0f", 1234560000) == "+1234560000." +string.format("%#-+6.0f", 1.23456e-05) == "+0. " +string.format("%#-+6.0f", 123.456789123) == "+123. " +string.format("%#-+6.0f", 1234567891.23) == "+1234567891." +string.format("%#-+6.0f", 1.23456789123e-05) == "+0. " +string.format("%#-+6.1f", 0) == "+0.0 " +string.format("%#-+6.1f", 1) == "+1.0 " +string.format("%#-+6.1f", -1) == "-1.0 " +string.format("%#-+6.1f", 2) == "+2.0 " +string.format("%#-+6.1f", -2) == "-2.0 " +string.format("%#-+6.1f", 3) == "+3.0 " +string.format("%#-+6.1f", -3) == "-3.0 " +string.format("%#-+6.1f", nan) == "+nan " +string.format("%#-+6.1f", inf) == "+inf " +string.format("%#-+6.1f", -inf) == "-inf " +string.format("%#-+6.1f", 100) == "+100.0" +string.format("%#-+6.1f", 10000) == "+10000.0" +string.format("%#-+6.1f", 100000) == "+100000.0" +string.format("%#-+6.1f", 1000000) == "+1000000.0" +string.format("%#-+6.1f", 10000000) == "+10000000.0" +string.format("%#-+6.1f", 0.01) == "+0.0 " +string.format("%#-+6.1f", 0.0001) == "+0.0 " +string.format("%#-+6.1f", 1e-05) == "+0.0 " +string.format("%#-+6.1f", 1e-06) == "+0.0 " +string.format("%#-+6.1f", 1e-07) == "+0.0 " +string.format("%#-+6.1f", 123.456) == "+123.5" +string.format("%#-+6.1f", 1234560000) == "+1234560000.0" +string.format("%#-+6.1f", 1.23456e-05) == "+0.0 " +string.format("%#-+6.1f", 123.456789123) == "+123.5" +string.format("%#-+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%#-+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%#-+6.6f", nan) == "+nan " +string.format("%#-+6.6f", inf) == "+inf " +string.format("%#-+6.6f", -inf) == "-inf " +string.format("%#-+20f", 0) == "+0.000000 " +string.format("%#-+20f", 1) == "+1.000000 " +string.format("%#-+20f", -1) == "-1.000000 " +string.format("%#-+20f", 2) == "+2.000000 " +string.format("%#-+20f", -2) == "-2.000000 " +string.format("%#-+20f", 3) == "+3.000000 " +string.format("%#-+20f", -3) == "-3.000000 " +string.format("%#-+20f", nan) == "+nan " +string.format("%#-+20f", inf) == "+inf " +string.format("%#-+20f", -inf) == "-inf " +string.format("%#-+20f", 100) == "+100.000000 " +string.format("%#-+20f", 10000) == "+10000.000000 " +string.format("%#-+20f", 100000) == "+100000.000000 " +string.format("%#-+20f", 1000000) == "+1000000.000000 " +string.format("%#-+20f", 10000000) == "+10000000.000000 " +string.format("%#-+20f", 0.01) == "+0.010000 " +string.format("%#-+20f", 0.0001) == "+0.000100 " +string.format("%#-+20f", 1e-05) == "+0.000010 " +string.format("%#-+20f", 1e-06) == "+0.000001 " +string.format("%#-+20f", 1e-07) == "+0.000000 " +string.format("%#-+20f", 123.456) == "+123.456000 " +string.format("%#-+20f", 1234560000) == "+1234560000.000000 " +string.format("%#-+20f", 1.23456e-05) == "+0.000012 " +string.format("%#-+20f", 123.456789123) == "+123.456789 " +string.format("%#-+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%#-+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%#-+20.0f", 0) == "+0. " +string.format("%#-+20.0f", 1) == "+1. " +string.format("%#-+20.0f", -1) == "-1. " +string.format("%#-+20.0f", 2) == "+2. " +string.format("%#-+20.0f", -2) == "-2. " +string.format("%#-+20.0f", 3) == "+3. " +string.format("%#-+20.0f", -3) == "-3. " +string.format("%#-+20.0f", nan) == "+nan " +string.format("%#-+20.0f", inf) == "+inf " +string.format("%#-+20.0f", -inf) == "-inf " +string.format("%#-+20.0f", 100) == "+100. " +string.format("%#-+20.0f", 10000) == "+10000. " +string.format("%#-+20.0f", 100000) == "+100000. " +string.format("%#-+20.0f", 1000000) == "+1000000. " +string.format("%#-+20.0f", 10000000) == "+10000000. " +string.format("%#-+20.0f", 0.01) == "+0. " +string.format("%#-+20.0f", 0.0001) == "+0. " +string.format("%#-+20.0f", 1e-05) == "+0. " +string.format("%#-+20.0f", 1e-06) == "+0. " +string.format("%#-+20.0f", 1e-07) == "+0. " +string.format("%#-+20.0f", 123.456) == "+123. " +string.format("%#-+20.0f", 1234560000) == "+1234560000. " +string.format("%#-+20.0f", 1.23456e-05) == "+0. " +string.format("%#-+20.0f", 123.456789123) == "+123. " +string.format("%#-+20.0f", 1234567891.23) == "+1234567891. " +string.format("%#-+20.0f", 1.23456789123e-05) == "+0. " +string.format("%#-+20.1f", 0) == "+0.0 " +string.format("%#-+20.1f", 1) == "+1.0 " +string.format("%#-+20.1f", -1) == "-1.0 " +string.format("%#-+20.1f", 2) == "+2.0 " +string.format("%#-+20.1f", -2) == "-2.0 " +string.format("%#-+20.1f", 3) == "+3.0 " +string.format("%#-+20.1f", -3) == "-3.0 " +string.format("%#-+20.1f", nan) == "+nan " +string.format("%#-+20.1f", inf) == "+inf " +string.format("%#-+20.1f", -inf) == "-inf " +string.format("%#-+20.1f", 100) == "+100.0 " +string.format("%#-+20.1f", 10000) == "+10000.0 " +string.format("%#-+20.1f", 100000) == "+100000.0 " +string.format("%#-+20.1f", 1000000) == "+1000000.0 " +string.format("%#-+20.1f", 10000000) == "+10000000.0 " +string.format("%#-+20.1f", 0.01) == "+0.0 " +string.format("%#-+20.1f", 0.0001) == "+0.0 " +string.format("%#-+20.1f", 1e-05) == "+0.0 " +string.format("%#-+20.1f", 1e-06) == "+0.0 " +string.format("%#-+20.1f", 1e-07) == "+0.0 " +string.format("%#-+20.1f", 123.456) == "+123.5 " +string.format("%#-+20.1f", 1234560000) == "+1234560000.0 " +string.format("%#-+20.1f", 1.23456e-05) == "+0.0 " +string.format("%#-+20.1f", 123.456789123) == "+123.5 " +string.format("%#-+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%#-+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%#-+20.6f", 0) == "+0.000000 " +string.format("%#-+20.6f", 1) == "+1.000000 " +string.format("%#-+20.6f", -1) == "-1.000000 " +string.format("%#-+20.6f", 2) == "+2.000000 " +string.format("%#-+20.6f", -2) == "-2.000000 " +string.format("%#-+20.6f", 3) == "+3.000000 " +string.format("%#-+20.6f", -3) == "-3.000000 " +string.format("%#-+20.6f", nan) == "+nan " +string.format("%#-+20.6f", inf) == "+inf " +string.format("%#-+20.6f", -inf) == "-inf " +string.format("%#-+20.6f", 100) == "+100.000000 " +string.format("%#-+20.6f", 10000) == "+10000.000000 " +string.format("%#-+20.6f", 100000) == "+100000.000000 " +string.format("%#-+20.6f", 1000000) == "+1000000.000000 " +string.format("%#-+20.6f", 10000000) == "+10000000.000000 " +string.format("%#-+20.6f", 0.01) == "+0.010000 " +string.format("%#-+20.6f", 0.0001) == "+0.000100 " +string.format("%#-+20.6f", 1e-05) == "+0.000010 " +string.format("%#-+20.6f", 1e-06) == "+0.000001 " +string.format("%#-+20.6f", 1e-07) == "+0.000000 " +string.format("%#-+20.6f", 123.456) == "+123.456000 " +string.format("%#-+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%#-+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%#-+20.6f", 123.456789123) == "+123.456789 " +string.format("%#-+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%#-+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%# f", 0) == " 0.000000" +string.format("%# f", 1) == " 1.000000" +string.format("%# f", -1) == "-1.000000" +string.format("%# f", 2) == " 2.000000" +string.format("%# f", -2) == "-2.000000" +string.format("%# f", 3) == " 3.000000" +string.format("%# f", -3) == "-3.000000" +string.format("%# f", nan) == " nan" +string.format("%# f", inf) == " inf" +string.format("%# f", -inf) == "-inf" +string.format("%# f", 100) == " 100.000000" +string.format("%# f", 10000) == " 10000.000000" +string.format("%# f", 100000) == " 100000.000000" +string.format("%# f", 1000000) == " 1000000.000000" +string.format("%# f", 10000000) == " 10000000.000000" +string.format("%# f", 0.01) == " 0.010000" +string.format("%# f", 0.0001) == " 0.000100" +string.format("%# f", 1e-05) == " 0.000010" +string.format("%# f", 1e-06) == " 0.000001" +string.format("%# f", 1e-07) == " 0.000000" +string.format("%# f", 123.456) == " 123.456000" +string.format("%# f", 1234560000) == " 1234560000.000000" +string.format("%# f", 1.23456e-05) == " 0.000012" +string.format("%# f", 123.456789123) == " 123.456789" +string.format("%# f", 1234567891.23) == " 1234567891.230000" +string.format("%# f", 1.23456789123e-05) == " 0.000012" +string.format("%# .0f", 0) == " 0." +string.format("%# .0f", 1) == " 1." +string.format("%# .0f", -1) == "-1." +string.format("%# .0f", 2) == " 2." +string.format("%# .0f", -2) == "-2." +string.format("%# .0f", 3) == " 3." +string.format("%# .0f", -3) == "-3." +string.format("%# .0f", 100) == " 100." +string.format("%# .0f", 10000) == " 10000." +string.format("%# .0f", 100000) == " 100000." +string.format("%# .0f", 1000000) == " 1000000." +string.format("%# .0f", 10000000) == " 10000000." +string.format("%# .0f", 0.01) == " 0." +string.format("%# .0f", 0.0001) == " 0." +string.format("%# .0f", 1e-05) == " 0." +string.format("%# .0f", 1e-06) == " 0." +string.format("%# .0f", 1e-07) == " 0." +string.format("%# .0f", 123.456) == " 123." +string.format("%# .0f", 1234560000) == " 1234560000." +string.format("%# .0f", 1.23456e-05) == " 0." +string.format("%# .0f", 123.456789123) == " 123." +string.format("%# .0f", 1234567891.23) == " 1234567891." +string.format("%# .0f", 1.23456789123e-05) == " 0." +string.format("%# .1f", 0) == " 0.0" +string.format("%# .1f", 1) == " 1.0" +string.format("%# .1f", -1) == "-1.0" +string.format("%# .1f", 2) == " 2.0" +string.format("%# .1f", -2) == "-2.0" +string.format("%# .1f", 3) == " 3.0" +string.format("%# .1f", -3) == "-3.0" +string.format("%# .1f", 100) == " 100.0" +string.format("%# .1f", 10000) == " 10000.0" +string.format("%# .1f", 100000) == " 100000.0" +string.format("%# .1f", 1000000) == " 1000000.0" +string.format("%# .1f", 10000000) == " 10000000.0" +string.format("%# .1f", 0.01) == " 0.0" +string.format("%# .1f", 0.0001) == " 0.0" +string.format("%# .1f", 1e-05) == " 0.0" +string.format("%# .1f", 1e-06) == " 0.0" +string.format("%# .1f", 1e-07) == " 0.0" +string.format("%# .1f", 123.456) == " 123.5" +string.format("%# .1f", 1234560000) == " 1234560000.0" +string.format("%# .1f", 1.23456e-05) == " 0.0" +string.format("%# .1f", 123.456789123) == " 123.5" +string.format("%# .1f", 1234567891.23) == " 1234567891.2" +string.format("%# .1f", 1.23456789123e-05) == " 0.0" +string.format("%# 1.0f", 0) == " 0." +string.format("%# 1.0f", 1) == " 1." +string.format("%# 1.0f", -1) == "-1." +string.format("%# 1.0f", 2) == " 2." +string.format("%# 1.0f", -2) == "-2." +string.format("%# 1.0f", 3) == " 3." +string.format("%# 1.0f", -3) == "-3." +string.format("%# 1.0f", 100) == " 100." +string.format("%# 1.0f", 10000) == " 10000." +string.format("%# 1.0f", 100000) == " 100000." +string.format("%# 1.0f", 1000000) == " 1000000." +string.format("%# 1.0f", 10000000) == " 10000000." +string.format("%# 1.0f", 0.01) == " 0." +string.format("%# 1.0f", 0.0001) == " 0." +string.format("%# 1.0f", 1e-05) == " 0." +string.format("%# 1.0f", 1e-06) == " 0." +string.format("%# 1.0f", 1e-07) == " 0." +string.format("%# 1.0f", 123.456) == " 123." +string.format("%# 1.0f", 1234560000) == " 1234560000." +string.format("%# 1.0f", 1.23456e-05) == " 0." +string.format("%# 1.0f", 123.456789123) == " 123." +string.format("%# 1.0f", 1234567891.23) == " 1234567891." +string.format("%# 1.0f", 1.23456789123e-05) == " 0." +string.format("%# 1.1f", 0) == " 0.0" +string.format("%# 1.1f", 1) == " 1.0" +string.format("%# 1.1f", -1) == "-1.0" +string.format("%# 1.1f", 2) == " 2.0" +string.format("%# 1.1f", -2) == "-2.0" +string.format("%# 1.1f", 3) == " 3.0" +string.format("%# 1.1f", -3) == "-3.0" +string.format("%# 1.1f", 100) == " 100.0" +string.format("%# 1.1f", 10000) == " 10000.0" +string.format("%# 1.1f", 100000) == " 100000.0" +string.format("%# 1.1f", 1000000) == " 1000000.0" +string.format("%# 1.1f", 10000000) == " 10000000.0" +string.format("%# 1.1f", 0.01) == " 0.0" +string.format("%# 1.1f", 0.0001) == " 0.0" +string.format("%# 1.1f", 1e-05) == " 0.0" +string.format("%# 1.1f", 1e-06) == " 0.0" +string.format("%# 1.1f", 1e-07) == " 0.0" +string.format("%# 1.1f", 123.456) == " 123.5" +string.format("%# 1.1f", 1234560000) == " 1234560000.0" +string.format("%# 1.1f", 1.23456e-05) == " 0.0" +string.format("%# 1.1f", 123.456789123) == " 123.5" +string.format("%# 1.1f", 1234567891.23) == " 1234567891.2" +string.format("%# 1.1f", 1.23456789123e-05) == " 0.0" +string.format("%# 2.0f", 0) == " 0." +string.format("%# 2.0f", 1) == " 1." +string.format("%# 2.0f", -1) == "-1." +string.format("%# 2.0f", 2) == " 2." +string.format("%# 2.0f", -2) == "-2." +string.format("%# 2.0f", 3) == " 3." +string.format("%# 2.0f", -3) == "-3." +string.format("%# 2.0f", 100) == " 100." +string.format("%# 2.0f", 10000) == " 10000." +string.format("%# 2.0f", 100000) == " 100000." +string.format("%# 2.0f", 1000000) == " 1000000." +string.format("%# 2.0f", 10000000) == " 10000000." +string.format("%# 2.0f", 0.01) == " 0." +string.format("%# 2.0f", 0.0001) == " 0." +string.format("%# 2.0f", 1e-05) == " 0." +string.format("%# 2.0f", 1e-06) == " 0." +string.format("%# 2.0f", 1e-07) == " 0." +string.format("%# 2.0f", 123.456) == " 123." +string.format("%# 2.0f", 1234560000) == " 1234560000." +string.format("%# 2.0f", 1.23456e-05) == " 0." +string.format("%# 2.0f", 123.456789123) == " 123." +string.format("%# 2.0f", 1234567891.23) == " 1234567891." +string.format("%# 2.0f", 1.23456789123e-05) == " 0." +string.format("%# 2.1f", 0) == " 0.0" +string.format("%# 2.1f", 1) == " 1.0" +string.format("%# 2.1f", -1) == "-1.0" +string.format("%# 2.1f", 2) == " 2.0" +string.format("%# 2.1f", -2) == "-2.0" +string.format("%# 2.1f", 3) == " 3.0" +string.format("%# 2.1f", -3) == "-3.0" +string.format("%# 2.1f", 100) == " 100.0" +string.format("%# 2.1f", 10000) == " 10000.0" +string.format("%# 2.1f", 100000) == " 100000.0" +string.format("%# 2.1f", 1000000) == " 1000000.0" +string.format("%# 2.1f", 10000000) == " 10000000.0" +string.format("%# 2.1f", 0.01) == " 0.0" +string.format("%# 2.1f", 0.0001) == " 0.0" +string.format("%# 2.1f", 1e-05) == " 0.0" +string.format("%# 2.1f", 1e-06) == " 0.0" +string.format("%# 2.1f", 1e-07) == " 0.0" +string.format("%# 2.1f", 123.456) == " 123.5" +string.format("%# 2.1f", 1234560000) == " 1234560000.0" +string.format("%# 2.1f", 1.23456e-05) == " 0.0" +string.format("%# 2.1f", 123.456789123) == " 123.5" +string.format("%# 2.1f", 1234567891.23) == " 1234567891.2" +string.format("%# 2.1f", 1.23456789123e-05) == " 0.0" +string.format("%# 6f", nan) == " nan" +string.format("%# 6f", inf) == " inf" +string.format("%# 6f", -inf) == " -inf" +string.format("%# 6.0f", 0) == " 0." +string.format("%# 6.0f", 1) == " 1." +string.format("%# 6.0f", -1) == " -1." +string.format("%# 6.0f", 2) == " 2." +string.format("%# 6.0f", -2) == " -2." +string.format("%# 6.0f", 3) == " 3." +string.format("%# 6.0f", -3) == " -3." +string.format("%# 6.0f", nan) == " nan" +string.format("%# 6.0f", inf) == " inf" +string.format("%# 6.0f", -inf) == " -inf" +string.format("%# 6.0f", 100) == " 100." +string.format("%# 6.0f", 10000) == " 10000." +string.format("%# 6.0f", 100000) == " 100000." +string.format("%# 6.0f", 1000000) == " 1000000." +string.format("%# 6.0f", 10000000) == " 10000000." +string.format("%# 6.0f", 0.01) == " 0." +string.format("%# 6.0f", 0.0001) == " 0." +string.format("%# 6.0f", 1e-05) == " 0." +string.format("%# 6.0f", 1e-06) == " 0." +string.format("%# 6.0f", 1e-07) == " 0." +string.format("%# 6.0f", 123.456) == " 123." +string.format("%# 6.0f", 1234560000) == " 1234560000." +string.format("%# 6.0f", 1.23456e-05) == " 0." +string.format("%# 6.0f", 123.456789123) == " 123." +string.format("%# 6.0f", 1234567891.23) == " 1234567891." +string.format("%# 6.0f", 1.23456789123e-05) == " 0." +string.format("%# 6.1f", 0) == " 0.0" +string.format("%# 6.1f", 1) == " 1.0" +string.format("%# 6.1f", -1) == " -1.0" +string.format("%# 6.1f", 2) == " 2.0" +string.format("%# 6.1f", -2) == " -2.0" +string.format("%# 6.1f", 3) == " 3.0" +string.format("%# 6.1f", -3) == " -3.0" +string.format("%# 6.1f", nan) == " nan" +string.format("%# 6.1f", inf) == " inf" +string.format("%# 6.1f", -inf) == " -inf" +string.format("%# 6.1f", 100) == " 100.0" +string.format("%# 6.1f", 10000) == " 10000.0" +string.format("%# 6.1f", 100000) == " 100000.0" +string.format("%# 6.1f", 1000000) == " 1000000.0" +string.format("%# 6.1f", 10000000) == " 10000000.0" +string.format("%# 6.1f", 0.01) == " 0.0" +string.format("%# 6.1f", 0.0001) == " 0.0" +string.format("%# 6.1f", 1e-05) == " 0.0" +string.format("%# 6.1f", 1e-06) == " 0.0" +string.format("%# 6.1f", 1e-07) == " 0.0" +string.format("%# 6.1f", 123.456) == " 123.5" +string.format("%# 6.1f", 1234560000) == " 1234560000.0" +string.format("%# 6.1f", 1.23456e-05) == " 0.0" +string.format("%# 6.1f", 123.456789123) == " 123.5" +string.format("%# 6.1f", 1234567891.23) == " 1234567891.2" +string.format("%# 6.1f", 1.23456789123e-05) == " 0.0" +string.format("%# 6.6f", nan) == " nan" +string.format("%# 6.6f", inf) == " inf" +string.format("%# 6.6f", -inf) == " -inf" +string.format("%# 20f", 0) == " 0.000000" +string.format("%# 20f", 1) == " 1.000000" +string.format("%# 20f", -1) == " -1.000000" +string.format("%# 20f", 2) == " 2.000000" +string.format("%# 20f", -2) == " -2.000000" +string.format("%# 20f", 3) == " 3.000000" +string.format("%# 20f", -3) == " -3.000000" +string.format("%# 20f", nan) == " nan" +string.format("%# 20f", inf) == " inf" +string.format("%# 20f", -inf) == " -inf" +string.format("%# 20f", 100) == " 100.000000" +string.format("%# 20f", 10000) == " 10000.000000" +string.format("%# 20f", 100000) == " 100000.000000" +string.format("%# 20f", 1000000) == " 1000000.000000" +string.format("%# 20f", 10000000) == " 10000000.000000" +string.format("%# 20f", 0.01) == " 0.010000" +string.format("%# 20f", 0.0001) == " 0.000100" +string.format("%# 20f", 1e-05) == " 0.000010" +string.format("%# 20f", 1e-06) == " 0.000001" +string.format("%# 20f", 1e-07) == " 0.000000" +string.format("%# 20f", 123.456) == " 123.456000" +string.format("%# 20f", 1234560000) == " 1234560000.000000" +string.format("%# 20f", 1.23456e-05) == " 0.000012" +string.format("%# 20f", 123.456789123) == " 123.456789" +string.format("%# 20f", 1234567891.23) == " 1234567891.230000" +string.format("%# 20f", 1.23456789123e-05) == " 0.000012" +string.format("%# 20.0f", 0) == " 0." +string.format("%# 20.0f", 1) == " 1." +string.format("%# 20.0f", -1) == " -1." +string.format("%# 20.0f", 2) == " 2." +string.format("%# 20.0f", -2) == " -2." +string.format("%# 20.0f", 3) == " 3." +string.format("%# 20.0f", -3) == " -3." +string.format("%# 20.0f", nan) == " nan" +string.format("%# 20.0f", inf) == " inf" +string.format("%# 20.0f", -inf) == " -inf" +string.format("%# 20.0f", 100) == " 100." +string.format("%# 20.0f", 10000) == " 10000." +string.format("%# 20.0f", 100000) == " 100000." +string.format("%# 20.0f", 1000000) == " 1000000." +string.format("%# 20.0f", 10000000) == " 10000000." +string.format("%# 20.0f", 0.01) == " 0." +string.format("%# 20.0f", 0.0001) == " 0." +string.format("%# 20.0f", 1e-05) == " 0." +string.format("%# 20.0f", 1e-06) == " 0." +string.format("%# 20.0f", 1e-07) == " 0." +string.format("%# 20.0f", 123.456) == " 123." +string.format("%# 20.0f", 1234560000) == " 1234560000." +string.format("%# 20.0f", 1.23456e-05) == " 0." +string.format("%# 20.0f", 123.456789123) == " 123." +string.format("%# 20.0f", 1234567891.23) == " 1234567891." +string.format("%# 20.0f", 1.23456789123e-05) == " 0." +string.format("%# 20.1f", 0) == " 0.0" +string.format("%# 20.1f", 1) == " 1.0" +string.format("%# 20.1f", -1) == " -1.0" +string.format("%# 20.1f", 2) == " 2.0" +string.format("%# 20.1f", -2) == " -2.0" +string.format("%# 20.1f", 3) == " 3.0" +string.format("%# 20.1f", -3) == " -3.0" +string.format("%# 20.1f", nan) == " nan" +string.format("%# 20.1f", inf) == " inf" +string.format("%# 20.1f", -inf) == " -inf" +string.format("%# 20.1f", 100) == " 100.0" +string.format("%# 20.1f", 10000) == " 10000.0" +string.format("%# 20.1f", 100000) == " 100000.0" +string.format("%# 20.1f", 1000000) == " 1000000.0" +string.format("%# 20.1f", 10000000) == " 10000000.0" +string.format("%# 20.1f", 0.01) == " 0.0" +string.format("%# 20.1f", 0.0001) == " 0.0" +string.format("%# 20.1f", 1e-05) == " 0.0" +string.format("%# 20.1f", 1e-06) == " 0.0" +string.format("%# 20.1f", 1e-07) == " 0.0" +string.format("%# 20.1f", 123.456) == " 123.5" +string.format("%# 20.1f", 1234560000) == " 1234560000.0" +string.format("%# 20.1f", 1.23456e-05) == " 0.0" +string.format("%# 20.1f", 123.456789123) == " 123.5" +string.format("%# 20.1f", 1234567891.23) == " 1234567891.2" +string.format("%# 20.1f", 1.23456789123e-05) == " 0.0" +string.format("%# 20.6f", 0) == " 0.000000" +string.format("%# 20.6f", 1) == " 1.000000" +string.format("%# 20.6f", -1) == " -1.000000" +string.format("%# 20.6f", 2) == " 2.000000" +string.format("%# 20.6f", -2) == " -2.000000" +string.format("%# 20.6f", 3) == " 3.000000" +string.format("%# 20.6f", -3) == " -3.000000" +string.format("%# 20.6f", nan) == " nan" +string.format("%# 20.6f", inf) == " inf" +string.format("%# 20.6f", -inf) == " -inf" +string.format("%# 20.6f", 100) == " 100.000000" +string.format("%# 20.6f", 10000) == " 10000.000000" +string.format("%# 20.6f", 100000) == " 100000.000000" +string.format("%# 20.6f", 1000000) == " 1000000.000000" +string.format("%# 20.6f", 10000000) == " 10000000.000000" +string.format("%# 20.6f", 0.01) == " 0.010000" +string.format("%# 20.6f", 0.0001) == " 0.000100" +string.format("%# 20.6f", 1e-05) == " 0.000010" +string.format("%# 20.6f", 1e-06) == " 0.000001" +string.format("%# 20.6f", 1e-07) == " 0.000000" +string.format("%# 20.6f", 123.456) == " 123.456000" +string.format("%# 20.6f", 1234560000) == " 1234560000.000000" +string.format("%# 20.6f", 1.23456e-05) == " 0.000012" +string.format("%# 20.6f", 123.456789123) == " 123.456789" +string.format("%# 20.6f", 1234567891.23) == " 1234567891.230000" +string.format("%# 20.6f", 1.23456789123e-05) == " 0.000012" +string.format("%# +f", 0) == "+0.000000" +string.format("%# +f", 1) == "+1.000000" +string.format("%# +f", -1) == "-1.000000" +string.format("%# +f", 2) == "+2.000000" +string.format("%# +f", -2) == "-2.000000" +string.format("%# +f", 3) == "+3.000000" +string.format("%# +f", -3) == "-3.000000" +string.format("%# +f", nan) == "+nan" +string.format("%# +f", inf) == "+inf" +string.format("%# +f", -inf) == "-inf" +string.format("%# +f", 100) == "+100.000000" +string.format("%# +f", 10000) == "+10000.000000" +string.format("%# +f", 100000) == "+100000.000000" +string.format("%# +f", 1000000) == "+1000000.000000" +string.format("%# +f", 10000000) == "+10000000.000000" +string.format("%# +f", 0.01) == "+0.010000" +string.format("%# +f", 0.0001) == "+0.000100" +string.format("%# +f", 1e-05) == "+0.000010" +string.format("%# +f", 1e-06) == "+0.000001" +string.format("%# +f", 1e-07) == "+0.000000" +string.format("%# +f", 123.456) == "+123.456000" +string.format("%# +f", 1234560000) == "+1234560000.000000" +string.format("%# +f", 1.23456e-05) == "+0.000012" +string.format("%# +f", 123.456789123) == "+123.456789" +string.format("%# +f", 1234567891.23) == "+1234567891.230000" +string.format("%# +f", 1.23456789123e-05) == "+0.000012" +string.format("%# +.0f", 0) == "+0." +string.format("%# +.0f", 1) == "+1." +string.format("%# +.0f", -1) == "-1." +string.format("%# +.0f", 2) == "+2." +string.format("%# +.0f", -2) == "-2." +string.format("%# +.0f", 3) == "+3." +string.format("%# +.0f", -3) == "-3." +string.format("%# +.0f", 100) == "+100." +string.format("%# +.0f", 10000) == "+10000." +string.format("%# +.0f", 100000) == "+100000." +string.format("%# +.0f", 1000000) == "+1000000." +string.format("%# +.0f", 10000000) == "+10000000." +string.format("%# +.0f", 0.01) == "+0." +string.format("%# +.0f", 0.0001) == "+0." +string.format("%# +.0f", 1e-05) == "+0." +string.format("%# +.0f", 1e-06) == "+0." +string.format("%# +.0f", 1e-07) == "+0." +string.format("%# +.0f", 123.456) == "+123." +string.format("%# +.0f", 1234560000) == "+1234560000." +string.format("%# +.0f", 1.23456e-05) == "+0." +string.format("%# +.0f", 123.456789123) == "+123." +string.format("%# +.0f", 1234567891.23) == "+1234567891." +string.format("%# +.0f", 1.23456789123e-05) == "+0." +string.format("%# +.1f", 0) == "+0.0" +string.format("%# +.1f", 1) == "+1.0" +string.format("%# +.1f", -1) == "-1.0" +string.format("%# +.1f", 2) == "+2.0" +string.format("%# +.1f", -2) == "-2.0" +string.format("%# +.1f", 3) == "+3.0" +string.format("%# +.1f", -3) == "-3.0" +string.format("%# +.1f", 100) == "+100.0" +string.format("%# +.1f", 10000) == "+10000.0" +string.format("%# +.1f", 100000) == "+100000.0" +string.format("%# +.1f", 1000000) == "+1000000.0" +string.format("%# +.1f", 10000000) == "+10000000.0" +string.format("%# +.1f", 0.01) == "+0.0" +string.format("%# +.1f", 0.0001) == "+0.0" +string.format("%# +.1f", 1e-05) == "+0.0" +string.format("%# +.1f", 1e-06) == "+0.0" +string.format("%# +.1f", 1e-07) == "+0.0" +string.format("%# +.1f", 123.456) == "+123.5" +string.format("%# +.1f", 1234560000) == "+1234560000.0" +string.format("%# +.1f", 1.23456e-05) == "+0.0" +string.format("%# +.1f", 123.456789123) == "+123.5" +string.format("%# +.1f", 1234567891.23) == "+1234567891.2" +string.format("%# +.1f", 1.23456789123e-05) == "+0.0" +string.format("%# +1.0f", 0) == "+0." +string.format("%# +1.0f", 1) == "+1." +string.format("%# +1.0f", -1) == "-1." +string.format("%# +1.0f", 2) == "+2." +string.format("%# +1.0f", -2) == "-2." +string.format("%# +1.0f", 3) == "+3." +string.format("%# +1.0f", -3) == "-3." +string.format("%# +1.0f", 100) == "+100." +string.format("%# +1.0f", 10000) == "+10000." +string.format("%# +1.0f", 100000) == "+100000." +string.format("%# +1.0f", 1000000) == "+1000000." +string.format("%# +1.0f", 10000000) == "+10000000." +string.format("%# +1.0f", 0.01) == "+0." +string.format("%# +1.0f", 0.0001) == "+0." +string.format("%# +1.0f", 1e-05) == "+0." +string.format("%# +1.0f", 1e-06) == "+0." +string.format("%# +1.0f", 1e-07) == "+0." +string.format("%# +1.0f", 123.456) == "+123." +string.format("%# +1.0f", 1234560000) == "+1234560000." +string.format("%# +1.0f", 1.23456e-05) == "+0." +string.format("%# +1.0f", 123.456789123) == "+123." +string.format("%# +1.0f", 1234567891.23) == "+1234567891." +string.format("%# +1.0f", 1.23456789123e-05) == "+0." +string.format("%# +1.1f", 0) == "+0.0" +string.format("%# +1.1f", 1) == "+1.0" +string.format("%# +1.1f", -1) == "-1.0" +string.format("%# +1.1f", 2) == "+2.0" +string.format("%# +1.1f", -2) == "-2.0" +string.format("%# +1.1f", 3) == "+3.0" +string.format("%# +1.1f", -3) == "-3.0" +string.format("%# +1.1f", 100) == "+100.0" +string.format("%# +1.1f", 10000) == "+10000.0" +string.format("%# +1.1f", 100000) == "+100000.0" +string.format("%# +1.1f", 1000000) == "+1000000.0" +string.format("%# +1.1f", 10000000) == "+10000000.0" +string.format("%# +1.1f", 0.01) == "+0.0" +string.format("%# +1.1f", 0.0001) == "+0.0" +string.format("%# +1.1f", 1e-05) == "+0.0" +string.format("%# +1.1f", 1e-06) == "+0.0" +string.format("%# +1.1f", 1e-07) == "+0.0" +string.format("%# +1.1f", 123.456) == "+123.5" +string.format("%# +1.1f", 1234560000) == "+1234560000.0" +string.format("%# +1.1f", 1.23456e-05) == "+0.0" +string.format("%# +1.1f", 123.456789123) == "+123.5" +string.format("%# +1.1f", 1234567891.23) == "+1234567891.2" +string.format("%# +1.1f", 1.23456789123e-05) == "+0.0" +string.format("%# +2.0f", 0) == "+0." +string.format("%# +2.0f", 1) == "+1." +string.format("%# +2.0f", -1) == "-1." +string.format("%# +2.0f", 2) == "+2." +string.format("%# +2.0f", -2) == "-2." +string.format("%# +2.0f", 3) == "+3." +string.format("%# +2.0f", -3) == "-3." +string.format("%# +2.0f", 100) == "+100." +string.format("%# +2.0f", 10000) == "+10000." +string.format("%# +2.0f", 100000) == "+100000." +string.format("%# +2.0f", 1000000) == "+1000000." +string.format("%# +2.0f", 10000000) == "+10000000." +string.format("%# +2.0f", 0.01) == "+0." +string.format("%# +2.0f", 0.0001) == "+0." +string.format("%# +2.0f", 1e-05) == "+0." +string.format("%# +2.0f", 1e-06) == "+0." +string.format("%# +2.0f", 1e-07) == "+0." +string.format("%# +2.0f", 123.456) == "+123." +string.format("%# +2.0f", 1234560000) == "+1234560000." +string.format("%# +2.0f", 1.23456e-05) == "+0." +string.format("%# +2.0f", 123.456789123) == "+123." +string.format("%# +2.0f", 1234567891.23) == "+1234567891." +string.format("%# +2.0f", 1.23456789123e-05) == "+0." +string.format("%# +2.1f", 0) == "+0.0" +string.format("%# +2.1f", 1) == "+1.0" +string.format("%# +2.1f", -1) == "-1.0" +string.format("%# +2.1f", 2) == "+2.0" +string.format("%# +2.1f", -2) == "-2.0" +string.format("%# +2.1f", 3) == "+3.0" +string.format("%# +2.1f", -3) == "-3.0" +string.format("%# +2.1f", 100) == "+100.0" +string.format("%# +2.1f", 10000) == "+10000.0" +string.format("%# +2.1f", 100000) == "+100000.0" +string.format("%# +2.1f", 1000000) == "+1000000.0" +string.format("%# +2.1f", 10000000) == "+10000000.0" +string.format("%# +2.1f", 0.01) == "+0.0" +string.format("%# +2.1f", 0.0001) == "+0.0" +string.format("%# +2.1f", 1e-05) == "+0.0" +string.format("%# +2.1f", 1e-06) == "+0.0" +string.format("%# +2.1f", 1e-07) == "+0.0" +string.format("%# +2.1f", 123.456) == "+123.5" +string.format("%# +2.1f", 1234560000) == "+1234560000.0" +string.format("%# +2.1f", 1.23456e-05) == "+0.0" +string.format("%# +2.1f", 123.456789123) == "+123.5" +string.format("%# +2.1f", 1234567891.23) == "+1234567891.2" +string.format("%# +2.1f", 1.23456789123e-05) == "+0.0" +string.format("%# +6f", nan) == " +nan" +string.format("%# +6f", inf) == " +inf" +string.format("%# +6f", -inf) == " -inf" +string.format("%# +6.0f", 0) == " +0." +string.format("%# +6.0f", 1) == " +1." +string.format("%# +6.0f", -1) == " -1." +string.format("%# +6.0f", 2) == " +2." +string.format("%# +6.0f", -2) == " -2." +string.format("%# +6.0f", 3) == " +3." +string.format("%# +6.0f", -3) == " -3." +string.format("%# +6.0f", nan) == " +nan" +string.format("%# +6.0f", inf) == " +inf" +string.format("%# +6.0f", -inf) == " -inf" +string.format("%# +6.0f", 100) == " +100." +string.format("%# +6.0f", 10000) == "+10000." +string.format("%# +6.0f", 100000) == "+100000." +string.format("%# +6.0f", 1000000) == "+1000000." +string.format("%# +6.0f", 10000000) == "+10000000." +string.format("%# +6.0f", 0.01) == " +0." +string.format("%# +6.0f", 0.0001) == " +0." +string.format("%# +6.0f", 1e-05) == " +0." +string.format("%# +6.0f", 1e-06) == " +0." +string.format("%# +6.0f", 1e-07) == " +0." +string.format("%# +6.0f", 123.456) == " +123." +string.format("%# +6.0f", 1234560000) == "+1234560000." +string.format("%# +6.0f", 1.23456e-05) == " +0." +string.format("%# +6.0f", 123.456789123) == " +123." +string.format("%# +6.0f", 1234567891.23) == "+1234567891." +string.format("%# +6.0f", 1.23456789123e-05) == " +0." +string.format("%# +6.1f", 0) == " +0.0" +string.format("%# +6.1f", 1) == " +1.0" +string.format("%# +6.1f", -1) == " -1.0" +string.format("%# +6.1f", 2) == " +2.0" +string.format("%# +6.1f", -2) == " -2.0" +string.format("%# +6.1f", 3) == " +3.0" +string.format("%# +6.1f", -3) == " -3.0" +string.format("%# +6.1f", nan) == " +nan" +string.format("%# +6.1f", inf) == " +inf" +string.format("%# +6.1f", -inf) == " -inf" +string.format("%# +6.1f", 100) == "+100.0" +string.format("%# +6.1f", 10000) == "+10000.0" +string.format("%# +6.1f", 100000) == "+100000.0" +string.format("%# +6.1f", 1000000) == "+1000000.0" +string.format("%# +6.1f", 10000000) == "+10000000.0" +string.format("%# +6.1f", 0.01) == " +0.0" +string.format("%# +6.1f", 0.0001) == " +0.0" +string.format("%# +6.1f", 1e-05) == " +0.0" +string.format("%# +6.1f", 1e-06) == " +0.0" +string.format("%# +6.1f", 1e-07) == " +0.0" +string.format("%# +6.1f", 123.456) == "+123.5" +string.format("%# +6.1f", 1234560000) == "+1234560000.0" +string.format("%# +6.1f", 1.23456e-05) == " +0.0" +string.format("%# +6.1f", 123.456789123) == "+123.5" +string.format("%# +6.1f", 1234567891.23) == "+1234567891.2" +string.format("%# +6.1f", 1.23456789123e-05) == " +0.0" +string.format("%# +6.6f", nan) == " +nan" +string.format("%# +6.6f", inf) == " +inf" +string.format("%# +6.6f", -inf) == " -inf" +string.format("%# +20f", 0) == " +0.000000" +string.format("%# +20f", 1) == " +1.000000" +string.format("%# +20f", -1) == " -1.000000" +string.format("%# +20f", 2) == " +2.000000" +string.format("%# +20f", -2) == " -2.000000" +string.format("%# +20f", 3) == " +3.000000" +string.format("%# +20f", -3) == " -3.000000" +string.format("%# +20f", nan) == " +nan" +string.format("%# +20f", inf) == " +inf" +string.format("%# +20f", -inf) == " -inf" +string.format("%# +20f", 100) == " +100.000000" +string.format("%# +20f", 10000) == " +10000.000000" +string.format("%# +20f", 100000) == " +100000.000000" +string.format("%# +20f", 1000000) == " +1000000.000000" +string.format("%# +20f", 10000000) == " +10000000.000000" +string.format("%# +20f", 0.01) == " +0.010000" +string.format("%# +20f", 0.0001) == " +0.000100" +string.format("%# +20f", 1e-05) == " +0.000010" +string.format("%# +20f", 1e-06) == " +0.000001" +string.format("%# +20f", 1e-07) == " +0.000000" +string.format("%# +20f", 123.456) == " +123.456000" +string.format("%# +20f", 1234560000) == " +1234560000.000000" +string.format("%# +20f", 1.23456e-05) == " +0.000012" +string.format("%# +20f", 123.456789123) == " +123.456789" +string.format("%# +20f", 1234567891.23) == " +1234567891.230000" +string.format("%# +20f", 1.23456789123e-05) == " +0.000012" +string.format("%# +20.0f", 0) == " +0." +string.format("%# +20.0f", 1) == " +1." +string.format("%# +20.0f", -1) == " -1." +string.format("%# +20.0f", 2) == " +2." +string.format("%# +20.0f", -2) == " -2." +string.format("%# +20.0f", 3) == " +3." +string.format("%# +20.0f", -3) == " -3." +string.format("%# +20.0f", nan) == " +nan" +string.format("%# +20.0f", inf) == " +inf" +string.format("%# +20.0f", -inf) == " -inf" +string.format("%# +20.0f", 100) == " +100." +string.format("%# +20.0f", 10000) == " +10000." +string.format("%# +20.0f", 100000) == " +100000." +string.format("%# +20.0f", 1000000) == " +1000000." +string.format("%# +20.0f", 10000000) == " +10000000." +string.format("%# +20.0f", 0.01) == " +0." +string.format("%# +20.0f", 0.0001) == " +0." +string.format("%# +20.0f", 1e-05) == " +0." +string.format("%# +20.0f", 1e-06) == " +0." +string.format("%# +20.0f", 1e-07) == " +0." +string.format("%# +20.0f", 123.456) == " +123." +string.format("%# +20.0f", 1234560000) == " +1234560000." +string.format("%# +20.0f", 1.23456e-05) == " +0." +string.format("%# +20.0f", 123.456789123) == " +123." +string.format("%# +20.0f", 1234567891.23) == " +1234567891." +string.format("%# +20.0f", 1.23456789123e-05) == " +0." +string.format("%# +20.1f", 0) == " +0.0" +string.format("%# +20.1f", 1) == " +1.0" +string.format("%# +20.1f", -1) == " -1.0" +string.format("%# +20.1f", 2) == " +2.0" +string.format("%# +20.1f", -2) == " -2.0" +string.format("%# +20.1f", 3) == " +3.0" +string.format("%# +20.1f", -3) == " -3.0" +string.format("%# +20.1f", nan) == " +nan" +string.format("%# +20.1f", inf) == " +inf" +string.format("%# +20.1f", -inf) == " -inf" +string.format("%# +20.1f", 100) == " +100.0" +string.format("%# +20.1f", 10000) == " +10000.0" +string.format("%# +20.1f", 100000) == " +100000.0" +string.format("%# +20.1f", 1000000) == " +1000000.0" +string.format("%# +20.1f", 10000000) == " +10000000.0" +string.format("%# +20.1f", 0.01) == " +0.0" +string.format("%# +20.1f", 0.0001) == " +0.0" +string.format("%# +20.1f", 1e-05) == " +0.0" +string.format("%# +20.1f", 1e-06) == " +0.0" +string.format("%# +20.1f", 1e-07) == " +0.0" +string.format("%# +20.1f", 123.456) == " +123.5" +string.format("%# +20.1f", 1234560000) == " +1234560000.0" +string.format("%# +20.1f", 1.23456e-05) == " +0.0" +string.format("%# +20.1f", 123.456789123) == " +123.5" +string.format("%# +20.1f", 1234567891.23) == " +1234567891.2" +string.format("%# +20.1f", 1.23456789123e-05) == " +0.0" +string.format("%# +20.6f", 0) == " +0.000000" +string.format("%# +20.6f", 1) == " +1.000000" +string.format("%# +20.6f", -1) == " -1.000000" +string.format("%# +20.6f", 2) == " +2.000000" +string.format("%# +20.6f", -2) == " -2.000000" +string.format("%# +20.6f", 3) == " +3.000000" +string.format("%# +20.6f", -3) == " -3.000000" +string.format("%# +20.6f", nan) == " +nan" +string.format("%# +20.6f", inf) == " +inf" +string.format("%# +20.6f", -inf) == " -inf" +string.format("%# +20.6f", 100) == " +100.000000" +string.format("%# +20.6f", 10000) == " +10000.000000" +string.format("%# +20.6f", 100000) == " +100000.000000" +string.format("%# +20.6f", 1000000) == " +1000000.000000" +string.format("%# +20.6f", 10000000) == " +10000000.000000" +string.format("%# +20.6f", 0.01) == " +0.010000" +string.format("%# +20.6f", 0.0001) == " +0.000100" +string.format("%# +20.6f", 1e-05) == " +0.000010" +string.format("%# +20.6f", 1e-06) == " +0.000001" +string.format("%# +20.6f", 1e-07) == " +0.000000" +string.format("%# +20.6f", 123.456) == " +123.456000" +string.format("%# +20.6f", 1234560000) == " +1234560000.000000" +string.format("%# +20.6f", 1.23456e-05) == " +0.000012" +string.format("%# +20.6f", 123.456789123) == " +123.456789" +string.format("%# +20.6f", 1234567891.23) == " +1234567891.230000" +string.format("%# +20.6f", 1.23456789123e-05) == " +0.000012" +string.format("%# -f", 0) == " 0.000000" +string.format("%# -f", 1) == " 1.000000" +string.format("%# -f", -1) == "-1.000000" +string.format("%# -f", 2) == " 2.000000" +string.format("%# -f", -2) == "-2.000000" +string.format("%# -f", 3) == " 3.000000" +string.format("%# -f", -3) == "-3.000000" +string.format("%# -f", nan) == " nan" +string.format("%# -f", inf) == " inf" +string.format("%# -f", -inf) == "-inf" +string.format("%# -f", 100) == " 100.000000" +string.format("%# -f", 10000) == " 10000.000000" +string.format("%# -f", 100000) == " 100000.000000" +string.format("%# -f", 1000000) == " 1000000.000000" +string.format("%# -f", 10000000) == " 10000000.000000" +string.format("%# -f", 0.01) == " 0.010000" +string.format("%# -f", 0.0001) == " 0.000100" +string.format("%# -f", 1e-05) == " 0.000010" +string.format("%# -f", 1e-06) == " 0.000001" +string.format("%# -f", 1e-07) == " 0.000000" +string.format("%# -f", 123.456) == " 123.456000" +string.format("%# -f", 1234560000) == " 1234560000.000000" +string.format("%# -f", 1.23456e-05) == " 0.000012" +string.format("%# -f", 123.456789123) == " 123.456789" +string.format("%# -f", 1234567891.23) == " 1234567891.230000" +string.format("%# -f", 1.23456789123e-05) == " 0.000012" +string.format("%# -.0f", 0) == " 0." +string.format("%# -.0f", 1) == " 1." +string.format("%# -.0f", -1) == "-1." +string.format("%# -.0f", 2) == " 2." +string.format("%# -.0f", -2) == "-2." +string.format("%# -.0f", 3) == " 3." +string.format("%# -.0f", -3) == "-3." +string.format("%# -.0f", 100) == " 100." +string.format("%# -.0f", 10000) == " 10000." +string.format("%# -.0f", 100000) == " 100000." +string.format("%# -.0f", 1000000) == " 1000000." +string.format("%# -.0f", 10000000) == " 10000000." +string.format("%# -.0f", 0.01) == " 0." +string.format("%# -.0f", 0.0001) == " 0." +string.format("%# -.0f", 1e-05) == " 0." +string.format("%# -.0f", 1e-06) == " 0." +string.format("%# -.0f", 1e-07) == " 0." +string.format("%# -.0f", 123.456) == " 123." +string.format("%# -.0f", 1234560000) == " 1234560000." +string.format("%# -.0f", 1.23456e-05) == " 0." +string.format("%# -.0f", 123.456789123) == " 123." +string.format("%# -.0f", 1234567891.23) == " 1234567891." +string.format("%# -.0f", 1.23456789123e-05) == " 0." +string.format("%# -.1f", 0) == " 0.0" +string.format("%# -.1f", 1) == " 1.0" +string.format("%# -.1f", -1) == "-1.0" +string.format("%# -.1f", 2) == " 2.0" +string.format("%# -.1f", -2) == "-2.0" +string.format("%# -.1f", 3) == " 3.0" +string.format("%# -.1f", -3) == "-3.0" +string.format("%# -.1f", 100) == " 100.0" +string.format("%# -.1f", 10000) == " 10000.0" +string.format("%# -.1f", 100000) == " 100000.0" +string.format("%# -.1f", 1000000) == " 1000000.0" +string.format("%# -.1f", 10000000) == " 10000000.0" +string.format("%# -.1f", 0.01) == " 0.0" +string.format("%# -.1f", 0.0001) == " 0.0" +string.format("%# -.1f", 1e-05) == " 0.0" +string.format("%# -.1f", 1e-06) == " 0.0" +string.format("%# -.1f", 1e-07) == " 0.0" +string.format("%# -.1f", 123.456) == " 123.5" +string.format("%# -.1f", 1234560000) == " 1234560000.0" +string.format("%# -.1f", 1.23456e-05) == " 0.0" +string.format("%# -.1f", 123.456789123) == " 123.5" +string.format("%# -.1f", 1234567891.23) == " 1234567891.2" +string.format("%# -.1f", 1.23456789123e-05) == " 0.0" +string.format("%# -1.0f", 0) == " 0." +string.format("%# -1.0f", 1) == " 1." +string.format("%# -1.0f", -1) == "-1." +string.format("%# -1.0f", 2) == " 2." +string.format("%# -1.0f", -2) == "-2." +string.format("%# -1.0f", 3) == " 3." +string.format("%# -1.0f", -3) == "-3." +string.format("%# -1.0f", 100) == " 100." +string.format("%# -1.0f", 10000) == " 10000." +string.format("%# -1.0f", 100000) == " 100000." +string.format("%# -1.0f", 1000000) == " 1000000." +string.format("%# -1.0f", 10000000) == " 10000000." +string.format("%# -1.0f", 0.01) == " 0." +string.format("%# -1.0f", 0.0001) == " 0." +string.format("%# -1.0f", 1e-05) == " 0." +string.format("%# -1.0f", 1e-06) == " 0." +string.format("%# -1.0f", 1e-07) == " 0." +string.format("%# -1.0f", 123.456) == " 123." +string.format("%# -1.0f", 1234560000) == " 1234560000." +string.format("%# -1.0f", 1.23456e-05) == " 0." +string.format("%# -1.0f", 123.456789123) == " 123." +string.format("%# -1.0f", 1234567891.23) == " 1234567891." +string.format("%# -1.0f", 1.23456789123e-05) == " 0." +string.format("%# -1.1f", 0) == " 0.0" +string.format("%# -1.1f", 1) == " 1.0" +string.format("%# -1.1f", -1) == "-1.0" +string.format("%# -1.1f", 2) == " 2.0" +string.format("%# -1.1f", -2) == "-2.0" +string.format("%# -1.1f", 3) == " 3.0" +string.format("%# -1.1f", -3) == "-3.0" +string.format("%# -1.1f", 100) == " 100.0" +string.format("%# -1.1f", 10000) == " 10000.0" +string.format("%# -1.1f", 100000) == " 100000.0" +string.format("%# -1.1f", 1000000) == " 1000000.0" +string.format("%# -1.1f", 10000000) == " 10000000.0" +string.format("%# -1.1f", 0.01) == " 0.0" +string.format("%# -1.1f", 0.0001) == " 0.0" +string.format("%# -1.1f", 1e-05) == " 0.0" +string.format("%# -1.1f", 1e-06) == " 0.0" +string.format("%# -1.1f", 1e-07) == " 0.0" +string.format("%# -1.1f", 123.456) == " 123.5" +string.format("%# -1.1f", 1234560000) == " 1234560000.0" +string.format("%# -1.1f", 1.23456e-05) == " 0.0" +string.format("%# -1.1f", 123.456789123) == " 123.5" +string.format("%# -1.1f", 1234567891.23) == " 1234567891.2" +string.format("%# -1.1f", 1.23456789123e-05) == " 0.0" +string.format("%# -2.0f", 0) == " 0." +string.format("%# -2.0f", 1) == " 1." +string.format("%# -2.0f", -1) == "-1." +string.format("%# -2.0f", 2) == " 2." +string.format("%# -2.0f", -2) == "-2." +string.format("%# -2.0f", 3) == " 3." +string.format("%# -2.0f", -3) == "-3." +string.format("%# -2.0f", 100) == " 100." +string.format("%# -2.0f", 10000) == " 10000." +string.format("%# -2.0f", 100000) == " 100000." +string.format("%# -2.0f", 1000000) == " 1000000." +string.format("%# -2.0f", 10000000) == " 10000000." +string.format("%# -2.0f", 0.01) == " 0." +string.format("%# -2.0f", 0.0001) == " 0." +string.format("%# -2.0f", 1e-05) == " 0." +string.format("%# -2.0f", 1e-06) == " 0." +string.format("%# -2.0f", 1e-07) == " 0." +string.format("%# -2.0f", 123.456) == " 123." +string.format("%# -2.0f", 1234560000) == " 1234560000." +string.format("%# -2.0f", 1.23456e-05) == " 0." +string.format("%# -2.0f", 123.456789123) == " 123." +string.format("%# -2.0f", 1234567891.23) == " 1234567891." +string.format("%# -2.0f", 1.23456789123e-05) == " 0." +string.format("%# -2.1f", 0) == " 0.0" +string.format("%# -2.1f", 1) == " 1.0" +string.format("%# -2.1f", -1) == "-1.0" +string.format("%# -2.1f", 2) == " 2.0" +string.format("%# -2.1f", -2) == "-2.0" +string.format("%# -2.1f", 3) == " 3.0" +string.format("%# -2.1f", -3) == "-3.0" +string.format("%# -2.1f", 100) == " 100.0" +string.format("%# -2.1f", 10000) == " 10000.0" +string.format("%# -2.1f", 100000) == " 100000.0" +string.format("%# -2.1f", 1000000) == " 1000000.0" +string.format("%# -2.1f", 10000000) == " 10000000.0" +string.format("%# -2.1f", 0.01) == " 0.0" +string.format("%# -2.1f", 0.0001) == " 0.0" +string.format("%# -2.1f", 1e-05) == " 0.0" +string.format("%# -2.1f", 1e-06) == " 0.0" +string.format("%# -2.1f", 1e-07) == " 0.0" +string.format("%# -2.1f", 123.456) == " 123.5" +string.format("%# -2.1f", 1234560000) == " 1234560000.0" +string.format("%# -2.1f", 1.23456e-05) == " 0.0" +string.format("%# -2.1f", 123.456789123) == " 123.5" +string.format("%# -2.1f", 1234567891.23) == " 1234567891.2" +string.format("%# -2.1f", 1.23456789123e-05) == " 0.0" +string.format("%# -6f", nan) == " nan " +string.format("%# -6f", inf) == " inf " +string.format("%# -6f", -inf) == "-inf " +string.format("%# -6.0f", 0) == " 0. " +string.format("%# -6.0f", 1) == " 1. " +string.format("%# -6.0f", -1) == "-1. " +string.format("%# -6.0f", 2) == " 2. " +string.format("%# -6.0f", -2) == "-2. " +string.format("%# -6.0f", 3) == " 3. " +string.format("%# -6.0f", -3) == "-3. " +string.format("%# -6.0f", nan) == " nan " +string.format("%# -6.0f", inf) == " inf " +string.format("%# -6.0f", -inf) == "-inf " +string.format("%# -6.0f", 100) == " 100. " +string.format("%# -6.0f", 10000) == " 10000." +string.format("%# -6.0f", 100000) == " 100000." +string.format("%# -6.0f", 1000000) == " 1000000." +string.format("%# -6.0f", 10000000) == " 10000000." +string.format("%# -6.0f", 0.01) == " 0. " +string.format("%# -6.0f", 0.0001) == " 0. " +string.format("%# -6.0f", 1e-05) == " 0. " +string.format("%# -6.0f", 1e-06) == " 0. " +string.format("%# -6.0f", 1e-07) == " 0. " +string.format("%# -6.0f", 123.456) == " 123. " +string.format("%# -6.0f", 1234560000) == " 1234560000." +string.format("%# -6.0f", 1.23456e-05) == " 0. " +string.format("%# -6.0f", 123.456789123) == " 123. " +string.format("%# -6.0f", 1234567891.23) == " 1234567891." +string.format("%# -6.0f", 1.23456789123e-05) == " 0. " +string.format("%# -6.1f", 0) == " 0.0 " +string.format("%# -6.1f", 1) == " 1.0 " +string.format("%# -6.1f", -1) == "-1.0 " +string.format("%# -6.1f", 2) == " 2.0 " +string.format("%# -6.1f", -2) == "-2.0 " +string.format("%# -6.1f", 3) == " 3.0 " +string.format("%# -6.1f", -3) == "-3.0 " +string.format("%# -6.1f", nan) == " nan " +string.format("%# -6.1f", inf) == " inf " +string.format("%# -6.1f", -inf) == "-inf " +string.format("%# -6.1f", 100) == " 100.0" +string.format("%# -6.1f", 10000) == " 10000.0" +string.format("%# -6.1f", 100000) == " 100000.0" +string.format("%# -6.1f", 1000000) == " 1000000.0" +string.format("%# -6.1f", 10000000) == " 10000000.0" +string.format("%# -6.1f", 0.01) == " 0.0 " +string.format("%# -6.1f", 0.0001) == " 0.0 " +string.format("%# -6.1f", 1e-05) == " 0.0 " +string.format("%# -6.1f", 1e-06) == " 0.0 " +string.format("%# -6.1f", 1e-07) == " 0.0 " +string.format("%# -6.1f", 123.456) == " 123.5" +string.format("%# -6.1f", 1234560000) == " 1234560000.0" +string.format("%# -6.1f", 1.23456e-05) == " 0.0 " +string.format("%# -6.1f", 123.456789123) == " 123.5" +string.format("%# -6.1f", 1234567891.23) == " 1234567891.2" +string.format("%# -6.1f", 1.23456789123e-05) == " 0.0 " +string.format("%# -6.6f", nan) == " nan " +string.format("%# -6.6f", inf) == " inf " +string.format("%# -6.6f", -inf) == "-inf " +string.format("%# -20f", 0) == " 0.000000 " +string.format("%# -20f", 1) == " 1.000000 " +string.format("%# -20f", -1) == "-1.000000 " +string.format("%# -20f", 2) == " 2.000000 " +string.format("%# -20f", -2) == "-2.000000 " +string.format("%# -20f", 3) == " 3.000000 " +string.format("%# -20f", -3) == "-3.000000 " +string.format("%# -20f", nan) == " nan " +string.format("%# -20f", inf) == " inf " +string.format("%# -20f", -inf) == "-inf " +string.format("%# -20f", 100) == " 100.000000 " +string.format("%# -20f", 10000) == " 10000.000000 " +string.format("%# -20f", 100000) == " 100000.000000 " +string.format("%# -20f", 1000000) == " 1000000.000000 " +string.format("%# -20f", 10000000) == " 10000000.000000 " +string.format("%# -20f", 0.01) == " 0.010000 " +string.format("%# -20f", 0.0001) == " 0.000100 " +string.format("%# -20f", 1e-05) == " 0.000010 " +string.format("%# -20f", 1e-06) == " 0.000001 " +string.format("%# -20f", 1e-07) == " 0.000000 " +string.format("%# -20f", 123.456) == " 123.456000 " +string.format("%# -20f", 1234560000) == " 1234560000.000000 " +string.format("%# -20f", 1.23456e-05) == " 0.000012 " +string.format("%# -20f", 123.456789123) == " 123.456789 " +string.format("%# -20f", 1234567891.23) == " 1234567891.230000 " +string.format("%# -20f", 1.23456789123e-05) == " 0.000012 " +string.format("%# -20.0f", 0) == " 0. " +string.format("%# -20.0f", 1) == " 1. " +string.format("%# -20.0f", -1) == "-1. " +string.format("%# -20.0f", 2) == " 2. " +string.format("%# -20.0f", -2) == "-2. " +string.format("%# -20.0f", 3) == " 3. " +string.format("%# -20.0f", -3) == "-3. " +string.format("%# -20.0f", nan) == " nan " +string.format("%# -20.0f", inf) == " inf " +string.format("%# -20.0f", -inf) == "-inf " +string.format("%# -20.0f", 100) == " 100. " +string.format("%# -20.0f", 10000) == " 10000. " +string.format("%# -20.0f", 100000) == " 100000. " +string.format("%# -20.0f", 1000000) == " 1000000. " +string.format("%# -20.0f", 10000000) == " 10000000. " +string.format("%# -20.0f", 0.01) == " 0. " +string.format("%# -20.0f", 0.0001) == " 0. " +string.format("%# -20.0f", 1e-05) == " 0. " +string.format("%# -20.0f", 1e-06) == " 0. " +string.format("%# -20.0f", 1e-07) == " 0. " +string.format("%# -20.0f", 123.456) == " 123. " +string.format("%# -20.0f", 1234560000) == " 1234560000. " +string.format("%# -20.0f", 1.23456e-05) == " 0. " +string.format("%# -20.0f", 123.456789123) == " 123. " +string.format("%# -20.0f", 1234567891.23) == " 1234567891. " +string.format("%# -20.0f", 1.23456789123e-05) == " 0. " +string.format("%# -20.1f", 0) == " 0.0 " +string.format("%# -20.1f", 1) == " 1.0 " +string.format("%# -20.1f", -1) == "-1.0 " +string.format("%# -20.1f", 2) == " 2.0 " +string.format("%# -20.1f", -2) == "-2.0 " +string.format("%# -20.1f", 3) == " 3.0 " +string.format("%# -20.1f", -3) == "-3.0 " +string.format("%# -20.1f", nan) == " nan " +string.format("%# -20.1f", inf) == " inf " +string.format("%# -20.1f", -inf) == "-inf " +string.format("%# -20.1f", 100) == " 100.0 " +string.format("%# -20.1f", 10000) == " 10000.0 " +string.format("%# -20.1f", 100000) == " 100000.0 " +string.format("%# -20.1f", 1000000) == " 1000000.0 " +string.format("%# -20.1f", 10000000) == " 10000000.0 " +string.format("%# -20.1f", 0.01) == " 0.0 " +string.format("%# -20.1f", 0.0001) == " 0.0 " +string.format("%# -20.1f", 1e-05) == " 0.0 " +string.format("%# -20.1f", 1e-06) == " 0.0 " +string.format("%# -20.1f", 1e-07) == " 0.0 " +string.format("%# -20.1f", 123.456) == " 123.5 " +string.format("%# -20.1f", 1234560000) == " 1234560000.0 " +string.format("%# -20.1f", 1.23456e-05) == " 0.0 " +string.format("%# -20.1f", 123.456789123) == " 123.5 " +string.format("%# -20.1f", 1234567891.23) == " 1234567891.2 " +string.format("%# -20.1f", 1.23456789123e-05) == " 0.0 " +string.format("%# -20.6f", 0) == " 0.000000 " +string.format("%# -20.6f", 1) == " 1.000000 " +string.format("%# -20.6f", -1) == "-1.000000 " +string.format("%# -20.6f", 2) == " 2.000000 " +string.format("%# -20.6f", -2) == "-2.000000 " +string.format("%# -20.6f", 3) == " 3.000000 " +string.format("%# -20.6f", -3) == "-3.000000 " +string.format("%# -20.6f", nan) == " nan " +string.format("%# -20.6f", inf) == " inf " +string.format("%# -20.6f", -inf) == "-inf " +string.format("%# -20.6f", 100) == " 100.000000 " +string.format("%# -20.6f", 10000) == " 10000.000000 " +string.format("%# -20.6f", 100000) == " 100000.000000 " +string.format("%# -20.6f", 1000000) == " 1000000.000000 " +string.format("%# -20.6f", 10000000) == " 10000000.000000 " +string.format("%# -20.6f", 0.01) == " 0.010000 " +string.format("%# -20.6f", 0.0001) == " 0.000100 " +string.format("%# -20.6f", 1e-05) == " 0.000010 " +string.format("%# -20.6f", 1e-06) == " 0.000001 " +string.format("%# -20.6f", 1e-07) == " 0.000000 " +string.format("%# -20.6f", 123.456) == " 123.456000 " +string.format("%# -20.6f", 1234560000) == " 1234560000.000000 " +string.format("%# -20.6f", 1.23456e-05) == " 0.000012 " +string.format("%# -20.6f", 123.456789123) == " 123.456789 " +string.format("%# -20.6f", 1234567891.23) == " 1234567891.230000 " +string.format("%# -20.6f", 1.23456789123e-05) == " 0.000012 " +string.format("%# -+f", 0) == "+0.000000" +string.format("%# -+f", 1) == "+1.000000" +string.format("%# -+f", -1) == "-1.000000" +string.format("%# -+f", 2) == "+2.000000" +string.format("%# -+f", -2) == "-2.000000" +string.format("%# -+f", 3) == "+3.000000" +string.format("%# -+f", -3) == "-3.000000" +string.format("%# -+f", nan) == "+nan" +string.format("%# -+f", inf) == "+inf" +string.format("%# -+f", -inf) == "-inf" +string.format("%# -+f", 100) == "+100.000000" +string.format("%# -+f", 10000) == "+10000.000000" +string.format("%# -+f", 100000) == "+100000.000000" +string.format("%# -+f", 1000000) == "+1000000.000000" +string.format("%# -+f", 10000000) == "+10000000.000000" +string.format("%# -+f", 0.01) == "+0.010000" +string.format("%# -+f", 0.0001) == "+0.000100" +string.format("%# -+f", 1e-05) == "+0.000010" +string.format("%# -+f", 1e-06) == "+0.000001" +string.format("%# -+f", 1e-07) == "+0.000000" +string.format("%# -+f", 123.456) == "+123.456000" +string.format("%# -+f", 1234560000) == "+1234560000.000000" +string.format("%# -+f", 1.23456e-05) == "+0.000012" +string.format("%# -+f", 123.456789123) == "+123.456789" +string.format("%# -+f", 1234567891.23) == "+1234567891.230000" +string.format("%# -+f", 1.23456789123e-05) == "+0.000012" +string.format("%# -+.0f", 0) == "+0." +string.format("%# -+.0f", 1) == "+1." +string.format("%# -+.0f", -1) == "-1." +string.format("%# -+.0f", 2) == "+2." +string.format("%# -+.0f", -2) == "-2." +string.format("%# -+.0f", 3) == "+3." +string.format("%# -+.0f", -3) == "-3." +string.format("%# -+.0f", 100) == "+100." +string.format("%# -+.0f", 10000) == "+10000." +string.format("%# -+.0f", 100000) == "+100000." +string.format("%# -+.0f", 1000000) == "+1000000." +string.format("%# -+.0f", 10000000) == "+10000000." +string.format("%# -+.0f", 0.01) == "+0." +string.format("%# -+.0f", 0.0001) == "+0." +string.format("%# -+.0f", 1e-05) == "+0." +string.format("%# -+.0f", 1e-06) == "+0." +string.format("%# -+.0f", 1e-07) == "+0." +string.format("%# -+.0f", 123.456) == "+123." +string.format("%# -+.0f", 1234560000) == "+1234560000." +string.format("%# -+.0f", 1.23456e-05) == "+0." +string.format("%# -+.0f", 123.456789123) == "+123." +string.format("%# -+.0f", 1234567891.23) == "+1234567891." +string.format("%# -+.0f", 1.23456789123e-05) == "+0." +string.format("%# -+.1f", 0) == "+0.0" +string.format("%# -+.1f", 1) == "+1.0" +string.format("%# -+.1f", -1) == "-1.0" +string.format("%# -+.1f", 2) == "+2.0" +string.format("%# -+.1f", -2) == "-2.0" +string.format("%# -+.1f", 3) == "+3.0" +string.format("%# -+.1f", -3) == "-3.0" +string.format("%# -+.1f", 100) == "+100.0" +string.format("%# -+.1f", 10000) == "+10000.0" +string.format("%# -+.1f", 100000) == "+100000.0" +string.format("%# -+.1f", 1000000) == "+1000000.0" +string.format("%# -+.1f", 10000000) == "+10000000.0" +string.format("%# -+.1f", 0.01) == "+0.0" +string.format("%# -+.1f", 0.0001) == "+0.0" +string.format("%# -+.1f", 1e-05) == "+0.0" +string.format("%# -+.1f", 1e-06) == "+0.0" +string.format("%# -+.1f", 1e-07) == "+0.0" +string.format("%# -+.1f", 123.456) == "+123.5" +string.format("%# -+.1f", 1234560000) == "+1234560000.0" +string.format("%# -+.1f", 1.23456e-05) == "+0.0" +string.format("%# -+.1f", 123.456789123) == "+123.5" +string.format("%# -+.1f", 1234567891.23) == "+1234567891.2" +string.format("%# -+.1f", 1.23456789123e-05) == "+0.0" +string.format("%# -+1.0f", 0) == "+0." +string.format("%# -+1.0f", 1) == "+1." +string.format("%# -+1.0f", -1) == "-1." +string.format("%# -+1.0f", 2) == "+2." +string.format("%# -+1.0f", -2) == "-2." +string.format("%# -+1.0f", 3) == "+3." +string.format("%# -+1.0f", -3) == "-3." +string.format("%# -+1.0f", 100) == "+100." +string.format("%# -+1.0f", 10000) == "+10000." +string.format("%# -+1.0f", 100000) == "+100000." +string.format("%# -+1.0f", 1000000) == "+1000000." +string.format("%# -+1.0f", 10000000) == "+10000000." +string.format("%# -+1.0f", 0.01) == "+0." +string.format("%# -+1.0f", 0.0001) == "+0." +string.format("%# -+1.0f", 1e-05) == "+0." +string.format("%# -+1.0f", 1e-06) == "+0." +string.format("%# -+1.0f", 1e-07) == "+0." +string.format("%# -+1.0f", 123.456) == "+123." +string.format("%# -+1.0f", 1234560000) == "+1234560000." +string.format("%# -+1.0f", 1.23456e-05) == "+0." +string.format("%# -+1.0f", 123.456789123) == "+123." +string.format("%# -+1.0f", 1234567891.23) == "+1234567891." +string.format("%# -+1.0f", 1.23456789123e-05) == "+0." +string.format("%# -+1.1f", 0) == "+0.0" +string.format("%# -+1.1f", 1) == "+1.0" +string.format("%# -+1.1f", -1) == "-1.0" +string.format("%# -+1.1f", 2) == "+2.0" +string.format("%# -+1.1f", -2) == "-2.0" +string.format("%# -+1.1f", 3) == "+3.0" +string.format("%# -+1.1f", -3) == "-3.0" +string.format("%# -+1.1f", 100) == "+100.0" +string.format("%# -+1.1f", 10000) == "+10000.0" +string.format("%# -+1.1f", 100000) == "+100000.0" +string.format("%# -+1.1f", 1000000) == "+1000000.0" +string.format("%# -+1.1f", 10000000) == "+10000000.0" +string.format("%# -+1.1f", 0.01) == "+0.0" +string.format("%# -+1.1f", 0.0001) == "+0.0" +string.format("%# -+1.1f", 1e-05) == "+0.0" +string.format("%# -+1.1f", 1e-06) == "+0.0" +string.format("%# -+1.1f", 1e-07) == "+0.0" +string.format("%# -+1.1f", 123.456) == "+123.5" +string.format("%# -+1.1f", 1234560000) == "+1234560000.0" +string.format("%# -+1.1f", 1.23456e-05) == "+0.0" +string.format("%# -+1.1f", 123.456789123) == "+123.5" +string.format("%# -+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%# -+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%# -+2.0f", 0) == "+0." +string.format("%# -+2.0f", 1) == "+1." +string.format("%# -+2.0f", -1) == "-1." +string.format("%# -+2.0f", 2) == "+2." +string.format("%# -+2.0f", -2) == "-2." +string.format("%# -+2.0f", 3) == "+3." +string.format("%# -+2.0f", -3) == "-3." +string.format("%# -+2.0f", 100) == "+100." +string.format("%# -+2.0f", 10000) == "+10000." +string.format("%# -+2.0f", 100000) == "+100000." +string.format("%# -+2.0f", 1000000) == "+1000000." +string.format("%# -+2.0f", 10000000) == "+10000000." +string.format("%# -+2.0f", 0.01) == "+0." +string.format("%# -+2.0f", 0.0001) == "+0." +string.format("%# -+2.0f", 1e-05) == "+0." +string.format("%# -+2.0f", 1e-06) == "+0." +string.format("%# -+2.0f", 1e-07) == "+0." +string.format("%# -+2.0f", 123.456) == "+123." +string.format("%# -+2.0f", 1234560000) == "+1234560000." +string.format("%# -+2.0f", 1.23456e-05) == "+0." +string.format("%# -+2.0f", 123.456789123) == "+123." +string.format("%# -+2.0f", 1234567891.23) == "+1234567891." +string.format("%# -+2.0f", 1.23456789123e-05) == "+0." +string.format("%# -+2.1f", 0) == "+0.0" +string.format("%# -+2.1f", 1) == "+1.0" +string.format("%# -+2.1f", -1) == "-1.0" +string.format("%# -+2.1f", 2) == "+2.0" +string.format("%# -+2.1f", -2) == "-2.0" +string.format("%# -+2.1f", 3) == "+3.0" +string.format("%# -+2.1f", -3) == "-3.0" +string.format("%# -+2.1f", 100) == "+100.0" +string.format("%# -+2.1f", 10000) == "+10000.0" +string.format("%# -+2.1f", 100000) == "+100000.0" +string.format("%# -+2.1f", 1000000) == "+1000000.0" +string.format("%# -+2.1f", 10000000) == "+10000000.0" +string.format("%# -+2.1f", 0.01) == "+0.0" +string.format("%# -+2.1f", 0.0001) == "+0.0" +string.format("%# -+2.1f", 1e-05) == "+0.0" +string.format("%# -+2.1f", 1e-06) == "+0.0" +string.format("%# -+2.1f", 1e-07) == "+0.0" +string.format("%# -+2.1f", 123.456) == "+123.5" +string.format("%# -+2.1f", 1234560000) == "+1234560000.0" +string.format("%# -+2.1f", 1.23456e-05) == "+0.0" +string.format("%# -+2.1f", 123.456789123) == "+123.5" +string.format("%# -+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%# -+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%# -+6f", nan) == "+nan " +string.format("%# -+6f", inf) == "+inf " +string.format("%# -+6f", -inf) == "-inf " +string.format("%# -+6.0f", 0) == "+0. " +string.format("%# -+6.0f", 1) == "+1. " +string.format("%# -+6.0f", -1) == "-1. " +string.format("%# -+6.0f", 2) == "+2. " +string.format("%# -+6.0f", -2) == "-2. " +string.format("%# -+6.0f", 3) == "+3. " +string.format("%# -+6.0f", -3) == "-3. " +string.format("%# -+6.0f", nan) == "+nan " +string.format("%# -+6.0f", inf) == "+inf " +string.format("%# -+6.0f", -inf) == "-inf " +string.format("%# -+6.0f", 100) == "+100. " +string.format("%# -+6.0f", 10000) == "+10000." +string.format("%# -+6.0f", 100000) == "+100000." +string.format("%# -+6.0f", 1000000) == "+1000000." +string.format("%# -+6.0f", 10000000) == "+10000000." +string.format("%# -+6.0f", 0.01) == "+0. " +string.format("%# -+6.0f", 0.0001) == "+0. " +string.format("%# -+6.0f", 1e-05) == "+0. " +string.format("%# -+6.0f", 1e-06) == "+0. " +string.format("%# -+6.0f", 1e-07) == "+0. " +string.format("%# -+6.0f", 123.456) == "+123. " +string.format("%# -+6.0f", 1234560000) == "+1234560000." +string.format("%# -+6.0f", 1.23456e-05) == "+0. " +string.format("%# -+6.0f", 123.456789123) == "+123. " +string.format("%# -+6.0f", 1234567891.23) == "+1234567891." +string.format("%# -+6.0f", 1.23456789123e-05) == "+0. " +string.format("%# -+6.1f", 0) == "+0.0 " +string.format("%# -+6.1f", 1) == "+1.0 " +string.format("%# -+6.1f", -1) == "-1.0 " +string.format("%# -+6.1f", 2) == "+2.0 " +string.format("%# -+6.1f", -2) == "-2.0 " +string.format("%# -+6.1f", 3) == "+3.0 " +string.format("%# -+6.1f", -3) == "-3.0 " +string.format("%# -+6.1f", nan) == "+nan " +string.format("%# -+6.1f", inf) == "+inf " +string.format("%# -+6.1f", -inf) == "-inf " +string.format("%# -+6.1f", 100) == "+100.0" +string.format("%# -+6.1f", 10000) == "+10000.0" +string.format("%# -+6.1f", 100000) == "+100000.0" +string.format("%# -+6.1f", 1000000) == "+1000000.0" +string.format("%# -+6.1f", 10000000) == "+10000000.0" +string.format("%# -+6.1f", 0.01) == "+0.0 " +string.format("%# -+6.1f", 0.0001) == "+0.0 " +string.format("%# -+6.1f", 1e-05) == "+0.0 " +string.format("%# -+6.1f", 1e-06) == "+0.0 " +string.format("%# -+6.1f", 1e-07) == "+0.0 " +string.format("%# -+6.1f", 123.456) == "+123.5" +string.format("%# -+6.1f", 1234560000) == "+1234560000.0" +string.format("%# -+6.1f", 1.23456e-05) == "+0.0 " +string.format("%# -+6.1f", 123.456789123) == "+123.5" +string.format("%# -+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%# -+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%# -+6.6f", nan) == "+nan " +string.format("%# -+6.6f", inf) == "+inf " +string.format("%# -+6.6f", -inf) == "-inf " +string.format("%# -+20f", 0) == "+0.000000 " +string.format("%# -+20f", 1) == "+1.000000 " +string.format("%# -+20f", -1) == "-1.000000 " +string.format("%# -+20f", 2) == "+2.000000 " +string.format("%# -+20f", -2) == "-2.000000 " +string.format("%# -+20f", 3) == "+3.000000 " +string.format("%# -+20f", -3) == "-3.000000 " +string.format("%# -+20f", nan) == "+nan " +string.format("%# -+20f", inf) == "+inf " +string.format("%# -+20f", -inf) == "-inf " +string.format("%# -+20f", 100) == "+100.000000 " +string.format("%# -+20f", 10000) == "+10000.000000 " +string.format("%# -+20f", 100000) == "+100000.000000 " +string.format("%# -+20f", 1000000) == "+1000000.000000 " +string.format("%# -+20f", 10000000) == "+10000000.000000 " +string.format("%# -+20f", 0.01) == "+0.010000 " +string.format("%# -+20f", 0.0001) == "+0.000100 " +string.format("%# -+20f", 1e-05) == "+0.000010 " +string.format("%# -+20f", 1e-06) == "+0.000001 " +string.format("%# -+20f", 1e-07) == "+0.000000 " +string.format("%# -+20f", 123.456) == "+123.456000 " +string.format("%# -+20f", 1234560000) == "+1234560000.000000 " +string.format("%# -+20f", 1.23456e-05) == "+0.000012 " +string.format("%# -+20f", 123.456789123) == "+123.456789 " +string.format("%# -+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%# -+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%# -+20.0f", 0) == "+0. " +string.format("%# -+20.0f", 1) == "+1. " +string.format("%# -+20.0f", -1) == "-1. " +string.format("%# -+20.0f", 2) == "+2. " +string.format("%# -+20.0f", -2) == "-2. " +string.format("%# -+20.0f", 3) == "+3. " +string.format("%# -+20.0f", -3) == "-3. " +string.format("%# -+20.0f", nan) == "+nan " +string.format("%# -+20.0f", inf) == "+inf " +string.format("%# -+20.0f", -inf) == "-inf " +string.format("%# -+20.0f", 100) == "+100. " +string.format("%# -+20.0f", 10000) == "+10000. " +string.format("%# -+20.0f", 100000) == "+100000. " +string.format("%# -+20.0f", 1000000) == "+1000000. " +string.format("%# -+20.0f", 10000000) == "+10000000. " +string.format("%# -+20.0f", 0.01) == "+0. " +string.format("%# -+20.0f", 0.0001) == "+0. " +string.format("%# -+20.0f", 1e-05) == "+0. " +string.format("%# -+20.0f", 1e-06) == "+0. " +string.format("%# -+20.0f", 1e-07) == "+0. " +string.format("%# -+20.0f", 123.456) == "+123. " +string.format("%# -+20.0f", 1234560000) == "+1234560000. " +string.format("%# -+20.0f", 1.23456e-05) == "+0. " +string.format("%# -+20.0f", 123.456789123) == "+123. " +string.format("%# -+20.0f", 1234567891.23) == "+1234567891. " +string.format("%# -+20.0f", 1.23456789123e-05) == "+0. " +string.format("%# -+20.1f", 0) == "+0.0 " +string.format("%# -+20.1f", 1) == "+1.0 " +string.format("%# -+20.1f", -1) == "-1.0 " +string.format("%# -+20.1f", 2) == "+2.0 " +string.format("%# -+20.1f", -2) == "-2.0 " +string.format("%# -+20.1f", 3) == "+3.0 " +string.format("%# -+20.1f", -3) == "-3.0 " +string.format("%# -+20.1f", nan) == "+nan " +string.format("%# -+20.1f", inf) == "+inf " +string.format("%# -+20.1f", -inf) == "-inf " +string.format("%# -+20.1f", 100) == "+100.0 " +string.format("%# -+20.1f", 10000) == "+10000.0 " +string.format("%# -+20.1f", 100000) == "+100000.0 " +string.format("%# -+20.1f", 1000000) == "+1000000.0 " +string.format("%# -+20.1f", 10000000) == "+10000000.0 " +string.format("%# -+20.1f", 0.01) == "+0.0 " +string.format("%# -+20.1f", 0.0001) == "+0.0 " +string.format("%# -+20.1f", 1e-05) == "+0.0 " +string.format("%# -+20.1f", 1e-06) == "+0.0 " +string.format("%# -+20.1f", 1e-07) == "+0.0 " +string.format("%# -+20.1f", 123.456) == "+123.5 " +string.format("%# -+20.1f", 1234560000) == "+1234560000.0 " +string.format("%# -+20.1f", 1.23456e-05) == "+0.0 " +string.format("%# -+20.1f", 123.456789123) == "+123.5 " +string.format("%# -+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%# -+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%# -+20.6f", 0) == "+0.000000 " +string.format("%# -+20.6f", 1) == "+1.000000 " +string.format("%# -+20.6f", -1) == "-1.000000 " +string.format("%# -+20.6f", 2) == "+2.000000 " +string.format("%# -+20.6f", -2) == "-2.000000 " +string.format("%# -+20.6f", 3) == "+3.000000 " +string.format("%# -+20.6f", -3) == "-3.000000 " +string.format("%# -+20.6f", nan) == "+nan " +string.format("%# -+20.6f", inf) == "+inf " +string.format("%# -+20.6f", -inf) == "-inf " +string.format("%# -+20.6f", 100) == "+100.000000 " +string.format("%# -+20.6f", 10000) == "+10000.000000 " +string.format("%# -+20.6f", 100000) == "+100000.000000 " +string.format("%# -+20.6f", 1000000) == "+1000000.000000 " +string.format("%# -+20.6f", 10000000) == "+10000000.000000 " +string.format("%# -+20.6f", 0.01) == "+0.010000 " +string.format("%# -+20.6f", 0.0001) == "+0.000100 " +string.format("%# -+20.6f", 1e-05) == "+0.000010 " +string.format("%# -+20.6f", 1e-06) == "+0.000001 " +string.format("%# -+20.6f", 1e-07) == "+0.000000 " +string.format("%# -+20.6f", 123.456) == "+123.456000 " +string.format("%# -+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%# -+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%# -+20.6f", 123.456789123) == "+123.456789 " +string.format("%# -+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%# -+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%0f", 0) == "0.000000" +string.format("%0f", 1) == "1.000000" +string.format("%0f", -1) == "-1.000000" +string.format("%0f", 2) == "2.000000" +string.format("%0f", -2) == "-2.000000" +string.format("%0f", 3) == "3.000000" +string.format("%0f", -3) == "-3.000000" +string.format("%0f", nan) == "nan" +string.format("%0f", inf) == "inf" +string.format("%0f", -inf) == "-inf" +string.format("%0f", 100) == "100.000000" +string.format("%0f", 10000) == "10000.000000" +string.format("%0f", 100000) == "100000.000000" +string.format("%0f", 1000000) == "1000000.000000" +string.format("%0f", 10000000) == "10000000.000000" +string.format("%0f", 0.01) == "0.010000" +string.format("%0f", 0.0001) == "0.000100" +string.format("%0f", 1e-05) == "0.000010" +string.format("%0f", 1e-06) == "0.000001" +string.format("%0f", 1e-07) == "0.000000" +string.format("%0f", 123.456) == "123.456000" +string.format("%0f", 1234560000) == "1234560000.000000" +string.format("%0f", 1.23456e-05) == "0.000012" +string.format("%0f", 123.456789123) == "123.456789" +string.format("%0f", 1234567891.23) == "1234567891.230000" +string.format("%0f", 1.23456789123e-05) == "0.000012" +string.format("%0.0f", 0) == "0" +string.format("%0.0f", 1) == "1" +string.format("%0.0f", -1) == "-1" +string.format("%0.0f", 2) == "2" +string.format("%0.0f", -2) == "-2" +string.format("%0.0f", 3) == "3" +string.format("%0.0f", -3) == "-3" +string.format("%0.0f", 100) == "100" +string.format("%0.0f", 10000) == "10000" +string.format("%0.0f", 100000) == "100000" +string.format("%0.0f", 1000000) == "1000000" +string.format("%0.0f", 10000000) == "10000000" +string.format("%0.0f", 0.01) == "0" +string.format("%0.0f", 0.0001) == "0" +string.format("%0.0f", 1e-05) == "0" +string.format("%0.0f", 1e-06) == "0" +string.format("%0.0f", 1e-07) == "0" +string.format("%0.0f", 123.456) == "123" +string.format("%0.0f", 1234560000) == "1234560000" +string.format("%0.0f", 1.23456e-05) == "0" +string.format("%0.0f", 123.456789123) == "123" +string.format("%0.0f", 1234567891.23) == "1234567891" +string.format("%0.0f", 1.23456789123e-05) == "0" +string.format("%0.1f", 0) == "0.0" +string.format("%0.1f", 1) == "1.0" +string.format("%0.1f", -1) == "-1.0" +string.format("%0.1f", 2) == "2.0" +string.format("%0.1f", -2) == "-2.0" +string.format("%0.1f", 3) == "3.0" +string.format("%0.1f", -3) == "-3.0" +string.format("%0.1f", 100) == "100.0" +string.format("%0.1f", 10000) == "10000.0" +string.format("%0.1f", 100000) == "100000.0" +string.format("%0.1f", 1000000) == "1000000.0" +string.format("%0.1f", 10000000) == "10000000.0" +string.format("%0.1f", 0.01) == "0.0" +string.format("%0.1f", 0.0001) == "0.0" +string.format("%0.1f", 1e-05) == "0.0" +string.format("%0.1f", 1e-06) == "0.0" +string.format("%0.1f", 1e-07) == "0.0" +string.format("%0.1f", 123.456) == "123.5" +string.format("%0.1f", 1234560000) == "1234560000.0" +string.format("%0.1f", 1.23456e-05) == "0.0" +string.format("%0.1f", 123.456789123) == "123.5" +string.format("%0.1f", 1234567891.23) == "1234567891.2" +string.format("%0.1f", 1.23456789123e-05) == "0.0" +string.format("%01.0f", 0) == "0" +string.format("%01.0f", 1) == "1" +string.format("%01.0f", -1) == "-1" +string.format("%01.0f", 2) == "2" +string.format("%01.0f", -2) == "-2" +string.format("%01.0f", 3) == "3" +string.format("%01.0f", -3) == "-3" +string.format("%01.0f", 100) == "100" +string.format("%01.0f", 10000) == "10000" +string.format("%01.0f", 100000) == "100000" +string.format("%01.0f", 1000000) == "1000000" +string.format("%01.0f", 10000000) == "10000000" +string.format("%01.0f", 0.01) == "0" +string.format("%01.0f", 0.0001) == "0" +string.format("%01.0f", 1e-05) == "0" +string.format("%01.0f", 1e-06) == "0" +string.format("%01.0f", 1e-07) == "0" +string.format("%01.0f", 123.456) == "123" +string.format("%01.0f", 1234560000) == "1234560000" +string.format("%01.0f", 1.23456e-05) == "0" +string.format("%01.0f", 123.456789123) == "123" +string.format("%01.0f", 1234567891.23) == "1234567891" +string.format("%01.0f", 1.23456789123e-05) == "0" +string.format("%01.1f", 0) == "0.0" +string.format("%01.1f", 1) == "1.0" +string.format("%01.1f", -1) == "-1.0" +string.format("%01.1f", 2) == "2.0" +string.format("%01.1f", -2) == "-2.0" +string.format("%01.1f", 3) == "3.0" +string.format("%01.1f", -3) == "-3.0" +string.format("%01.1f", 100) == "100.0" +string.format("%01.1f", 10000) == "10000.0" +string.format("%01.1f", 100000) == "100000.0" +string.format("%01.1f", 1000000) == "1000000.0" +string.format("%01.1f", 10000000) == "10000000.0" +string.format("%01.1f", 0.01) == "0.0" +string.format("%01.1f", 0.0001) == "0.0" +string.format("%01.1f", 1e-05) == "0.0" +string.format("%01.1f", 1e-06) == "0.0" +string.format("%01.1f", 1e-07) == "0.0" +string.format("%01.1f", 123.456) == "123.5" +string.format("%01.1f", 1234560000) == "1234560000.0" +string.format("%01.1f", 1.23456e-05) == "0.0" +string.format("%01.1f", 123.456789123) == "123.5" +string.format("%01.1f", 1234567891.23) == "1234567891.2" +string.format("%01.1f", 1.23456789123e-05) == "0.0" +string.format("%02.0f", 0) == "00" +string.format("%02.0f", 1) == "01" +string.format("%02.0f", -1) == "-1" +string.format("%02.0f", 2) == "02" +string.format("%02.0f", -2) == "-2" +string.format("%02.0f", 3) == "03" +string.format("%02.0f", -3) == "-3" +string.format("%02.0f", 100) == "100" +string.format("%02.0f", 10000) == "10000" +string.format("%02.0f", 100000) == "100000" +string.format("%02.0f", 1000000) == "1000000" +string.format("%02.0f", 10000000) == "10000000" +string.format("%02.0f", 0.01) == "00" +string.format("%02.0f", 0.0001) == "00" +string.format("%02.0f", 1e-05) == "00" +string.format("%02.0f", 1e-06) == "00" +string.format("%02.0f", 1e-07) == "00" +string.format("%02.0f", 123.456) == "123" +string.format("%02.0f", 1234560000) == "1234560000" +string.format("%02.0f", 1.23456e-05) == "00" +string.format("%02.0f", 123.456789123) == "123" +string.format("%02.0f", 1234567891.23) == "1234567891" +string.format("%02.0f", 1.23456789123e-05) == "00" +string.format("%02.1f", 0) == "0.0" +string.format("%02.1f", 1) == "1.0" +string.format("%02.1f", -1) == "-1.0" +string.format("%02.1f", 2) == "2.0" +string.format("%02.1f", -2) == "-2.0" +string.format("%02.1f", 3) == "3.0" +string.format("%02.1f", -3) == "-3.0" +string.format("%02.1f", 100) == "100.0" +string.format("%02.1f", 10000) == "10000.0" +string.format("%02.1f", 100000) == "100000.0" +string.format("%02.1f", 1000000) == "1000000.0" +string.format("%02.1f", 10000000) == "10000000.0" +string.format("%02.1f", 0.01) == "0.0" +string.format("%02.1f", 0.0001) == "0.0" +string.format("%02.1f", 1e-05) == "0.0" +string.format("%02.1f", 1e-06) == "0.0" +string.format("%02.1f", 1e-07) == "0.0" +string.format("%02.1f", 123.456) == "123.5" +string.format("%02.1f", 1234560000) == "1234560000.0" +string.format("%02.1f", 1.23456e-05) == "0.0" +string.format("%02.1f", 123.456789123) == "123.5" +string.format("%02.1f", 1234567891.23) == "1234567891.2" +string.format("%02.1f", 1.23456789123e-05) == "0.0" +string.format("%06f", nan) == " nan" +string.format("%06f", inf) == " inf" +string.format("%06f", -inf) == " -inf" +string.format("%06.0f", 0) == "000000" +string.format("%06.0f", 1) == "000001" +string.format("%06.0f", -1) == "-00001" +string.format("%06.0f", 2) == "000002" +string.format("%06.0f", -2) == "-00002" +string.format("%06.0f", 3) == "000003" +string.format("%06.0f", -3) == "-00003" +string.format("%06.0f", nan) == " nan" +string.format("%06.0f", inf) == " inf" +string.format("%06.0f", -inf) == " -inf" +string.format("%06.0f", 100) == "000100" +string.format("%06.0f", 10000) == "010000" +string.format("%06.0f", 100000) == "100000" +string.format("%06.0f", 1000000) == "1000000" +string.format("%06.0f", 10000000) == "10000000" +string.format("%06.0f", 0.01) == "000000" +string.format("%06.0f", 0.0001) == "000000" +string.format("%06.0f", 1e-05) == "000000" +string.format("%06.0f", 1e-06) == "000000" +string.format("%06.0f", 1e-07) == "000000" +string.format("%06.0f", 123.456) == "000123" +string.format("%06.0f", 1234560000) == "1234560000" +string.format("%06.0f", 1.23456e-05) == "000000" +string.format("%06.0f", 123.456789123) == "000123" +string.format("%06.0f", 1234567891.23) == "1234567891" +string.format("%06.0f", 1.23456789123e-05) == "000000" +string.format("%06.1f", 0) == "0000.0" +string.format("%06.1f", 1) == "0001.0" +string.format("%06.1f", -1) == "-001.0" +string.format("%06.1f", 2) == "0002.0" +string.format("%06.1f", -2) == "-002.0" +string.format("%06.1f", 3) == "0003.0" +string.format("%06.1f", -3) == "-003.0" +string.format("%06.1f", nan) == " nan" +string.format("%06.1f", inf) == " inf" +string.format("%06.1f", -inf) == " -inf" +string.format("%06.1f", 100) == "0100.0" +string.format("%06.1f", 10000) == "10000.0" +string.format("%06.1f", 100000) == "100000.0" +string.format("%06.1f", 1000000) == "1000000.0" +string.format("%06.1f", 10000000) == "10000000.0" +string.format("%06.1f", 0.01) == "0000.0" +string.format("%06.1f", 0.0001) == "0000.0" +string.format("%06.1f", 1e-05) == "0000.0" +string.format("%06.1f", 1e-06) == "0000.0" +string.format("%06.1f", 1e-07) == "0000.0" +string.format("%06.1f", 123.456) == "0123.5" +string.format("%06.1f", 1234560000) == "1234560000.0" +string.format("%06.1f", 1.23456e-05) == "0000.0" +string.format("%06.1f", 123.456789123) == "0123.5" +string.format("%06.1f", 1234567891.23) == "1234567891.2" +string.format("%06.1f", 1.23456789123e-05) == "0000.0" +string.format("%06.6f", nan) == " nan" +string.format("%06.6f", inf) == " inf" +string.format("%06.6f", -inf) == " -inf" +string.format("%020f", 0) == "0000000000000.000000" +string.format("%020f", 1) == "0000000000001.000000" +string.format("%020f", -1) == "-000000000001.000000" +string.format("%020f", 2) == "0000000000002.000000" +string.format("%020f", -2) == "-000000000002.000000" +string.format("%020f", 3) == "0000000000003.000000" +string.format("%020f", -3) == "-000000000003.000000" +string.format("%020f", nan) == " nan" +string.format("%020f", inf) == " inf" +string.format("%020f", -inf) == " -inf" +string.format("%020f", 100) == "0000000000100.000000" +string.format("%020f", 10000) == "0000000010000.000000" +string.format("%020f", 100000) == "0000000100000.000000" +string.format("%020f", 1000000) == "0000001000000.000000" +string.format("%020f", 10000000) == "0000010000000.000000" +string.format("%020f", 0.01) == "0000000000000.010000" +string.format("%020f", 0.0001) == "0000000000000.000100" +string.format("%020f", 1e-05) == "0000000000000.000010" +string.format("%020f", 1e-06) == "0000000000000.000001" +string.format("%020f", 1e-07) == "0000000000000.000000" +string.format("%020f", 123.456) == "0000000000123.456000" +string.format("%020f", 1234560000) == "0001234560000.000000" +string.format("%020f", 1.23456e-05) == "0000000000000.000012" +string.format("%020f", 123.456789123) == "0000000000123.456789" +string.format("%020f", 1234567891.23) == "0001234567891.230000" +string.format("%020f", 1.23456789123e-05) == "0000000000000.000012" +string.format("%020.0f", 0) == "00000000000000000000" +string.format("%020.0f", 1) == "00000000000000000001" +string.format("%020.0f", -1) == "-0000000000000000001" +string.format("%020.0f", 2) == "00000000000000000002" +string.format("%020.0f", -2) == "-0000000000000000002" +string.format("%020.0f", 3) == "00000000000000000003" +string.format("%020.0f", -3) == "-0000000000000000003" +string.format("%020.0f", nan) == " nan" +string.format("%020.0f", inf) == " inf" +string.format("%020.0f", -inf) == " -inf" +string.format("%020.0f", 100) == "00000000000000000100" +string.format("%020.0f", 10000) == "00000000000000010000" +string.format("%020.0f", 100000) == "00000000000000100000" +string.format("%020.0f", 1000000) == "00000000000001000000" +string.format("%020.0f", 10000000) == "00000000000010000000" +string.format("%020.0f", 0.01) == "00000000000000000000" +string.format("%020.0f", 0.0001) == "00000000000000000000" +string.format("%020.0f", 1e-05) == "00000000000000000000" +string.format("%020.0f", 1e-06) == "00000000000000000000" +string.format("%020.0f", 1e-07) == "00000000000000000000" +string.format("%020.0f", 123.456) == "00000000000000000123" +string.format("%020.0f", 1234560000) == "00000000001234560000" +string.format("%020.0f", 1.23456e-05) == "00000000000000000000" +string.format("%020.0f", 123.456789123) == "00000000000000000123" +string.format("%020.0f", 1234567891.23) == "00000000001234567891" +string.format("%020.0f", 1.23456789123e-05) == "00000000000000000000" +string.format("%020.1f", 0) == "000000000000000000.0" +string.format("%020.1f", 1) == "000000000000000001.0" +string.format("%020.1f", -1) == "-00000000000000001.0" +string.format("%020.1f", 2) == "000000000000000002.0" +string.format("%020.1f", -2) == "-00000000000000002.0" +string.format("%020.1f", 3) == "000000000000000003.0" +string.format("%020.1f", -3) == "-00000000000000003.0" +string.format("%020.1f", nan) == " nan" +string.format("%020.1f", inf) == " inf" +string.format("%020.1f", -inf) == " -inf" +string.format("%020.1f", 100) == "000000000000000100.0" +string.format("%020.1f", 10000) == "000000000000010000.0" +string.format("%020.1f", 100000) == "000000000000100000.0" +string.format("%020.1f", 1000000) == "000000000001000000.0" +string.format("%020.1f", 10000000) == "000000000010000000.0" +string.format("%020.1f", 0.01) == "000000000000000000.0" +string.format("%020.1f", 0.0001) == "000000000000000000.0" +string.format("%020.1f", 1e-05) == "000000000000000000.0" +string.format("%020.1f", 1e-06) == "000000000000000000.0" +string.format("%020.1f", 1e-07) == "000000000000000000.0" +string.format("%020.1f", 123.456) == "000000000000000123.5" +string.format("%020.1f", 1234560000) == "000000001234560000.0" +string.format("%020.1f", 1.23456e-05) == "000000000000000000.0" +string.format("%020.1f", 123.456789123) == "000000000000000123.5" +string.format("%020.1f", 1234567891.23) == "000000001234567891.2" +string.format("%020.1f", 1.23456789123e-05) == "000000000000000000.0" +string.format("%020.6f", 0) == "0000000000000.000000" +string.format("%020.6f", 1) == "0000000000001.000000" +string.format("%020.6f", -1) == "-000000000001.000000" +string.format("%020.6f", 2) == "0000000000002.000000" +string.format("%020.6f", -2) == "-000000000002.000000" +string.format("%020.6f", 3) == "0000000000003.000000" +string.format("%020.6f", -3) == "-000000000003.000000" +string.format("%020.6f", nan) == " nan" +string.format("%020.6f", inf) == " inf" +string.format("%020.6f", -inf) == " -inf" +string.format("%020.6f", 100) == "0000000000100.000000" +string.format("%020.6f", 10000) == "0000000010000.000000" +string.format("%020.6f", 100000) == "0000000100000.000000" +string.format("%020.6f", 1000000) == "0000001000000.000000" +string.format("%020.6f", 10000000) == "0000010000000.000000" +string.format("%020.6f", 0.01) == "0000000000000.010000" +string.format("%020.6f", 0.0001) == "0000000000000.000100" +string.format("%020.6f", 1e-05) == "0000000000000.000010" +string.format("%020.6f", 1e-06) == "0000000000000.000001" +string.format("%020.6f", 1e-07) == "0000000000000.000000" +string.format("%020.6f", 123.456) == "0000000000123.456000" +string.format("%020.6f", 1234560000) == "0001234560000.000000" +string.format("%020.6f", 1.23456e-05) == "0000000000000.000012" +string.format("%020.6f", 123.456789123) == "0000000000123.456789" +string.format("%020.6f", 1234567891.23) == "0001234567891.230000" +string.format("%020.6f", 1.23456789123e-05) == "0000000000000.000012" +string.format("%0+f", 0) == "+0.000000" +string.format("%0+f", 1) == "+1.000000" +string.format("%0+f", -1) == "-1.000000" +string.format("%0+f", 2) == "+2.000000" +string.format("%0+f", -2) == "-2.000000" +string.format("%0+f", 3) == "+3.000000" +string.format("%0+f", -3) == "-3.000000" +string.format("%0+f", nan) == "+nan" +string.format("%0+f", inf) == "+inf" +string.format("%0+f", -inf) == "-inf" +string.format("%0+f", 100) == "+100.000000" +string.format("%0+f", 10000) == "+10000.000000" +string.format("%0+f", 100000) == "+100000.000000" +string.format("%0+f", 1000000) == "+1000000.000000" +string.format("%0+f", 10000000) == "+10000000.000000" +string.format("%0+f", 0.01) == "+0.010000" +string.format("%0+f", 0.0001) == "+0.000100" +string.format("%0+f", 1e-05) == "+0.000010" +string.format("%0+f", 1e-06) == "+0.000001" +string.format("%0+f", 1e-07) == "+0.000000" +string.format("%0+f", 123.456) == "+123.456000" +string.format("%0+f", 1234560000) == "+1234560000.000000" +string.format("%0+f", 1.23456e-05) == "+0.000012" +string.format("%0+f", 123.456789123) == "+123.456789" +string.format("%0+f", 1234567891.23) == "+1234567891.230000" +string.format("%0+f", 1.23456789123e-05) == "+0.000012" +string.format("%0+.0f", 0) == "+0" +string.format("%0+.0f", 1) == "+1" +string.format("%0+.0f", -1) == "-1" +string.format("%0+.0f", 2) == "+2" +string.format("%0+.0f", -2) == "-2" +string.format("%0+.0f", 3) == "+3" +string.format("%0+.0f", -3) == "-3" +string.format("%0+.0f", 100) == "+100" +string.format("%0+.0f", 10000) == "+10000" +string.format("%0+.0f", 100000) == "+100000" +string.format("%0+.0f", 1000000) == "+1000000" +string.format("%0+.0f", 10000000) == "+10000000" +string.format("%0+.0f", 0.01) == "+0" +string.format("%0+.0f", 0.0001) == "+0" +string.format("%0+.0f", 1e-05) == "+0" +string.format("%0+.0f", 1e-06) == "+0" +string.format("%0+.0f", 1e-07) == "+0" +string.format("%0+.0f", 123.456) == "+123" +string.format("%0+.0f", 1234560000) == "+1234560000" +string.format("%0+.0f", 1.23456e-05) == "+0" +string.format("%0+.0f", 123.456789123) == "+123" +string.format("%0+.0f", 1234567891.23) == "+1234567891" +string.format("%0+.0f", 1.23456789123e-05) == "+0" +string.format("%0+.1f", 0) == "+0.0" +string.format("%0+.1f", 1) == "+1.0" +string.format("%0+.1f", -1) == "-1.0" +string.format("%0+.1f", 2) == "+2.0" +string.format("%0+.1f", -2) == "-2.0" +string.format("%0+.1f", 3) == "+3.0" +string.format("%0+.1f", -3) == "-3.0" +string.format("%0+.1f", 100) == "+100.0" +string.format("%0+.1f", 10000) == "+10000.0" +string.format("%0+.1f", 100000) == "+100000.0" +string.format("%0+.1f", 1000000) == "+1000000.0" +string.format("%0+.1f", 10000000) == "+10000000.0" +string.format("%0+.1f", 0.01) == "+0.0" +string.format("%0+.1f", 0.0001) == "+0.0" +string.format("%0+.1f", 1e-05) == "+0.0" +string.format("%0+.1f", 1e-06) == "+0.0" +string.format("%0+.1f", 1e-07) == "+0.0" +string.format("%0+.1f", 123.456) == "+123.5" +string.format("%0+.1f", 1234560000) == "+1234560000.0" +string.format("%0+.1f", 1.23456e-05) == "+0.0" +string.format("%0+.1f", 123.456789123) == "+123.5" +string.format("%0+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0+1.0f", 0) == "+0" +string.format("%0+1.0f", 1) == "+1" +string.format("%0+1.0f", -1) == "-1" +string.format("%0+1.0f", 2) == "+2" +string.format("%0+1.0f", -2) == "-2" +string.format("%0+1.0f", 3) == "+3" +string.format("%0+1.0f", -3) == "-3" +string.format("%0+1.0f", 100) == "+100" +string.format("%0+1.0f", 10000) == "+10000" +string.format("%0+1.0f", 100000) == "+100000" +string.format("%0+1.0f", 1000000) == "+1000000" +string.format("%0+1.0f", 10000000) == "+10000000" +string.format("%0+1.0f", 0.01) == "+0" +string.format("%0+1.0f", 0.0001) == "+0" +string.format("%0+1.0f", 1e-05) == "+0" +string.format("%0+1.0f", 1e-06) == "+0" +string.format("%0+1.0f", 1e-07) == "+0" +string.format("%0+1.0f", 123.456) == "+123" +string.format("%0+1.0f", 1234560000) == "+1234560000" +string.format("%0+1.0f", 1.23456e-05) == "+0" +string.format("%0+1.0f", 123.456789123) == "+123" +string.format("%0+1.0f", 1234567891.23) == "+1234567891" +string.format("%0+1.0f", 1.23456789123e-05) == "+0" +string.format("%0+1.1f", 0) == "+0.0" +string.format("%0+1.1f", 1) == "+1.0" +string.format("%0+1.1f", -1) == "-1.0" +string.format("%0+1.1f", 2) == "+2.0" +string.format("%0+1.1f", -2) == "-2.0" +string.format("%0+1.1f", 3) == "+3.0" +string.format("%0+1.1f", -3) == "-3.0" +string.format("%0+1.1f", 100) == "+100.0" +string.format("%0+1.1f", 10000) == "+10000.0" +string.format("%0+1.1f", 100000) == "+100000.0" +string.format("%0+1.1f", 1000000) == "+1000000.0" +string.format("%0+1.1f", 10000000) == "+10000000.0" +string.format("%0+1.1f", 0.01) == "+0.0" +string.format("%0+1.1f", 0.0001) == "+0.0" +string.format("%0+1.1f", 1e-05) == "+0.0" +string.format("%0+1.1f", 1e-06) == "+0.0" +string.format("%0+1.1f", 1e-07) == "+0.0" +string.format("%0+1.1f", 123.456) == "+123.5" +string.format("%0+1.1f", 1234560000) == "+1234560000.0" +string.format("%0+1.1f", 1.23456e-05) == "+0.0" +string.format("%0+1.1f", 123.456789123) == "+123.5" +string.format("%0+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0+2.0f", 0) == "+0" +string.format("%0+2.0f", 1) == "+1" +string.format("%0+2.0f", -1) == "-1" +string.format("%0+2.0f", 2) == "+2" +string.format("%0+2.0f", -2) == "-2" +string.format("%0+2.0f", 3) == "+3" +string.format("%0+2.0f", -3) == "-3" +string.format("%0+2.0f", 100) == "+100" +string.format("%0+2.0f", 10000) == "+10000" +string.format("%0+2.0f", 100000) == "+100000" +string.format("%0+2.0f", 1000000) == "+1000000" +string.format("%0+2.0f", 10000000) == "+10000000" +string.format("%0+2.0f", 0.01) == "+0" +string.format("%0+2.0f", 0.0001) == "+0" +string.format("%0+2.0f", 1e-05) == "+0" +string.format("%0+2.0f", 1e-06) == "+0" +string.format("%0+2.0f", 1e-07) == "+0" +string.format("%0+2.0f", 123.456) == "+123" +string.format("%0+2.0f", 1234560000) == "+1234560000" +string.format("%0+2.0f", 1.23456e-05) == "+0" +string.format("%0+2.0f", 123.456789123) == "+123" +string.format("%0+2.0f", 1234567891.23) == "+1234567891" +string.format("%0+2.0f", 1.23456789123e-05) == "+0" +string.format("%0+2.1f", 0) == "+0.0" +string.format("%0+2.1f", 1) == "+1.0" +string.format("%0+2.1f", -1) == "-1.0" +string.format("%0+2.1f", 2) == "+2.0" +string.format("%0+2.1f", -2) == "-2.0" +string.format("%0+2.1f", 3) == "+3.0" +string.format("%0+2.1f", -3) == "-3.0" +string.format("%0+2.1f", 100) == "+100.0" +string.format("%0+2.1f", 10000) == "+10000.0" +string.format("%0+2.1f", 100000) == "+100000.0" +string.format("%0+2.1f", 1000000) == "+1000000.0" +string.format("%0+2.1f", 10000000) == "+10000000.0" +string.format("%0+2.1f", 0.01) == "+0.0" +string.format("%0+2.1f", 0.0001) == "+0.0" +string.format("%0+2.1f", 1e-05) == "+0.0" +string.format("%0+2.1f", 1e-06) == "+0.0" +string.format("%0+2.1f", 1e-07) == "+0.0" +string.format("%0+2.1f", 123.456) == "+123.5" +string.format("%0+2.1f", 1234560000) == "+1234560000.0" +string.format("%0+2.1f", 1.23456e-05) == "+0.0" +string.format("%0+2.1f", 123.456789123) == "+123.5" +string.format("%0+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0+6f", nan) == " +nan" +string.format("%0+6f", inf) == " +inf" +string.format("%0+6f", -inf) == " -inf" +string.format("%0+6.0f", 0) == "+00000" +string.format("%0+6.0f", 1) == "+00001" +string.format("%0+6.0f", -1) == "-00001" +string.format("%0+6.0f", 2) == "+00002" +string.format("%0+6.0f", -2) == "-00002" +string.format("%0+6.0f", 3) == "+00003" +string.format("%0+6.0f", -3) == "-00003" +string.format("%0+6.0f", nan) == " +nan" +string.format("%0+6.0f", inf) == " +inf" +string.format("%0+6.0f", -inf) == " -inf" +string.format("%0+6.0f", 100) == "+00100" +string.format("%0+6.0f", 10000) == "+10000" +string.format("%0+6.0f", 100000) == "+100000" +string.format("%0+6.0f", 1000000) == "+1000000" +string.format("%0+6.0f", 10000000) == "+10000000" +string.format("%0+6.0f", 0.01) == "+00000" +string.format("%0+6.0f", 0.0001) == "+00000" +string.format("%0+6.0f", 1e-05) == "+00000" +string.format("%0+6.0f", 1e-06) == "+00000" +string.format("%0+6.0f", 1e-07) == "+00000" +string.format("%0+6.0f", 123.456) == "+00123" +string.format("%0+6.0f", 1234560000) == "+1234560000" +string.format("%0+6.0f", 1.23456e-05) == "+00000" +string.format("%0+6.0f", 123.456789123) == "+00123" +string.format("%0+6.0f", 1234567891.23) == "+1234567891" +string.format("%0+6.0f", 1.23456789123e-05) == "+00000" +string.format("%0+6.1f", 0) == "+000.0" +string.format("%0+6.1f", 1) == "+001.0" +string.format("%0+6.1f", -1) == "-001.0" +string.format("%0+6.1f", 2) == "+002.0" +string.format("%0+6.1f", -2) == "-002.0" +string.format("%0+6.1f", 3) == "+003.0" +string.format("%0+6.1f", -3) == "-003.0" +string.format("%0+6.1f", nan) == " +nan" +string.format("%0+6.1f", inf) == " +inf" +string.format("%0+6.1f", -inf) == " -inf" +string.format("%0+6.1f", 100) == "+100.0" +string.format("%0+6.1f", 10000) == "+10000.0" +string.format("%0+6.1f", 100000) == "+100000.0" +string.format("%0+6.1f", 1000000) == "+1000000.0" +string.format("%0+6.1f", 10000000) == "+10000000.0" +string.format("%0+6.1f", 0.01) == "+000.0" +string.format("%0+6.1f", 0.0001) == "+000.0" +string.format("%0+6.1f", 1e-05) == "+000.0" +string.format("%0+6.1f", 1e-06) == "+000.0" +string.format("%0+6.1f", 1e-07) == "+000.0" +string.format("%0+6.1f", 123.456) == "+123.5" +string.format("%0+6.1f", 1234560000) == "+1234560000.0" +string.format("%0+6.1f", 1.23456e-05) == "+000.0" +string.format("%0+6.1f", 123.456789123) == "+123.5" +string.format("%0+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0+6.1f", 1.23456789123e-05) == "+000.0" +string.format("%0+6.6f", nan) == " +nan" +string.format("%0+6.6f", inf) == " +inf" +string.format("%0+6.6f", -inf) == " -inf" +string.format("%0+20f", 0) == "+000000000000.000000" +string.format("%0+20f", 1) == "+000000000001.000000" +string.format("%0+20f", -1) == "-000000000001.000000" +string.format("%0+20f", 2) == "+000000000002.000000" +string.format("%0+20f", -2) == "-000000000002.000000" +string.format("%0+20f", 3) == "+000000000003.000000" +string.format("%0+20f", -3) == "-000000000003.000000" +string.format("%0+20f", nan) == " +nan" +string.format("%0+20f", inf) == " +inf" +string.format("%0+20f", -inf) == " -inf" +string.format("%0+20f", 100) == "+000000000100.000000" +string.format("%0+20f", 10000) == "+000000010000.000000" +string.format("%0+20f", 100000) == "+000000100000.000000" +string.format("%0+20f", 1000000) == "+000001000000.000000" +string.format("%0+20f", 10000000) == "+000010000000.000000" +string.format("%0+20f", 0.01) == "+000000000000.010000" +string.format("%0+20f", 0.0001) == "+000000000000.000100" +string.format("%0+20f", 1e-05) == "+000000000000.000010" +string.format("%0+20f", 1e-06) == "+000000000000.000001" +string.format("%0+20f", 1e-07) == "+000000000000.000000" +string.format("%0+20f", 123.456) == "+000000000123.456000" +string.format("%0+20f", 1234560000) == "+001234560000.000000" +string.format("%0+20f", 1.23456e-05) == "+000000000000.000012" +string.format("%0+20f", 123.456789123) == "+000000000123.456789" +string.format("%0+20f", 1234567891.23) == "+001234567891.230000" +string.format("%0+20f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0+20.0f", 0) == "+0000000000000000000" +string.format("%0+20.0f", 1) == "+0000000000000000001" +string.format("%0+20.0f", -1) == "-0000000000000000001" +string.format("%0+20.0f", 2) == "+0000000000000000002" +string.format("%0+20.0f", -2) == "-0000000000000000002" +string.format("%0+20.0f", 3) == "+0000000000000000003" +string.format("%0+20.0f", -3) == "-0000000000000000003" +string.format("%0+20.0f", nan) == " +nan" +string.format("%0+20.0f", inf) == " +inf" +string.format("%0+20.0f", -inf) == " -inf" +string.format("%0+20.0f", 100) == "+0000000000000000100" +string.format("%0+20.0f", 10000) == "+0000000000000010000" +string.format("%0+20.0f", 100000) == "+0000000000000100000" +string.format("%0+20.0f", 1000000) == "+0000000000001000000" +string.format("%0+20.0f", 10000000) == "+0000000000010000000" +string.format("%0+20.0f", 0.01) == "+0000000000000000000" +string.format("%0+20.0f", 0.0001) == "+0000000000000000000" +string.format("%0+20.0f", 1e-05) == "+0000000000000000000" +string.format("%0+20.0f", 1e-06) == "+0000000000000000000" +string.format("%0+20.0f", 1e-07) == "+0000000000000000000" +string.format("%0+20.0f", 123.456) == "+0000000000000000123" +string.format("%0+20.0f", 1234560000) == "+0000000001234560000" +string.format("%0+20.0f", 1.23456e-05) == "+0000000000000000000" +string.format("%0+20.0f", 123.456789123) == "+0000000000000000123" +string.format("%0+20.0f", 1234567891.23) == "+0000000001234567891" +string.format("%0+20.0f", 1.23456789123e-05) == "+0000000000000000000" +string.format("%0+20.1f", 0) == "+00000000000000000.0" +string.format("%0+20.1f", 1) == "+00000000000000001.0" +string.format("%0+20.1f", -1) == "-00000000000000001.0" +string.format("%0+20.1f", 2) == "+00000000000000002.0" +string.format("%0+20.1f", -2) == "-00000000000000002.0" +string.format("%0+20.1f", 3) == "+00000000000000003.0" +string.format("%0+20.1f", -3) == "-00000000000000003.0" +string.format("%0+20.1f", nan) == " +nan" +string.format("%0+20.1f", inf) == " +inf" +string.format("%0+20.1f", -inf) == " -inf" +string.format("%0+20.1f", 100) == "+00000000000000100.0" +string.format("%0+20.1f", 10000) == "+00000000000010000.0" +string.format("%0+20.1f", 100000) == "+00000000000100000.0" +string.format("%0+20.1f", 1000000) == "+00000000001000000.0" +string.format("%0+20.1f", 10000000) == "+00000000010000000.0" +string.format("%0+20.1f", 0.01) == "+00000000000000000.0" +string.format("%0+20.1f", 0.0001) == "+00000000000000000.0" +string.format("%0+20.1f", 1e-05) == "+00000000000000000.0" +string.format("%0+20.1f", 1e-06) == "+00000000000000000.0" +string.format("%0+20.1f", 1e-07) == "+00000000000000000.0" +string.format("%0+20.1f", 123.456) == "+00000000000000123.5" +string.format("%0+20.1f", 1234560000) == "+00000001234560000.0" +string.format("%0+20.1f", 1.23456e-05) == "+00000000000000000.0" +string.format("%0+20.1f", 123.456789123) == "+00000000000000123.5" +string.format("%0+20.1f", 1234567891.23) == "+00000001234567891.2" +string.format("%0+20.1f", 1.23456789123e-05) == "+00000000000000000.0" +string.format("%0+20.6f", 0) == "+000000000000.000000" +string.format("%0+20.6f", 1) == "+000000000001.000000" +string.format("%0+20.6f", -1) == "-000000000001.000000" +string.format("%0+20.6f", 2) == "+000000000002.000000" +string.format("%0+20.6f", -2) == "-000000000002.000000" +string.format("%0+20.6f", 3) == "+000000000003.000000" +string.format("%0+20.6f", -3) == "-000000000003.000000" +string.format("%0+20.6f", nan) == " +nan" +string.format("%0+20.6f", inf) == " +inf" +string.format("%0+20.6f", -inf) == " -inf" +string.format("%0+20.6f", 100) == "+000000000100.000000" +string.format("%0+20.6f", 10000) == "+000000010000.000000" +string.format("%0+20.6f", 100000) == "+000000100000.000000" +string.format("%0+20.6f", 1000000) == "+000001000000.000000" +string.format("%0+20.6f", 10000000) == "+000010000000.000000" +string.format("%0+20.6f", 0.01) == "+000000000000.010000" +string.format("%0+20.6f", 0.0001) == "+000000000000.000100" +string.format("%0+20.6f", 1e-05) == "+000000000000.000010" +string.format("%0+20.6f", 1e-06) == "+000000000000.000001" +string.format("%0+20.6f", 1e-07) == "+000000000000.000000" +string.format("%0+20.6f", 123.456) == "+000000000123.456000" +string.format("%0+20.6f", 1234560000) == "+001234560000.000000" +string.format("%0+20.6f", 1.23456e-05) == "+000000000000.000012" +string.format("%0+20.6f", 123.456789123) == "+000000000123.456789" +string.format("%0+20.6f", 1234567891.23) == "+001234567891.230000" +string.format("%0+20.6f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0-f", 0) == "0.000000" +string.format("%0-f", 1) == "1.000000" +string.format("%0-f", -1) == "-1.000000" +string.format("%0-f", 2) == "2.000000" +string.format("%0-f", -2) == "-2.000000" +string.format("%0-f", 3) == "3.000000" +string.format("%0-f", -3) == "-3.000000" +string.format("%0-f", nan) == "nan" +string.format("%0-f", inf) == "inf" +string.format("%0-f", -inf) == "-inf" +string.format("%0-f", 100) == "100.000000" +string.format("%0-f", 10000) == "10000.000000" +string.format("%0-f", 100000) == "100000.000000" +string.format("%0-f", 1000000) == "1000000.000000" +string.format("%0-f", 10000000) == "10000000.000000" +string.format("%0-f", 0.01) == "0.010000" +string.format("%0-f", 0.0001) == "0.000100" +string.format("%0-f", 1e-05) == "0.000010" +string.format("%0-f", 1e-06) == "0.000001" +string.format("%0-f", 1e-07) == "0.000000" +string.format("%0-f", 123.456) == "123.456000" +string.format("%0-f", 1234560000) == "1234560000.000000" +string.format("%0-f", 1.23456e-05) == "0.000012" +string.format("%0-f", 123.456789123) == "123.456789" +string.format("%0-f", 1234567891.23) == "1234567891.230000" +string.format("%0-f", 1.23456789123e-05) == "0.000012" +string.format("%0-.0f", 0) == "0" +string.format("%0-.0f", 1) == "1" +string.format("%0-.0f", -1) == "-1" +string.format("%0-.0f", 2) == "2" +string.format("%0-.0f", -2) == "-2" +string.format("%0-.0f", 3) == "3" +string.format("%0-.0f", -3) == "-3" +string.format("%0-.0f", 100) == "100" +string.format("%0-.0f", 10000) == "10000" +string.format("%0-.0f", 100000) == "100000" +string.format("%0-.0f", 1000000) == "1000000" +string.format("%0-.0f", 10000000) == "10000000" +string.format("%0-.0f", 0.01) == "0" +string.format("%0-.0f", 0.0001) == "0" +string.format("%0-.0f", 1e-05) == "0" +string.format("%0-.0f", 1e-06) == "0" +string.format("%0-.0f", 1e-07) == "0" +string.format("%0-.0f", 123.456) == "123" +string.format("%0-.0f", 1234560000) == "1234560000" +string.format("%0-.0f", 1.23456e-05) == "0" +string.format("%0-.0f", 123.456789123) == "123" +string.format("%0-.0f", 1234567891.23) == "1234567891" +string.format("%0-.0f", 1.23456789123e-05) == "0" +string.format("%0-.1f", 0) == "0.0" +string.format("%0-.1f", 1) == "1.0" +string.format("%0-.1f", -1) == "-1.0" +string.format("%0-.1f", 2) == "2.0" +string.format("%0-.1f", -2) == "-2.0" +string.format("%0-.1f", 3) == "3.0" +string.format("%0-.1f", -3) == "-3.0" +string.format("%0-.1f", 100) == "100.0" +string.format("%0-.1f", 10000) == "10000.0" +string.format("%0-.1f", 100000) == "100000.0" +string.format("%0-.1f", 1000000) == "1000000.0" +string.format("%0-.1f", 10000000) == "10000000.0" +string.format("%0-.1f", 0.01) == "0.0" +string.format("%0-.1f", 0.0001) == "0.0" +string.format("%0-.1f", 1e-05) == "0.0" +string.format("%0-.1f", 1e-06) == "0.0" +string.format("%0-.1f", 1e-07) == "0.0" +string.format("%0-.1f", 123.456) == "123.5" +string.format("%0-.1f", 1234560000) == "1234560000.0" +string.format("%0-.1f", 1.23456e-05) == "0.0" +string.format("%0-.1f", 123.456789123) == "123.5" +string.format("%0-.1f", 1234567891.23) == "1234567891.2" +string.format("%0-.1f", 1.23456789123e-05) == "0.0" +string.format("%0-1.0f", 0) == "0" +string.format("%0-1.0f", 1) == "1" +string.format("%0-1.0f", -1) == "-1" +string.format("%0-1.0f", 2) == "2" +string.format("%0-1.0f", -2) == "-2" +string.format("%0-1.0f", 3) == "3" +string.format("%0-1.0f", -3) == "-3" +string.format("%0-1.0f", 100) == "100" +string.format("%0-1.0f", 10000) == "10000" +string.format("%0-1.0f", 100000) == "100000" +string.format("%0-1.0f", 1000000) == "1000000" +string.format("%0-1.0f", 10000000) == "10000000" +string.format("%0-1.0f", 0.01) == "0" +string.format("%0-1.0f", 0.0001) == "0" +string.format("%0-1.0f", 1e-05) == "0" +string.format("%0-1.0f", 1e-06) == "0" +string.format("%0-1.0f", 1e-07) == "0" +string.format("%0-1.0f", 123.456) == "123" +string.format("%0-1.0f", 1234560000) == "1234560000" +string.format("%0-1.0f", 1.23456e-05) == "0" +string.format("%0-1.0f", 123.456789123) == "123" +string.format("%0-1.0f", 1234567891.23) == "1234567891" +string.format("%0-1.0f", 1.23456789123e-05) == "0" +string.format("%0-1.1f", 0) == "0.0" +string.format("%0-1.1f", 1) == "1.0" +string.format("%0-1.1f", -1) == "-1.0" +string.format("%0-1.1f", 2) == "2.0" +string.format("%0-1.1f", -2) == "-2.0" +string.format("%0-1.1f", 3) == "3.0" +string.format("%0-1.1f", -3) == "-3.0" +string.format("%0-1.1f", 100) == "100.0" +string.format("%0-1.1f", 10000) == "10000.0" +string.format("%0-1.1f", 100000) == "100000.0" +string.format("%0-1.1f", 1000000) == "1000000.0" +string.format("%0-1.1f", 10000000) == "10000000.0" +string.format("%0-1.1f", 0.01) == "0.0" +string.format("%0-1.1f", 0.0001) == "0.0" +string.format("%0-1.1f", 1e-05) == "0.0" +string.format("%0-1.1f", 1e-06) == "0.0" +string.format("%0-1.1f", 1e-07) == "0.0" +string.format("%0-1.1f", 123.456) == "123.5" +string.format("%0-1.1f", 1234560000) == "1234560000.0" +string.format("%0-1.1f", 1.23456e-05) == "0.0" +string.format("%0-1.1f", 123.456789123) == "123.5" +string.format("%0-1.1f", 1234567891.23) == "1234567891.2" +string.format("%0-1.1f", 1.23456789123e-05) == "0.0" +string.format("%0-2.0f", 0) == "0 " +string.format("%0-2.0f", 1) == "1 " +string.format("%0-2.0f", -1) == "-1" +string.format("%0-2.0f", 2) == "2 " +string.format("%0-2.0f", -2) == "-2" +string.format("%0-2.0f", 3) == "3 " +string.format("%0-2.0f", -3) == "-3" +string.format("%0-2.0f", 100) == "100" +string.format("%0-2.0f", 10000) == "10000" +string.format("%0-2.0f", 100000) == "100000" +string.format("%0-2.0f", 1000000) == "1000000" +string.format("%0-2.0f", 10000000) == "10000000" +string.format("%0-2.0f", 0.01) == "0 " +string.format("%0-2.0f", 0.0001) == "0 " +string.format("%0-2.0f", 1e-05) == "0 " +string.format("%0-2.0f", 1e-06) == "0 " +string.format("%0-2.0f", 1e-07) == "0 " +string.format("%0-2.0f", 123.456) == "123" +string.format("%0-2.0f", 1234560000) == "1234560000" +string.format("%0-2.0f", 1.23456e-05) == "0 " +string.format("%0-2.0f", 123.456789123) == "123" +string.format("%0-2.0f", 1234567891.23) == "1234567891" +string.format("%0-2.0f", 1.23456789123e-05) == "0 " +string.format("%0-2.1f", 0) == "0.0" +string.format("%0-2.1f", 1) == "1.0" +string.format("%0-2.1f", -1) == "-1.0" +string.format("%0-2.1f", 2) == "2.0" +string.format("%0-2.1f", -2) == "-2.0" +string.format("%0-2.1f", 3) == "3.0" +string.format("%0-2.1f", -3) == "-3.0" +string.format("%0-2.1f", 100) == "100.0" +string.format("%0-2.1f", 10000) == "10000.0" +string.format("%0-2.1f", 100000) == "100000.0" +string.format("%0-2.1f", 1000000) == "1000000.0" +string.format("%0-2.1f", 10000000) == "10000000.0" +string.format("%0-2.1f", 0.01) == "0.0" +string.format("%0-2.1f", 0.0001) == "0.0" +string.format("%0-2.1f", 1e-05) == "0.0" +string.format("%0-2.1f", 1e-06) == "0.0" +string.format("%0-2.1f", 1e-07) == "0.0" +string.format("%0-2.1f", 123.456) == "123.5" +string.format("%0-2.1f", 1234560000) == "1234560000.0" +string.format("%0-2.1f", 1.23456e-05) == "0.0" +string.format("%0-2.1f", 123.456789123) == "123.5" +string.format("%0-2.1f", 1234567891.23) == "1234567891.2" +string.format("%0-2.1f", 1.23456789123e-05) == "0.0" +string.format("%0-6f", nan) == "nan " +string.format("%0-6f", inf) == "inf " +string.format("%0-6f", -inf) == "-inf " +string.format("%0-6.0f", 0) == "0 " +string.format("%0-6.0f", 1) == "1 " +string.format("%0-6.0f", -1) == "-1 " +string.format("%0-6.0f", 2) == "2 " +string.format("%0-6.0f", -2) == "-2 " +string.format("%0-6.0f", 3) == "3 " +string.format("%0-6.0f", -3) == "-3 " +string.format("%0-6.0f", nan) == "nan " +string.format("%0-6.0f", inf) == "inf " +string.format("%0-6.0f", -inf) == "-inf " +string.format("%0-6.0f", 100) == "100 " +string.format("%0-6.0f", 10000) == "10000 " +string.format("%0-6.0f", 100000) == "100000" +string.format("%0-6.0f", 1000000) == "1000000" +string.format("%0-6.0f", 10000000) == "10000000" +string.format("%0-6.0f", 0.01) == "0 " +string.format("%0-6.0f", 0.0001) == "0 " +string.format("%0-6.0f", 1e-05) == "0 " +string.format("%0-6.0f", 1e-06) == "0 " +string.format("%0-6.0f", 1e-07) == "0 " +string.format("%0-6.0f", 123.456) == "123 " +string.format("%0-6.0f", 1234560000) == "1234560000" +string.format("%0-6.0f", 1.23456e-05) == "0 " +string.format("%0-6.0f", 123.456789123) == "123 " +string.format("%0-6.0f", 1234567891.23) == "1234567891" +string.format("%0-6.0f", 1.23456789123e-05) == "0 " +string.format("%0-6.1f", 0) == "0.0 " +string.format("%0-6.1f", 1) == "1.0 " +string.format("%0-6.1f", -1) == "-1.0 " +string.format("%0-6.1f", 2) == "2.0 " +string.format("%0-6.1f", -2) == "-2.0 " +string.format("%0-6.1f", 3) == "3.0 " +string.format("%0-6.1f", -3) == "-3.0 " +string.format("%0-6.1f", nan) == "nan " +string.format("%0-6.1f", inf) == "inf " +string.format("%0-6.1f", -inf) == "-inf " +string.format("%0-6.1f", 100) == "100.0 " +string.format("%0-6.1f", 10000) == "10000.0" +string.format("%0-6.1f", 100000) == "100000.0" +string.format("%0-6.1f", 1000000) == "1000000.0" +string.format("%0-6.1f", 10000000) == "10000000.0" +string.format("%0-6.1f", 0.01) == "0.0 " +string.format("%0-6.1f", 0.0001) == "0.0 " +string.format("%0-6.1f", 1e-05) == "0.0 " +string.format("%0-6.1f", 1e-06) == "0.0 " +string.format("%0-6.1f", 1e-07) == "0.0 " +string.format("%0-6.1f", 123.456) == "123.5 " +string.format("%0-6.1f", 1234560000) == "1234560000.0" +string.format("%0-6.1f", 1.23456e-05) == "0.0 " +string.format("%0-6.1f", 123.456789123) == "123.5 " +string.format("%0-6.1f", 1234567891.23) == "1234567891.2" +string.format("%0-6.1f", 1.23456789123e-05) == "0.0 " +string.format("%0-6.6f", nan) == "nan " +string.format("%0-6.6f", inf) == "inf " +string.format("%0-6.6f", -inf) == "-inf " +string.format("%0-20f", 0) == "0.000000 " +string.format("%0-20f", 1) == "1.000000 " +string.format("%0-20f", -1) == "-1.000000 " +string.format("%0-20f", 2) == "2.000000 " +string.format("%0-20f", -2) == "-2.000000 " +string.format("%0-20f", 3) == "3.000000 " +string.format("%0-20f", -3) == "-3.000000 " +string.format("%0-20f", nan) == "nan " +string.format("%0-20f", inf) == "inf " +string.format("%0-20f", -inf) == "-inf " +string.format("%0-20f", 100) == "100.000000 " +string.format("%0-20f", 10000) == "10000.000000 " +string.format("%0-20f", 100000) == "100000.000000 " +string.format("%0-20f", 1000000) == "1000000.000000 " +string.format("%0-20f", 10000000) == "10000000.000000 " +string.format("%0-20f", 0.01) == "0.010000 " +string.format("%0-20f", 0.0001) == "0.000100 " +string.format("%0-20f", 1e-05) == "0.000010 " +string.format("%0-20f", 1e-06) == "0.000001 " +string.format("%0-20f", 1e-07) == "0.000000 " +string.format("%0-20f", 123.456) == "123.456000 " +string.format("%0-20f", 1234560000) == "1234560000.000000 " +string.format("%0-20f", 1.23456e-05) == "0.000012 " +string.format("%0-20f", 123.456789123) == "123.456789 " +string.format("%0-20f", 1234567891.23) == "1234567891.230000 " +string.format("%0-20f", 1.23456789123e-05) == "0.000012 " +string.format("%0-20.0f", 0) == "0 " +string.format("%0-20.0f", 1) == "1 " +string.format("%0-20.0f", -1) == "-1 " +string.format("%0-20.0f", 2) == "2 " +string.format("%0-20.0f", -2) == "-2 " +string.format("%0-20.0f", 3) == "3 " +string.format("%0-20.0f", -3) == "-3 " +string.format("%0-20.0f", nan) == "nan " +string.format("%0-20.0f", inf) == "inf " +string.format("%0-20.0f", -inf) == "-inf " +string.format("%0-20.0f", 100) == "100 " +string.format("%0-20.0f", 10000) == "10000 " +string.format("%0-20.0f", 100000) == "100000 " +string.format("%0-20.0f", 1000000) == "1000000 " +string.format("%0-20.0f", 10000000) == "10000000 " +string.format("%0-20.0f", 0.01) == "0 " +string.format("%0-20.0f", 0.0001) == "0 " +string.format("%0-20.0f", 1e-05) == "0 " +string.format("%0-20.0f", 1e-06) == "0 " +string.format("%0-20.0f", 1e-07) == "0 " +string.format("%0-20.0f", 123.456) == "123 " +string.format("%0-20.0f", 1234560000) == "1234560000 " +string.format("%0-20.0f", 1.23456e-05) == "0 " +string.format("%0-20.0f", 123.456789123) == "123 " +string.format("%0-20.0f", 1234567891.23) == "1234567891 " +string.format("%0-20.0f", 1.23456789123e-05) == "0 " +string.format("%0-20.1f", 0) == "0.0 " +string.format("%0-20.1f", 1) == "1.0 " +string.format("%0-20.1f", -1) == "-1.0 " +string.format("%0-20.1f", 2) == "2.0 " +string.format("%0-20.1f", -2) == "-2.0 " +string.format("%0-20.1f", 3) == "3.0 " +string.format("%0-20.1f", -3) == "-3.0 " +string.format("%0-20.1f", nan) == "nan " +string.format("%0-20.1f", inf) == "inf " +string.format("%0-20.1f", -inf) == "-inf " +string.format("%0-20.1f", 100) == "100.0 " +string.format("%0-20.1f", 10000) == "10000.0 " +string.format("%0-20.1f", 100000) == "100000.0 " +string.format("%0-20.1f", 1000000) == "1000000.0 " +string.format("%0-20.1f", 10000000) == "10000000.0 " +string.format("%0-20.1f", 0.01) == "0.0 " +string.format("%0-20.1f", 0.0001) == "0.0 " +string.format("%0-20.1f", 1e-05) == "0.0 " +string.format("%0-20.1f", 1e-06) == "0.0 " +string.format("%0-20.1f", 1e-07) == "0.0 " +string.format("%0-20.1f", 123.456) == "123.5 " +string.format("%0-20.1f", 1234560000) == "1234560000.0 " +string.format("%0-20.1f", 1.23456e-05) == "0.0 " +string.format("%0-20.1f", 123.456789123) == "123.5 " +string.format("%0-20.1f", 1234567891.23) == "1234567891.2 " +string.format("%0-20.1f", 1.23456789123e-05) == "0.0 " +string.format("%0-20.6f", 0) == "0.000000 " +string.format("%0-20.6f", 1) == "1.000000 " +string.format("%0-20.6f", -1) == "-1.000000 " +string.format("%0-20.6f", 2) == "2.000000 " +string.format("%0-20.6f", -2) == "-2.000000 " +string.format("%0-20.6f", 3) == "3.000000 " +string.format("%0-20.6f", -3) == "-3.000000 " +string.format("%0-20.6f", nan) == "nan " +string.format("%0-20.6f", inf) == "inf " +string.format("%0-20.6f", -inf) == "-inf " +string.format("%0-20.6f", 100) == "100.000000 " +string.format("%0-20.6f", 10000) == "10000.000000 " +string.format("%0-20.6f", 100000) == "100000.000000 " +string.format("%0-20.6f", 1000000) == "1000000.000000 " +string.format("%0-20.6f", 10000000) == "10000000.000000 " +string.format("%0-20.6f", 0.01) == "0.010000 " +string.format("%0-20.6f", 0.0001) == "0.000100 " +string.format("%0-20.6f", 1e-05) == "0.000010 " +string.format("%0-20.6f", 1e-06) == "0.000001 " +string.format("%0-20.6f", 1e-07) == "0.000000 " +string.format("%0-20.6f", 123.456) == "123.456000 " +string.format("%0-20.6f", 1234560000) == "1234560000.000000 " +string.format("%0-20.6f", 1.23456e-05) == "0.000012 " +string.format("%0-20.6f", 123.456789123) == "123.456789 " +string.format("%0-20.6f", 1234567891.23) == "1234567891.230000 " +string.format("%0-20.6f", 1.23456789123e-05) == "0.000012 " +string.format("%0-+f", 0) == "+0.000000" +string.format("%0-+f", 1) == "+1.000000" +string.format("%0-+f", -1) == "-1.000000" +string.format("%0-+f", 2) == "+2.000000" +string.format("%0-+f", -2) == "-2.000000" +string.format("%0-+f", 3) == "+3.000000" +string.format("%0-+f", -3) == "-3.000000" +string.format("%0-+f", nan) == "+nan" +string.format("%0-+f", inf) == "+inf" +string.format("%0-+f", -inf) == "-inf" +string.format("%0-+f", 100) == "+100.000000" +string.format("%0-+f", 10000) == "+10000.000000" +string.format("%0-+f", 100000) == "+100000.000000" +string.format("%0-+f", 1000000) == "+1000000.000000" +string.format("%0-+f", 10000000) == "+10000000.000000" +string.format("%0-+f", 0.01) == "+0.010000" +string.format("%0-+f", 0.0001) == "+0.000100" +string.format("%0-+f", 1e-05) == "+0.000010" +string.format("%0-+f", 1e-06) == "+0.000001" +string.format("%0-+f", 1e-07) == "+0.000000" +string.format("%0-+f", 123.456) == "+123.456000" +string.format("%0-+f", 1234560000) == "+1234560000.000000" +string.format("%0-+f", 1.23456e-05) == "+0.000012" +string.format("%0-+f", 123.456789123) == "+123.456789" +string.format("%0-+f", 1234567891.23) == "+1234567891.230000" +string.format("%0-+f", 1.23456789123e-05) == "+0.000012" +string.format("%0-+.0f", 0) == "+0" +string.format("%0-+.0f", 1) == "+1" +string.format("%0-+.0f", -1) == "-1" +string.format("%0-+.0f", 2) == "+2" +string.format("%0-+.0f", -2) == "-2" +string.format("%0-+.0f", 3) == "+3" +string.format("%0-+.0f", -3) == "-3" +string.format("%0-+.0f", 100) == "+100" +string.format("%0-+.0f", 10000) == "+10000" +string.format("%0-+.0f", 100000) == "+100000" +string.format("%0-+.0f", 1000000) == "+1000000" +string.format("%0-+.0f", 10000000) == "+10000000" +string.format("%0-+.0f", 0.01) == "+0" +string.format("%0-+.0f", 0.0001) == "+0" +string.format("%0-+.0f", 1e-05) == "+0" +string.format("%0-+.0f", 1e-06) == "+0" +string.format("%0-+.0f", 1e-07) == "+0" +string.format("%0-+.0f", 123.456) == "+123" +string.format("%0-+.0f", 1234560000) == "+1234560000" +string.format("%0-+.0f", 1.23456e-05) == "+0" +string.format("%0-+.0f", 123.456789123) == "+123" +string.format("%0-+.0f", 1234567891.23) == "+1234567891" +string.format("%0-+.0f", 1.23456789123e-05) == "+0" +string.format("%0-+.1f", 0) == "+0.0" +string.format("%0-+.1f", 1) == "+1.0" +string.format("%0-+.1f", -1) == "-1.0" +string.format("%0-+.1f", 2) == "+2.0" +string.format("%0-+.1f", -2) == "-2.0" +string.format("%0-+.1f", 3) == "+3.0" +string.format("%0-+.1f", -3) == "-3.0" +string.format("%0-+.1f", 100) == "+100.0" +string.format("%0-+.1f", 10000) == "+10000.0" +string.format("%0-+.1f", 100000) == "+100000.0" +string.format("%0-+.1f", 1000000) == "+1000000.0" +string.format("%0-+.1f", 10000000) == "+10000000.0" +string.format("%0-+.1f", 0.01) == "+0.0" +string.format("%0-+.1f", 0.0001) == "+0.0" +string.format("%0-+.1f", 1e-05) == "+0.0" +string.format("%0-+.1f", 1e-06) == "+0.0" +string.format("%0-+.1f", 1e-07) == "+0.0" +string.format("%0-+.1f", 123.456) == "+123.5" +string.format("%0-+.1f", 1234560000) == "+1234560000.0" +string.format("%0-+.1f", 1.23456e-05) == "+0.0" +string.format("%0-+.1f", 123.456789123) == "+123.5" +string.format("%0-+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0-+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0-+1.0f", 0) == "+0" +string.format("%0-+1.0f", 1) == "+1" +string.format("%0-+1.0f", -1) == "-1" +string.format("%0-+1.0f", 2) == "+2" +string.format("%0-+1.0f", -2) == "-2" +string.format("%0-+1.0f", 3) == "+3" +string.format("%0-+1.0f", -3) == "-3" +string.format("%0-+1.0f", 100) == "+100" +string.format("%0-+1.0f", 10000) == "+10000" +string.format("%0-+1.0f", 100000) == "+100000" +string.format("%0-+1.0f", 1000000) == "+1000000" +string.format("%0-+1.0f", 10000000) == "+10000000" +string.format("%0-+1.0f", 0.01) == "+0" +string.format("%0-+1.0f", 0.0001) == "+0" +string.format("%0-+1.0f", 1e-05) == "+0" +string.format("%0-+1.0f", 1e-06) == "+0" +string.format("%0-+1.0f", 1e-07) == "+0" +string.format("%0-+1.0f", 123.456) == "+123" +string.format("%0-+1.0f", 1234560000) == "+1234560000" +string.format("%0-+1.0f", 1.23456e-05) == "+0" +string.format("%0-+1.0f", 123.456789123) == "+123" +string.format("%0-+1.0f", 1234567891.23) == "+1234567891" +string.format("%0-+1.0f", 1.23456789123e-05) == "+0" +string.format("%0-+1.1f", 0) == "+0.0" +string.format("%0-+1.1f", 1) == "+1.0" +string.format("%0-+1.1f", -1) == "-1.0" +string.format("%0-+1.1f", 2) == "+2.0" +string.format("%0-+1.1f", -2) == "-2.0" +string.format("%0-+1.1f", 3) == "+3.0" +string.format("%0-+1.1f", -3) == "-3.0" +string.format("%0-+1.1f", 100) == "+100.0" +string.format("%0-+1.1f", 10000) == "+10000.0" +string.format("%0-+1.1f", 100000) == "+100000.0" +string.format("%0-+1.1f", 1000000) == "+1000000.0" +string.format("%0-+1.1f", 10000000) == "+10000000.0" +string.format("%0-+1.1f", 0.01) == "+0.0" +string.format("%0-+1.1f", 0.0001) == "+0.0" +string.format("%0-+1.1f", 1e-05) == "+0.0" +string.format("%0-+1.1f", 1e-06) == "+0.0" +string.format("%0-+1.1f", 1e-07) == "+0.0" +string.format("%0-+1.1f", 123.456) == "+123.5" +string.format("%0-+1.1f", 1234560000) == "+1234560000.0" +string.format("%0-+1.1f", 1.23456e-05) == "+0.0" +string.format("%0-+1.1f", 123.456789123) == "+123.5" +string.format("%0-+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0-+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0-+2.0f", 0) == "+0" +string.format("%0-+2.0f", 1) == "+1" +string.format("%0-+2.0f", -1) == "-1" +string.format("%0-+2.0f", 2) == "+2" +string.format("%0-+2.0f", -2) == "-2" +string.format("%0-+2.0f", 3) == "+3" +string.format("%0-+2.0f", -3) == "-3" +string.format("%0-+2.0f", 100) == "+100" +string.format("%0-+2.0f", 10000) == "+10000" +string.format("%0-+2.0f", 100000) == "+100000" +string.format("%0-+2.0f", 1000000) == "+1000000" +string.format("%0-+2.0f", 10000000) == "+10000000" +string.format("%0-+2.0f", 0.01) == "+0" +string.format("%0-+2.0f", 0.0001) == "+0" +string.format("%0-+2.0f", 1e-05) == "+0" +string.format("%0-+2.0f", 1e-06) == "+0" +string.format("%0-+2.0f", 1e-07) == "+0" +string.format("%0-+2.0f", 123.456) == "+123" +string.format("%0-+2.0f", 1234560000) == "+1234560000" +string.format("%0-+2.0f", 1.23456e-05) == "+0" +string.format("%0-+2.0f", 123.456789123) == "+123" +string.format("%0-+2.0f", 1234567891.23) == "+1234567891" +string.format("%0-+2.0f", 1.23456789123e-05) == "+0" +string.format("%0-+2.1f", 0) == "+0.0" +string.format("%0-+2.1f", 1) == "+1.0" +string.format("%0-+2.1f", -1) == "-1.0" +string.format("%0-+2.1f", 2) == "+2.0" +string.format("%0-+2.1f", -2) == "-2.0" +string.format("%0-+2.1f", 3) == "+3.0" +string.format("%0-+2.1f", -3) == "-3.0" +string.format("%0-+2.1f", 100) == "+100.0" +string.format("%0-+2.1f", 10000) == "+10000.0" +string.format("%0-+2.1f", 100000) == "+100000.0" +string.format("%0-+2.1f", 1000000) == "+1000000.0" +string.format("%0-+2.1f", 10000000) == "+10000000.0" +string.format("%0-+2.1f", 0.01) == "+0.0" +string.format("%0-+2.1f", 0.0001) == "+0.0" +string.format("%0-+2.1f", 1e-05) == "+0.0" +string.format("%0-+2.1f", 1e-06) == "+0.0" +string.format("%0-+2.1f", 1e-07) == "+0.0" +string.format("%0-+2.1f", 123.456) == "+123.5" +string.format("%0-+2.1f", 1234560000) == "+1234560000.0" +string.format("%0-+2.1f", 1.23456e-05) == "+0.0" +string.format("%0-+2.1f", 123.456789123) == "+123.5" +string.format("%0-+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0-+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0-+6f", nan) == "+nan " +string.format("%0-+6f", inf) == "+inf " +string.format("%0-+6f", -inf) == "-inf " +string.format("%0-+6.0f", 0) == "+0 " +string.format("%0-+6.0f", 1) == "+1 " +string.format("%0-+6.0f", -1) == "-1 " +string.format("%0-+6.0f", 2) == "+2 " +string.format("%0-+6.0f", -2) == "-2 " +string.format("%0-+6.0f", 3) == "+3 " +string.format("%0-+6.0f", -3) == "-3 " +string.format("%0-+6.0f", nan) == "+nan " +string.format("%0-+6.0f", inf) == "+inf " +string.format("%0-+6.0f", -inf) == "-inf " +string.format("%0-+6.0f", 100) == "+100 " +string.format("%0-+6.0f", 10000) == "+10000" +string.format("%0-+6.0f", 100000) == "+100000" +string.format("%0-+6.0f", 1000000) == "+1000000" +string.format("%0-+6.0f", 10000000) == "+10000000" +string.format("%0-+6.0f", 0.01) == "+0 " +string.format("%0-+6.0f", 0.0001) == "+0 " +string.format("%0-+6.0f", 1e-05) == "+0 " +string.format("%0-+6.0f", 1e-06) == "+0 " +string.format("%0-+6.0f", 1e-07) == "+0 " +string.format("%0-+6.0f", 123.456) == "+123 " +string.format("%0-+6.0f", 1234560000) == "+1234560000" +string.format("%0-+6.0f", 1.23456e-05) == "+0 " +string.format("%0-+6.0f", 123.456789123) == "+123 " +string.format("%0-+6.0f", 1234567891.23) == "+1234567891" +string.format("%0-+6.0f", 1.23456789123e-05) == "+0 " +string.format("%0-+6.1f", 0) == "+0.0 " +string.format("%0-+6.1f", 1) == "+1.0 " +string.format("%0-+6.1f", -1) == "-1.0 " +string.format("%0-+6.1f", 2) == "+2.0 " +string.format("%0-+6.1f", -2) == "-2.0 " +string.format("%0-+6.1f", 3) == "+3.0 " +string.format("%0-+6.1f", -3) == "-3.0 " +string.format("%0-+6.1f", nan) == "+nan " +string.format("%0-+6.1f", inf) == "+inf " +string.format("%0-+6.1f", -inf) == "-inf " +string.format("%0-+6.1f", 100) == "+100.0" +string.format("%0-+6.1f", 10000) == "+10000.0" +string.format("%0-+6.1f", 100000) == "+100000.0" +string.format("%0-+6.1f", 1000000) == "+1000000.0" +string.format("%0-+6.1f", 10000000) == "+10000000.0" +string.format("%0-+6.1f", 0.01) == "+0.0 " +string.format("%0-+6.1f", 0.0001) == "+0.0 " +string.format("%0-+6.1f", 1e-05) == "+0.0 " +string.format("%0-+6.1f", 1e-06) == "+0.0 " +string.format("%0-+6.1f", 1e-07) == "+0.0 " +string.format("%0-+6.1f", 123.456) == "+123.5" +string.format("%0-+6.1f", 1234560000) == "+1234560000.0" +string.format("%0-+6.1f", 1.23456e-05) == "+0.0 " +string.format("%0-+6.1f", 123.456789123) == "+123.5" +string.format("%0-+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0-+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0-+6.6f", nan) == "+nan " +string.format("%0-+6.6f", inf) == "+inf " +string.format("%0-+6.6f", -inf) == "-inf " +string.format("%0-+20f", 0) == "+0.000000 " +string.format("%0-+20f", 1) == "+1.000000 " +string.format("%0-+20f", -1) == "-1.000000 " +string.format("%0-+20f", 2) == "+2.000000 " +string.format("%0-+20f", -2) == "-2.000000 " +string.format("%0-+20f", 3) == "+3.000000 " +string.format("%0-+20f", -3) == "-3.000000 " +string.format("%0-+20f", nan) == "+nan " +string.format("%0-+20f", inf) == "+inf " +string.format("%0-+20f", -inf) == "-inf " +string.format("%0-+20f", 100) == "+100.000000 " +string.format("%0-+20f", 10000) == "+10000.000000 " +string.format("%0-+20f", 100000) == "+100000.000000 " +string.format("%0-+20f", 1000000) == "+1000000.000000 " +string.format("%0-+20f", 10000000) == "+10000000.000000 " +string.format("%0-+20f", 0.01) == "+0.010000 " +string.format("%0-+20f", 0.0001) == "+0.000100 " +string.format("%0-+20f", 1e-05) == "+0.000010 " +string.format("%0-+20f", 1e-06) == "+0.000001 " +string.format("%0-+20f", 1e-07) == "+0.000000 " +string.format("%0-+20f", 123.456) == "+123.456000 " +string.format("%0-+20f", 1234560000) == "+1234560000.000000 " +string.format("%0-+20f", 1.23456e-05) == "+0.000012 " +string.format("%0-+20f", 123.456789123) == "+123.456789 " +string.format("%0-+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%0-+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%0-+20.0f", 0) == "+0 " +string.format("%0-+20.0f", 1) == "+1 " +string.format("%0-+20.0f", -1) == "-1 " +string.format("%0-+20.0f", 2) == "+2 " +string.format("%0-+20.0f", -2) == "-2 " +string.format("%0-+20.0f", 3) == "+3 " +string.format("%0-+20.0f", -3) == "-3 " +string.format("%0-+20.0f", nan) == "+nan " +string.format("%0-+20.0f", inf) == "+inf " +string.format("%0-+20.0f", -inf) == "-inf " +string.format("%0-+20.0f", 100) == "+100 " +string.format("%0-+20.0f", 10000) == "+10000 " +string.format("%0-+20.0f", 100000) == "+100000 " +string.format("%0-+20.0f", 1000000) == "+1000000 " +string.format("%0-+20.0f", 10000000) == "+10000000 " +string.format("%0-+20.0f", 0.01) == "+0 " +string.format("%0-+20.0f", 0.0001) == "+0 " +string.format("%0-+20.0f", 1e-05) == "+0 " +string.format("%0-+20.0f", 1e-06) == "+0 " +string.format("%0-+20.0f", 1e-07) == "+0 " +string.format("%0-+20.0f", 123.456) == "+123 " +string.format("%0-+20.0f", 1234560000) == "+1234560000 " +string.format("%0-+20.0f", 1.23456e-05) == "+0 " +string.format("%0-+20.0f", 123.456789123) == "+123 " +string.format("%0-+20.0f", 1234567891.23) == "+1234567891 " +string.format("%0-+20.0f", 1.23456789123e-05) == "+0 " +string.format("%0-+20.1f", 0) == "+0.0 " +string.format("%0-+20.1f", 1) == "+1.0 " +string.format("%0-+20.1f", -1) == "-1.0 " +string.format("%0-+20.1f", 2) == "+2.0 " +string.format("%0-+20.1f", -2) == "-2.0 " +string.format("%0-+20.1f", 3) == "+3.0 " +string.format("%0-+20.1f", -3) == "-3.0 " +string.format("%0-+20.1f", nan) == "+nan " +string.format("%0-+20.1f", inf) == "+inf " +string.format("%0-+20.1f", -inf) == "-inf " +string.format("%0-+20.1f", 100) == "+100.0 " +string.format("%0-+20.1f", 10000) == "+10000.0 " +string.format("%0-+20.1f", 100000) == "+100000.0 " +string.format("%0-+20.1f", 1000000) == "+1000000.0 " +string.format("%0-+20.1f", 10000000) == "+10000000.0 " +string.format("%0-+20.1f", 0.01) == "+0.0 " +string.format("%0-+20.1f", 0.0001) == "+0.0 " +string.format("%0-+20.1f", 1e-05) == "+0.0 " +string.format("%0-+20.1f", 1e-06) == "+0.0 " +string.format("%0-+20.1f", 1e-07) == "+0.0 " +string.format("%0-+20.1f", 123.456) == "+123.5 " +string.format("%0-+20.1f", 1234560000) == "+1234560000.0 " +string.format("%0-+20.1f", 1.23456e-05) == "+0.0 " +string.format("%0-+20.1f", 123.456789123) == "+123.5 " +string.format("%0-+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%0-+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0-+20.6f", 0) == "+0.000000 " +string.format("%0-+20.6f", 1) == "+1.000000 " +string.format("%0-+20.6f", -1) == "-1.000000 " +string.format("%0-+20.6f", 2) == "+2.000000 " +string.format("%0-+20.6f", -2) == "-2.000000 " +string.format("%0-+20.6f", 3) == "+3.000000 " +string.format("%0-+20.6f", -3) == "-3.000000 " +string.format("%0-+20.6f", nan) == "+nan " +string.format("%0-+20.6f", inf) == "+inf " +string.format("%0-+20.6f", -inf) == "-inf " +string.format("%0-+20.6f", 100) == "+100.000000 " +string.format("%0-+20.6f", 10000) == "+10000.000000 " +string.format("%0-+20.6f", 100000) == "+100000.000000 " +string.format("%0-+20.6f", 1000000) == "+1000000.000000 " +string.format("%0-+20.6f", 10000000) == "+10000000.000000 " +string.format("%0-+20.6f", 0.01) == "+0.010000 " +string.format("%0-+20.6f", 0.0001) == "+0.000100 " +string.format("%0-+20.6f", 1e-05) == "+0.000010 " +string.format("%0-+20.6f", 1e-06) == "+0.000001 " +string.format("%0-+20.6f", 1e-07) == "+0.000000 " +string.format("%0-+20.6f", 123.456) == "+123.456000 " +string.format("%0-+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%0-+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%0-+20.6f", 123.456789123) == "+123.456789 " +string.format("%0-+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%0-+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%0 f", 0) == " 0.000000" +string.format("%0 f", 1) == " 1.000000" +string.format("%0 f", -1) == "-1.000000" +string.format("%0 f", 2) == " 2.000000" +string.format("%0 f", -2) == "-2.000000" +string.format("%0 f", 3) == " 3.000000" +string.format("%0 f", -3) == "-3.000000" +string.format("%0 f", nan) == " nan" +string.format("%0 f", inf) == " inf" +string.format("%0 f", -inf) == "-inf" +string.format("%0 f", 100) == " 100.000000" +string.format("%0 f", 10000) == " 10000.000000" +string.format("%0 f", 100000) == " 100000.000000" +string.format("%0 f", 1000000) == " 1000000.000000" +string.format("%0 f", 10000000) == " 10000000.000000" +string.format("%0 f", 0.01) == " 0.010000" +string.format("%0 f", 0.0001) == " 0.000100" +string.format("%0 f", 1e-05) == " 0.000010" +string.format("%0 f", 1e-06) == " 0.000001" +string.format("%0 f", 1e-07) == " 0.000000" +string.format("%0 f", 123.456) == " 123.456000" +string.format("%0 f", 1234560000) == " 1234560000.000000" +string.format("%0 f", 1.23456e-05) == " 0.000012" +string.format("%0 f", 123.456789123) == " 123.456789" +string.format("%0 f", 1234567891.23) == " 1234567891.230000" +string.format("%0 f", 1.23456789123e-05) == " 0.000012" +string.format("%0 .0f", 0) == " 0" +string.format("%0 .0f", 1) == " 1" +string.format("%0 .0f", -1) == "-1" +string.format("%0 .0f", 2) == " 2" +string.format("%0 .0f", -2) == "-2" +string.format("%0 .0f", 3) == " 3" +string.format("%0 .0f", -3) == "-3" +string.format("%0 .0f", 100) == " 100" +string.format("%0 .0f", 10000) == " 10000" +string.format("%0 .0f", 100000) == " 100000" +string.format("%0 .0f", 1000000) == " 1000000" +string.format("%0 .0f", 10000000) == " 10000000" +string.format("%0 .0f", 0.01) == " 0" +string.format("%0 .0f", 0.0001) == " 0" +string.format("%0 .0f", 1e-05) == " 0" +string.format("%0 .0f", 1e-06) == " 0" +string.format("%0 .0f", 1e-07) == " 0" +string.format("%0 .0f", 123.456) == " 123" +string.format("%0 .0f", 1234560000) == " 1234560000" +string.format("%0 .0f", 1.23456e-05) == " 0" +string.format("%0 .0f", 123.456789123) == " 123" +string.format("%0 .0f", 1234567891.23) == " 1234567891" +string.format("%0 .0f", 1.23456789123e-05) == " 0" +string.format("%0 .1f", 0) == " 0.0" +string.format("%0 .1f", 1) == " 1.0" +string.format("%0 .1f", -1) == "-1.0" +string.format("%0 .1f", 2) == " 2.0" +string.format("%0 .1f", -2) == "-2.0" +string.format("%0 .1f", 3) == " 3.0" +string.format("%0 .1f", -3) == "-3.0" +string.format("%0 .1f", 100) == " 100.0" +string.format("%0 .1f", 10000) == " 10000.0" +string.format("%0 .1f", 100000) == " 100000.0" +string.format("%0 .1f", 1000000) == " 1000000.0" +string.format("%0 .1f", 10000000) == " 10000000.0" +string.format("%0 .1f", 0.01) == " 0.0" +string.format("%0 .1f", 0.0001) == " 0.0" +string.format("%0 .1f", 1e-05) == " 0.0" +string.format("%0 .1f", 1e-06) == " 0.0" +string.format("%0 .1f", 1e-07) == " 0.0" +string.format("%0 .1f", 123.456) == " 123.5" +string.format("%0 .1f", 1234560000) == " 1234560000.0" +string.format("%0 .1f", 1.23456e-05) == " 0.0" +string.format("%0 .1f", 123.456789123) == " 123.5" +string.format("%0 .1f", 1234567891.23) == " 1234567891.2" +string.format("%0 .1f", 1.23456789123e-05) == " 0.0" +string.format("%0 1.0f", 0) == " 0" +string.format("%0 1.0f", 1) == " 1" +string.format("%0 1.0f", -1) == "-1" +string.format("%0 1.0f", 2) == " 2" +string.format("%0 1.0f", -2) == "-2" +string.format("%0 1.0f", 3) == " 3" +string.format("%0 1.0f", -3) == "-3" +string.format("%0 1.0f", 100) == " 100" +string.format("%0 1.0f", 10000) == " 10000" +string.format("%0 1.0f", 100000) == " 100000" +string.format("%0 1.0f", 1000000) == " 1000000" +string.format("%0 1.0f", 10000000) == " 10000000" +string.format("%0 1.0f", 0.01) == " 0" +string.format("%0 1.0f", 0.0001) == " 0" +string.format("%0 1.0f", 1e-05) == " 0" +string.format("%0 1.0f", 1e-06) == " 0" +string.format("%0 1.0f", 1e-07) == " 0" +string.format("%0 1.0f", 123.456) == " 123" +string.format("%0 1.0f", 1234560000) == " 1234560000" +string.format("%0 1.0f", 1.23456e-05) == " 0" +string.format("%0 1.0f", 123.456789123) == " 123" +string.format("%0 1.0f", 1234567891.23) == " 1234567891" +string.format("%0 1.0f", 1.23456789123e-05) == " 0" +string.format("%0 1.1f", 0) == " 0.0" +string.format("%0 1.1f", 1) == " 1.0" +string.format("%0 1.1f", -1) == "-1.0" +string.format("%0 1.1f", 2) == " 2.0" +string.format("%0 1.1f", -2) == "-2.0" +string.format("%0 1.1f", 3) == " 3.0" +string.format("%0 1.1f", -3) == "-3.0" +string.format("%0 1.1f", 100) == " 100.0" +string.format("%0 1.1f", 10000) == " 10000.0" +string.format("%0 1.1f", 100000) == " 100000.0" +string.format("%0 1.1f", 1000000) == " 1000000.0" +string.format("%0 1.1f", 10000000) == " 10000000.0" +string.format("%0 1.1f", 0.01) == " 0.0" +string.format("%0 1.1f", 0.0001) == " 0.0" +string.format("%0 1.1f", 1e-05) == " 0.0" +string.format("%0 1.1f", 1e-06) == " 0.0" +string.format("%0 1.1f", 1e-07) == " 0.0" +string.format("%0 1.1f", 123.456) == " 123.5" +string.format("%0 1.1f", 1234560000) == " 1234560000.0" +string.format("%0 1.1f", 1.23456e-05) == " 0.0" +string.format("%0 1.1f", 123.456789123) == " 123.5" +string.format("%0 1.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 1.1f", 1.23456789123e-05) == " 0.0" +string.format("%0 2.0f", 0) == " 0" +string.format("%0 2.0f", 1) == " 1" +string.format("%0 2.0f", -1) == "-1" +string.format("%0 2.0f", 2) == " 2" +string.format("%0 2.0f", -2) == "-2" +string.format("%0 2.0f", 3) == " 3" +string.format("%0 2.0f", -3) == "-3" +string.format("%0 2.0f", 100) == " 100" +string.format("%0 2.0f", 10000) == " 10000" +string.format("%0 2.0f", 100000) == " 100000" +string.format("%0 2.0f", 1000000) == " 1000000" +string.format("%0 2.0f", 10000000) == " 10000000" +string.format("%0 2.0f", 0.01) == " 0" +string.format("%0 2.0f", 0.0001) == " 0" +string.format("%0 2.0f", 1e-05) == " 0" +string.format("%0 2.0f", 1e-06) == " 0" +string.format("%0 2.0f", 1e-07) == " 0" +string.format("%0 2.0f", 123.456) == " 123" +string.format("%0 2.0f", 1234560000) == " 1234560000" +string.format("%0 2.0f", 1.23456e-05) == " 0" +string.format("%0 2.0f", 123.456789123) == " 123" +string.format("%0 2.0f", 1234567891.23) == " 1234567891" +string.format("%0 2.0f", 1.23456789123e-05) == " 0" +string.format("%0 2.1f", 0) == " 0.0" +string.format("%0 2.1f", 1) == " 1.0" +string.format("%0 2.1f", -1) == "-1.0" +string.format("%0 2.1f", 2) == " 2.0" +string.format("%0 2.1f", -2) == "-2.0" +string.format("%0 2.1f", 3) == " 3.0" +string.format("%0 2.1f", -3) == "-3.0" +string.format("%0 2.1f", 100) == " 100.0" +string.format("%0 2.1f", 10000) == " 10000.0" +string.format("%0 2.1f", 100000) == " 100000.0" +string.format("%0 2.1f", 1000000) == " 1000000.0" +string.format("%0 2.1f", 10000000) == " 10000000.0" +string.format("%0 2.1f", 0.01) == " 0.0" +string.format("%0 2.1f", 0.0001) == " 0.0" +string.format("%0 2.1f", 1e-05) == " 0.0" +string.format("%0 2.1f", 1e-06) == " 0.0" +string.format("%0 2.1f", 1e-07) == " 0.0" +string.format("%0 2.1f", 123.456) == " 123.5" +string.format("%0 2.1f", 1234560000) == " 1234560000.0" +string.format("%0 2.1f", 1.23456e-05) == " 0.0" +string.format("%0 2.1f", 123.456789123) == " 123.5" +string.format("%0 2.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 2.1f", 1.23456789123e-05) == " 0.0" +string.format("%0 6f", nan) == " nan" +string.format("%0 6f", inf) == " inf" +string.format("%0 6f", -inf) == " -inf" +string.format("%0 6.0f", 0) == " 00000" +string.format("%0 6.0f", 1) == " 00001" +string.format("%0 6.0f", -1) == "-00001" +string.format("%0 6.0f", 2) == " 00002" +string.format("%0 6.0f", -2) == "-00002" +string.format("%0 6.0f", 3) == " 00003" +string.format("%0 6.0f", -3) == "-00003" +string.format("%0 6.0f", nan) == " nan" +string.format("%0 6.0f", inf) == " inf" +string.format("%0 6.0f", -inf) == " -inf" +string.format("%0 6.0f", 100) == " 00100" +string.format("%0 6.0f", 10000) == " 10000" +string.format("%0 6.0f", 100000) == " 100000" +string.format("%0 6.0f", 1000000) == " 1000000" +string.format("%0 6.0f", 10000000) == " 10000000" +string.format("%0 6.0f", 0.01) == " 00000" +string.format("%0 6.0f", 0.0001) == " 00000" +string.format("%0 6.0f", 1e-05) == " 00000" +string.format("%0 6.0f", 1e-06) == " 00000" +string.format("%0 6.0f", 1e-07) == " 00000" +string.format("%0 6.0f", 123.456) == " 00123" +string.format("%0 6.0f", 1234560000) == " 1234560000" +string.format("%0 6.0f", 1.23456e-05) == " 00000" +string.format("%0 6.0f", 123.456789123) == " 00123" +string.format("%0 6.0f", 1234567891.23) == " 1234567891" +string.format("%0 6.0f", 1.23456789123e-05) == " 00000" +string.format("%0 6.1f", 0) == " 000.0" +string.format("%0 6.1f", 1) == " 001.0" +string.format("%0 6.1f", -1) == "-001.0" +string.format("%0 6.1f", 2) == " 002.0" +string.format("%0 6.1f", -2) == "-002.0" +string.format("%0 6.1f", 3) == " 003.0" +string.format("%0 6.1f", -3) == "-003.0" +string.format("%0 6.1f", nan) == " nan" +string.format("%0 6.1f", inf) == " inf" +string.format("%0 6.1f", -inf) == " -inf" +string.format("%0 6.1f", 100) == " 100.0" +string.format("%0 6.1f", 10000) == " 10000.0" +string.format("%0 6.1f", 100000) == " 100000.0" +string.format("%0 6.1f", 1000000) == " 1000000.0" +string.format("%0 6.1f", 10000000) == " 10000000.0" +string.format("%0 6.1f", 0.01) == " 000.0" +string.format("%0 6.1f", 0.0001) == " 000.0" +string.format("%0 6.1f", 1e-05) == " 000.0" +string.format("%0 6.1f", 1e-06) == " 000.0" +string.format("%0 6.1f", 1e-07) == " 000.0" +string.format("%0 6.1f", 123.456) == " 123.5" +string.format("%0 6.1f", 1234560000) == " 1234560000.0" +string.format("%0 6.1f", 1.23456e-05) == " 000.0" +string.format("%0 6.1f", 123.456789123) == " 123.5" +string.format("%0 6.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 6.1f", 1.23456789123e-05) == " 000.0" +string.format("%0 6.6f", nan) == " nan" +string.format("%0 6.6f", inf) == " inf" +string.format("%0 6.6f", -inf) == " -inf" +string.format("%0 20f", 0) == " 000000000000.000000" +string.format("%0 20f", 1) == " 000000000001.000000" +string.format("%0 20f", -1) == "-000000000001.000000" +string.format("%0 20f", 2) == " 000000000002.000000" +string.format("%0 20f", -2) == "-000000000002.000000" +string.format("%0 20f", 3) == " 000000000003.000000" +string.format("%0 20f", -3) == "-000000000003.000000" +string.format("%0 20f", nan) == " nan" +string.format("%0 20f", inf) == " inf" +string.format("%0 20f", -inf) == " -inf" +string.format("%0 20f", 100) == " 000000000100.000000" +string.format("%0 20f", 10000) == " 000000010000.000000" +string.format("%0 20f", 100000) == " 000000100000.000000" +string.format("%0 20f", 1000000) == " 000001000000.000000" +string.format("%0 20f", 10000000) == " 000010000000.000000" +string.format("%0 20f", 0.01) == " 000000000000.010000" +string.format("%0 20f", 0.0001) == " 000000000000.000100" +string.format("%0 20f", 1e-05) == " 000000000000.000010" +string.format("%0 20f", 1e-06) == " 000000000000.000001" +string.format("%0 20f", 1e-07) == " 000000000000.000000" +string.format("%0 20f", 123.456) == " 000000000123.456000" +string.format("%0 20f", 1234560000) == " 001234560000.000000" +string.format("%0 20f", 1.23456e-05) == " 000000000000.000012" +string.format("%0 20f", 123.456789123) == " 000000000123.456789" +string.format("%0 20f", 1234567891.23) == " 001234567891.230000" +string.format("%0 20f", 1.23456789123e-05) == " 000000000000.000012" +string.format("%0 20.0f", 0) == " 0000000000000000000" +string.format("%0 20.0f", 1) == " 0000000000000000001" +string.format("%0 20.0f", -1) == "-0000000000000000001" +string.format("%0 20.0f", 2) == " 0000000000000000002" +string.format("%0 20.0f", -2) == "-0000000000000000002" +string.format("%0 20.0f", 3) == " 0000000000000000003" +string.format("%0 20.0f", -3) == "-0000000000000000003" +string.format("%0 20.0f", nan) == " nan" +string.format("%0 20.0f", inf) == " inf" +string.format("%0 20.0f", -inf) == " -inf" +string.format("%0 20.0f", 100) == " 0000000000000000100" +string.format("%0 20.0f", 10000) == " 0000000000000010000" +string.format("%0 20.0f", 100000) == " 0000000000000100000" +string.format("%0 20.0f", 1000000) == " 0000000000001000000" +string.format("%0 20.0f", 10000000) == " 0000000000010000000" +string.format("%0 20.0f", 0.01) == " 0000000000000000000" +string.format("%0 20.0f", 0.0001) == " 0000000000000000000" +string.format("%0 20.0f", 1e-05) == " 0000000000000000000" +string.format("%0 20.0f", 1e-06) == " 0000000000000000000" +string.format("%0 20.0f", 1e-07) == " 0000000000000000000" +string.format("%0 20.0f", 123.456) == " 0000000000000000123" +string.format("%0 20.0f", 1234560000) == " 0000000001234560000" +string.format("%0 20.0f", 1.23456e-05) == " 0000000000000000000" +string.format("%0 20.0f", 123.456789123) == " 0000000000000000123" +string.format("%0 20.0f", 1234567891.23) == " 0000000001234567891" +string.format("%0 20.0f", 1.23456789123e-05) == " 0000000000000000000" +string.format("%0 20.1f", 0) == " 00000000000000000.0" +string.format("%0 20.1f", 1) == " 00000000000000001.0" +string.format("%0 20.1f", -1) == "-00000000000000001.0" +string.format("%0 20.1f", 2) == " 00000000000000002.0" +string.format("%0 20.1f", -2) == "-00000000000000002.0" +string.format("%0 20.1f", 3) == " 00000000000000003.0" +string.format("%0 20.1f", -3) == "-00000000000000003.0" +string.format("%0 20.1f", nan) == " nan" +string.format("%0 20.1f", inf) == " inf" +string.format("%0 20.1f", -inf) == " -inf" +string.format("%0 20.1f", 100) == " 00000000000000100.0" +string.format("%0 20.1f", 10000) == " 00000000000010000.0" +string.format("%0 20.1f", 100000) == " 00000000000100000.0" +string.format("%0 20.1f", 1000000) == " 00000000001000000.0" +string.format("%0 20.1f", 10000000) == " 00000000010000000.0" +string.format("%0 20.1f", 0.01) == " 00000000000000000.0" +string.format("%0 20.1f", 0.0001) == " 00000000000000000.0" +string.format("%0 20.1f", 1e-05) == " 00000000000000000.0" +string.format("%0 20.1f", 1e-06) == " 00000000000000000.0" +string.format("%0 20.1f", 1e-07) == " 00000000000000000.0" +string.format("%0 20.1f", 123.456) == " 00000000000000123.5" +string.format("%0 20.1f", 1234560000) == " 00000001234560000.0" +string.format("%0 20.1f", 1.23456e-05) == " 00000000000000000.0" +string.format("%0 20.1f", 123.456789123) == " 00000000000000123.5" +string.format("%0 20.1f", 1234567891.23) == " 00000001234567891.2" +string.format("%0 20.1f", 1.23456789123e-05) == " 00000000000000000.0" +string.format("%0 20.6f", 0) == " 000000000000.000000" +string.format("%0 20.6f", 1) == " 000000000001.000000" +string.format("%0 20.6f", -1) == "-000000000001.000000" +string.format("%0 20.6f", 2) == " 000000000002.000000" +string.format("%0 20.6f", -2) == "-000000000002.000000" +string.format("%0 20.6f", 3) == " 000000000003.000000" +string.format("%0 20.6f", -3) == "-000000000003.000000" +string.format("%0 20.6f", nan) == " nan" +string.format("%0 20.6f", inf) == " inf" +string.format("%0 20.6f", -inf) == " -inf" +string.format("%0 20.6f", 100) == " 000000000100.000000" +string.format("%0 20.6f", 10000) == " 000000010000.000000" +string.format("%0 20.6f", 100000) == " 000000100000.000000" +string.format("%0 20.6f", 1000000) == " 000001000000.000000" +string.format("%0 20.6f", 10000000) == " 000010000000.000000" +string.format("%0 20.6f", 0.01) == " 000000000000.010000" +string.format("%0 20.6f", 0.0001) == " 000000000000.000100" +string.format("%0 20.6f", 1e-05) == " 000000000000.000010" +string.format("%0 20.6f", 1e-06) == " 000000000000.000001" +string.format("%0 20.6f", 1e-07) == " 000000000000.000000" +string.format("%0 20.6f", 123.456) == " 000000000123.456000" +string.format("%0 20.6f", 1234560000) == " 001234560000.000000" +string.format("%0 20.6f", 1.23456e-05) == " 000000000000.000012" +string.format("%0 20.6f", 123.456789123) == " 000000000123.456789" +string.format("%0 20.6f", 1234567891.23) == " 001234567891.230000" +string.format("%0 20.6f", 1.23456789123e-05) == " 000000000000.000012" +string.format("%0 +f", 0) == "+0.000000" +string.format("%0 +f", 1) == "+1.000000" +string.format("%0 +f", -1) == "-1.000000" +string.format("%0 +f", 2) == "+2.000000" +string.format("%0 +f", -2) == "-2.000000" +string.format("%0 +f", 3) == "+3.000000" +string.format("%0 +f", -3) == "-3.000000" +string.format("%0 +f", nan) == "+nan" +string.format("%0 +f", inf) == "+inf" +string.format("%0 +f", -inf) == "-inf" +string.format("%0 +f", 100) == "+100.000000" +string.format("%0 +f", 10000) == "+10000.000000" +string.format("%0 +f", 100000) == "+100000.000000" +string.format("%0 +f", 1000000) == "+1000000.000000" +string.format("%0 +f", 10000000) == "+10000000.000000" +string.format("%0 +f", 0.01) == "+0.010000" +string.format("%0 +f", 0.0001) == "+0.000100" +string.format("%0 +f", 1e-05) == "+0.000010" +string.format("%0 +f", 1e-06) == "+0.000001" +string.format("%0 +f", 1e-07) == "+0.000000" +string.format("%0 +f", 123.456) == "+123.456000" +string.format("%0 +f", 1234560000) == "+1234560000.000000" +string.format("%0 +f", 1.23456e-05) == "+0.000012" +string.format("%0 +f", 123.456789123) == "+123.456789" +string.format("%0 +f", 1234567891.23) == "+1234567891.230000" +string.format("%0 +f", 1.23456789123e-05) == "+0.000012" +string.format("%0 +.0f", 0) == "+0" +string.format("%0 +.0f", 1) == "+1" +string.format("%0 +.0f", -1) == "-1" +string.format("%0 +.0f", 2) == "+2" +string.format("%0 +.0f", -2) == "-2" +string.format("%0 +.0f", 3) == "+3" +string.format("%0 +.0f", -3) == "-3" +string.format("%0 +.0f", 100) == "+100" +string.format("%0 +.0f", 10000) == "+10000" +string.format("%0 +.0f", 100000) == "+100000" +string.format("%0 +.0f", 1000000) == "+1000000" +string.format("%0 +.0f", 10000000) == "+10000000" +string.format("%0 +.0f", 0.01) == "+0" +string.format("%0 +.0f", 0.0001) == "+0" +string.format("%0 +.0f", 1e-05) == "+0" +string.format("%0 +.0f", 1e-06) == "+0" +string.format("%0 +.0f", 1e-07) == "+0" +string.format("%0 +.0f", 123.456) == "+123" +string.format("%0 +.0f", 1234560000) == "+1234560000" +string.format("%0 +.0f", 1.23456e-05) == "+0" +string.format("%0 +.0f", 123.456789123) == "+123" +string.format("%0 +.0f", 1234567891.23) == "+1234567891" +string.format("%0 +.0f", 1.23456789123e-05) == "+0" +string.format("%0 +.1f", 0) == "+0.0" +string.format("%0 +.1f", 1) == "+1.0" +string.format("%0 +.1f", -1) == "-1.0" +string.format("%0 +.1f", 2) == "+2.0" +string.format("%0 +.1f", -2) == "-2.0" +string.format("%0 +.1f", 3) == "+3.0" +string.format("%0 +.1f", -3) == "-3.0" +string.format("%0 +.1f", 100) == "+100.0" +string.format("%0 +.1f", 10000) == "+10000.0" +string.format("%0 +.1f", 100000) == "+100000.0" +string.format("%0 +.1f", 1000000) == "+1000000.0" +string.format("%0 +.1f", 10000000) == "+10000000.0" +string.format("%0 +.1f", 0.01) == "+0.0" +string.format("%0 +.1f", 0.0001) == "+0.0" +string.format("%0 +.1f", 1e-05) == "+0.0" +string.format("%0 +.1f", 1e-06) == "+0.0" +string.format("%0 +.1f", 1e-07) == "+0.0" +string.format("%0 +.1f", 123.456) == "+123.5" +string.format("%0 +.1f", 1234560000) == "+1234560000.0" +string.format("%0 +.1f", 1.23456e-05) == "+0.0" +string.format("%0 +.1f", 123.456789123) == "+123.5" +string.format("%0 +.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 +.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 +1.0f", 0) == "+0" +string.format("%0 +1.0f", 1) == "+1" +string.format("%0 +1.0f", -1) == "-1" +string.format("%0 +1.0f", 2) == "+2" +string.format("%0 +1.0f", -2) == "-2" +string.format("%0 +1.0f", 3) == "+3" +string.format("%0 +1.0f", -3) == "-3" +string.format("%0 +1.0f", 100) == "+100" +string.format("%0 +1.0f", 10000) == "+10000" +string.format("%0 +1.0f", 100000) == "+100000" +string.format("%0 +1.0f", 1000000) == "+1000000" +string.format("%0 +1.0f", 10000000) == "+10000000" +string.format("%0 +1.0f", 0.01) == "+0" +string.format("%0 +1.0f", 0.0001) == "+0" +string.format("%0 +1.0f", 1e-05) == "+0" +string.format("%0 +1.0f", 1e-06) == "+0" +string.format("%0 +1.0f", 1e-07) == "+0" +string.format("%0 +1.0f", 123.456) == "+123" +string.format("%0 +1.0f", 1234560000) == "+1234560000" +string.format("%0 +1.0f", 1.23456e-05) == "+0" +string.format("%0 +1.0f", 123.456789123) == "+123" +string.format("%0 +1.0f", 1234567891.23) == "+1234567891" +string.format("%0 +1.0f", 1.23456789123e-05) == "+0" +string.format("%0 +1.1f", 0) == "+0.0" +string.format("%0 +1.1f", 1) == "+1.0" +string.format("%0 +1.1f", -1) == "-1.0" +string.format("%0 +1.1f", 2) == "+2.0" +string.format("%0 +1.1f", -2) == "-2.0" +string.format("%0 +1.1f", 3) == "+3.0" +string.format("%0 +1.1f", -3) == "-3.0" +string.format("%0 +1.1f", 100) == "+100.0" +string.format("%0 +1.1f", 10000) == "+10000.0" +string.format("%0 +1.1f", 100000) == "+100000.0" +string.format("%0 +1.1f", 1000000) == "+1000000.0" +string.format("%0 +1.1f", 10000000) == "+10000000.0" +string.format("%0 +1.1f", 0.01) == "+0.0" +string.format("%0 +1.1f", 0.0001) == "+0.0" +string.format("%0 +1.1f", 1e-05) == "+0.0" +string.format("%0 +1.1f", 1e-06) == "+0.0" +string.format("%0 +1.1f", 1e-07) == "+0.0" +string.format("%0 +1.1f", 123.456) == "+123.5" +string.format("%0 +1.1f", 1234560000) == "+1234560000.0" +string.format("%0 +1.1f", 1.23456e-05) == "+0.0" +string.format("%0 +1.1f", 123.456789123) == "+123.5" +string.format("%0 +1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 +1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 +2.0f", 0) == "+0" +string.format("%0 +2.0f", 1) == "+1" +string.format("%0 +2.0f", -1) == "-1" +string.format("%0 +2.0f", 2) == "+2" +string.format("%0 +2.0f", -2) == "-2" +string.format("%0 +2.0f", 3) == "+3" +string.format("%0 +2.0f", -3) == "-3" +string.format("%0 +2.0f", 100) == "+100" +string.format("%0 +2.0f", 10000) == "+10000" +string.format("%0 +2.0f", 100000) == "+100000" +string.format("%0 +2.0f", 1000000) == "+1000000" +string.format("%0 +2.0f", 10000000) == "+10000000" +string.format("%0 +2.0f", 0.01) == "+0" +string.format("%0 +2.0f", 0.0001) == "+0" +string.format("%0 +2.0f", 1e-05) == "+0" +string.format("%0 +2.0f", 1e-06) == "+0" +string.format("%0 +2.0f", 1e-07) == "+0" +string.format("%0 +2.0f", 123.456) == "+123" +string.format("%0 +2.0f", 1234560000) == "+1234560000" +string.format("%0 +2.0f", 1.23456e-05) == "+0" +string.format("%0 +2.0f", 123.456789123) == "+123" +string.format("%0 +2.0f", 1234567891.23) == "+1234567891" +string.format("%0 +2.0f", 1.23456789123e-05) == "+0" +string.format("%0 +2.1f", 0) == "+0.0" +string.format("%0 +2.1f", 1) == "+1.0" +string.format("%0 +2.1f", -1) == "-1.0" +string.format("%0 +2.1f", 2) == "+2.0" +string.format("%0 +2.1f", -2) == "-2.0" +string.format("%0 +2.1f", 3) == "+3.0" +string.format("%0 +2.1f", -3) == "-3.0" +string.format("%0 +2.1f", 100) == "+100.0" +string.format("%0 +2.1f", 10000) == "+10000.0" +string.format("%0 +2.1f", 100000) == "+100000.0" +string.format("%0 +2.1f", 1000000) == "+1000000.0" +string.format("%0 +2.1f", 10000000) == "+10000000.0" +string.format("%0 +2.1f", 0.01) == "+0.0" +string.format("%0 +2.1f", 0.0001) == "+0.0" +string.format("%0 +2.1f", 1e-05) == "+0.0" +string.format("%0 +2.1f", 1e-06) == "+0.0" +string.format("%0 +2.1f", 1e-07) == "+0.0" +string.format("%0 +2.1f", 123.456) == "+123.5" +string.format("%0 +2.1f", 1234560000) == "+1234560000.0" +string.format("%0 +2.1f", 1.23456e-05) == "+0.0" +string.format("%0 +2.1f", 123.456789123) == "+123.5" +string.format("%0 +2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 +2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 +6f", nan) == " +nan" +string.format("%0 +6f", inf) == " +inf" +string.format("%0 +6f", -inf) == " -inf" +string.format("%0 +6.0f", 0) == "+00000" +string.format("%0 +6.0f", 1) == "+00001" +string.format("%0 +6.0f", -1) == "-00001" +string.format("%0 +6.0f", 2) == "+00002" +string.format("%0 +6.0f", -2) == "-00002" +string.format("%0 +6.0f", 3) == "+00003" +string.format("%0 +6.0f", -3) == "-00003" +string.format("%0 +6.0f", nan) == " +nan" +string.format("%0 +6.0f", inf) == " +inf" +string.format("%0 +6.0f", -inf) == " -inf" +string.format("%0 +6.0f", 100) == "+00100" +string.format("%0 +6.0f", 10000) == "+10000" +string.format("%0 +6.0f", 100000) == "+100000" +string.format("%0 +6.0f", 1000000) == "+1000000" +string.format("%0 +6.0f", 10000000) == "+10000000" +string.format("%0 +6.0f", 0.01) == "+00000" +string.format("%0 +6.0f", 0.0001) == "+00000" +string.format("%0 +6.0f", 1e-05) == "+00000" +string.format("%0 +6.0f", 1e-06) == "+00000" +string.format("%0 +6.0f", 1e-07) == "+00000" +string.format("%0 +6.0f", 123.456) == "+00123" +string.format("%0 +6.0f", 1234560000) == "+1234560000" +string.format("%0 +6.0f", 1.23456e-05) == "+00000" +string.format("%0 +6.0f", 123.456789123) == "+00123" +string.format("%0 +6.0f", 1234567891.23) == "+1234567891" +string.format("%0 +6.0f", 1.23456789123e-05) == "+00000" +string.format("%0 +6.1f", 0) == "+000.0" +string.format("%0 +6.1f", 1) == "+001.0" +string.format("%0 +6.1f", -1) == "-001.0" +string.format("%0 +6.1f", 2) == "+002.0" +string.format("%0 +6.1f", -2) == "-002.0" +string.format("%0 +6.1f", 3) == "+003.0" +string.format("%0 +6.1f", -3) == "-003.0" +string.format("%0 +6.1f", nan) == " +nan" +string.format("%0 +6.1f", inf) == " +inf" +string.format("%0 +6.1f", -inf) == " -inf" +string.format("%0 +6.1f", 100) == "+100.0" +string.format("%0 +6.1f", 10000) == "+10000.0" +string.format("%0 +6.1f", 100000) == "+100000.0" +string.format("%0 +6.1f", 1000000) == "+1000000.0" +string.format("%0 +6.1f", 10000000) == "+10000000.0" +string.format("%0 +6.1f", 0.01) == "+000.0" +string.format("%0 +6.1f", 0.0001) == "+000.0" +string.format("%0 +6.1f", 1e-05) == "+000.0" +string.format("%0 +6.1f", 1e-06) == "+000.0" +string.format("%0 +6.1f", 1e-07) == "+000.0" +string.format("%0 +6.1f", 123.456) == "+123.5" +string.format("%0 +6.1f", 1234560000) == "+1234560000.0" +string.format("%0 +6.1f", 1.23456e-05) == "+000.0" +string.format("%0 +6.1f", 123.456789123) == "+123.5" +string.format("%0 +6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 +6.1f", 1.23456789123e-05) == "+000.0" +string.format("%0 +6.6f", nan) == " +nan" +string.format("%0 +6.6f", inf) == " +inf" +string.format("%0 +6.6f", -inf) == " -inf" +string.format("%0 +20f", 0) == "+000000000000.000000" +string.format("%0 +20f", 1) == "+000000000001.000000" +string.format("%0 +20f", -1) == "-000000000001.000000" +string.format("%0 +20f", 2) == "+000000000002.000000" +string.format("%0 +20f", -2) == "-000000000002.000000" +string.format("%0 +20f", 3) == "+000000000003.000000" +string.format("%0 +20f", -3) == "-000000000003.000000" +string.format("%0 +20f", nan) == " +nan" +string.format("%0 +20f", inf) == " +inf" +string.format("%0 +20f", -inf) == " -inf" +string.format("%0 +20f", 100) == "+000000000100.000000" +string.format("%0 +20f", 10000) == "+000000010000.000000" +string.format("%0 +20f", 100000) == "+000000100000.000000" +string.format("%0 +20f", 1000000) == "+000001000000.000000" +string.format("%0 +20f", 10000000) == "+000010000000.000000" +string.format("%0 +20f", 0.01) == "+000000000000.010000" +string.format("%0 +20f", 0.0001) == "+000000000000.000100" +string.format("%0 +20f", 1e-05) == "+000000000000.000010" +string.format("%0 +20f", 1e-06) == "+000000000000.000001" +string.format("%0 +20f", 1e-07) == "+000000000000.000000" +string.format("%0 +20f", 123.456) == "+000000000123.456000" +string.format("%0 +20f", 1234560000) == "+001234560000.000000" +string.format("%0 +20f", 1.23456e-05) == "+000000000000.000012" +string.format("%0 +20f", 123.456789123) == "+000000000123.456789" +string.format("%0 +20f", 1234567891.23) == "+001234567891.230000" +string.format("%0 +20f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0 +20.0f", 0) == "+0000000000000000000" +string.format("%0 +20.0f", 1) == "+0000000000000000001" +string.format("%0 +20.0f", -1) == "-0000000000000000001" +string.format("%0 +20.0f", 2) == "+0000000000000000002" +string.format("%0 +20.0f", -2) == "-0000000000000000002" +string.format("%0 +20.0f", 3) == "+0000000000000000003" +string.format("%0 +20.0f", -3) == "-0000000000000000003" +string.format("%0 +20.0f", nan) == " +nan" +string.format("%0 +20.0f", inf) == " +inf" +string.format("%0 +20.0f", -inf) == " -inf" +string.format("%0 +20.0f", 100) == "+0000000000000000100" +string.format("%0 +20.0f", 10000) == "+0000000000000010000" +string.format("%0 +20.0f", 100000) == "+0000000000000100000" +string.format("%0 +20.0f", 1000000) == "+0000000000001000000" +string.format("%0 +20.0f", 10000000) == "+0000000000010000000" +string.format("%0 +20.0f", 0.01) == "+0000000000000000000" +string.format("%0 +20.0f", 0.0001) == "+0000000000000000000" +string.format("%0 +20.0f", 1e-05) == "+0000000000000000000" +string.format("%0 +20.0f", 1e-06) == "+0000000000000000000" +string.format("%0 +20.0f", 1e-07) == "+0000000000000000000" +string.format("%0 +20.0f", 123.456) == "+0000000000000000123" +string.format("%0 +20.0f", 1234560000) == "+0000000001234560000" +string.format("%0 +20.0f", 1.23456e-05) == "+0000000000000000000" +string.format("%0 +20.0f", 123.456789123) == "+0000000000000000123" +string.format("%0 +20.0f", 1234567891.23) == "+0000000001234567891" +string.format("%0 +20.0f", 1.23456789123e-05) == "+0000000000000000000" +string.format("%0 +20.1f", 0) == "+00000000000000000.0" +string.format("%0 +20.1f", 1) == "+00000000000000001.0" +string.format("%0 +20.1f", -1) == "-00000000000000001.0" +string.format("%0 +20.1f", 2) == "+00000000000000002.0" +string.format("%0 +20.1f", -2) == "-00000000000000002.0" +string.format("%0 +20.1f", 3) == "+00000000000000003.0" +string.format("%0 +20.1f", -3) == "-00000000000000003.0" +string.format("%0 +20.1f", nan) == " +nan" +string.format("%0 +20.1f", inf) == " +inf" +string.format("%0 +20.1f", -inf) == " -inf" +string.format("%0 +20.1f", 100) == "+00000000000000100.0" +string.format("%0 +20.1f", 10000) == "+00000000000010000.0" +string.format("%0 +20.1f", 100000) == "+00000000000100000.0" +string.format("%0 +20.1f", 1000000) == "+00000000001000000.0" +string.format("%0 +20.1f", 10000000) == "+00000000010000000.0" +string.format("%0 +20.1f", 0.01) == "+00000000000000000.0" +string.format("%0 +20.1f", 0.0001) == "+00000000000000000.0" +string.format("%0 +20.1f", 1e-05) == "+00000000000000000.0" +string.format("%0 +20.1f", 1e-06) == "+00000000000000000.0" +string.format("%0 +20.1f", 1e-07) == "+00000000000000000.0" +string.format("%0 +20.1f", 123.456) == "+00000000000000123.5" +string.format("%0 +20.1f", 1234560000) == "+00000001234560000.0" +string.format("%0 +20.1f", 1.23456e-05) == "+00000000000000000.0" +string.format("%0 +20.1f", 123.456789123) == "+00000000000000123.5" +string.format("%0 +20.1f", 1234567891.23) == "+00000001234567891.2" +string.format("%0 +20.1f", 1.23456789123e-05) == "+00000000000000000.0" +string.format("%0 +20.6f", 0) == "+000000000000.000000" +string.format("%0 +20.6f", 1) == "+000000000001.000000" +string.format("%0 +20.6f", -1) == "-000000000001.000000" +string.format("%0 +20.6f", 2) == "+000000000002.000000" +string.format("%0 +20.6f", -2) == "-000000000002.000000" +string.format("%0 +20.6f", 3) == "+000000000003.000000" +string.format("%0 +20.6f", -3) == "-000000000003.000000" +string.format("%0 +20.6f", nan) == " +nan" +string.format("%0 +20.6f", inf) == " +inf" +string.format("%0 +20.6f", -inf) == " -inf" +string.format("%0 +20.6f", 100) == "+000000000100.000000" +string.format("%0 +20.6f", 10000) == "+000000010000.000000" +string.format("%0 +20.6f", 100000) == "+000000100000.000000" +string.format("%0 +20.6f", 1000000) == "+000001000000.000000" +string.format("%0 +20.6f", 10000000) == "+000010000000.000000" +string.format("%0 +20.6f", 0.01) == "+000000000000.010000" +string.format("%0 +20.6f", 0.0001) == "+000000000000.000100" +string.format("%0 +20.6f", 1e-05) == "+000000000000.000010" +string.format("%0 +20.6f", 1e-06) == "+000000000000.000001" +string.format("%0 +20.6f", 1e-07) == "+000000000000.000000" +string.format("%0 +20.6f", 123.456) == "+000000000123.456000" +string.format("%0 +20.6f", 1234560000) == "+001234560000.000000" +string.format("%0 +20.6f", 1.23456e-05) == "+000000000000.000012" +string.format("%0 +20.6f", 123.456789123) == "+000000000123.456789" +string.format("%0 +20.6f", 1234567891.23) == "+001234567891.230000" +string.format("%0 +20.6f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0 -f", 0) == " 0.000000" +string.format("%0 -f", 1) == " 1.000000" +string.format("%0 -f", -1) == "-1.000000" +string.format("%0 -f", 2) == " 2.000000" +string.format("%0 -f", -2) == "-2.000000" +string.format("%0 -f", 3) == " 3.000000" +string.format("%0 -f", -3) == "-3.000000" +string.format("%0 -f", nan) == " nan" +string.format("%0 -f", inf) == " inf" +string.format("%0 -f", -inf) == "-inf" +string.format("%0 -f", 100) == " 100.000000" +string.format("%0 -f", 10000) == " 10000.000000" +string.format("%0 -f", 100000) == " 100000.000000" +string.format("%0 -f", 1000000) == " 1000000.000000" +string.format("%0 -f", 10000000) == " 10000000.000000" +string.format("%0 -f", 0.01) == " 0.010000" +string.format("%0 -f", 0.0001) == " 0.000100" +string.format("%0 -f", 1e-05) == " 0.000010" +string.format("%0 -f", 1e-06) == " 0.000001" +string.format("%0 -f", 1e-07) == " 0.000000" +string.format("%0 -f", 123.456) == " 123.456000" +string.format("%0 -f", 1234560000) == " 1234560000.000000" +string.format("%0 -f", 1.23456e-05) == " 0.000012" +string.format("%0 -f", 123.456789123) == " 123.456789" +string.format("%0 -f", 1234567891.23) == " 1234567891.230000" +string.format("%0 -f", 1.23456789123e-05) == " 0.000012" +string.format("%0 -.0f", 0) == " 0" +string.format("%0 -.0f", 1) == " 1" +string.format("%0 -.0f", -1) == "-1" +string.format("%0 -.0f", 2) == " 2" +string.format("%0 -.0f", -2) == "-2" +string.format("%0 -.0f", 3) == " 3" +string.format("%0 -.0f", -3) == "-3" +string.format("%0 -.0f", 100) == " 100" +string.format("%0 -.0f", 10000) == " 10000" +string.format("%0 -.0f", 100000) == " 100000" +string.format("%0 -.0f", 1000000) == " 1000000" +string.format("%0 -.0f", 10000000) == " 10000000" +string.format("%0 -.0f", 0.01) == " 0" +string.format("%0 -.0f", 0.0001) == " 0" +string.format("%0 -.0f", 1e-05) == " 0" +string.format("%0 -.0f", 1e-06) == " 0" +string.format("%0 -.0f", 1e-07) == " 0" +string.format("%0 -.0f", 123.456) == " 123" +string.format("%0 -.0f", 1234560000) == " 1234560000" +string.format("%0 -.0f", 1.23456e-05) == " 0" +string.format("%0 -.0f", 123.456789123) == " 123" +string.format("%0 -.0f", 1234567891.23) == " 1234567891" +string.format("%0 -.0f", 1.23456789123e-05) == " 0" +string.format("%0 -.1f", 0) == " 0.0" +string.format("%0 -.1f", 1) == " 1.0" +string.format("%0 -.1f", -1) == "-1.0" +string.format("%0 -.1f", 2) == " 2.0" +string.format("%0 -.1f", -2) == "-2.0" +string.format("%0 -.1f", 3) == " 3.0" +string.format("%0 -.1f", -3) == "-3.0" +string.format("%0 -.1f", 100) == " 100.0" +string.format("%0 -.1f", 10000) == " 10000.0" +string.format("%0 -.1f", 100000) == " 100000.0" +string.format("%0 -.1f", 1000000) == " 1000000.0" +string.format("%0 -.1f", 10000000) == " 10000000.0" +string.format("%0 -.1f", 0.01) == " 0.0" +string.format("%0 -.1f", 0.0001) == " 0.0" +string.format("%0 -.1f", 1e-05) == " 0.0" +string.format("%0 -.1f", 1e-06) == " 0.0" +string.format("%0 -.1f", 1e-07) == " 0.0" +string.format("%0 -.1f", 123.456) == " 123.5" +string.format("%0 -.1f", 1234560000) == " 1234560000.0" +string.format("%0 -.1f", 1.23456e-05) == " 0.0" +string.format("%0 -.1f", 123.456789123) == " 123.5" +string.format("%0 -.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 -.1f", 1.23456789123e-05) == " 0.0" +string.format("%0 -1.0f", 0) == " 0" +string.format("%0 -1.0f", 1) == " 1" +string.format("%0 -1.0f", -1) == "-1" +string.format("%0 -1.0f", 2) == " 2" +string.format("%0 -1.0f", -2) == "-2" +string.format("%0 -1.0f", 3) == " 3" +string.format("%0 -1.0f", -3) == "-3" +string.format("%0 -1.0f", 100) == " 100" +string.format("%0 -1.0f", 10000) == " 10000" +string.format("%0 -1.0f", 100000) == " 100000" +string.format("%0 -1.0f", 1000000) == " 1000000" +string.format("%0 -1.0f", 10000000) == " 10000000" +string.format("%0 -1.0f", 0.01) == " 0" +string.format("%0 -1.0f", 0.0001) == " 0" +string.format("%0 -1.0f", 1e-05) == " 0" +string.format("%0 -1.0f", 1e-06) == " 0" +string.format("%0 -1.0f", 1e-07) == " 0" +string.format("%0 -1.0f", 123.456) == " 123" +string.format("%0 -1.0f", 1234560000) == " 1234560000" +string.format("%0 -1.0f", 1.23456e-05) == " 0" +string.format("%0 -1.0f", 123.456789123) == " 123" +string.format("%0 -1.0f", 1234567891.23) == " 1234567891" +string.format("%0 -1.0f", 1.23456789123e-05) == " 0" +string.format("%0 -1.1f", 0) == " 0.0" +string.format("%0 -1.1f", 1) == " 1.0" +string.format("%0 -1.1f", -1) == "-1.0" +string.format("%0 -1.1f", 2) == " 2.0" +string.format("%0 -1.1f", -2) == "-2.0" +string.format("%0 -1.1f", 3) == " 3.0" +string.format("%0 -1.1f", -3) == "-3.0" +string.format("%0 -1.1f", 100) == " 100.0" +string.format("%0 -1.1f", 10000) == " 10000.0" +string.format("%0 -1.1f", 100000) == " 100000.0" +string.format("%0 -1.1f", 1000000) == " 1000000.0" +string.format("%0 -1.1f", 10000000) == " 10000000.0" +string.format("%0 -1.1f", 0.01) == " 0.0" +string.format("%0 -1.1f", 0.0001) == " 0.0" +string.format("%0 -1.1f", 1e-05) == " 0.0" +string.format("%0 -1.1f", 1e-06) == " 0.0" +string.format("%0 -1.1f", 1e-07) == " 0.0" +string.format("%0 -1.1f", 123.456) == " 123.5" +string.format("%0 -1.1f", 1234560000) == " 1234560000.0" +string.format("%0 -1.1f", 1.23456e-05) == " 0.0" +string.format("%0 -1.1f", 123.456789123) == " 123.5" +string.format("%0 -1.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 -1.1f", 1.23456789123e-05) == " 0.0" +string.format("%0 -2.0f", 0) == " 0" +string.format("%0 -2.0f", 1) == " 1" +string.format("%0 -2.0f", -1) == "-1" +string.format("%0 -2.0f", 2) == " 2" +string.format("%0 -2.0f", -2) == "-2" +string.format("%0 -2.0f", 3) == " 3" +string.format("%0 -2.0f", -3) == "-3" +string.format("%0 -2.0f", 100) == " 100" +string.format("%0 -2.0f", 10000) == " 10000" +string.format("%0 -2.0f", 100000) == " 100000" +string.format("%0 -2.0f", 1000000) == " 1000000" +string.format("%0 -2.0f", 10000000) == " 10000000" +string.format("%0 -2.0f", 0.01) == " 0" +string.format("%0 -2.0f", 0.0001) == " 0" +string.format("%0 -2.0f", 1e-05) == " 0" +string.format("%0 -2.0f", 1e-06) == " 0" +string.format("%0 -2.0f", 1e-07) == " 0" +string.format("%0 -2.0f", 123.456) == " 123" +string.format("%0 -2.0f", 1234560000) == " 1234560000" +string.format("%0 -2.0f", 1.23456e-05) == " 0" +string.format("%0 -2.0f", 123.456789123) == " 123" +string.format("%0 -2.0f", 1234567891.23) == " 1234567891" +string.format("%0 -2.0f", 1.23456789123e-05) == " 0" +string.format("%0 -2.1f", 0) == " 0.0" +string.format("%0 -2.1f", 1) == " 1.0" +string.format("%0 -2.1f", -1) == "-1.0" +string.format("%0 -2.1f", 2) == " 2.0" +string.format("%0 -2.1f", -2) == "-2.0" +string.format("%0 -2.1f", 3) == " 3.0" +string.format("%0 -2.1f", -3) == "-3.0" +string.format("%0 -2.1f", 100) == " 100.0" +string.format("%0 -2.1f", 10000) == " 10000.0" +string.format("%0 -2.1f", 100000) == " 100000.0" +string.format("%0 -2.1f", 1000000) == " 1000000.0" +string.format("%0 -2.1f", 10000000) == " 10000000.0" +string.format("%0 -2.1f", 0.01) == " 0.0" +string.format("%0 -2.1f", 0.0001) == " 0.0" +string.format("%0 -2.1f", 1e-05) == " 0.0" +string.format("%0 -2.1f", 1e-06) == " 0.0" +string.format("%0 -2.1f", 1e-07) == " 0.0" +string.format("%0 -2.1f", 123.456) == " 123.5" +string.format("%0 -2.1f", 1234560000) == " 1234560000.0" +string.format("%0 -2.1f", 1.23456e-05) == " 0.0" +string.format("%0 -2.1f", 123.456789123) == " 123.5" +string.format("%0 -2.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 -2.1f", 1.23456789123e-05) == " 0.0" +string.format("%0 -6f", nan) == " nan " +string.format("%0 -6f", inf) == " inf " +string.format("%0 -6f", -inf) == "-inf " +string.format("%0 -6.0f", 0) == " 0 " +string.format("%0 -6.0f", 1) == " 1 " +string.format("%0 -6.0f", -1) == "-1 " +string.format("%0 -6.0f", 2) == " 2 " +string.format("%0 -6.0f", -2) == "-2 " +string.format("%0 -6.0f", 3) == " 3 " +string.format("%0 -6.0f", -3) == "-3 " +string.format("%0 -6.0f", nan) == " nan " +string.format("%0 -6.0f", inf) == " inf " +string.format("%0 -6.0f", -inf) == "-inf " +string.format("%0 -6.0f", 100) == " 100 " +string.format("%0 -6.0f", 10000) == " 10000" +string.format("%0 -6.0f", 100000) == " 100000" +string.format("%0 -6.0f", 1000000) == " 1000000" +string.format("%0 -6.0f", 10000000) == " 10000000" +string.format("%0 -6.0f", 0.01) == " 0 " +string.format("%0 -6.0f", 0.0001) == " 0 " +string.format("%0 -6.0f", 1e-05) == " 0 " +string.format("%0 -6.0f", 1e-06) == " 0 " +string.format("%0 -6.0f", 1e-07) == " 0 " +string.format("%0 -6.0f", 123.456) == " 123 " +string.format("%0 -6.0f", 1234560000) == " 1234560000" +string.format("%0 -6.0f", 1.23456e-05) == " 0 " +string.format("%0 -6.0f", 123.456789123) == " 123 " +string.format("%0 -6.0f", 1234567891.23) == " 1234567891" +string.format("%0 -6.0f", 1.23456789123e-05) == " 0 " +string.format("%0 -6.1f", 0) == " 0.0 " +string.format("%0 -6.1f", 1) == " 1.0 " +string.format("%0 -6.1f", -1) == "-1.0 " +string.format("%0 -6.1f", 2) == " 2.0 " +string.format("%0 -6.1f", -2) == "-2.0 " +string.format("%0 -6.1f", 3) == " 3.0 " +string.format("%0 -6.1f", -3) == "-3.0 " +string.format("%0 -6.1f", nan) == " nan " +string.format("%0 -6.1f", inf) == " inf " +string.format("%0 -6.1f", -inf) == "-inf " +string.format("%0 -6.1f", 100) == " 100.0" +string.format("%0 -6.1f", 10000) == " 10000.0" +string.format("%0 -6.1f", 100000) == " 100000.0" +string.format("%0 -6.1f", 1000000) == " 1000000.0" +string.format("%0 -6.1f", 10000000) == " 10000000.0" +string.format("%0 -6.1f", 0.01) == " 0.0 " +string.format("%0 -6.1f", 0.0001) == " 0.0 " +string.format("%0 -6.1f", 1e-05) == " 0.0 " +string.format("%0 -6.1f", 1e-06) == " 0.0 " +string.format("%0 -6.1f", 1e-07) == " 0.0 " +string.format("%0 -6.1f", 123.456) == " 123.5" +string.format("%0 -6.1f", 1234560000) == " 1234560000.0" +string.format("%0 -6.1f", 1.23456e-05) == " 0.0 " +string.format("%0 -6.1f", 123.456789123) == " 123.5" +string.format("%0 -6.1f", 1234567891.23) == " 1234567891.2" +string.format("%0 -6.1f", 1.23456789123e-05) == " 0.0 " +string.format("%0 -6.6f", nan) == " nan " +string.format("%0 -6.6f", inf) == " inf " +string.format("%0 -6.6f", -inf) == "-inf " +string.format("%0 -20f", 0) == " 0.000000 " +string.format("%0 -20f", 1) == " 1.000000 " +string.format("%0 -20f", -1) == "-1.000000 " +string.format("%0 -20f", 2) == " 2.000000 " +string.format("%0 -20f", -2) == "-2.000000 " +string.format("%0 -20f", 3) == " 3.000000 " +string.format("%0 -20f", -3) == "-3.000000 " +string.format("%0 -20f", nan) == " nan " +string.format("%0 -20f", inf) == " inf " +string.format("%0 -20f", -inf) == "-inf " +string.format("%0 -20f", 100) == " 100.000000 " +string.format("%0 -20f", 10000) == " 10000.000000 " +string.format("%0 -20f", 100000) == " 100000.000000 " +string.format("%0 -20f", 1000000) == " 1000000.000000 " +string.format("%0 -20f", 10000000) == " 10000000.000000 " +string.format("%0 -20f", 0.01) == " 0.010000 " +string.format("%0 -20f", 0.0001) == " 0.000100 " +string.format("%0 -20f", 1e-05) == " 0.000010 " +string.format("%0 -20f", 1e-06) == " 0.000001 " +string.format("%0 -20f", 1e-07) == " 0.000000 " +string.format("%0 -20f", 123.456) == " 123.456000 " +string.format("%0 -20f", 1234560000) == " 1234560000.000000 " +string.format("%0 -20f", 1.23456e-05) == " 0.000012 " +string.format("%0 -20f", 123.456789123) == " 123.456789 " +string.format("%0 -20f", 1234567891.23) == " 1234567891.230000 " +string.format("%0 -20f", 1.23456789123e-05) == " 0.000012 " +string.format("%0 -20.0f", 0) == " 0 " +string.format("%0 -20.0f", 1) == " 1 " +string.format("%0 -20.0f", -1) == "-1 " +string.format("%0 -20.0f", 2) == " 2 " +string.format("%0 -20.0f", -2) == "-2 " +string.format("%0 -20.0f", 3) == " 3 " +string.format("%0 -20.0f", -3) == "-3 " +string.format("%0 -20.0f", nan) == " nan " +string.format("%0 -20.0f", inf) == " inf " +string.format("%0 -20.0f", -inf) == "-inf " +string.format("%0 -20.0f", 100) == " 100 " +string.format("%0 -20.0f", 10000) == " 10000 " +string.format("%0 -20.0f", 100000) == " 100000 " +string.format("%0 -20.0f", 1000000) == " 1000000 " +string.format("%0 -20.0f", 10000000) == " 10000000 " +string.format("%0 -20.0f", 0.01) == " 0 " +string.format("%0 -20.0f", 0.0001) == " 0 " +string.format("%0 -20.0f", 1e-05) == " 0 " +string.format("%0 -20.0f", 1e-06) == " 0 " +string.format("%0 -20.0f", 1e-07) == " 0 " +string.format("%0 -20.0f", 123.456) == " 123 " +string.format("%0 -20.0f", 1234560000) == " 1234560000 " +string.format("%0 -20.0f", 1.23456e-05) == " 0 " +string.format("%0 -20.0f", 123.456789123) == " 123 " +string.format("%0 -20.0f", 1234567891.23) == " 1234567891 " +string.format("%0 -20.0f", 1.23456789123e-05) == " 0 " +string.format("%0 -20.1f", 0) == " 0.0 " +string.format("%0 -20.1f", 1) == " 1.0 " +string.format("%0 -20.1f", -1) == "-1.0 " +string.format("%0 -20.1f", 2) == " 2.0 " +string.format("%0 -20.1f", -2) == "-2.0 " +string.format("%0 -20.1f", 3) == " 3.0 " +string.format("%0 -20.1f", -3) == "-3.0 " +string.format("%0 -20.1f", nan) == " nan " +string.format("%0 -20.1f", inf) == " inf " +string.format("%0 -20.1f", -inf) == "-inf " +string.format("%0 -20.1f", 100) == " 100.0 " +string.format("%0 -20.1f", 10000) == " 10000.0 " +string.format("%0 -20.1f", 100000) == " 100000.0 " +string.format("%0 -20.1f", 1000000) == " 1000000.0 " +string.format("%0 -20.1f", 10000000) == " 10000000.0 " +string.format("%0 -20.1f", 0.01) == " 0.0 " +string.format("%0 -20.1f", 0.0001) == " 0.0 " +string.format("%0 -20.1f", 1e-05) == " 0.0 " +string.format("%0 -20.1f", 1e-06) == " 0.0 " +string.format("%0 -20.1f", 1e-07) == " 0.0 " +string.format("%0 -20.1f", 123.456) == " 123.5 " +string.format("%0 -20.1f", 1234560000) == " 1234560000.0 " +string.format("%0 -20.1f", 1.23456e-05) == " 0.0 " +string.format("%0 -20.1f", 123.456789123) == " 123.5 " +string.format("%0 -20.1f", 1234567891.23) == " 1234567891.2 " +string.format("%0 -20.1f", 1.23456789123e-05) == " 0.0 " +string.format("%0 -20.6f", 0) == " 0.000000 " +string.format("%0 -20.6f", 1) == " 1.000000 " +string.format("%0 -20.6f", -1) == "-1.000000 " +string.format("%0 -20.6f", 2) == " 2.000000 " +string.format("%0 -20.6f", -2) == "-2.000000 " +string.format("%0 -20.6f", 3) == " 3.000000 " +string.format("%0 -20.6f", -3) == "-3.000000 " +string.format("%0 -20.6f", nan) == " nan " +string.format("%0 -20.6f", inf) == " inf " +string.format("%0 -20.6f", -inf) == "-inf " +string.format("%0 -20.6f", 100) == " 100.000000 " +string.format("%0 -20.6f", 10000) == " 10000.000000 " +string.format("%0 -20.6f", 100000) == " 100000.000000 " +string.format("%0 -20.6f", 1000000) == " 1000000.000000 " +string.format("%0 -20.6f", 10000000) == " 10000000.000000 " +string.format("%0 -20.6f", 0.01) == " 0.010000 " +string.format("%0 -20.6f", 0.0001) == " 0.000100 " +string.format("%0 -20.6f", 1e-05) == " 0.000010 " +string.format("%0 -20.6f", 1e-06) == " 0.000001 " +string.format("%0 -20.6f", 1e-07) == " 0.000000 " +string.format("%0 -20.6f", 123.456) == " 123.456000 " +string.format("%0 -20.6f", 1234560000) == " 1234560000.000000 " +string.format("%0 -20.6f", 1.23456e-05) == " 0.000012 " +string.format("%0 -20.6f", 123.456789123) == " 123.456789 " +string.format("%0 -20.6f", 1234567891.23) == " 1234567891.230000 " +string.format("%0 -20.6f", 1.23456789123e-05) == " 0.000012 " +string.format("%0 -+f", 0) == "+0.000000" +string.format("%0 -+f", 1) == "+1.000000" +string.format("%0 -+f", -1) == "-1.000000" +string.format("%0 -+f", 2) == "+2.000000" +string.format("%0 -+f", -2) == "-2.000000" +string.format("%0 -+f", 3) == "+3.000000" +string.format("%0 -+f", -3) == "-3.000000" +string.format("%0 -+f", nan) == "+nan" +string.format("%0 -+f", inf) == "+inf" +string.format("%0 -+f", -inf) == "-inf" +string.format("%0 -+f", 100) == "+100.000000" +string.format("%0 -+f", 10000) == "+10000.000000" +string.format("%0 -+f", 100000) == "+100000.000000" +string.format("%0 -+f", 1000000) == "+1000000.000000" +string.format("%0 -+f", 10000000) == "+10000000.000000" +string.format("%0 -+f", 0.01) == "+0.010000" +string.format("%0 -+f", 0.0001) == "+0.000100" +string.format("%0 -+f", 1e-05) == "+0.000010" +string.format("%0 -+f", 1e-06) == "+0.000001" +string.format("%0 -+f", 1e-07) == "+0.000000" +string.format("%0 -+f", 123.456) == "+123.456000" +string.format("%0 -+f", 1234560000) == "+1234560000.000000" +string.format("%0 -+f", 1.23456e-05) == "+0.000012" +string.format("%0 -+f", 123.456789123) == "+123.456789" +string.format("%0 -+f", 1234567891.23) == "+1234567891.230000" +string.format("%0 -+f", 1.23456789123e-05) == "+0.000012" +string.format("%0 -+.0f", 0) == "+0" +string.format("%0 -+.0f", 1) == "+1" +string.format("%0 -+.0f", -1) == "-1" +string.format("%0 -+.0f", 2) == "+2" +string.format("%0 -+.0f", -2) == "-2" +string.format("%0 -+.0f", 3) == "+3" +string.format("%0 -+.0f", -3) == "-3" +string.format("%0 -+.0f", 100) == "+100" +string.format("%0 -+.0f", 10000) == "+10000" +string.format("%0 -+.0f", 100000) == "+100000" +string.format("%0 -+.0f", 1000000) == "+1000000" +string.format("%0 -+.0f", 10000000) == "+10000000" +string.format("%0 -+.0f", 0.01) == "+0" +string.format("%0 -+.0f", 0.0001) == "+0" +string.format("%0 -+.0f", 1e-05) == "+0" +string.format("%0 -+.0f", 1e-06) == "+0" +string.format("%0 -+.0f", 1e-07) == "+0" +string.format("%0 -+.0f", 123.456) == "+123" +string.format("%0 -+.0f", 1234560000) == "+1234560000" +string.format("%0 -+.0f", 1.23456e-05) == "+0" +string.format("%0 -+.0f", 123.456789123) == "+123" +string.format("%0 -+.0f", 1234567891.23) == "+1234567891" +string.format("%0 -+.0f", 1.23456789123e-05) == "+0" +string.format("%0 -+.1f", 0) == "+0.0" +string.format("%0 -+.1f", 1) == "+1.0" +string.format("%0 -+.1f", -1) == "-1.0" +string.format("%0 -+.1f", 2) == "+2.0" +string.format("%0 -+.1f", -2) == "-2.0" +string.format("%0 -+.1f", 3) == "+3.0" +string.format("%0 -+.1f", -3) == "-3.0" +string.format("%0 -+.1f", 100) == "+100.0" +string.format("%0 -+.1f", 10000) == "+10000.0" +string.format("%0 -+.1f", 100000) == "+100000.0" +string.format("%0 -+.1f", 1000000) == "+1000000.0" +string.format("%0 -+.1f", 10000000) == "+10000000.0" +string.format("%0 -+.1f", 0.01) == "+0.0" +string.format("%0 -+.1f", 0.0001) == "+0.0" +string.format("%0 -+.1f", 1e-05) == "+0.0" +string.format("%0 -+.1f", 1e-06) == "+0.0" +string.format("%0 -+.1f", 1e-07) == "+0.0" +string.format("%0 -+.1f", 123.456) == "+123.5" +string.format("%0 -+.1f", 1234560000) == "+1234560000.0" +string.format("%0 -+.1f", 1.23456e-05) == "+0.0" +string.format("%0 -+.1f", 123.456789123) == "+123.5" +string.format("%0 -+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 -+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 -+1.0f", 0) == "+0" +string.format("%0 -+1.0f", 1) == "+1" +string.format("%0 -+1.0f", -1) == "-1" +string.format("%0 -+1.0f", 2) == "+2" +string.format("%0 -+1.0f", -2) == "-2" +string.format("%0 -+1.0f", 3) == "+3" +string.format("%0 -+1.0f", -3) == "-3" +string.format("%0 -+1.0f", 100) == "+100" +string.format("%0 -+1.0f", 10000) == "+10000" +string.format("%0 -+1.0f", 100000) == "+100000" +string.format("%0 -+1.0f", 1000000) == "+1000000" +string.format("%0 -+1.0f", 10000000) == "+10000000" +string.format("%0 -+1.0f", 0.01) == "+0" +string.format("%0 -+1.0f", 0.0001) == "+0" +string.format("%0 -+1.0f", 1e-05) == "+0" +string.format("%0 -+1.0f", 1e-06) == "+0" +string.format("%0 -+1.0f", 1e-07) == "+0" +string.format("%0 -+1.0f", 123.456) == "+123" +string.format("%0 -+1.0f", 1234560000) == "+1234560000" +string.format("%0 -+1.0f", 1.23456e-05) == "+0" +string.format("%0 -+1.0f", 123.456789123) == "+123" +string.format("%0 -+1.0f", 1234567891.23) == "+1234567891" +string.format("%0 -+1.0f", 1.23456789123e-05) == "+0" +string.format("%0 -+1.1f", 0) == "+0.0" +string.format("%0 -+1.1f", 1) == "+1.0" +string.format("%0 -+1.1f", -1) == "-1.0" +string.format("%0 -+1.1f", 2) == "+2.0" +string.format("%0 -+1.1f", -2) == "-2.0" +string.format("%0 -+1.1f", 3) == "+3.0" +string.format("%0 -+1.1f", -3) == "-3.0" +string.format("%0 -+1.1f", 100) == "+100.0" +string.format("%0 -+1.1f", 10000) == "+10000.0" +string.format("%0 -+1.1f", 100000) == "+100000.0" +string.format("%0 -+1.1f", 1000000) == "+1000000.0" +string.format("%0 -+1.1f", 10000000) == "+10000000.0" +string.format("%0 -+1.1f", 0.01) == "+0.0" +string.format("%0 -+1.1f", 0.0001) == "+0.0" +string.format("%0 -+1.1f", 1e-05) == "+0.0" +string.format("%0 -+1.1f", 1e-06) == "+0.0" +string.format("%0 -+1.1f", 1e-07) == "+0.0" +string.format("%0 -+1.1f", 123.456) == "+123.5" +string.format("%0 -+1.1f", 1234560000) == "+1234560000.0" +string.format("%0 -+1.1f", 1.23456e-05) == "+0.0" +string.format("%0 -+1.1f", 123.456789123) == "+123.5" +string.format("%0 -+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 -+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 -+2.0f", 0) == "+0" +string.format("%0 -+2.0f", 1) == "+1" +string.format("%0 -+2.0f", -1) == "-1" +string.format("%0 -+2.0f", 2) == "+2" +string.format("%0 -+2.0f", -2) == "-2" +string.format("%0 -+2.0f", 3) == "+3" +string.format("%0 -+2.0f", -3) == "-3" +string.format("%0 -+2.0f", 100) == "+100" +string.format("%0 -+2.0f", 10000) == "+10000" +string.format("%0 -+2.0f", 100000) == "+100000" +string.format("%0 -+2.0f", 1000000) == "+1000000" +string.format("%0 -+2.0f", 10000000) == "+10000000" +string.format("%0 -+2.0f", 0.01) == "+0" +string.format("%0 -+2.0f", 0.0001) == "+0" +string.format("%0 -+2.0f", 1e-05) == "+0" +string.format("%0 -+2.0f", 1e-06) == "+0" +string.format("%0 -+2.0f", 1e-07) == "+0" +string.format("%0 -+2.0f", 123.456) == "+123" +string.format("%0 -+2.0f", 1234560000) == "+1234560000" +string.format("%0 -+2.0f", 1.23456e-05) == "+0" +string.format("%0 -+2.0f", 123.456789123) == "+123" +string.format("%0 -+2.0f", 1234567891.23) == "+1234567891" +string.format("%0 -+2.0f", 1.23456789123e-05) == "+0" +string.format("%0 -+2.1f", 0) == "+0.0" +string.format("%0 -+2.1f", 1) == "+1.0" +string.format("%0 -+2.1f", -1) == "-1.0" +string.format("%0 -+2.1f", 2) == "+2.0" +string.format("%0 -+2.1f", -2) == "-2.0" +string.format("%0 -+2.1f", 3) == "+3.0" +string.format("%0 -+2.1f", -3) == "-3.0" +string.format("%0 -+2.1f", 100) == "+100.0" +string.format("%0 -+2.1f", 10000) == "+10000.0" +string.format("%0 -+2.1f", 100000) == "+100000.0" +string.format("%0 -+2.1f", 1000000) == "+1000000.0" +string.format("%0 -+2.1f", 10000000) == "+10000000.0" +string.format("%0 -+2.1f", 0.01) == "+0.0" +string.format("%0 -+2.1f", 0.0001) == "+0.0" +string.format("%0 -+2.1f", 1e-05) == "+0.0" +string.format("%0 -+2.1f", 1e-06) == "+0.0" +string.format("%0 -+2.1f", 1e-07) == "+0.0" +string.format("%0 -+2.1f", 123.456) == "+123.5" +string.format("%0 -+2.1f", 1234560000) == "+1234560000.0" +string.format("%0 -+2.1f", 1.23456e-05) == "+0.0" +string.format("%0 -+2.1f", 123.456789123) == "+123.5" +string.format("%0 -+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 -+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0 -+6f", nan) == "+nan " +string.format("%0 -+6f", inf) == "+inf " +string.format("%0 -+6f", -inf) == "-inf " +string.format("%0 -+6.0f", 0) == "+0 " +string.format("%0 -+6.0f", 1) == "+1 " +string.format("%0 -+6.0f", -1) == "-1 " +string.format("%0 -+6.0f", 2) == "+2 " +string.format("%0 -+6.0f", -2) == "-2 " +string.format("%0 -+6.0f", 3) == "+3 " +string.format("%0 -+6.0f", -3) == "-3 " +string.format("%0 -+6.0f", nan) == "+nan " +string.format("%0 -+6.0f", inf) == "+inf " +string.format("%0 -+6.0f", -inf) == "-inf " +string.format("%0 -+6.0f", 100) == "+100 " +string.format("%0 -+6.0f", 10000) == "+10000" +string.format("%0 -+6.0f", 100000) == "+100000" +string.format("%0 -+6.0f", 1000000) == "+1000000" +string.format("%0 -+6.0f", 10000000) == "+10000000" +string.format("%0 -+6.0f", 0.01) == "+0 " +string.format("%0 -+6.0f", 0.0001) == "+0 " +string.format("%0 -+6.0f", 1e-05) == "+0 " +string.format("%0 -+6.0f", 1e-06) == "+0 " +string.format("%0 -+6.0f", 1e-07) == "+0 " +string.format("%0 -+6.0f", 123.456) == "+123 " +string.format("%0 -+6.0f", 1234560000) == "+1234560000" +string.format("%0 -+6.0f", 1.23456e-05) == "+0 " +string.format("%0 -+6.0f", 123.456789123) == "+123 " +string.format("%0 -+6.0f", 1234567891.23) == "+1234567891" +string.format("%0 -+6.0f", 1.23456789123e-05) == "+0 " +string.format("%0 -+6.1f", 0) == "+0.0 " +string.format("%0 -+6.1f", 1) == "+1.0 " +string.format("%0 -+6.1f", -1) == "-1.0 " +string.format("%0 -+6.1f", 2) == "+2.0 " +string.format("%0 -+6.1f", -2) == "-2.0 " +string.format("%0 -+6.1f", 3) == "+3.0 " +string.format("%0 -+6.1f", -3) == "-3.0 " +string.format("%0 -+6.1f", nan) == "+nan " +string.format("%0 -+6.1f", inf) == "+inf " +string.format("%0 -+6.1f", -inf) == "-inf " +string.format("%0 -+6.1f", 100) == "+100.0" +string.format("%0 -+6.1f", 10000) == "+10000.0" +string.format("%0 -+6.1f", 100000) == "+100000.0" +string.format("%0 -+6.1f", 1000000) == "+1000000.0" +string.format("%0 -+6.1f", 10000000) == "+10000000.0" +string.format("%0 -+6.1f", 0.01) == "+0.0 " +string.format("%0 -+6.1f", 0.0001) == "+0.0 " +string.format("%0 -+6.1f", 1e-05) == "+0.0 " +string.format("%0 -+6.1f", 1e-06) == "+0.0 " +string.format("%0 -+6.1f", 1e-07) == "+0.0 " +string.format("%0 -+6.1f", 123.456) == "+123.5" +string.format("%0 -+6.1f", 1234560000) == "+1234560000.0" +string.format("%0 -+6.1f", 1.23456e-05) == "+0.0 " +string.format("%0 -+6.1f", 123.456789123) == "+123.5" +string.format("%0 -+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0 -+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0 -+6.6f", nan) == "+nan " +string.format("%0 -+6.6f", inf) == "+inf " +string.format("%0 -+6.6f", -inf) == "-inf " +string.format("%0 -+20f", 0) == "+0.000000 " +string.format("%0 -+20f", 1) == "+1.000000 " +string.format("%0 -+20f", -1) == "-1.000000 " +string.format("%0 -+20f", 2) == "+2.000000 " +string.format("%0 -+20f", -2) == "-2.000000 " +string.format("%0 -+20f", 3) == "+3.000000 " +string.format("%0 -+20f", -3) == "-3.000000 " +string.format("%0 -+20f", nan) == "+nan " +string.format("%0 -+20f", inf) == "+inf " +string.format("%0 -+20f", -inf) == "-inf " +string.format("%0 -+20f", 100) == "+100.000000 " +string.format("%0 -+20f", 10000) == "+10000.000000 " +string.format("%0 -+20f", 100000) == "+100000.000000 " +string.format("%0 -+20f", 1000000) == "+1000000.000000 " +string.format("%0 -+20f", 10000000) == "+10000000.000000 " +string.format("%0 -+20f", 0.01) == "+0.010000 " +string.format("%0 -+20f", 0.0001) == "+0.000100 " +string.format("%0 -+20f", 1e-05) == "+0.000010 " +string.format("%0 -+20f", 1e-06) == "+0.000001 " +string.format("%0 -+20f", 1e-07) == "+0.000000 " +string.format("%0 -+20f", 123.456) == "+123.456000 " +string.format("%0 -+20f", 1234560000) == "+1234560000.000000 " +string.format("%0 -+20f", 1.23456e-05) == "+0.000012 " +string.format("%0 -+20f", 123.456789123) == "+123.456789 " +string.format("%0 -+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%0 -+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%0 -+20.0f", 0) == "+0 " +string.format("%0 -+20.0f", 1) == "+1 " +string.format("%0 -+20.0f", -1) == "-1 " +string.format("%0 -+20.0f", 2) == "+2 " +string.format("%0 -+20.0f", -2) == "-2 " +string.format("%0 -+20.0f", 3) == "+3 " +string.format("%0 -+20.0f", -3) == "-3 " +string.format("%0 -+20.0f", nan) == "+nan " +string.format("%0 -+20.0f", inf) == "+inf " +string.format("%0 -+20.0f", -inf) == "-inf " +string.format("%0 -+20.0f", 100) == "+100 " +string.format("%0 -+20.0f", 10000) == "+10000 " +string.format("%0 -+20.0f", 100000) == "+100000 " +string.format("%0 -+20.0f", 1000000) == "+1000000 " +string.format("%0 -+20.0f", 10000000) == "+10000000 " +string.format("%0 -+20.0f", 0.01) == "+0 " +string.format("%0 -+20.0f", 0.0001) == "+0 " +string.format("%0 -+20.0f", 1e-05) == "+0 " +string.format("%0 -+20.0f", 1e-06) == "+0 " +string.format("%0 -+20.0f", 1e-07) == "+0 " +string.format("%0 -+20.0f", 123.456) == "+123 " +string.format("%0 -+20.0f", 1234560000) == "+1234560000 " +string.format("%0 -+20.0f", 1.23456e-05) == "+0 " +string.format("%0 -+20.0f", 123.456789123) == "+123 " +string.format("%0 -+20.0f", 1234567891.23) == "+1234567891 " +string.format("%0 -+20.0f", 1.23456789123e-05) == "+0 " +string.format("%0 -+20.1f", 0) == "+0.0 " +string.format("%0 -+20.1f", 1) == "+1.0 " +string.format("%0 -+20.1f", -1) == "-1.0 " +string.format("%0 -+20.1f", 2) == "+2.0 " +string.format("%0 -+20.1f", -2) == "-2.0 " +string.format("%0 -+20.1f", 3) == "+3.0 " +string.format("%0 -+20.1f", -3) == "-3.0 " +string.format("%0 -+20.1f", nan) == "+nan " +string.format("%0 -+20.1f", inf) == "+inf " +string.format("%0 -+20.1f", -inf) == "-inf " +string.format("%0 -+20.1f", 100) == "+100.0 " +string.format("%0 -+20.1f", 10000) == "+10000.0 " +string.format("%0 -+20.1f", 100000) == "+100000.0 " +string.format("%0 -+20.1f", 1000000) == "+1000000.0 " +string.format("%0 -+20.1f", 10000000) == "+10000000.0 " +string.format("%0 -+20.1f", 0.01) == "+0.0 " +string.format("%0 -+20.1f", 0.0001) == "+0.0 " +string.format("%0 -+20.1f", 1e-05) == "+0.0 " +string.format("%0 -+20.1f", 1e-06) == "+0.0 " +string.format("%0 -+20.1f", 1e-07) == "+0.0 " +string.format("%0 -+20.1f", 123.456) == "+123.5 " +string.format("%0 -+20.1f", 1234560000) == "+1234560000.0 " +string.format("%0 -+20.1f", 1.23456e-05) == "+0.0 " +string.format("%0 -+20.1f", 123.456789123) == "+123.5 " +string.format("%0 -+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%0 -+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0 -+20.6f", 0) == "+0.000000 " +string.format("%0 -+20.6f", 1) == "+1.000000 " +string.format("%0 -+20.6f", -1) == "-1.000000 " +string.format("%0 -+20.6f", 2) == "+2.000000 " +string.format("%0 -+20.6f", -2) == "-2.000000 " +string.format("%0 -+20.6f", 3) == "+3.000000 " +string.format("%0 -+20.6f", -3) == "-3.000000 " +string.format("%0 -+20.6f", nan) == "+nan " +string.format("%0 -+20.6f", inf) == "+inf " +string.format("%0 -+20.6f", -inf) == "-inf " +string.format("%0 -+20.6f", 100) == "+100.000000 " +string.format("%0 -+20.6f", 10000) == "+10000.000000 " +string.format("%0 -+20.6f", 100000) == "+100000.000000 " +string.format("%0 -+20.6f", 1000000) == "+1000000.000000 " +string.format("%0 -+20.6f", 10000000) == "+10000000.000000 " +string.format("%0 -+20.6f", 0.01) == "+0.010000 " +string.format("%0 -+20.6f", 0.0001) == "+0.000100 " +string.format("%0 -+20.6f", 1e-05) == "+0.000010 " +string.format("%0 -+20.6f", 1e-06) == "+0.000001 " +string.format("%0 -+20.6f", 1e-07) == "+0.000000 " +string.format("%0 -+20.6f", 123.456) == "+123.456000 " +string.format("%0 -+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%0 -+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%0 -+20.6f", 123.456789123) == "+123.456789 " +string.format("%0 -+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%0 -+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%0#f", 0) == "0.000000" +string.format("%0#f", 1) == "1.000000" +string.format("%0#f", -1) == "-1.000000" +string.format("%0#f", 2) == "2.000000" +string.format("%0#f", -2) == "-2.000000" +string.format("%0#f", 3) == "3.000000" +string.format("%0#f", -3) == "-3.000000" +string.format("%0#f", nan) == "nan" +string.format("%0#f", inf) == "inf" +string.format("%0#f", -inf) == "-inf" +string.format("%0#f", 100) == "100.000000" +string.format("%0#f", 10000) == "10000.000000" +string.format("%0#f", 100000) == "100000.000000" +string.format("%0#f", 1000000) == "1000000.000000" +string.format("%0#f", 10000000) == "10000000.000000" +string.format("%0#f", 0.01) == "0.010000" +string.format("%0#f", 0.0001) == "0.000100" +string.format("%0#f", 1e-05) == "0.000010" +string.format("%0#f", 1e-06) == "0.000001" +string.format("%0#f", 1e-07) == "0.000000" +string.format("%0#f", 123.456) == "123.456000" +string.format("%0#f", 1234560000) == "1234560000.000000" +string.format("%0#f", 1.23456e-05) == "0.000012" +string.format("%0#f", 123.456789123) == "123.456789" +string.format("%0#f", 1234567891.23) == "1234567891.230000" +string.format("%0#f", 1.23456789123e-05) == "0.000012" +string.format("%0#.0f", 0) == "0." +string.format("%0#.0f", 1) == "1." +string.format("%0#.0f", -1) == "-1." +string.format("%0#.0f", 2) == "2." +string.format("%0#.0f", -2) == "-2." +string.format("%0#.0f", 3) == "3." +string.format("%0#.0f", -3) == "-3." +string.format("%0#.0f", 100) == "100." +string.format("%0#.0f", 10000) == "10000." +string.format("%0#.0f", 100000) == "100000." +string.format("%0#.0f", 1000000) == "1000000." +string.format("%0#.0f", 10000000) == "10000000." +string.format("%0#.0f", 0.01) == "0." +string.format("%0#.0f", 0.0001) == "0." +string.format("%0#.0f", 1e-05) == "0." +string.format("%0#.0f", 1e-06) == "0." +string.format("%0#.0f", 1e-07) == "0." +string.format("%0#.0f", 123.456) == "123." +string.format("%0#.0f", 1234560000) == "1234560000." +string.format("%0#.0f", 1.23456e-05) == "0." +string.format("%0#.0f", 123.456789123) == "123." +string.format("%0#.0f", 1234567891.23) == "1234567891." +string.format("%0#.0f", 1.23456789123e-05) == "0." +string.format("%0#.1f", 0) == "0.0" +string.format("%0#.1f", 1) == "1.0" +string.format("%0#.1f", -1) == "-1.0" +string.format("%0#.1f", 2) == "2.0" +string.format("%0#.1f", -2) == "-2.0" +string.format("%0#.1f", 3) == "3.0" +string.format("%0#.1f", -3) == "-3.0" +string.format("%0#.1f", 100) == "100.0" +string.format("%0#.1f", 10000) == "10000.0" +string.format("%0#.1f", 100000) == "100000.0" +string.format("%0#.1f", 1000000) == "1000000.0" +string.format("%0#.1f", 10000000) == "10000000.0" +string.format("%0#.1f", 0.01) == "0.0" +string.format("%0#.1f", 0.0001) == "0.0" +string.format("%0#.1f", 1e-05) == "0.0" +string.format("%0#.1f", 1e-06) == "0.0" +string.format("%0#.1f", 1e-07) == "0.0" +string.format("%0#.1f", 123.456) == "123.5" +string.format("%0#.1f", 1234560000) == "1234560000.0" +string.format("%0#.1f", 1.23456e-05) == "0.0" +string.format("%0#.1f", 123.456789123) == "123.5" +string.format("%0#.1f", 1234567891.23) == "1234567891.2" +string.format("%0#.1f", 1.23456789123e-05) == "0.0" +string.format("%0#1.0f", 0) == "0." +string.format("%0#1.0f", 1) == "1." +string.format("%0#1.0f", -1) == "-1." +string.format("%0#1.0f", 2) == "2." +string.format("%0#1.0f", -2) == "-2." +string.format("%0#1.0f", 3) == "3." +string.format("%0#1.0f", -3) == "-3." +string.format("%0#1.0f", 100) == "100." +string.format("%0#1.0f", 10000) == "10000." +string.format("%0#1.0f", 100000) == "100000." +string.format("%0#1.0f", 1000000) == "1000000." +string.format("%0#1.0f", 10000000) == "10000000." +string.format("%0#1.0f", 0.01) == "0." +string.format("%0#1.0f", 0.0001) == "0." +string.format("%0#1.0f", 1e-05) == "0." +string.format("%0#1.0f", 1e-06) == "0." +string.format("%0#1.0f", 1e-07) == "0." +string.format("%0#1.0f", 123.456) == "123." +string.format("%0#1.0f", 1234560000) == "1234560000." +string.format("%0#1.0f", 1.23456e-05) == "0." +string.format("%0#1.0f", 123.456789123) == "123." +string.format("%0#1.0f", 1234567891.23) == "1234567891." +string.format("%0#1.0f", 1.23456789123e-05) == "0." +string.format("%0#1.1f", 0) == "0.0" +string.format("%0#1.1f", 1) == "1.0" +string.format("%0#1.1f", -1) == "-1.0" +string.format("%0#1.1f", 2) == "2.0" +string.format("%0#1.1f", -2) == "-2.0" +string.format("%0#1.1f", 3) == "3.0" +string.format("%0#1.1f", -3) == "-3.0" +string.format("%0#1.1f", 100) == "100.0" +string.format("%0#1.1f", 10000) == "10000.0" +string.format("%0#1.1f", 100000) == "100000.0" +string.format("%0#1.1f", 1000000) == "1000000.0" +string.format("%0#1.1f", 10000000) == "10000000.0" +string.format("%0#1.1f", 0.01) == "0.0" +string.format("%0#1.1f", 0.0001) == "0.0" +string.format("%0#1.1f", 1e-05) == "0.0" +string.format("%0#1.1f", 1e-06) == "0.0" +string.format("%0#1.1f", 1e-07) == "0.0" +string.format("%0#1.1f", 123.456) == "123.5" +string.format("%0#1.1f", 1234560000) == "1234560000.0" +string.format("%0#1.1f", 1.23456e-05) == "0.0" +string.format("%0#1.1f", 123.456789123) == "123.5" +string.format("%0#1.1f", 1234567891.23) == "1234567891.2" +string.format("%0#1.1f", 1.23456789123e-05) == "0.0" +string.format("%0#2.0f", 0) == "0." +string.format("%0#2.0f", 1) == "1." +string.format("%0#2.0f", -1) == "-1." +string.format("%0#2.0f", 2) == "2." +string.format("%0#2.0f", -2) == "-2." +string.format("%0#2.0f", 3) == "3." +string.format("%0#2.0f", -3) == "-3." +string.format("%0#2.0f", 100) == "100." +string.format("%0#2.0f", 10000) == "10000." +string.format("%0#2.0f", 100000) == "100000." +string.format("%0#2.0f", 1000000) == "1000000." +string.format("%0#2.0f", 10000000) == "10000000." +string.format("%0#2.0f", 0.01) == "0." +string.format("%0#2.0f", 0.0001) == "0." +string.format("%0#2.0f", 1e-05) == "0." +string.format("%0#2.0f", 1e-06) == "0." +string.format("%0#2.0f", 1e-07) == "0." +string.format("%0#2.0f", 123.456) == "123." +string.format("%0#2.0f", 1234560000) == "1234560000." +string.format("%0#2.0f", 1.23456e-05) == "0." +string.format("%0#2.0f", 123.456789123) == "123." +string.format("%0#2.0f", 1234567891.23) == "1234567891." +string.format("%0#2.0f", 1.23456789123e-05) == "0." +string.format("%0#2.1f", 0) == "0.0" +string.format("%0#2.1f", 1) == "1.0" +string.format("%0#2.1f", -1) == "-1.0" +string.format("%0#2.1f", 2) == "2.0" +string.format("%0#2.1f", -2) == "-2.0" +string.format("%0#2.1f", 3) == "3.0" +string.format("%0#2.1f", -3) == "-3.0" +string.format("%0#2.1f", 100) == "100.0" +string.format("%0#2.1f", 10000) == "10000.0" +string.format("%0#2.1f", 100000) == "100000.0" +string.format("%0#2.1f", 1000000) == "1000000.0" +string.format("%0#2.1f", 10000000) == "10000000.0" +string.format("%0#2.1f", 0.01) == "0.0" +string.format("%0#2.1f", 0.0001) == "0.0" +string.format("%0#2.1f", 1e-05) == "0.0" +string.format("%0#2.1f", 1e-06) == "0.0" +string.format("%0#2.1f", 1e-07) == "0.0" +string.format("%0#2.1f", 123.456) == "123.5" +string.format("%0#2.1f", 1234560000) == "1234560000.0" +string.format("%0#2.1f", 1.23456e-05) == "0.0" +string.format("%0#2.1f", 123.456789123) == "123.5" +string.format("%0#2.1f", 1234567891.23) == "1234567891.2" +string.format("%0#2.1f", 1.23456789123e-05) == "0.0" +string.format("%0#6f", nan) == " nan" +string.format("%0#6f", inf) == " inf" +string.format("%0#6f", -inf) == " -inf" +string.format("%0#6.0f", 0) == "00000." +string.format("%0#6.0f", 1) == "00001." +string.format("%0#6.0f", -1) == "-0001." +string.format("%0#6.0f", 2) == "00002." +string.format("%0#6.0f", -2) == "-0002." +string.format("%0#6.0f", 3) == "00003." +string.format("%0#6.0f", -3) == "-0003." +string.format("%0#6.0f", nan) == " nan" +string.format("%0#6.0f", inf) == " inf" +string.format("%0#6.0f", -inf) == " -inf" +string.format("%0#6.0f", 100) == "00100." +string.format("%0#6.0f", 10000) == "10000." +string.format("%0#6.0f", 100000) == "100000." +string.format("%0#6.0f", 1000000) == "1000000." +string.format("%0#6.0f", 10000000) == "10000000." +string.format("%0#6.0f", 0.01) == "00000." +string.format("%0#6.0f", 0.0001) == "00000." +string.format("%0#6.0f", 1e-05) == "00000." +string.format("%0#6.0f", 1e-06) == "00000." +string.format("%0#6.0f", 1e-07) == "00000." +string.format("%0#6.0f", 123.456) == "00123." +string.format("%0#6.0f", 1234560000) == "1234560000." +string.format("%0#6.0f", 1.23456e-05) == "00000." +string.format("%0#6.0f", 123.456789123) == "00123." +string.format("%0#6.0f", 1234567891.23) == "1234567891." +string.format("%0#6.0f", 1.23456789123e-05) == "00000." +string.format("%0#6.1f", 0) == "0000.0" +string.format("%0#6.1f", 1) == "0001.0" +string.format("%0#6.1f", -1) == "-001.0" +string.format("%0#6.1f", 2) == "0002.0" +string.format("%0#6.1f", -2) == "-002.0" +string.format("%0#6.1f", 3) == "0003.0" +string.format("%0#6.1f", -3) == "-003.0" +string.format("%0#6.1f", nan) == " nan" +string.format("%0#6.1f", inf) == " inf" +string.format("%0#6.1f", -inf) == " -inf" +string.format("%0#6.1f", 100) == "0100.0" +string.format("%0#6.1f", 10000) == "10000.0" +string.format("%0#6.1f", 100000) == "100000.0" +string.format("%0#6.1f", 1000000) == "1000000.0" +string.format("%0#6.1f", 10000000) == "10000000.0" +string.format("%0#6.1f", 0.01) == "0000.0" +string.format("%0#6.1f", 0.0001) == "0000.0" +string.format("%0#6.1f", 1e-05) == "0000.0" +string.format("%0#6.1f", 1e-06) == "0000.0" +string.format("%0#6.1f", 1e-07) == "0000.0" +string.format("%0#6.1f", 123.456) == "0123.5" +string.format("%0#6.1f", 1234560000) == "1234560000.0" +string.format("%0#6.1f", 1.23456e-05) == "0000.0" +string.format("%0#6.1f", 123.456789123) == "0123.5" +string.format("%0#6.1f", 1234567891.23) == "1234567891.2" +string.format("%0#6.1f", 1.23456789123e-05) == "0000.0" +string.format("%0#6.6f", nan) == " nan" +string.format("%0#6.6f", inf) == " inf" +string.format("%0#6.6f", -inf) == " -inf" +string.format("%0#20f", 0) == "0000000000000.000000" +string.format("%0#20f", 1) == "0000000000001.000000" +string.format("%0#20f", -1) == "-000000000001.000000" +string.format("%0#20f", 2) == "0000000000002.000000" +string.format("%0#20f", -2) == "-000000000002.000000" +string.format("%0#20f", 3) == "0000000000003.000000" +string.format("%0#20f", -3) == "-000000000003.000000" +string.format("%0#20f", nan) == " nan" +string.format("%0#20f", inf) == " inf" +string.format("%0#20f", -inf) == " -inf" +string.format("%0#20f", 100) == "0000000000100.000000" +string.format("%0#20f", 10000) == "0000000010000.000000" +string.format("%0#20f", 100000) == "0000000100000.000000" +string.format("%0#20f", 1000000) == "0000001000000.000000" +string.format("%0#20f", 10000000) == "0000010000000.000000" +string.format("%0#20f", 0.01) == "0000000000000.010000" +string.format("%0#20f", 0.0001) == "0000000000000.000100" +string.format("%0#20f", 1e-05) == "0000000000000.000010" +string.format("%0#20f", 1e-06) == "0000000000000.000001" +string.format("%0#20f", 1e-07) == "0000000000000.000000" +string.format("%0#20f", 123.456) == "0000000000123.456000" +string.format("%0#20f", 1234560000) == "0001234560000.000000" +string.format("%0#20f", 1.23456e-05) == "0000000000000.000012" +string.format("%0#20f", 123.456789123) == "0000000000123.456789" +string.format("%0#20f", 1234567891.23) == "0001234567891.230000" +string.format("%0#20f", 1.23456789123e-05) == "0000000000000.000012" +string.format("%0#20.0f", 0) == "0000000000000000000." +string.format("%0#20.0f", 1) == "0000000000000000001." +string.format("%0#20.0f", -1) == "-000000000000000001." +string.format("%0#20.0f", 2) == "0000000000000000002." +string.format("%0#20.0f", -2) == "-000000000000000002." +string.format("%0#20.0f", 3) == "0000000000000000003." +string.format("%0#20.0f", -3) == "-000000000000000003." +string.format("%0#20.0f", nan) == " nan" +string.format("%0#20.0f", inf) == " inf" +string.format("%0#20.0f", -inf) == " -inf" +string.format("%0#20.0f", 100) == "0000000000000000100." +string.format("%0#20.0f", 10000) == "0000000000000010000." +string.format("%0#20.0f", 100000) == "0000000000000100000." +string.format("%0#20.0f", 1000000) == "0000000000001000000." +string.format("%0#20.0f", 10000000) == "0000000000010000000." +string.format("%0#20.0f", 0.01) == "0000000000000000000." +string.format("%0#20.0f", 0.0001) == "0000000000000000000." +string.format("%0#20.0f", 1e-05) == "0000000000000000000." +string.format("%0#20.0f", 1e-06) == "0000000000000000000." +string.format("%0#20.0f", 1e-07) == "0000000000000000000." +string.format("%0#20.0f", 123.456) == "0000000000000000123." +string.format("%0#20.0f", 1234560000) == "0000000001234560000." +string.format("%0#20.0f", 1.23456e-05) == "0000000000000000000." +string.format("%0#20.0f", 123.456789123) == "0000000000000000123." +string.format("%0#20.0f", 1234567891.23) == "0000000001234567891." +string.format("%0#20.0f", 1.23456789123e-05) == "0000000000000000000." +string.format("%0#20.1f", 0) == "000000000000000000.0" +string.format("%0#20.1f", 1) == "000000000000000001.0" +string.format("%0#20.1f", -1) == "-00000000000000001.0" +string.format("%0#20.1f", 2) == "000000000000000002.0" +string.format("%0#20.1f", -2) == "-00000000000000002.0" +string.format("%0#20.1f", 3) == "000000000000000003.0" +string.format("%0#20.1f", -3) == "-00000000000000003.0" +string.format("%0#20.1f", nan) == " nan" +string.format("%0#20.1f", inf) == " inf" +string.format("%0#20.1f", -inf) == " -inf" +string.format("%0#20.1f", 100) == "000000000000000100.0" +string.format("%0#20.1f", 10000) == "000000000000010000.0" +string.format("%0#20.1f", 100000) == "000000000000100000.0" +string.format("%0#20.1f", 1000000) == "000000000001000000.0" +string.format("%0#20.1f", 10000000) == "000000000010000000.0" +string.format("%0#20.1f", 0.01) == "000000000000000000.0" +string.format("%0#20.1f", 0.0001) == "000000000000000000.0" +string.format("%0#20.1f", 1e-05) == "000000000000000000.0" +string.format("%0#20.1f", 1e-06) == "000000000000000000.0" +string.format("%0#20.1f", 1e-07) == "000000000000000000.0" +string.format("%0#20.1f", 123.456) == "000000000000000123.5" +string.format("%0#20.1f", 1234560000) == "000000001234560000.0" +string.format("%0#20.1f", 1.23456e-05) == "000000000000000000.0" +string.format("%0#20.1f", 123.456789123) == "000000000000000123.5" +string.format("%0#20.1f", 1234567891.23) == "000000001234567891.2" +string.format("%0#20.1f", 1.23456789123e-05) == "000000000000000000.0" +string.format("%0#20.6f", 0) == "0000000000000.000000" +string.format("%0#20.6f", 1) == "0000000000001.000000" +string.format("%0#20.6f", -1) == "-000000000001.000000" +string.format("%0#20.6f", 2) == "0000000000002.000000" +string.format("%0#20.6f", -2) == "-000000000002.000000" +string.format("%0#20.6f", 3) == "0000000000003.000000" +string.format("%0#20.6f", -3) == "-000000000003.000000" +string.format("%0#20.6f", nan) == " nan" +string.format("%0#20.6f", inf) == " inf" +string.format("%0#20.6f", -inf) == " -inf" +string.format("%0#20.6f", 100) == "0000000000100.000000" +string.format("%0#20.6f", 10000) == "0000000010000.000000" +string.format("%0#20.6f", 100000) == "0000000100000.000000" +string.format("%0#20.6f", 1000000) == "0000001000000.000000" +string.format("%0#20.6f", 10000000) == "0000010000000.000000" +string.format("%0#20.6f", 0.01) == "0000000000000.010000" +string.format("%0#20.6f", 0.0001) == "0000000000000.000100" +string.format("%0#20.6f", 1e-05) == "0000000000000.000010" +string.format("%0#20.6f", 1e-06) == "0000000000000.000001" +string.format("%0#20.6f", 1e-07) == "0000000000000.000000" +string.format("%0#20.6f", 123.456) == "0000000000123.456000" +string.format("%0#20.6f", 1234560000) == "0001234560000.000000" +string.format("%0#20.6f", 1.23456e-05) == "0000000000000.000012" +string.format("%0#20.6f", 123.456789123) == "0000000000123.456789" +string.format("%0#20.6f", 1234567891.23) == "0001234567891.230000" +string.format("%0#20.6f", 1.23456789123e-05) == "0000000000000.000012" +string.format("%0#+f", 0) == "+0.000000" +string.format("%0#+f", 1) == "+1.000000" +string.format("%0#+f", -1) == "-1.000000" +string.format("%0#+f", 2) == "+2.000000" +string.format("%0#+f", -2) == "-2.000000" +string.format("%0#+f", 3) == "+3.000000" +string.format("%0#+f", -3) == "-3.000000" +string.format("%0#+f", nan) == "+nan" +string.format("%0#+f", inf) == "+inf" +string.format("%0#+f", -inf) == "-inf" +string.format("%0#+f", 100) == "+100.000000" +string.format("%0#+f", 10000) == "+10000.000000" +string.format("%0#+f", 100000) == "+100000.000000" +string.format("%0#+f", 1000000) == "+1000000.000000" +string.format("%0#+f", 10000000) == "+10000000.000000" +string.format("%0#+f", 0.01) == "+0.010000" +string.format("%0#+f", 0.0001) == "+0.000100" +string.format("%0#+f", 1e-05) == "+0.000010" +string.format("%0#+f", 1e-06) == "+0.000001" +string.format("%0#+f", 1e-07) == "+0.000000" +string.format("%0#+f", 123.456) == "+123.456000" +string.format("%0#+f", 1234560000) == "+1234560000.000000" +string.format("%0#+f", 1.23456e-05) == "+0.000012" +string.format("%0#+f", 123.456789123) == "+123.456789" +string.format("%0#+f", 1234567891.23) == "+1234567891.230000" +string.format("%0#+f", 1.23456789123e-05) == "+0.000012" +string.format("%0#+.0f", 0) == "+0." +string.format("%0#+.0f", 1) == "+1." +string.format("%0#+.0f", -1) == "-1." +string.format("%0#+.0f", 2) == "+2." +string.format("%0#+.0f", -2) == "-2." +string.format("%0#+.0f", 3) == "+3." +string.format("%0#+.0f", -3) == "-3." +string.format("%0#+.0f", 100) == "+100." +string.format("%0#+.0f", 10000) == "+10000." +string.format("%0#+.0f", 100000) == "+100000." +string.format("%0#+.0f", 1000000) == "+1000000." +string.format("%0#+.0f", 10000000) == "+10000000." +string.format("%0#+.0f", 0.01) == "+0." +string.format("%0#+.0f", 0.0001) == "+0." +string.format("%0#+.0f", 1e-05) == "+0." +string.format("%0#+.0f", 1e-06) == "+0." +string.format("%0#+.0f", 1e-07) == "+0." +string.format("%0#+.0f", 123.456) == "+123." +string.format("%0#+.0f", 1234560000) == "+1234560000." +string.format("%0#+.0f", 1.23456e-05) == "+0." +string.format("%0#+.0f", 123.456789123) == "+123." +string.format("%0#+.0f", 1234567891.23) == "+1234567891." +string.format("%0#+.0f", 1.23456789123e-05) == "+0." +string.format("%0#+.1f", 0) == "+0.0" +string.format("%0#+.1f", 1) == "+1.0" +string.format("%0#+.1f", -1) == "-1.0" +string.format("%0#+.1f", 2) == "+2.0" +string.format("%0#+.1f", -2) == "-2.0" +string.format("%0#+.1f", 3) == "+3.0" +string.format("%0#+.1f", -3) == "-3.0" +string.format("%0#+.1f", 100) == "+100.0" +string.format("%0#+.1f", 10000) == "+10000.0" +string.format("%0#+.1f", 100000) == "+100000.0" +string.format("%0#+.1f", 1000000) == "+1000000.0" +string.format("%0#+.1f", 10000000) == "+10000000.0" +string.format("%0#+.1f", 0.01) == "+0.0" +string.format("%0#+.1f", 0.0001) == "+0.0" +string.format("%0#+.1f", 1e-05) == "+0.0" +string.format("%0#+.1f", 1e-06) == "+0.0" +string.format("%0#+.1f", 1e-07) == "+0.0" +string.format("%0#+.1f", 123.456) == "+123.5" +string.format("%0#+.1f", 1234560000) == "+1234560000.0" +string.format("%0#+.1f", 1.23456e-05) == "+0.0" +string.format("%0#+.1f", 123.456789123) == "+123.5" +string.format("%0#+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#+1.0f", 0) == "+0." +string.format("%0#+1.0f", 1) == "+1." +string.format("%0#+1.0f", -1) == "-1." +string.format("%0#+1.0f", 2) == "+2." +string.format("%0#+1.0f", -2) == "-2." +string.format("%0#+1.0f", 3) == "+3." +string.format("%0#+1.0f", -3) == "-3." +string.format("%0#+1.0f", 100) == "+100." +string.format("%0#+1.0f", 10000) == "+10000." +string.format("%0#+1.0f", 100000) == "+100000." +string.format("%0#+1.0f", 1000000) == "+1000000." +string.format("%0#+1.0f", 10000000) == "+10000000." +string.format("%0#+1.0f", 0.01) == "+0." +string.format("%0#+1.0f", 0.0001) == "+0." +string.format("%0#+1.0f", 1e-05) == "+0." +string.format("%0#+1.0f", 1e-06) == "+0." +string.format("%0#+1.0f", 1e-07) == "+0." +string.format("%0#+1.0f", 123.456) == "+123." +string.format("%0#+1.0f", 1234560000) == "+1234560000." +string.format("%0#+1.0f", 1.23456e-05) == "+0." +string.format("%0#+1.0f", 123.456789123) == "+123." +string.format("%0#+1.0f", 1234567891.23) == "+1234567891." +string.format("%0#+1.0f", 1.23456789123e-05) == "+0." +string.format("%0#+1.1f", 0) == "+0.0" +string.format("%0#+1.1f", 1) == "+1.0" +string.format("%0#+1.1f", -1) == "-1.0" +string.format("%0#+1.1f", 2) == "+2.0" +string.format("%0#+1.1f", -2) == "-2.0" +string.format("%0#+1.1f", 3) == "+3.0" +string.format("%0#+1.1f", -3) == "-3.0" +string.format("%0#+1.1f", 100) == "+100.0" +string.format("%0#+1.1f", 10000) == "+10000.0" +string.format("%0#+1.1f", 100000) == "+100000.0" +string.format("%0#+1.1f", 1000000) == "+1000000.0" +string.format("%0#+1.1f", 10000000) == "+10000000.0" +string.format("%0#+1.1f", 0.01) == "+0.0" +string.format("%0#+1.1f", 0.0001) == "+0.0" +string.format("%0#+1.1f", 1e-05) == "+0.0" +string.format("%0#+1.1f", 1e-06) == "+0.0" +string.format("%0#+1.1f", 1e-07) == "+0.0" +string.format("%0#+1.1f", 123.456) == "+123.5" +string.format("%0#+1.1f", 1234560000) == "+1234560000.0" +string.format("%0#+1.1f", 1.23456e-05) == "+0.0" +string.format("%0#+1.1f", 123.456789123) == "+123.5" +string.format("%0#+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#+2.0f", 0) == "+0." +string.format("%0#+2.0f", 1) == "+1." +string.format("%0#+2.0f", -1) == "-1." +string.format("%0#+2.0f", 2) == "+2." +string.format("%0#+2.0f", -2) == "-2." +string.format("%0#+2.0f", 3) == "+3." +string.format("%0#+2.0f", -3) == "-3." +string.format("%0#+2.0f", 100) == "+100." +string.format("%0#+2.0f", 10000) == "+10000." +string.format("%0#+2.0f", 100000) == "+100000." +string.format("%0#+2.0f", 1000000) == "+1000000." +string.format("%0#+2.0f", 10000000) == "+10000000." +string.format("%0#+2.0f", 0.01) == "+0." +string.format("%0#+2.0f", 0.0001) == "+0." +string.format("%0#+2.0f", 1e-05) == "+0." +string.format("%0#+2.0f", 1e-06) == "+0." +string.format("%0#+2.0f", 1e-07) == "+0." +string.format("%0#+2.0f", 123.456) == "+123." +string.format("%0#+2.0f", 1234560000) == "+1234560000." +string.format("%0#+2.0f", 1.23456e-05) == "+0." +string.format("%0#+2.0f", 123.456789123) == "+123." +string.format("%0#+2.0f", 1234567891.23) == "+1234567891." +string.format("%0#+2.0f", 1.23456789123e-05) == "+0." +string.format("%0#+2.1f", 0) == "+0.0" +string.format("%0#+2.1f", 1) == "+1.0" +string.format("%0#+2.1f", -1) == "-1.0" +string.format("%0#+2.1f", 2) == "+2.0" +string.format("%0#+2.1f", -2) == "-2.0" +string.format("%0#+2.1f", 3) == "+3.0" +string.format("%0#+2.1f", -3) == "-3.0" +string.format("%0#+2.1f", 100) == "+100.0" +string.format("%0#+2.1f", 10000) == "+10000.0" +string.format("%0#+2.1f", 100000) == "+100000.0" +string.format("%0#+2.1f", 1000000) == "+1000000.0" +string.format("%0#+2.1f", 10000000) == "+10000000.0" +string.format("%0#+2.1f", 0.01) == "+0.0" +string.format("%0#+2.1f", 0.0001) == "+0.0" +string.format("%0#+2.1f", 1e-05) == "+0.0" +string.format("%0#+2.1f", 1e-06) == "+0.0" +string.format("%0#+2.1f", 1e-07) == "+0.0" +string.format("%0#+2.1f", 123.456) == "+123.5" +string.format("%0#+2.1f", 1234560000) == "+1234560000.0" +string.format("%0#+2.1f", 1.23456e-05) == "+0.0" +string.format("%0#+2.1f", 123.456789123) == "+123.5" +string.format("%0#+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#+6f", nan) == " +nan" +string.format("%0#+6f", inf) == " +inf" +string.format("%0#+6f", -inf) == " -inf" +string.format("%0#+6.0f", 0) == "+0000." +string.format("%0#+6.0f", 1) == "+0001." +string.format("%0#+6.0f", -1) == "-0001." +string.format("%0#+6.0f", 2) == "+0002." +string.format("%0#+6.0f", -2) == "-0002." +string.format("%0#+6.0f", 3) == "+0003." +string.format("%0#+6.0f", -3) == "-0003." +string.format("%0#+6.0f", nan) == " +nan" +string.format("%0#+6.0f", inf) == " +inf" +string.format("%0#+6.0f", -inf) == " -inf" +string.format("%0#+6.0f", 100) == "+0100." +string.format("%0#+6.0f", 10000) == "+10000." +string.format("%0#+6.0f", 100000) == "+100000." +string.format("%0#+6.0f", 1000000) == "+1000000." +string.format("%0#+6.0f", 10000000) == "+10000000." +string.format("%0#+6.0f", 0.01) == "+0000." +string.format("%0#+6.0f", 0.0001) == "+0000." +string.format("%0#+6.0f", 1e-05) == "+0000." +string.format("%0#+6.0f", 1e-06) == "+0000." +string.format("%0#+6.0f", 1e-07) == "+0000." +string.format("%0#+6.0f", 123.456) == "+0123." +string.format("%0#+6.0f", 1234560000) == "+1234560000." +string.format("%0#+6.0f", 1.23456e-05) == "+0000." +string.format("%0#+6.0f", 123.456789123) == "+0123." +string.format("%0#+6.0f", 1234567891.23) == "+1234567891." +string.format("%0#+6.0f", 1.23456789123e-05) == "+0000." +string.format("%0#+6.1f", 0) == "+000.0" +string.format("%0#+6.1f", 1) == "+001.0" +string.format("%0#+6.1f", -1) == "-001.0" +string.format("%0#+6.1f", 2) == "+002.0" +string.format("%0#+6.1f", -2) == "-002.0" +string.format("%0#+6.1f", 3) == "+003.0" +string.format("%0#+6.1f", -3) == "-003.0" +string.format("%0#+6.1f", nan) == " +nan" +string.format("%0#+6.1f", inf) == " +inf" +string.format("%0#+6.1f", -inf) == " -inf" +string.format("%0#+6.1f", 100) == "+100.0" +string.format("%0#+6.1f", 10000) == "+10000.0" +string.format("%0#+6.1f", 100000) == "+100000.0" +string.format("%0#+6.1f", 1000000) == "+1000000.0" +string.format("%0#+6.1f", 10000000) == "+10000000.0" +string.format("%0#+6.1f", 0.01) == "+000.0" +string.format("%0#+6.1f", 0.0001) == "+000.0" +string.format("%0#+6.1f", 1e-05) == "+000.0" +string.format("%0#+6.1f", 1e-06) == "+000.0" +string.format("%0#+6.1f", 1e-07) == "+000.0" +string.format("%0#+6.1f", 123.456) == "+123.5" +string.format("%0#+6.1f", 1234560000) == "+1234560000.0" +string.format("%0#+6.1f", 1.23456e-05) == "+000.0" +string.format("%0#+6.1f", 123.456789123) == "+123.5" +string.format("%0#+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#+6.1f", 1.23456789123e-05) == "+000.0" +string.format("%0#+6.6f", nan) == " +nan" +string.format("%0#+6.6f", inf) == " +inf" +string.format("%0#+6.6f", -inf) == " -inf" +string.format("%0#+20f", 0) == "+000000000000.000000" +string.format("%0#+20f", 1) == "+000000000001.000000" +string.format("%0#+20f", -1) == "-000000000001.000000" +string.format("%0#+20f", 2) == "+000000000002.000000" +string.format("%0#+20f", -2) == "-000000000002.000000" +string.format("%0#+20f", 3) == "+000000000003.000000" +string.format("%0#+20f", -3) == "-000000000003.000000" +string.format("%0#+20f", nan) == " +nan" +string.format("%0#+20f", inf) == " +inf" +string.format("%0#+20f", -inf) == " -inf" +string.format("%0#+20f", 100) == "+000000000100.000000" +string.format("%0#+20f", 10000) == "+000000010000.000000" +string.format("%0#+20f", 100000) == "+000000100000.000000" +string.format("%0#+20f", 1000000) == "+000001000000.000000" +string.format("%0#+20f", 10000000) == "+000010000000.000000" +string.format("%0#+20f", 0.01) == "+000000000000.010000" +string.format("%0#+20f", 0.0001) == "+000000000000.000100" +string.format("%0#+20f", 1e-05) == "+000000000000.000010" +string.format("%0#+20f", 1e-06) == "+000000000000.000001" +string.format("%0#+20f", 1e-07) == "+000000000000.000000" +string.format("%0#+20f", 123.456) == "+000000000123.456000" +string.format("%0#+20f", 1234560000) == "+001234560000.000000" +string.format("%0#+20f", 1.23456e-05) == "+000000000000.000012" +string.format("%0#+20f", 123.456789123) == "+000000000123.456789" +string.format("%0#+20f", 1234567891.23) == "+001234567891.230000" +string.format("%0#+20f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0#+20.0f", 0) == "+000000000000000000." +string.format("%0#+20.0f", 1) == "+000000000000000001." +string.format("%0#+20.0f", -1) == "-000000000000000001." +string.format("%0#+20.0f", 2) == "+000000000000000002." +string.format("%0#+20.0f", -2) == "-000000000000000002." +string.format("%0#+20.0f", 3) == "+000000000000000003." +string.format("%0#+20.0f", -3) == "-000000000000000003." +string.format("%0#+20.0f", nan) == " +nan" +string.format("%0#+20.0f", inf) == " +inf" +string.format("%0#+20.0f", -inf) == " -inf" +string.format("%0#+20.0f", 100) == "+000000000000000100." +string.format("%0#+20.0f", 10000) == "+000000000000010000." +string.format("%0#+20.0f", 100000) == "+000000000000100000." +string.format("%0#+20.0f", 1000000) == "+000000000001000000." +string.format("%0#+20.0f", 10000000) == "+000000000010000000." +string.format("%0#+20.0f", 0.01) == "+000000000000000000." +string.format("%0#+20.0f", 0.0001) == "+000000000000000000." +string.format("%0#+20.0f", 1e-05) == "+000000000000000000." +string.format("%0#+20.0f", 1e-06) == "+000000000000000000." +string.format("%0#+20.0f", 1e-07) == "+000000000000000000." +string.format("%0#+20.0f", 123.456) == "+000000000000000123." +string.format("%0#+20.0f", 1234560000) == "+000000001234560000." +string.format("%0#+20.0f", 1.23456e-05) == "+000000000000000000." +string.format("%0#+20.0f", 123.456789123) == "+000000000000000123." +string.format("%0#+20.0f", 1234567891.23) == "+000000001234567891." +string.format("%0#+20.0f", 1.23456789123e-05) == "+000000000000000000." +string.format("%0#+20.1f", 0) == "+00000000000000000.0" +string.format("%0#+20.1f", 1) == "+00000000000000001.0" +string.format("%0#+20.1f", -1) == "-00000000000000001.0" +string.format("%0#+20.1f", 2) == "+00000000000000002.0" +string.format("%0#+20.1f", -2) == "-00000000000000002.0" +string.format("%0#+20.1f", 3) == "+00000000000000003.0" +string.format("%0#+20.1f", -3) == "-00000000000000003.0" +string.format("%0#+20.1f", nan) == " +nan" +string.format("%0#+20.1f", inf) == " +inf" +string.format("%0#+20.1f", -inf) == " -inf" +string.format("%0#+20.1f", 100) == "+00000000000000100.0" +string.format("%0#+20.1f", 10000) == "+00000000000010000.0" +string.format("%0#+20.1f", 100000) == "+00000000000100000.0" +string.format("%0#+20.1f", 1000000) == "+00000000001000000.0" +string.format("%0#+20.1f", 10000000) == "+00000000010000000.0" +string.format("%0#+20.1f", 0.01) == "+00000000000000000.0" +string.format("%0#+20.1f", 0.0001) == "+00000000000000000.0" +string.format("%0#+20.1f", 1e-05) == "+00000000000000000.0" +string.format("%0#+20.1f", 1e-06) == "+00000000000000000.0" +string.format("%0#+20.1f", 1e-07) == "+00000000000000000.0" +string.format("%0#+20.1f", 123.456) == "+00000000000000123.5" +string.format("%0#+20.1f", 1234560000) == "+00000001234560000.0" +string.format("%0#+20.1f", 1.23456e-05) == "+00000000000000000.0" +string.format("%0#+20.1f", 123.456789123) == "+00000000000000123.5" +string.format("%0#+20.1f", 1234567891.23) == "+00000001234567891.2" +string.format("%0#+20.1f", 1.23456789123e-05) == "+00000000000000000.0" +string.format("%0#+20.6f", 0) == "+000000000000.000000" +string.format("%0#+20.6f", 1) == "+000000000001.000000" +string.format("%0#+20.6f", -1) == "-000000000001.000000" +string.format("%0#+20.6f", 2) == "+000000000002.000000" +string.format("%0#+20.6f", -2) == "-000000000002.000000" +string.format("%0#+20.6f", 3) == "+000000000003.000000" +string.format("%0#+20.6f", -3) == "-000000000003.000000" +string.format("%0#+20.6f", nan) == " +nan" +string.format("%0#+20.6f", inf) == " +inf" +string.format("%0#+20.6f", -inf) == " -inf" +string.format("%0#+20.6f", 100) == "+000000000100.000000" +string.format("%0#+20.6f", 10000) == "+000000010000.000000" +string.format("%0#+20.6f", 100000) == "+000000100000.000000" +string.format("%0#+20.6f", 1000000) == "+000001000000.000000" +string.format("%0#+20.6f", 10000000) == "+000010000000.000000" +string.format("%0#+20.6f", 0.01) == "+000000000000.010000" +string.format("%0#+20.6f", 0.0001) == "+000000000000.000100" +string.format("%0#+20.6f", 1e-05) == "+000000000000.000010" +string.format("%0#+20.6f", 1e-06) == "+000000000000.000001" +string.format("%0#+20.6f", 1e-07) == "+000000000000.000000" +string.format("%0#+20.6f", 123.456) == "+000000000123.456000" +string.format("%0#+20.6f", 1234560000) == "+001234560000.000000" +string.format("%0#+20.6f", 1.23456e-05) == "+000000000000.000012" +string.format("%0#+20.6f", 123.456789123) == "+000000000123.456789" +string.format("%0#+20.6f", 1234567891.23) == "+001234567891.230000" +string.format("%0#+20.6f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0#-f", 0) == "0.000000" +string.format("%0#-f", 1) == "1.000000" +string.format("%0#-f", -1) == "-1.000000" +string.format("%0#-f", 2) == "2.000000" +string.format("%0#-f", -2) == "-2.000000" +string.format("%0#-f", 3) == "3.000000" +string.format("%0#-f", -3) == "-3.000000" +string.format("%0#-f", nan) == "nan" +string.format("%0#-f", inf) == "inf" +string.format("%0#-f", -inf) == "-inf" +string.format("%0#-f", 100) == "100.000000" +string.format("%0#-f", 10000) == "10000.000000" +string.format("%0#-f", 100000) == "100000.000000" +string.format("%0#-f", 1000000) == "1000000.000000" +string.format("%0#-f", 10000000) == "10000000.000000" +string.format("%0#-f", 0.01) == "0.010000" +string.format("%0#-f", 0.0001) == "0.000100" +string.format("%0#-f", 1e-05) == "0.000010" +string.format("%0#-f", 1e-06) == "0.000001" +string.format("%0#-f", 1e-07) == "0.000000" +string.format("%0#-f", 123.456) == "123.456000" +string.format("%0#-f", 1234560000) == "1234560000.000000" +string.format("%0#-f", 1.23456e-05) == "0.000012" +string.format("%0#-f", 123.456789123) == "123.456789" +string.format("%0#-f", 1234567891.23) == "1234567891.230000" +string.format("%0#-f", 1.23456789123e-05) == "0.000012" +string.format("%0#-.0f", 0) == "0." +string.format("%0#-.0f", 1) == "1." +string.format("%0#-.0f", -1) == "-1." +string.format("%0#-.0f", 2) == "2." +string.format("%0#-.0f", -2) == "-2." +string.format("%0#-.0f", 3) == "3." +string.format("%0#-.0f", -3) == "-3." +string.format("%0#-.0f", 100) == "100." +string.format("%0#-.0f", 10000) == "10000." +string.format("%0#-.0f", 100000) == "100000." +string.format("%0#-.0f", 1000000) == "1000000." +string.format("%0#-.0f", 10000000) == "10000000." +string.format("%0#-.0f", 0.01) == "0." +string.format("%0#-.0f", 0.0001) == "0." +string.format("%0#-.0f", 1e-05) == "0." +string.format("%0#-.0f", 1e-06) == "0." +string.format("%0#-.0f", 1e-07) == "0." +string.format("%0#-.0f", 123.456) == "123." +string.format("%0#-.0f", 1234560000) == "1234560000." +string.format("%0#-.0f", 1.23456e-05) == "0." +string.format("%0#-.0f", 123.456789123) == "123." +string.format("%0#-.0f", 1234567891.23) == "1234567891." +string.format("%0#-.0f", 1.23456789123e-05) == "0." +string.format("%0#-.1f", 0) == "0.0" +string.format("%0#-.1f", 1) == "1.0" +string.format("%0#-.1f", -1) == "-1.0" +string.format("%0#-.1f", 2) == "2.0" +string.format("%0#-.1f", -2) == "-2.0" +string.format("%0#-.1f", 3) == "3.0" +string.format("%0#-.1f", -3) == "-3.0" +string.format("%0#-.1f", 100) == "100.0" +string.format("%0#-.1f", 10000) == "10000.0" +string.format("%0#-.1f", 100000) == "100000.0" +string.format("%0#-.1f", 1000000) == "1000000.0" +string.format("%0#-.1f", 10000000) == "10000000.0" +string.format("%0#-.1f", 0.01) == "0.0" +string.format("%0#-.1f", 0.0001) == "0.0" +string.format("%0#-.1f", 1e-05) == "0.0" +string.format("%0#-.1f", 1e-06) == "0.0" +string.format("%0#-.1f", 1e-07) == "0.0" +string.format("%0#-.1f", 123.456) == "123.5" +string.format("%0#-.1f", 1234560000) == "1234560000.0" +string.format("%0#-.1f", 1.23456e-05) == "0.0" +string.format("%0#-.1f", 123.456789123) == "123.5" +string.format("%0#-.1f", 1234567891.23) == "1234567891.2" +string.format("%0#-.1f", 1.23456789123e-05) == "0.0" +string.format("%0#-1.0f", 0) == "0." +string.format("%0#-1.0f", 1) == "1." +string.format("%0#-1.0f", -1) == "-1." +string.format("%0#-1.0f", 2) == "2." +string.format("%0#-1.0f", -2) == "-2." +string.format("%0#-1.0f", 3) == "3." +string.format("%0#-1.0f", -3) == "-3." +string.format("%0#-1.0f", 100) == "100." +string.format("%0#-1.0f", 10000) == "10000." +string.format("%0#-1.0f", 100000) == "100000." +string.format("%0#-1.0f", 1000000) == "1000000." +string.format("%0#-1.0f", 10000000) == "10000000." +string.format("%0#-1.0f", 0.01) == "0." +string.format("%0#-1.0f", 0.0001) == "0." +string.format("%0#-1.0f", 1e-05) == "0." +string.format("%0#-1.0f", 1e-06) == "0." +string.format("%0#-1.0f", 1e-07) == "0." +string.format("%0#-1.0f", 123.456) == "123." +string.format("%0#-1.0f", 1234560000) == "1234560000." +string.format("%0#-1.0f", 1.23456e-05) == "0." +string.format("%0#-1.0f", 123.456789123) == "123." +string.format("%0#-1.0f", 1234567891.23) == "1234567891." +string.format("%0#-1.0f", 1.23456789123e-05) == "0." +string.format("%0#-1.1f", 0) == "0.0" +string.format("%0#-1.1f", 1) == "1.0" +string.format("%0#-1.1f", -1) == "-1.0" +string.format("%0#-1.1f", 2) == "2.0" +string.format("%0#-1.1f", -2) == "-2.0" +string.format("%0#-1.1f", 3) == "3.0" +string.format("%0#-1.1f", -3) == "-3.0" +string.format("%0#-1.1f", 100) == "100.0" +string.format("%0#-1.1f", 10000) == "10000.0" +string.format("%0#-1.1f", 100000) == "100000.0" +string.format("%0#-1.1f", 1000000) == "1000000.0" +string.format("%0#-1.1f", 10000000) == "10000000.0" +string.format("%0#-1.1f", 0.01) == "0.0" +string.format("%0#-1.1f", 0.0001) == "0.0" +string.format("%0#-1.1f", 1e-05) == "0.0" +string.format("%0#-1.1f", 1e-06) == "0.0" +string.format("%0#-1.1f", 1e-07) == "0.0" +string.format("%0#-1.1f", 123.456) == "123.5" +string.format("%0#-1.1f", 1234560000) == "1234560000.0" +string.format("%0#-1.1f", 1.23456e-05) == "0.0" +string.format("%0#-1.1f", 123.456789123) == "123.5" +string.format("%0#-1.1f", 1234567891.23) == "1234567891.2" +string.format("%0#-1.1f", 1.23456789123e-05) == "0.0" +string.format("%0#-2.0f", 0) == "0." +string.format("%0#-2.0f", 1) == "1." +string.format("%0#-2.0f", -1) == "-1." +string.format("%0#-2.0f", 2) == "2." +string.format("%0#-2.0f", -2) == "-2." +string.format("%0#-2.0f", 3) == "3." +string.format("%0#-2.0f", -3) == "-3." +string.format("%0#-2.0f", 100) == "100." +string.format("%0#-2.0f", 10000) == "10000." +string.format("%0#-2.0f", 100000) == "100000." +string.format("%0#-2.0f", 1000000) == "1000000." +string.format("%0#-2.0f", 10000000) == "10000000." +string.format("%0#-2.0f", 0.01) == "0." +string.format("%0#-2.0f", 0.0001) == "0." +string.format("%0#-2.0f", 1e-05) == "0." +string.format("%0#-2.0f", 1e-06) == "0." +string.format("%0#-2.0f", 1e-07) == "0." +string.format("%0#-2.0f", 123.456) == "123." +string.format("%0#-2.0f", 1234560000) == "1234560000." +string.format("%0#-2.0f", 1.23456e-05) == "0." +string.format("%0#-2.0f", 123.456789123) == "123." +string.format("%0#-2.0f", 1234567891.23) == "1234567891." +string.format("%0#-2.0f", 1.23456789123e-05) == "0." +string.format("%0#-2.1f", 0) == "0.0" +string.format("%0#-2.1f", 1) == "1.0" +string.format("%0#-2.1f", -1) == "-1.0" +string.format("%0#-2.1f", 2) == "2.0" +string.format("%0#-2.1f", -2) == "-2.0" +string.format("%0#-2.1f", 3) == "3.0" +string.format("%0#-2.1f", -3) == "-3.0" +string.format("%0#-2.1f", 100) == "100.0" +string.format("%0#-2.1f", 10000) == "10000.0" +string.format("%0#-2.1f", 100000) == "100000.0" +string.format("%0#-2.1f", 1000000) == "1000000.0" +string.format("%0#-2.1f", 10000000) == "10000000.0" +string.format("%0#-2.1f", 0.01) == "0.0" +string.format("%0#-2.1f", 0.0001) == "0.0" +string.format("%0#-2.1f", 1e-05) == "0.0" +string.format("%0#-2.1f", 1e-06) == "0.0" +string.format("%0#-2.1f", 1e-07) == "0.0" +string.format("%0#-2.1f", 123.456) == "123.5" +string.format("%0#-2.1f", 1234560000) == "1234560000.0" +string.format("%0#-2.1f", 1.23456e-05) == "0.0" +string.format("%0#-2.1f", 123.456789123) == "123.5" +string.format("%0#-2.1f", 1234567891.23) == "1234567891.2" +string.format("%0#-2.1f", 1.23456789123e-05) == "0.0" +string.format("%0#-6f", nan) == "nan " +string.format("%0#-6f", inf) == "inf " +string.format("%0#-6f", -inf) == "-inf " +string.format("%0#-6.0f", 0) == "0. " +string.format("%0#-6.0f", 1) == "1. " +string.format("%0#-6.0f", -1) == "-1. " +string.format("%0#-6.0f", 2) == "2. " +string.format("%0#-6.0f", -2) == "-2. " +string.format("%0#-6.0f", 3) == "3. " +string.format("%0#-6.0f", -3) == "-3. " +string.format("%0#-6.0f", nan) == "nan " +string.format("%0#-6.0f", inf) == "inf " +string.format("%0#-6.0f", -inf) == "-inf " +string.format("%0#-6.0f", 100) == "100. " +string.format("%0#-6.0f", 10000) == "10000." +string.format("%0#-6.0f", 100000) == "100000." +string.format("%0#-6.0f", 1000000) == "1000000." +string.format("%0#-6.0f", 10000000) == "10000000." +string.format("%0#-6.0f", 0.01) == "0. " +string.format("%0#-6.0f", 0.0001) == "0. " +string.format("%0#-6.0f", 1e-05) == "0. " +string.format("%0#-6.0f", 1e-06) == "0. " +string.format("%0#-6.0f", 1e-07) == "0. " +string.format("%0#-6.0f", 123.456) == "123. " +string.format("%0#-6.0f", 1234560000) == "1234560000." +string.format("%0#-6.0f", 1.23456e-05) == "0. " +string.format("%0#-6.0f", 123.456789123) == "123. " +string.format("%0#-6.0f", 1234567891.23) == "1234567891." +string.format("%0#-6.0f", 1.23456789123e-05) == "0. " +string.format("%0#-6.1f", 0) == "0.0 " +string.format("%0#-6.1f", 1) == "1.0 " +string.format("%0#-6.1f", -1) == "-1.0 " +string.format("%0#-6.1f", 2) == "2.0 " +string.format("%0#-6.1f", -2) == "-2.0 " +string.format("%0#-6.1f", 3) == "3.0 " +string.format("%0#-6.1f", -3) == "-3.0 " +string.format("%0#-6.1f", nan) == "nan " +string.format("%0#-6.1f", inf) == "inf " +string.format("%0#-6.1f", -inf) == "-inf " +string.format("%0#-6.1f", 100) == "100.0 " +string.format("%0#-6.1f", 10000) == "10000.0" +string.format("%0#-6.1f", 100000) == "100000.0" +string.format("%0#-6.1f", 1000000) == "1000000.0" +string.format("%0#-6.1f", 10000000) == "10000000.0" +string.format("%0#-6.1f", 0.01) == "0.0 " +string.format("%0#-6.1f", 0.0001) == "0.0 " +string.format("%0#-6.1f", 1e-05) == "0.0 " +string.format("%0#-6.1f", 1e-06) == "0.0 " +string.format("%0#-6.1f", 1e-07) == "0.0 " +string.format("%0#-6.1f", 123.456) == "123.5 " +string.format("%0#-6.1f", 1234560000) == "1234560000.0" +string.format("%0#-6.1f", 1.23456e-05) == "0.0 " +string.format("%0#-6.1f", 123.456789123) == "123.5 " +string.format("%0#-6.1f", 1234567891.23) == "1234567891.2" +string.format("%0#-6.1f", 1.23456789123e-05) == "0.0 " +string.format("%0#-6.6f", nan) == "nan " +string.format("%0#-6.6f", inf) == "inf " +string.format("%0#-6.6f", -inf) == "-inf " +string.format("%0#-20f", 0) == "0.000000 " +string.format("%0#-20f", 1) == "1.000000 " +string.format("%0#-20f", -1) == "-1.000000 " +string.format("%0#-20f", 2) == "2.000000 " +string.format("%0#-20f", -2) == "-2.000000 " +string.format("%0#-20f", 3) == "3.000000 " +string.format("%0#-20f", -3) == "-3.000000 " +string.format("%0#-20f", nan) == "nan " +string.format("%0#-20f", inf) == "inf " +string.format("%0#-20f", -inf) == "-inf " +string.format("%0#-20f", 100) == "100.000000 " +string.format("%0#-20f", 10000) == "10000.000000 " +string.format("%0#-20f", 100000) == "100000.000000 " +string.format("%0#-20f", 1000000) == "1000000.000000 " +string.format("%0#-20f", 10000000) == "10000000.000000 " +string.format("%0#-20f", 0.01) == "0.010000 " +string.format("%0#-20f", 0.0001) == "0.000100 " +string.format("%0#-20f", 1e-05) == "0.000010 " +string.format("%0#-20f", 1e-06) == "0.000001 " +string.format("%0#-20f", 1e-07) == "0.000000 " +string.format("%0#-20f", 123.456) == "123.456000 " +string.format("%0#-20f", 1234560000) == "1234560000.000000 " +string.format("%0#-20f", 1.23456e-05) == "0.000012 " +string.format("%0#-20f", 123.456789123) == "123.456789 " +string.format("%0#-20f", 1234567891.23) == "1234567891.230000 " +string.format("%0#-20f", 1.23456789123e-05) == "0.000012 " +string.format("%0#-20.0f", 0) == "0. " +string.format("%0#-20.0f", 1) == "1. " +string.format("%0#-20.0f", -1) == "-1. " +string.format("%0#-20.0f", 2) == "2. " +string.format("%0#-20.0f", -2) == "-2. " +string.format("%0#-20.0f", 3) == "3. " +string.format("%0#-20.0f", -3) == "-3. " +string.format("%0#-20.0f", nan) == "nan " +string.format("%0#-20.0f", inf) == "inf " +string.format("%0#-20.0f", -inf) == "-inf " +string.format("%0#-20.0f", 100) == "100. " +string.format("%0#-20.0f", 10000) == "10000. " +string.format("%0#-20.0f", 100000) == "100000. " +string.format("%0#-20.0f", 1000000) == "1000000. " +string.format("%0#-20.0f", 10000000) == "10000000. " +string.format("%0#-20.0f", 0.01) == "0. " +string.format("%0#-20.0f", 0.0001) == "0. " +string.format("%0#-20.0f", 1e-05) == "0. " +string.format("%0#-20.0f", 1e-06) == "0. " +string.format("%0#-20.0f", 1e-07) == "0. " +string.format("%0#-20.0f", 123.456) == "123. " +string.format("%0#-20.0f", 1234560000) == "1234560000. " +string.format("%0#-20.0f", 1.23456e-05) == "0. " +string.format("%0#-20.0f", 123.456789123) == "123. " +string.format("%0#-20.0f", 1234567891.23) == "1234567891. " +string.format("%0#-20.0f", 1.23456789123e-05) == "0. " +string.format("%0#-20.1f", 0) == "0.0 " +string.format("%0#-20.1f", 1) == "1.0 " +string.format("%0#-20.1f", -1) == "-1.0 " +string.format("%0#-20.1f", 2) == "2.0 " +string.format("%0#-20.1f", -2) == "-2.0 " +string.format("%0#-20.1f", 3) == "3.0 " +string.format("%0#-20.1f", -3) == "-3.0 " +string.format("%0#-20.1f", nan) == "nan " +string.format("%0#-20.1f", inf) == "inf " +string.format("%0#-20.1f", -inf) == "-inf " +string.format("%0#-20.1f", 100) == "100.0 " +string.format("%0#-20.1f", 10000) == "10000.0 " +string.format("%0#-20.1f", 100000) == "100000.0 " +string.format("%0#-20.1f", 1000000) == "1000000.0 " +string.format("%0#-20.1f", 10000000) == "10000000.0 " +string.format("%0#-20.1f", 0.01) == "0.0 " +string.format("%0#-20.1f", 0.0001) == "0.0 " +string.format("%0#-20.1f", 1e-05) == "0.0 " +string.format("%0#-20.1f", 1e-06) == "0.0 " +string.format("%0#-20.1f", 1e-07) == "0.0 " +string.format("%0#-20.1f", 123.456) == "123.5 " +string.format("%0#-20.1f", 1234560000) == "1234560000.0 " +string.format("%0#-20.1f", 1.23456e-05) == "0.0 " +string.format("%0#-20.1f", 123.456789123) == "123.5 " +string.format("%0#-20.1f", 1234567891.23) == "1234567891.2 " +string.format("%0#-20.1f", 1.23456789123e-05) == "0.0 " +string.format("%0#-20.6f", 0) == "0.000000 " +string.format("%0#-20.6f", 1) == "1.000000 " +string.format("%0#-20.6f", -1) == "-1.000000 " +string.format("%0#-20.6f", 2) == "2.000000 " +string.format("%0#-20.6f", -2) == "-2.000000 " +string.format("%0#-20.6f", 3) == "3.000000 " +string.format("%0#-20.6f", -3) == "-3.000000 " +string.format("%0#-20.6f", nan) == "nan " +string.format("%0#-20.6f", inf) == "inf " +string.format("%0#-20.6f", -inf) == "-inf " +string.format("%0#-20.6f", 100) == "100.000000 " +string.format("%0#-20.6f", 10000) == "10000.000000 " +string.format("%0#-20.6f", 100000) == "100000.000000 " +string.format("%0#-20.6f", 1000000) == "1000000.000000 " +string.format("%0#-20.6f", 10000000) == "10000000.000000 " +string.format("%0#-20.6f", 0.01) == "0.010000 " +string.format("%0#-20.6f", 0.0001) == "0.000100 " +string.format("%0#-20.6f", 1e-05) == "0.000010 " +string.format("%0#-20.6f", 1e-06) == "0.000001 " +string.format("%0#-20.6f", 1e-07) == "0.000000 " +string.format("%0#-20.6f", 123.456) == "123.456000 " +string.format("%0#-20.6f", 1234560000) == "1234560000.000000 " +string.format("%0#-20.6f", 1.23456e-05) == "0.000012 " +string.format("%0#-20.6f", 123.456789123) == "123.456789 " +string.format("%0#-20.6f", 1234567891.23) == "1234567891.230000 " +string.format("%0#-20.6f", 1.23456789123e-05) == "0.000012 " +string.format("%0#-+f", 0) == "+0.000000" +string.format("%0#-+f", 1) == "+1.000000" +string.format("%0#-+f", -1) == "-1.000000" +string.format("%0#-+f", 2) == "+2.000000" +string.format("%0#-+f", -2) == "-2.000000" +string.format("%0#-+f", 3) == "+3.000000" +string.format("%0#-+f", -3) == "-3.000000" +string.format("%0#-+f", nan) == "+nan" +string.format("%0#-+f", inf) == "+inf" +string.format("%0#-+f", -inf) == "-inf" +string.format("%0#-+f", 100) == "+100.000000" +string.format("%0#-+f", 10000) == "+10000.000000" +string.format("%0#-+f", 100000) == "+100000.000000" +string.format("%0#-+f", 1000000) == "+1000000.000000" +string.format("%0#-+f", 10000000) == "+10000000.000000" +string.format("%0#-+f", 0.01) == "+0.010000" +string.format("%0#-+f", 0.0001) == "+0.000100" +string.format("%0#-+f", 1e-05) == "+0.000010" +string.format("%0#-+f", 1e-06) == "+0.000001" +string.format("%0#-+f", 1e-07) == "+0.000000" +string.format("%0#-+f", 123.456) == "+123.456000" +string.format("%0#-+f", 1234560000) == "+1234560000.000000" +string.format("%0#-+f", 1.23456e-05) == "+0.000012" +string.format("%0#-+f", 123.456789123) == "+123.456789" +string.format("%0#-+f", 1234567891.23) == "+1234567891.230000" +string.format("%0#-+f", 1.23456789123e-05) == "+0.000012" +string.format("%0#-+.0f", 0) == "+0." +string.format("%0#-+.0f", 1) == "+1." +string.format("%0#-+.0f", -1) == "-1." +string.format("%0#-+.0f", 2) == "+2." +string.format("%0#-+.0f", -2) == "-2." +string.format("%0#-+.0f", 3) == "+3." +string.format("%0#-+.0f", -3) == "-3." +string.format("%0#-+.0f", 100) == "+100." +string.format("%0#-+.0f", 10000) == "+10000." +string.format("%0#-+.0f", 100000) == "+100000." +string.format("%0#-+.0f", 1000000) == "+1000000." +string.format("%0#-+.0f", 10000000) == "+10000000." +string.format("%0#-+.0f", 0.01) == "+0." +string.format("%0#-+.0f", 0.0001) == "+0." +string.format("%0#-+.0f", 1e-05) == "+0." +string.format("%0#-+.0f", 1e-06) == "+0." +string.format("%0#-+.0f", 1e-07) == "+0." +string.format("%0#-+.0f", 123.456) == "+123." +string.format("%0#-+.0f", 1234560000) == "+1234560000." +string.format("%0#-+.0f", 1.23456e-05) == "+0." +string.format("%0#-+.0f", 123.456789123) == "+123." +string.format("%0#-+.0f", 1234567891.23) == "+1234567891." +string.format("%0#-+.0f", 1.23456789123e-05) == "+0." +string.format("%0#-+.1f", 0) == "+0.0" +string.format("%0#-+.1f", 1) == "+1.0" +string.format("%0#-+.1f", -1) == "-1.0" +string.format("%0#-+.1f", 2) == "+2.0" +string.format("%0#-+.1f", -2) == "-2.0" +string.format("%0#-+.1f", 3) == "+3.0" +string.format("%0#-+.1f", -3) == "-3.0" +string.format("%0#-+.1f", 100) == "+100.0" +string.format("%0#-+.1f", 10000) == "+10000.0" +string.format("%0#-+.1f", 100000) == "+100000.0" +string.format("%0#-+.1f", 1000000) == "+1000000.0" +string.format("%0#-+.1f", 10000000) == "+10000000.0" +string.format("%0#-+.1f", 0.01) == "+0.0" +string.format("%0#-+.1f", 0.0001) == "+0.0" +string.format("%0#-+.1f", 1e-05) == "+0.0" +string.format("%0#-+.1f", 1e-06) == "+0.0" +string.format("%0#-+.1f", 1e-07) == "+0.0" +string.format("%0#-+.1f", 123.456) == "+123.5" +string.format("%0#-+.1f", 1234560000) == "+1234560000.0" +string.format("%0#-+.1f", 1.23456e-05) == "+0.0" +string.format("%0#-+.1f", 123.456789123) == "+123.5" +string.format("%0#-+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#-+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#-+1.0f", 0) == "+0." +string.format("%0#-+1.0f", 1) == "+1." +string.format("%0#-+1.0f", -1) == "-1." +string.format("%0#-+1.0f", 2) == "+2." +string.format("%0#-+1.0f", -2) == "-2." +string.format("%0#-+1.0f", 3) == "+3." +string.format("%0#-+1.0f", -3) == "-3." +string.format("%0#-+1.0f", 100) == "+100." +string.format("%0#-+1.0f", 10000) == "+10000." +string.format("%0#-+1.0f", 100000) == "+100000." +string.format("%0#-+1.0f", 1000000) == "+1000000." +string.format("%0#-+1.0f", 10000000) == "+10000000." +string.format("%0#-+1.0f", 0.01) == "+0." +string.format("%0#-+1.0f", 0.0001) == "+0." +string.format("%0#-+1.0f", 1e-05) == "+0." +string.format("%0#-+1.0f", 1e-06) == "+0." +string.format("%0#-+1.0f", 1e-07) == "+0." +string.format("%0#-+1.0f", 123.456) == "+123." +string.format("%0#-+1.0f", 1234560000) == "+1234560000." +string.format("%0#-+1.0f", 1.23456e-05) == "+0." +string.format("%0#-+1.0f", 123.456789123) == "+123." +string.format("%0#-+1.0f", 1234567891.23) == "+1234567891." +string.format("%0#-+1.0f", 1.23456789123e-05) == "+0." +string.format("%0#-+1.1f", 0) == "+0.0" +string.format("%0#-+1.1f", 1) == "+1.0" +string.format("%0#-+1.1f", -1) == "-1.0" +string.format("%0#-+1.1f", 2) == "+2.0" +string.format("%0#-+1.1f", -2) == "-2.0" +string.format("%0#-+1.1f", 3) == "+3.0" +string.format("%0#-+1.1f", -3) == "-3.0" +string.format("%0#-+1.1f", 100) == "+100.0" +string.format("%0#-+1.1f", 10000) == "+10000.0" +string.format("%0#-+1.1f", 100000) == "+100000.0" +string.format("%0#-+1.1f", 1000000) == "+1000000.0" +string.format("%0#-+1.1f", 10000000) == "+10000000.0" +string.format("%0#-+1.1f", 0.01) == "+0.0" +string.format("%0#-+1.1f", 0.0001) == "+0.0" +string.format("%0#-+1.1f", 1e-05) == "+0.0" +string.format("%0#-+1.1f", 1e-06) == "+0.0" +string.format("%0#-+1.1f", 1e-07) == "+0.0" +string.format("%0#-+1.1f", 123.456) == "+123.5" +string.format("%0#-+1.1f", 1234560000) == "+1234560000.0" +string.format("%0#-+1.1f", 1.23456e-05) == "+0.0" +string.format("%0#-+1.1f", 123.456789123) == "+123.5" +string.format("%0#-+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#-+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#-+2.0f", 0) == "+0." +string.format("%0#-+2.0f", 1) == "+1." +string.format("%0#-+2.0f", -1) == "-1." +string.format("%0#-+2.0f", 2) == "+2." +string.format("%0#-+2.0f", -2) == "-2." +string.format("%0#-+2.0f", 3) == "+3." +string.format("%0#-+2.0f", -3) == "-3." +string.format("%0#-+2.0f", 100) == "+100." +string.format("%0#-+2.0f", 10000) == "+10000." +string.format("%0#-+2.0f", 100000) == "+100000." +string.format("%0#-+2.0f", 1000000) == "+1000000." +string.format("%0#-+2.0f", 10000000) == "+10000000." +string.format("%0#-+2.0f", 0.01) == "+0." +string.format("%0#-+2.0f", 0.0001) == "+0." +string.format("%0#-+2.0f", 1e-05) == "+0." +string.format("%0#-+2.0f", 1e-06) == "+0." +string.format("%0#-+2.0f", 1e-07) == "+0." +string.format("%0#-+2.0f", 123.456) == "+123." +string.format("%0#-+2.0f", 1234560000) == "+1234560000." +string.format("%0#-+2.0f", 1.23456e-05) == "+0." +string.format("%0#-+2.0f", 123.456789123) == "+123." +string.format("%0#-+2.0f", 1234567891.23) == "+1234567891." +string.format("%0#-+2.0f", 1.23456789123e-05) == "+0." +string.format("%0#-+2.1f", 0) == "+0.0" +string.format("%0#-+2.1f", 1) == "+1.0" +string.format("%0#-+2.1f", -1) == "-1.0" +string.format("%0#-+2.1f", 2) == "+2.0" +string.format("%0#-+2.1f", -2) == "-2.0" +string.format("%0#-+2.1f", 3) == "+3.0" +string.format("%0#-+2.1f", -3) == "-3.0" +string.format("%0#-+2.1f", 100) == "+100.0" +string.format("%0#-+2.1f", 10000) == "+10000.0" +string.format("%0#-+2.1f", 100000) == "+100000.0" +string.format("%0#-+2.1f", 1000000) == "+1000000.0" +string.format("%0#-+2.1f", 10000000) == "+10000000.0" +string.format("%0#-+2.1f", 0.01) == "+0.0" +string.format("%0#-+2.1f", 0.0001) == "+0.0" +string.format("%0#-+2.1f", 1e-05) == "+0.0" +string.format("%0#-+2.1f", 1e-06) == "+0.0" +string.format("%0#-+2.1f", 1e-07) == "+0.0" +string.format("%0#-+2.1f", 123.456) == "+123.5" +string.format("%0#-+2.1f", 1234560000) == "+1234560000.0" +string.format("%0#-+2.1f", 1.23456e-05) == "+0.0" +string.format("%0#-+2.1f", 123.456789123) == "+123.5" +string.format("%0#-+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#-+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0#-+6f", nan) == "+nan " +string.format("%0#-+6f", inf) == "+inf " +string.format("%0#-+6f", -inf) == "-inf " +string.format("%0#-+6.0f", 0) == "+0. " +string.format("%0#-+6.0f", 1) == "+1. " +string.format("%0#-+6.0f", -1) == "-1. " +string.format("%0#-+6.0f", 2) == "+2. " +string.format("%0#-+6.0f", -2) == "-2. " +string.format("%0#-+6.0f", 3) == "+3. " +string.format("%0#-+6.0f", -3) == "-3. " +string.format("%0#-+6.0f", nan) == "+nan " +string.format("%0#-+6.0f", inf) == "+inf " +string.format("%0#-+6.0f", -inf) == "-inf " +string.format("%0#-+6.0f", 100) == "+100. " +string.format("%0#-+6.0f", 10000) == "+10000." +string.format("%0#-+6.0f", 100000) == "+100000." +string.format("%0#-+6.0f", 1000000) == "+1000000." +string.format("%0#-+6.0f", 10000000) == "+10000000." +string.format("%0#-+6.0f", 0.01) == "+0. " +string.format("%0#-+6.0f", 0.0001) == "+0. " +string.format("%0#-+6.0f", 1e-05) == "+0. " +string.format("%0#-+6.0f", 1e-06) == "+0. " +string.format("%0#-+6.0f", 1e-07) == "+0. " +string.format("%0#-+6.0f", 123.456) == "+123. " +string.format("%0#-+6.0f", 1234560000) == "+1234560000." +string.format("%0#-+6.0f", 1.23456e-05) == "+0. " +string.format("%0#-+6.0f", 123.456789123) == "+123. " +string.format("%0#-+6.0f", 1234567891.23) == "+1234567891." +string.format("%0#-+6.0f", 1.23456789123e-05) == "+0. " +string.format("%0#-+6.1f", 0) == "+0.0 " +string.format("%0#-+6.1f", 1) == "+1.0 " +string.format("%0#-+6.1f", -1) == "-1.0 " +string.format("%0#-+6.1f", 2) == "+2.0 " +string.format("%0#-+6.1f", -2) == "-2.0 " +string.format("%0#-+6.1f", 3) == "+3.0 " +string.format("%0#-+6.1f", -3) == "-3.0 " +string.format("%0#-+6.1f", nan) == "+nan " +string.format("%0#-+6.1f", inf) == "+inf " +string.format("%0#-+6.1f", -inf) == "-inf " +string.format("%0#-+6.1f", 100) == "+100.0" +string.format("%0#-+6.1f", 10000) == "+10000.0" +string.format("%0#-+6.1f", 100000) == "+100000.0" +string.format("%0#-+6.1f", 1000000) == "+1000000.0" +string.format("%0#-+6.1f", 10000000) == "+10000000.0" +string.format("%0#-+6.1f", 0.01) == "+0.0 " +string.format("%0#-+6.1f", 0.0001) == "+0.0 " +string.format("%0#-+6.1f", 1e-05) == "+0.0 " +string.format("%0#-+6.1f", 1e-06) == "+0.0 " +string.format("%0#-+6.1f", 1e-07) == "+0.0 " +string.format("%0#-+6.1f", 123.456) == "+123.5" +string.format("%0#-+6.1f", 1234560000) == "+1234560000.0" +string.format("%0#-+6.1f", 1.23456e-05) == "+0.0 " +string.format("%0#-+6.1f", 123.456789123) == "+123.5" +string.format("%0#-+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0#-+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0#-+6.6f", nan) == "+nan " +string.format("%0#-+6.6f", inf) == "+inf " +string.format("%0#-+6.6f", -inf) == "-inf " +string.format("%0#-+20f", 0) == "+0.000000 " +string.format("%0#-+20f", 1) == "+1.000000 " +string.format("%0#-+20f", -1) == "-1.000000 " +string.format("%0#-+20f", 2) == "+2.000000 " +string.format("%0#-+20f", -2) == "-2.000000 " +string.format("%0#-+20f", 3) == "+3.000000 " +string.format("%0#-+20f", -3) == "-3.000000 " +string.format("%0#-+20f", nan) == "+nan " +string.format("%0#-+20f", inf) == "+inf " +string.format("%0#-+20f", -inf) == "-inf " +string.format("%0#-+20f", 100) == "+100.000000 " +string.format("%0#-+20f", 10000) == "+10000.000000 " +string.format("%0#-+20f", 100000) == "+100000.000000 " +string.format("%0#-+20f", 1000000) == "+1000000.000000 " +string.format("%0#-+20f", 10000000) == "+10000000.000000 " +string.format("%0#-+20f", 0.01) == "+0.010000 " +string.format("%0#-+20f", 0.0001) == "+0.000100 " +string.format("%0#-+20f", 1e-05) == "+0.000010 " +string.format("%0#-+20f", 1e-06) == "+0.000001 " +string.format("%0#-+20f", 1e-07) == "+0.000000 " +string.format("%0#-+20f", 123.456) == "+123.456000 " +string.format("%0#-+20f", 1234560000) == "+1234560000.000000 " +string.format("%0#-+20f", 1.23456e-05) == "+0.000012 " +string.format("%0#-+20f", 123.456789123) == "+123.456789 " +string.format("%0#-+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%0#-+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%0#-+20.0f", 0) == "+0. " +string.format("%0#-+20.0f", 1) == "+1. " +string.format("%0#-+20.0f", -1) == "-1. " +string.format("%0#-+20.0f", 2) == "+2. " +string.format("%0#-+20.0f", -2) == "-2. " +string.format("%0#-+20.0f", 3) == "+3. " +string.format("%0#-+20.0f", -3) == "-3. " +string.format("%0#-+20.0f", nan) == "+nan " +string.format("%0#-+20.0f", inf) == "+inf " +string.format("%0#-+20.0f", -inf) == "-inf " +string.format("%0#-+20.0f", 100) == "+100. " +string.format("%0#-+20.0f", 10000) == "+10000. " +string.format("%0#-+20.0f", 100000) == "+100000. " +string.format("%0#-+20.0f", 1000000) == "+1000000. " +string.format("%0#-+20.0f", 10000000) == "+10000000. " +string.format("%0#-+20.0f", 0.01) == "+0. " +string.format("%0#-+20.0f", 0.0001) == "+0. " +string.format("%0#-+20.0f", 1e-05) == "+0. " +string.format("%0#-+20.0f", 1e-06) == "+0. " +string.format("%0#-+20.0f", 1e-07) == "+0. " +string.format("%0#-+20.0f", 123.456) == "+123. " +string.format("%0#-+20.0f", 1234560000) == "+1234560000. " +string.format("%0#-+20.0f", 1.23456e-05) == "+0. " +string.format("%0#-+20.0f", 123.456789123) == "+123. " +string.format("%0#-+20.0f", 1234567891.23) == "+1234567891. " +string.format("%0#-+20.0f", 1.23456789123e-05) == "+0. " +string.format("%0#-+20.1f", 0) == "+0.0 " +string.format("%0#-+20.1f", 1) == "+1.0 " +string.format("%0#-+20.1f", -1) == "-1.0 " +string.format("%0#-+20.1f", 2) == "+2.0 " +string.format("%0#-+20.1f", -2) == "-2.0 " +string.format("%0#-+20.1f", 3) == "+3.0 " +string.format("%0#-+20.1f", -3) == "-3.0 " +string.format("%0#-+20.1f", nan) == "+nan " +string.format("%0#-+20.1f", inf) == "+inf " +string.format("%0#-+20.1f", -inf) == "-inf " +string.format("%0#-+20.1f", 100) == "+100.0 " +string.format("%0#-+20.1f", 10000) == "+10000.0 " +string.format("%0#-+20.1f", 100000) == "+100000.0 " +string.format("%0#-+20.1f", 1000000) == "+1000000.0 " +string.format("%0#-+20.1f", 10000000) == "+10000000.0 " +string.format("%0#-+20.1f", 0.01) == "+0.0 " +string.format("%0#-+20.1f", 0.0001) == "+0.0 " +string.format("%0#-+20.1f", 1e-05) == "+0.0 " +string.format("%0#-+20.1f", 1e-06) == "+0.0 " +string.format("%0#-+20.1f", 1e-07) == "+0.0 " +string.format("%0#-+20.1f", 123.456) == "+123.5 " +string.format("%0#-+20.1f", 1234560000) == "+1234560000.0 " +string.format("%0#-+20.1f", 1.23456e-05) == "+0.0 " +string.format("%0#-+20.1f", 123.456789123) == "+123.5 " +string.format("%0#-+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%0#-+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0#-+20.6f", 0) == "+0.000000 " +string.format("%0#-+20.6f", 1) == "+1.000000 " +string.format("%0#-+20.6f", -1) == "-1.000000 " +string.format("%0#-+20.6f", 2) == "+2.000000 " +string.format("%0#-+20.6f", -2) == "-2.000000 " +string.format("%0#-+20.6f", 3) == "+3.000000 " +string.format("%0#-+20.6f", -3) == "-3.000000 " +string.format("%0#-+20.6f", nan) == "+nan " +string.format("%0#-+20.6f", inf) == "+inf " +string.format("%0#-+20.6f", -inf) == "-inf " +string.format("%0#-+20.6f", 100) == "+100.000000 " +string.format("%0#-+20.6f", 10000) == "+10000.000000 " +string.format("%0#-+20.6f", 100000) == "+100000.000000 " +string.format("%0#-+20.6f", 1000000) == "+1000000.000000 " +string.format("%0#-+20.6f", 10000000) == "+10000000.000000 " +string.format("%0#-+20.6f", 0.01) == "+0.010000 " +string.format("%0#-+20.6f", 0.0001) == "+0.000100 " +string.format("%0#-+20.6f", 1e-05) == "+0.000010 " +string.format("%0#-+20.6f", 1e-06) == "+0.000001 " +string.format("%0#-+20.6f", 1e-07) == "+0.000000 " +string.format("%0#-+20.6f", 123.456) == "+123.456000 " +string.format("%0#-+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%0#-+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%0#-+20.6f", 123.456789123) == "+123.456789 " +string.format("%0#-+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%0#-+20.6f", 1.23456789123e-05) == "+0.000012 " +string.format("%0# f", 0) == " 0.000000" +string.format("%0# f", 1) == " 1.000000" +string.format("%0# f", -1) == "-1.000000" +string.format("%0# f", 2) == " 2.000000" +string.format("%0# f", -2) == "-2.000000" +string.format("%0# f", 3) == " 3.000000" +string.format("%0# f", -3) == "-3.000000" +string.format("%0# f", nan) == " nan" +string.format("%0# f", inf) == " inf" +string.format("%0# f", -inf) == "-inf" +string.format("%0# f", 100) == " 100.000000" +string.format("%0# f", 10000) == " 10000.000000" +string.format("%0# f", 100000) == " 100000.000000" +string.format("%0# f", 1000000) == " 1000000.000000" +string.format("%0# f", 10000000) == " 10000000.000000" +string.format("%0# f", 0.01) == " 0.010000" +string.format("%0# f", 0.0001) == " 0.000100" +string.format("%0# f", 1e-05) == " 0.000010" +string.format("%0# f", 1e-06) == " 0.000001" +string.format("%0# f", 1e-07) == " 0.000000" +string.format("%0# f", 123.456) == " 123.456000" +string.format("%0# f", 1234560000) == " 1234560000.000000" +string.format("%0# f", 1.23456e-05) == " 0.000012" +string.format("%0# f", 123.456789123) == " 123.456789" +string.format("%0# f", 1234567891.23) == " 1234567891.230000" +string.format("%0# f", 1.23456789123e-05) == " 0.000012" +string.format("%0# .0f", 0) == " 0." +string.format("%0# .0f", 1) == " 1." +string.format("%0# .0f", -1) == "-1." +string.format("%0# .0f", 2) == " 2." +string.format("%0# .0f", -2) == "-2." +string.format("%0# .0f", 3) == " 3." +string.format("%0# .0f", -3) == "-3." +string.format("%0# .0f", 100) == " 100." +string.format("%0# .0f", 10000) == " 10000." +string.format("%0# .0f", 100000) == " 100000." +string.format("%0# .0f", 1000000) == " 1000000." +string.format("%0# .0f", 10000000) == " 10000000." +string.format("%0# .0f", 0.01) == " 0." +string.format("%0# .0f", 0.0001) == " 0." +string.format("%0# .0f", 1e-05) == " 0." +string.format("%0# .0f", 1e-06) == " 0." +string.format("%0# .0f", 1e-07) == " 0." +string.format("%0# .0f", 123.456) == " 123." +string.format("%0# .0f", 1234560000) == " 1234560000." +string.format("%0# .0f", 1.23456e-05) == " 0." +string.format("%0# .0f", 123.456789123) == " 123." +string.format("%0# .0f", 1234567891.23) == " 1234567891." +string.format("%0# .0f", 1.23456789123e-05) == " 0." +string.format("%0# .1f", 0) == " 0.0" +string.format("%0# .1f", 1) == " 1.0" +string.format("%0# .1f", -1) == "-1.0" +string.format("%0# .1f", 2) == " 2.0" +string.format("%0# .1f", -2) == "-2.0" +string.format("%0# .1f", 3) == " 3.0" +string.format("%0# .1f", -3) == "-3.0" +string.format("%0# .1f", 100) == " 100.0" +string.format("%0# .1f", 10000) == " 10000.0" +string.format("%0# .1f", 100000) == " 100000.0" +string.format("%0# .1f", 1000000) == " 1000000.0" +string.format("%0# .1f", 10000000) == " 10000000.0" +string.format("%0# .1f", 0.01) == " 0.0" +string.format("%0# .1f", 0.0001) == " 0.0" +string.format("%0# .1f", 1e-05) == " 0.0" +string.format("%0# .1f", 1e-06) == " 0.0" +string.format("%0# .1f", 1e-07) == " 0.0" +string.format("%0# .1f", 123.456) == " 123.5" +string.format("%0# .1f", 1234560000) == " 1234560000.0" +string.format("%0# .1f", 1.23456e-05) == " 0.0" +string.format("%0# .1f", 123.456789123) == " 123.5" +string.format("%0# .1f", 1234567891.23) == " 1234567891.2" +string.format("%0# .1f", 1.23456789123e-05) == " 0.0" +string.format("%0# 1.0f", 0) == " 0." +string.format("%0# 1.0f", 1) == " 1." +string.format("%0# 1.0f", -1) == "-1." +string.format("%0# 1.0f", 2) == " 2." +string.format("%0# 1.0f", -2) == "-2." +string.format("%0# 1.0f", 3) == " 3." +string.format("%0# 1.0f", -3) == "-3." +string.format("%0# 1.0f", 100) == " 100." +string.format("%0# 1.0f", 10000) == " 10000." +string.format("%0# 1.0f", 100000) == " 100000." +string.format("%0# 1.0f", 1000000) == " 1000000." +string.format("%0# 1.0f", 10000000) == " 10000000." +string.format("%0# 1.0f", 0.01) == " 0." +string.format("%0# 1.0f", 0.0001) == " 0." +string.format("%0# 1.0f", 1e-05) == " 0." +string.format("%0# 1.0f", 1e-06) == " 0." +string.format("%0# 1.0f", 1e-07) == " 0." +string.format("%0# 1.0f", 123.456) == " 123." +string.format("%0# 1.0f", 1234560000) == " 1234560000." +string.format("%0# 1.0f", 1.23456e-05) == " 0." +string.format("%0# 1.0f", 123.456789123) == " 123." +string.format("%0# 1.0f", 1234567891.23) == " 1234567891." +string.format("%0# 1.0f", 1.23456789123e-05) == " 0." +string.format("%0# 1.1f", 0) == " 0.0" +string.format("%0# 1.1f", 1) == " 1.0" +string.format("%0# 1.1f", -1) == "-1.0" +string.format("%0# 1.1f", 2) == " 2.0" +string.format("%0# 1.1f", -2) == "-2.0" +string.format("%0# 1.1f", 3) == " 3.0" +string.format("%0# 1.1f", -3) == "-3.0" +string.format("%0# 1.1f", 100) == " 100.0" +string.format("%0# 1.1f", 10000) == " 10000.0" +string.format("%0# 1.1f", 100000) == " 100000.0" +string.format("%0# 1.1f", 1000000) == " 1000000.0" +string.format("%0# 1.1f", 10000000) == " 10000000.0" +string.format("%0# 1.1f", 0.01) == " 0.0" +string.format("%0# 1.1f", 0.0001) == " 0.0" +string.format("%0# 1.1f", 1e-05) == " 0.0" +string.format("%0# 1.1f", 1e-06) == " 0.0" +string.format("%0# 1.1f", 1e-07) == " 0.0" +string.format("%0# 1.1f", 123.456) == " 123.5" +string.format("%0# 1.1f", 1234560000) == " 1234560000.0" +string.format("%0# 1.1f", 1.23456e-05) == " 0.0" +string.format("%0# 1.1f", 123.456789123) == " 123.5" +string.format("%0# 1.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# 1.1f", 1.23456789123e-05) == " 0.0" +string.format("%0# 2.0f", 0) == " 0." +string.format("%0# 2.0f", 1) == " 1." +string.format("%0# 2.0f", -1) == "-1." +string.format("%0# 2.0f", 2) == " 2." +string.format("%0# 2.0f", -2) == "-2." +string.format("%0# 2.0f", 3) == " 3." +string.format("%0# 2.0f", -3) == "-3." +string.format("%0# 2.0f", 100) == " 100." +string.format("%0# 2.0f", 10000) == " 10000." +string.format("%0# 2.0f", 100000) == " 100000." +string.format("%0# 2.0f", 1000000) == " 1000000." +string.format("%0# 2.0f", 10000000) == " 10000000." +string.format("%0# 2.0f", 0.01) == " 0." +string.format("%0# 2.0f", 0.0001) == " 0." +string.format("%0# 2.0f", 1e-05) == " 0." +string.format("%0# 2.0f", 1e-06) == " 0." +string.format("%0# 2.0f", 1e-07) == " 0." +string.format("%0# 2.0f", 123.456) == " 123." +string.format("%0# 2.0f", 1234560000) == " 1234560000." +string.format("%0# 2.0f", 1.23456e-05) == " 0." +string.format("%0# 2.0f", 123.456789123) == " 123." +string.format("%0# 2.0f", 1234567891.23) == " 1234567891." +string.format("%0# 2.0f", 1.23456789123e-05) == " 0." +string.format("%0# 2.1f", 0) == " 0.0" +string.format("%0# 2.1f", 1) == " 1.0" +string.format("%0# 2.1f", -1) == "-1.0" +string.format("%0# 2.1f", 2) == " 2.0" +string.format("%0# 2.1f", -2) == "-2.0" +string.format("%0# 2.1f", 3) == " 3.0" +string.format("%0# 2.1f", -3) == "-3.0" +string.format("%0# 2.1f", 100) == " 100.0" +string.format("%0# 2.1f", 10000) == " 10000.0" +string.format("%0# 2.1f", 100000) == " 100000.0" +string.format("%0# 2.1f", 1000000) == " 1000000.0" +string.format("%0# 2.1f", 10000000) == " 10000000.0" +string.format("%0# 2.1f", 0.01) == " 0.0" +string.format("%0# 2.1f", 0.0001) == " 0.0" +string.format("%0# 2.1f", 1e-05) == " 0.0" +string.format("%0# 2.1f", 1e-06) == " 0.0" +string.format("%0# 2.1f", 1e-07) == " 0.0" +string.format("%0# 2.1f", 123.456) == " 123.5" +string.format("%0# 2.1f", 1234560000) == " 1234560000.0" +string.format("%0# 2.1f", 1.23456e-05) == " 0.0" +string.format("%0# 2.1f", 123.456789123) == " 123.5" +string.format("%0# 2.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# 2.1f", 1.23456789123e-05) == " 0.0" +string.format("%0# 6f", nan) == " nan" +string.format("%0# 6f", inf) == " inf" +string.format("%0# 6f", -inf) == " -inf" +string.format("%0# 6.0f", 0) == " 0000." +string.format("%0# 6.0f", 1) == " 0001." +string.format("%0# 6.0f", -1) == "-0001." +string.format("%0# 6.0f", 2) == " 0002." +string.format("%0# 6.0f", -2) == "-0002." +string.format("%0# 6.0f", 3) == " 0003." +string.format("%0# 6.0f", -3) == "-0003." +string.format("%0# 6.0f", nan) == " nan" +string.format("%0# 6.0f", inf) == " inf" +string.format("%0# 6.0f", -inf) == " -inf" +string.format("%0# 6.0f", 100) == " 0100." +string.format("%0# 6.0f", 10000) == " 10000." +string.format("%0# 6.0f", 100000) == " 100000." +string.format("%0# 6.0f", 1000000) == " 1000000." +string.format("%0# 6.0f", 10000000) == " 10000000." +string.format("%0# 6.0f", 0.01) == " 0000." +string.format("%0# 6.0f", 0.0001) == " 0000." +string.format("%0# 6.0f", 1e-05) == " 0000." +string.format("%0# 6.0f", 1e-06) == " 0000." +string.format("%0# 6.0f", 1e-07) == " 0000." +string.format("%0# 6.0f", 123.456) == " 0123." +string.format("%0# 6.0f", 1234560000) == " 1234560000." +string.format("%0# 6.0f", 1.23456e-05) == " 0000." +string.format("%0# 6.0f", 123.456789123) == " 0123." +string.format("%0# 6.0f", 1234567891.23) == " 1234567891." +string.format("%0# 6.0f", 1.23456789123e-05) == " 0000." +string.format("%0# 6.1f", 0) == " 000.0" +string.format("%0# 6.1f", 1) == " 001.0" +string.format("%0# 6.1f", -1) == "-001.0" +string.format("%0# 6.1f", 2) == " 002.0" +string.format("%0# 6.1f", -2) == "-002.0" +string.format("%0# 6.1f", 3) == " 003.0" +string.format("%0# 6.1f", -3) == "-003.0" +string.format("%0# 6.1f", nan) == " nan" +string.format("%0# 6.1f", inf) == " inf" +string.format("%0# 6.1f", -inf) == " -inf" +string.format("%0# 6.1f", 100) == " 100.0" +string.format("%0# 6.1f", 10000) == " 10000.0" +string.format("%0# 6.1f", 100000) == " 100000.0" +string.format("%0# 6.1f", 1000000) == " 1000000.0" +string.format("%0# 6.1f", 10000000) == " 10000000.0" +string.format("%0# 6.1f", 0.01) == " 000.0" +string.format("%0# 6.1f", 0.0001) == " 000.0" +string.format("%0# 6.1f", 1e-05) == " 000.0" +string.format("%0# 6.1f", 1e-06) == " 000.0" +string.format("%0# 6.1f", 1e-07) == " 000.0" +string.format("%0# 6.1f", 123.456) == " 123.5" +string.format("%0# 6.1f", 1234560000) == " 1234560000.0" +string.format("%0# 6.1f", 1.23456e-05) == " 000.0" +string.format("%0# 6.1f", 123.456789123) == " 123.5" +string.format("%0# 6.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# 6.1f", 1.23456789123e-05) == " 000.0" +string.format("%0# 6.6f", nan) == " nan" +string.format("%0# 6.6f", inf) == " inf" +string.format("%0# 6.6f", -inf) == " -inf" +string.format("%0# 20f", 0) == " 000000000000.000000" +string.format("%0# 20f", 1) == " 000000000001.000000" +string.format("%0# 20f", -1) == "-000000000001.000000" +string.format("%0# 20f", 2) == " 000000000002.000000" +string.format("%0# 20f", -2) == "-000000000002.000000" +string.format("%0# 20f", 3) == " 000000000003.000000" +string.format("%0# 20f", -3) == "-000000000003.000000" +string.format("%0# 20f", nan) == " nan" +string.format("%0# 20f", inf) == " inf" +string.format("%0# 20f", -inf) == " -inf" +string.format("%0# 20f", 100) == " 000000000100.000000" +string.format("%0# 20f", 10000) == " 000000010000.000000" +string.format("%0# 20f", 100000) == " 000000100000.000000" +string.format("%0# 20f", 1000000) == " 000001000000.000000" +string.format("%0# 20f", 10000000) == " 000010000000.000000" +string.format("%0# 20f", 0.01) == " 000000000000.010000" +string.format("%0# 20f", 0.0001) == " 000000000000.000100" +string.format("%0# 20f", 1e-05) == " 000000000000.000010" +string.format("%0# 20f", 1e-06) == " 000000000000.000001" +string.format("%0# 20f", 1e-07) == " 000000000000.000000" +string.format("%0# 20f", 123.456) == " 000000000123.456000" +string.format("%0# 20f", 1234560000) == " 001234560000.000000" +string.format("%0# 20f", 1.23456e-05) == " 000000000000.000012" +string.format("%0# 20f", 123.456789123) == " 000000000123.456789" +string.format("%0# 20f", 1234567891.23) == " 001234567891.230000" +string.format("%0# 20f", 1.23456789123e-05) == " 000000000000.000012" +string.format("%0# 20.0f", 0) == " 000000000000000000." +string.format("%0# 20.0f", 1) == " 000000000000000001." +string.format("%0# 20.0f", -1) == "-000000000000000001." +string.format("%0# 20.0f", 2) == " 000000000000000002." +string.format("%0# 20.0f", -2) == "-000000000000000002." +string.format("%0# 20.0f", 3) == " 000000000000000003." +string.format("%0# 20.0f", -3) == "-000000000000000003." +string.format("%0# 20.0f", nan) == " nan" +string.format("%0# 20.0f", inf) == " inf" +string.format("%0# 20.0f", -inf) == " -inf" +string.format("%0# 20.0f", 100) == " 000000000000000100." +string.format("%0# 20.0f", 10000) == " 000000000000010000." +string.format("%0# 20.0f", 100000) == " 000000000000100000." +string.format("%0# 20.0f", 1000000) == " 000000000001000000." +string.format("%0# 20.0f", 10000000) == " 000000000010000000." +string.format("%0# 20.0f", 0.01) == " 000000000000000000." +string.format("%0# 20.0f", 0.0001) == " 000000000000000000." +string.format("%0# 20.0f", 1e-05) == " 000000000000000000." +string.format("%0# 20.0f", 1e-06) == " 000000000000000000." +string.format("%0# 20.0f", 1e-07) == " 000000000000000000." +string.format("%0# 20.0f", 123.456) == " 000000000000000123." +string.format("%0# 20.0f", 1234560000) == " 000000001234560000." +string.format("%0# 20.0f", 1.23456e-05) == " 000000000000000000." +string.format("%0# 20.0f", 123.456789123) == " 000000000000000123." +string.format("%0# 20.0f", 1234567891.23) == " 000000001234567891." +string.format("%0# 20.0f", 1.23456789123e-05) == " 000000000000000000." +string.format("%0# 20.1f", 0) == " 00000000000000000.0" +string.format("%0# 20.1f", 1) == " 00000000000000001.0" +string.format("%0# 20.1f", -1) == "-00000000000000001.0" +string.format("%0# 20.1f", 2) == " 00000000000000002.0" +string.format("%0# 20.1f", -2) == "-00000000000000002.0" +string.format("%0# 20.1f", 3) == " 00000000000000003.0" +string.format("%0# 20.1f", -3) == "-00000000000000003.0" +string.format("%0# 20.1f", nan) == " nan" +string.format("%0# 20.1f", inf) == " inf" +string.format("%0# 20.1f", -inf) == " -inf" +string.format("%0# 20.1f", 100) == " 00000000000000100.0" +string.format("%0# 20.1f", 10000) == " 00000000000010000.0" +string.format("%0# 20.1f", 100000) == " 00000000000100000.0" +string.format("%0# 20.1f", 1000000) == " 00000000001000000.0" +string.format("%0# 20.1f", 10000000) == " 00000000010000000.0" +string.format("%0# 20.1f", 0.01) == " 00000000000000000.0" +string.format("%0# 20.1f", 0.0001) == " 00000000000000000.0" +string.format("%0# 20.1f", 1e-05) == " 00000000000000000.0" +string.format("%0# 20.1f", 1e-06) == " 00000000000000000.0" +string.format("%0# 20.1f", 1e-07) == " 00000000000000000.0" +string.format("%0# 20.1f", 123.456) == " 00000000000000123.5" +string.format("%0# 20.1f", 1234560000) == " 00000001234560000.0" +string.format("%0# 20.1f", 1.23456e-05) == " 00000000000000000.0" +string.format("%0# 20.1f", 123.456789123) == " 00000000000000123.5" +string.format("%0# 20.1f", 1234567891.23) == " 00000001234567891.2" +string.format("%0# 20.1f", 1.23456789123e-05) == " 00000000000000000.0" +string.format("%0# 20.6f", 0) == " 000000000000.000000" +string.format("%0# 20.6f", 1) == " 000000000001.000000" +string.format("%0# 20.6f", -1) == "-000000000001.000000" +string.format("%0# 20.6f", 2) == " 000000000002.000000" +string.format("%0# 20.6f", -2) == "-000000000002.000000" +string.format("%0# 20.6f", 3) == " 000000000003.000000" +string.format("%0# 20.6f", -3) == "-000000000003.000000" +string.format("%0# 20.6f", nan) == " nan" +string.format("%0# 20.6f", inf) == " inf" +string.format("%0# 20.6f", -inf) == " -inf" +string.format("%0# 20.6f", 100) == " 000000000100.000000" +string.format("%0# 20.6f", 10000) == " 000000010000.000000" +string.format("%0# 20.6f", 100000) == " 000000100000.000000" +string.format("%0# 20.6f", 1000000) == " 000001000000.000000" +string.format("%0# 20.6f", 10000000) == " 000010000000.000000" +string.format("%0# 20.6f", 0.01) == " 000000000000.010000" +string.format("%0# 20.6f", 0.0001) == " 000000000000.000100" +string.format("%0# 20.6f", 1e-05) == " 000000000000.000010" +string.format("%0# 20.6f", 1e-06) == " 000000000000.000001" +string.format("%0# 20.6f", 1e-07) == " 000000000000.000000" +string.format("%0# 20.6f", 123.456) == " 000000000123.456000" +string.format("%0# 20.6f", 1234560000) == " 001234560000.000000" +string.format("%0# 20.6f", 1.23456e-05) == " 000000000000.000012" +string.format("%0# 20.6f", 123.456789123) == " 000000000123.456789" +string.format("%0# 20.6f", 1234567891.23) == " 001234567891.230000" +string.format("%0# 20.6f", 1.23456789123e-05) == " 000000000000.000012" +string.format("%0# +f", 0) == "+0.000000" +string.format("%0# +f", 1) == "+1.000000" +string.format("%0# +f", -1) == "-1.000000" +string.format("%0# +f", 2) == "+2.000000" +string.format("%0# +f", -2) == "-2.000000" +string.format("%0# +f", 3) == "+3.000000" +string.format("%0# +f", -3) == "-3.000000" +string.format("%0# +f", nan) == "+nan" +string.format("%0# +f", inf) == "+inf" +string.format("%0# +f", -inf) == "-inf" +string.format("%0# +f", 100) == "+100.000000" +string.format("%0# +f", 10000) == "+10000.000000" +string.format("%0# +f", 100000) == "+100000.000000" +string.format("%0# +f", 1000000) == "+1000000.000000" +string.format("%0# +f", 10000000) == "+10000000.000000" +string.format("%0# +f", 0.01) == "+0.010000" +string.format("%0# +f", 0.0001) == "+0.000100" +string.format("%0# +f", 1e-05) == "+0.000010" +string.format("%0# +f", 1e-06) == "+0.000001" +string.format("%0# +f", 1e-07) == "+0.000000" +string.format("%0# +f", 123.456) == "+123.456000" +string.format("%0# +f", 1234560000) == "+1234560000.000000" +string.format("%0# +f", 1.23456e-05) == "+0.000012" +string.format("%0# +f", 123.456789123) == "+123.456789" +string.format("%0# +f", 1234567891.23) == "+1234567891.230000" +string.format("%0# +f", 1.23456789123e-05) == "+0.000012" +string.format("%0# +.0f", 0) == "+0." +string.format("%0# +.0f", 1) == "+1." +string.format("%0# +.0f", -1) == "-1." +string.format("%0# +.0f", 2) == "+2." +string.format("%0# +.0f", -2) == "-2." +string.format("%0# +.0f", 3) == "+3." +string.format("%0# +.0f", -3) == "-3." +string.format("%0# +.0f", 100) == "+100." +string.format("%0# +.0f", 10000) == "+10000." +string.format("%0# +.0f", 100000) == "+100000." +string.format("%0# +.0f", 1000000) == "+1000000." +string.format("%0# +.0f", 10000000) == "+10000000." +string.format("%0# +.0f", 0.01) == "+0." +string.format("%0# +.0f", 0.0001) == "+0." +string.format("%0# +.0f", 1e-05) == "+0." +string.format("%0# +.0f", 1e-06) == "+0." +string.format("%0# +.0f", 1e-07) == "+0." +string.format("%0# +.0f", 123.456) == "+123." +string.format("%0# +.0f", 1234560000) == "+1234560000." +string.format("%0# +.0f", 1.23456e-05) == "+0." +string.format("%0# +.0f", 123.456789123) == "+123." +string.format("%0# +.0f", 1234567891.23) == "+1234567891." +string.format("%0# +.0f", 1.23456789123e-05) == "+0." +string.format("%0# +.1f", 0) == "+0.0" +string.format("%0# +.1f", 1) == "+1.0" +string.format("%0# +.1f", -1) == "-1.0" +string.format("%0# +.1f", 2) == "+2.0" +string.format("%0# +.1f", -2) == "-2.0" +string.format("%0# +.1f", 3) == "+3.0" +string.format("%0# +.1f", -3) == "-3.0" +string.format("%0# +.1f", 100) == "+100.0" +string.format("%0# +.1f", 10000) == "+10000.0" +string.format("%0# +.1f", 100000) == "+100000.0" +string.format("%0# +.1f", 1000000) == "+1000000.0" +string.format("%0# +.1f", 10000000) == "+10000000.0" +string.format("%0# +.1f", 0.01) == "+0.0" +string.format("%0# +.1f", 0.0001) == "+0.0" +string.format("%0# +.1f", 1e-05) == "+0.0" +string.format("%0# +.1f", 1e-06) == "+0.0" +string.format("%0# +.1f", 1e-07) == "+0.0" +string.format("%0# +.1f", 123.456) == "+123.5" +string.format("%0# +.1f", 1234560000) == "+1234560000.0" +string.format("%0# +.1f", 1.23456e-05) == "+0.0" +string.format("%0# +.1f", 123.456789123) == "+123.5" +string.format("%0# +.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# +.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# +1.0f", 0) == "+0." +string.format("%0# +1.0f", 1) == "+1." +string.format("%0# +1.0f", -1) == "-1." +string.format("%0# +1.0f", 2) == "+2." +string.format("%0# +1.0f", -2) == "-2." +string.format("%0# +1.0f", 3) == "+3." +string.format("%0# +1.0f", -3) == "-3." +string.format("%0# +1.0f", 100) == "+100." +string.format("%0# +1.0f", 10000) == "+10000." +string.format("%0# +1.0f", 100000) == "+100000." +string.format("%0# +1.0f", 1000000) == "+1000000." +string.format("%0# +1.0f", 10000000) == "+10000000." +string.format("%0# +1.0f", 0.01) == "+0." +string.format("%0# +1.0f", 0.0001) == "+0." +string.format("%0# +1.0f", 1e-05) == "+0." +string.format("%0# +1.0f", 1e-06) == "+0." +string.format("%0# +1.0f", 1e-07) == "+0." +string.format("%0# +1.0f", 123.456) == "+123." +string.format("%0# +1.0f", 1234560000) == "+1234560000." +string.format("%0# +1.0f", 1.23456e-05) == "+0." +string.format("%0# +1.0f", 123.456789123) == "+123." +string.format("%0# +1.0f", 1234567891.23) == "+1234567891." +string.format("%0# +1.0f", 1.23456789123e-05) == "+0." +string.format("%0# +1.1f", 0) == "+0.0" +string.format("%0# +1.1f", 1) == "+1.0" +string.format("%0# +1.1f", -1) == "-1.0" +string.format("%0# +1.1f", 2) == "+2.0" +string.format("%0# +1.1f", -2) == "-2.0" +string.format("%0# +1.1f", 3) == "+3.0" +string.format("%0# +1.1f", -3) == "-3.0" +string.format("%0# +1.1f", 100) == "+100.0" +string.format("%0# +1.1f", 10000) == "+10000.0" +string.format("%0# +1.1f", 100000) == "+100000.0" +string.format("%0# +1.1f", 1000000) == "+1000000.0" +string.format("%0# +1.1f", 10000000) == "+10000000.0" +string.format("%0# +1.1f", 0.01) == "+0.0" +string.format("%0# +1.1f", 0.0001) == "+0.0" +string.format("%0# +1.1f", 1e-05) == "+0.0" +string.format("%0# +1.1f", 1e-06) == "+0.0" +string.format("%0# +1.1f", 1e-07) == "+0.0" +string.format("%0# +1.1f", 123.456) == "+123.5" +string.format("%0# +1.1f", 1234560000) == "+1234560000.0" +string.format("%0# +1.1f", 1.23456e-05) == "+0.0" +string.format("%0# +1.1f", 123.456789123) == "+123.5" +string.format("%0# +1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# +1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# +2.0f", 0) == "+0." +string.format("%0# +2.0f", 1) == "+1." +string.format("%0# +2.0f", -1) == "-1." +string.format("%0# +2.0f", 2) == "+2." +string.format("%0# +2.0f", -2) == "-2." +string.format("%0# +2.0f", 3) == "+3." +string.format("%0# +2.0f", -3) == "-3." +string.format("%0# +2.0f", 100) == "+100." +string.format("%0# +2.0f", 10000) == "+10000." +string.format("%0# +2.0f", 100000) == "+100000." +string.format("%0# +2.0f", 1000000) == "+1000000." +string.format("%0# +2.0f", 10000000) == "+10000000." +string.format("%0# +2.0f", 0.01) == "+0." +string.format("%0# +2.0f", 0.0001) == "+0." +string.format("%0# +2.0f", 1e-05) == "+0." +string.format("%0# +2.0f", 1e-06) == "+0." +string.format("%0# +2.0f", 1e-07) == "+0." +string.format("%0# +2.0f", 123.456) == "+123." +string.format("%0# +2.0f", 1234560000) == "+1234560000." +string.format("%0# +2.0f", 1.23456e-05) == "+0." +string.format("%0# +2.0f", 123.456789123) == "+123." +string.format("%0# +2.0f", 1234567891.23) == "+1234567891." +string.format("%0# +2.0f", 1.23456789123e-05) == "+0." +string.format("%0# +2.1f", 0) == "+0.0" +string.format("%0# +2.1f", 1) == "+1.0" +string.format("%0# +2.1f", -1) == "-1.0" +string.format("%0# +2.1f", 2) == "+2.0" +string.format("%0# +2.1f", -2) == "-2.0" +string.format("%0# +2.1f", 3) == "+3.0" +string.format("%0# +2.1f", -3) == "-3.0" +string.format("%0# +2.1f", 100) == "+100.0" +string.format("%0# +2.1f", 10000) == "+10000.0" +string.format("%0# +2.1f", 100000) == "+100000.0" +string.format("%0# +2.1f", 1000000) == "+1000000.0" +string.format("%0# +2.1f", 10000000) == "+10000000.0" +string.format("%0# +2.1f", 0.01) == "+0.0" +string.format("%0# +2.1f", 0.0001) == "+0.0" +string.format("%0# +2.1f", 1e-05) == "+0.0" +string.format("%0# +2.1f", 1e-06) == "+0.0" +string.format("%0# +2.1f", 1e-07) == "+0.0" +string.format("%0# +2.1f", 123.456) == "+123.5" +string.format("%0# +2.1f", 1234560000) == "+1234560000.0" +string.format("%0# +2.1f", 1.23456e-05) == "+0.0" +string.format("%0# +2.1f", 123.456789123) == "+123.5" +string.format("%0# +2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# +2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# +6f", nan) == " +nan" +string.format("%0# +6f", inf) == " +inf" +string.format("%0# +6f", -inf) == " -inf" +string.format("%0# +6.0f", 0) == "+0000." +string.format("%0# +6.0f", 1) == "+0001." +string.format("%0# +6.0f", -1) == "-0001." +string.format("%0# +6.0f", 2) == "+0002." +string.format("%0# +6.0f", -2) == "-0002." +string.format("%0# +6.0f", 3) == "+0003." +string.format("%0# +6.0f", -3) == "-0003." +string.format("%0# +6.0f", nan) == " +nan" +string.format("%0# +6.0f", inf) == " +inf" +string.format("%0# +6.0f", -inf) == " -inf" +string.format("%0# +6.0f", 100) == "+0100." +string.format("%0# +6.0f", 10000) == "+10000." +string.format("%0# +6.0f", 100000) == "+100000." +string.format("%0# +6.0f", 1000000) == "+1000000." +string.format("%0# +6.0f", 10000000) == "+10000000." +string.format("%0# +6.0f", 0.01) == "+0000." +string.format("%0# +6.0f", 0.0001) == "+0000." +string.format("%0# +6.0f", 1e-05) == "+0000." +string.format("%0# +6.0f", 1e-06) == "+0000." +string.format("%0# +6.0f", 1e-07) == "+0000." +string.format("%0# +6.0f", 123.456) == "+0123." +string.format("%0# +6.0f", 1234560000) == "+1234560000." +string.format("%0# +6.0f", 1.23456e-05) == "+0000." +string.format("%0# +6.0f", 123.456789123) == "+0123." +string.format("%0# +6.0f", 1234567891.23) == "+1234567891." +string.format("%0# +6.0f", 1.23456789123e-05) == "+0000." +string.format("%0# +6.1f", 0) == "+000.0" +string.format("%0# +6.1f", 1) == "+001.0" +string.format("%0# +6.1f", -1) == "-001.0" +string.format("%0# +6.1f", 2) == "+002.0" +string.format("%0# +6.1f", -2) == "-002.0" +string.format("%0# +6.1f", 3) == "+003.0" +string.format("%0# +6.1f", -3) == "-003.0" +string.format("%0# +6.1f", nan) == " +nan" +string.format("%0# +6.1f", inf) == " +inf" +string.format("%0# +6.1f", -inf) == " -inf" +string.format("%0# +6.1f", 100) == "+100.0" +string.format("%0# +6.1f", 10000) == "+10000.0" +string.format("%0# +6.1f", 100000) == "+100000.0" +string.format("%0# +6.1f", 1000000) == "+1000000.0" +string.format("%0# +6.1f", 10000000) == "+10000000.0" +string.format("%0# +6.1f", 0.01) == "+000.0" +string.format("%0# +6.1f", 0.0001) == "+000.0" +string.format("%0# +6.1f", 1e-05) == "+000.0" +string.format("%0# +6.1f", 1e-06) == "+000.0" +string.format("%0# +6.1f", 1e-07) == "+000.0" +string.format("%0# +6.1f", 123.456) == "+123.5" +string.format("%0# +6.1f", 1234560000) == "+1234560000.0" +string.format("%0# +6.1f", 1.23456e-05) == "+000.0" +string.format("%0# +6.1f", 123.456789123) == "+123.5" +string.format("%0# +6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# +6.1f", 1.23456789123e-05) == "+000.0" +string.format("%0# +6.6f", nan) == " +nan" +string.format("%0# +6.6f", inf) == " +inf" +string.format("%0# +6.6f", -inf) == " -inf" +string.format("%0# +20f", 0) == "+000000000000.000000" +string.format("%0# +20f", 1) == "+000000000001.000000" +string.format("%0# +20f", -1) == "-000000000001.000000" +string.format("%0# +20f", 2) == "+000000000002.000000" +string.format("%0# +20f", -2) == "-000000000002.000000" +string.format("%0# +20f", 3) == "+000000000003.000000" +string.format("%0# +20f", -3) == "-000000000003.000000" +string.format("%0# +20f", nan) == " +nan" +string.format("%0# +20f", inf) == " +inf" +string.format("%0# +20f", -inf) == " -inf" +string.format("%0# +20f", 100) == "+000000000100.000000" +string.format("%0# +20f", 10000) == "+000000010000.000000" +string.format("%0# +20f", 100000) == "+000000100000.000000" +string.format("%0# +20f", 1000000) == "+000001000000.000000" +string.format("%0# +20f", 10000000) == "+000010000000.000000" +string.format("%0# +20f", 0.01) == "+000000000000.010000" +string.format("%0# +20f", 0.0001) == "+000000000000.000100" +string.format("%0# +20f", 1e-05) == "+000000000000.000010" +string.format("%0# +20f", 1e-06) == "+000000000000.000001" +string.format("%0# +20f", 1e-07) == "+000000000000.000000" +string.format("%0# +20f", 123.456) == "+000000000123.456000" +string.format("%0# +20f", 1234560000) == "+001234560000.000000" +string.format("%0# +20f", 1.23456e-05) == "+000000000000.000012" +string.format("%0# +20f", 123.456789123) == "+000000000123.456789" +string.format("%0# +20f", 1234567891.23) == "+001234567891.230000" +string.format("%0# +20f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0# +20.0f", 0) == "+000000000000000000." +string.format("%0# +20.0f", 1) == "+000000000000000001." +string.format("%0# +20.0f", -1) == "-000000000000000001." +string.format("%0# +20.0f", 2) == "+000000000000000002." +string.format("%0# +20.0f", -2) == "-000000000000000002." +string.format("%0# +20.0f", 3) == "+000000000000000003." +string.format("%0# +20.0f", -3) == "-000000000000000003." +string.format("%0# +20.0f", nan) == " +nan" +string.format("%0# +20.0f", inf) == " +inf" +string.format("%0# +20.0f", -inf) == " -inf" +string.format("%0# +20.0f", 100) == "+000000000000000100." +string.format("%0# +20.0f", 10000) == "+000000000000010000." +string.format("%0# +20.0f", 100000) == "+000000000000100000." +string.format("%0# +20.0f", 1000000) == "+000000000001000000." +string.format("%0# +20.0f", 10000000) == "+000000000010000000." +string.format("%0# +20.0f", 0.01) == "+000000000000000000." +string.format("%0# +20.0f", 0.0001) == "+000000000000000000." +string.format("%0# +20.0f", 1e-05) == "+000000000000000000." +string.format("%0# +20.0f", 1e-06) == "+000000000000000000." +string.format("%0# +20.0f", 1e-07) == "+000000000000000000." +string.format("%0# +20.0f", 123.456) == "+000000000000000123." +string.format("%0# +20.0f", 1234560000) == "+000000001234560000." +string.format("%0# +20.0f", 1.23456e-05) == "+000000000000000000." +string.format("%0# +20.0f", 123.456789123) == "+000000000000000123." +string.format("%0# +20.0f", 1234567891.23) == "+000000001234567891." +string.format("%0# +20.0f", 1.23456789123e-05) == "+000000000000000000." +string.format("%0# +20.1f", 0) == "+00000000000000000.0" +string.format("%0# +20.1f", 1) == "+00000000000000001.0" +string.format("%0# +20.1f", -1) == "-00000000000000001.0" +string.format("%0# +20.1f", 2) == "+00000000000000002.0" +string.format("%0# +20.1f", -2) == "-00000000000000002.0" +string.format("%0# +20.1f", 3) == "+00000000000000003.0" +string.format("%0# +20.1f", -3) == "-00000000000000003.0" +string.format("%0# +20.1f", nan) == " +nan" +string.format("%0# +20.1f", inf) == " +inf" +string.format("%0# +20.1f", -inf) == " -inf" +string.format("%0# +20.1f", 100) == "+00000000000000100.0" +string.format("%0# +20.1f", 10000) == "+00000000000010000.0" +string.format("%0# +20.1f", 100000) == "+00000000000100000.0" +string.format("%0# +20.1f", 1000000) == "+00000000001000000.0" +string.format("%0# +20.1f", 10000000) == "+00000000010000000.0" +string.format("%0# +20.1f", 0.01) == "+00000000000000000.0" +string.format("%0# +20.1f", 0.0001) == "+00000000000000000.0" +string.format("%0# +20.1f", 1e-05) == "+00000000000000000.0" +string.format("%0# +20.1f", 1e-06) == "+00000000000000000.0" +string.format("%0# +20.1f", 1e-07) == "+00000000000000000.0" +string.format("%0# +20.1f", 123.456) == "+00000000000000123.5" +string.format("%0# +20.1f", 1234560000) == "+00000001234560000.0" +string.format("%0# +20.1f", 1.23456e-05) == "+00000000000000000.0" +string.format("%0# +20.1f", 123.456789123) == "+00000000000000123.5" +string.format("%0# +20.1f", 1234567891.23) == "+00000001234567891.2" +string.format("%0# +20.1f", 1.23456789123e-05) == "+00000000000000000.0" +string.format("%0# +20.6f", 0) == "+000000000000.000000" +string.format("%0# +20.6f", 1) == "+000000000001.000000" +string.format("%0# +20.6f", -1) == "-000000000001.000000" +string.format("%0# +20.6f", 2) == "+000000000002.000000" +string.format("%0# +20.6f", -2) == "-000000000002.000000" +string.format("%0# +20.6f", 3) == "+000000000003.000000" +string.format("%0# +20.6f", -3) == "-000000000003.000000" +string.format("%0# +20.6f", nan) == " +nan" +string.format("%0# +20.6f", inf) == " +inf" +string.format("%0# +20.6f", -inf) == " -inf" +string.format("%0# +20.6f", 100) == "+000000000100.000000" +string.format("%0# +20.6f", 10000) == "+000000010000.000000" +string.format("%0# +20.6f", 100000) == "+000000100000.000000" +string.format("%0# +20.6f", 1000000) == "+000001000000.000000" +string.format("%0# +20.6f", 10000000) == "+000010000000.000000" +string.format("%0# +20.6f", 0.01) == "+000000000000.010000" +string.format("%0# +20.6f", 0.0001) == "+000000000000.000100" +string.format("%0# +20.6f", 1e-05) == "+000000000000.000010" +string.format("%0# +20.6f", 1e-06) == "+000000000000.000001" +string.format("%0# +20.6f", 1e-07) == "+000000000000.000000" +string.format("%0# +20.6f", 123.456) == "+000000000123.456000" +string.format("%0# +20.6f", 1234560000) == "+001234560000.000000" +string.format("%0# +20.6f", 1.23456e-05) == "+000000000000.000012" +string.format("%0# +20.6f", 123.456789123) == "+000000000123.456789" +string.format("%0# +20.6f", 1234567891.23) == "+001234567891.230000" +string.format("%0# +20.6f", 1.23456789123e-05) == "+000000000000.000012" +string.format("%0# -f", 0) == " 0.000000" +string.format("%0# -f", 1) == " 1.000000" +string.format("%0# -f", -1) == "-1.000000" +string.format("%0# -f", 2) == " 2.000000" +string.format("%0# -f", -2) == "-2.000000" +string.format("%0# -f", 3) == " 3.000000" +string.format("%0# -f", -3) == "-3.000000" +string.format("%0# -f", nan) == " nan" +string.format("%0# -f", inf) == " inf" +string.format("%0# -f", -inf) == "-inf" +string.format("%0# -f", 100) == " 100.000000" +string.format("%0# -f", 10000) == " 10000.000000" +string.format("%0# -f", 100000) == " 100000.000000" +string.format("%0# -f", 1000000) == " 1000000.000000" +string.format("%0# -f", 10000000) == " 10000000.000000" +string.format("%0# -f", 0.01) == " 0.010000" +string.format("%0# -f", 0.0001) == " 0.000100" +string.format("%0# -f", 1e-05) == " 0.000010" +string.format("%0# -f", 1e-06) == " 0.000001" +string.format("%0# -f", 1e-07) == " 0.000000" +string.format("%0# -f", 123.456) == " 123.456000" +string.format("%0# -f", 1234560000) == " 1234560000.000000" +string.format("%0# -f", 1.23456e-05) == " 0.000012" +string.format("%0# -f", 123.456789123) == " 123.456789" +string.format("%0# -f", 1234567891.23) == " 1234567891.230000" +string.format("%0# -f", 1.23456789123e-05) == " 0.000012" +string.format("%0# -.0f", 0) == " 0." +string.format("%0# -.0f", 1) == " 1." +string.format("%0# -.0f", -1) == "-1." +string.format("%0# -.0f", 2) == " 2." +string.format("%0# -.0f", -2) == "-2." +string.format("%0# -.0f", 3) == " 3." +string.format("%0# -.0f", -3) == "-3." +string.format("%0# -.0f", 100) == " 100." +string.format("%0# -.0f", 10000) == " 10000." +string.format("%0# -.0f", 100000) == " 100000." +string.format("%0# -.0f", 1000000) == " 1000000." +string.format("%0# -.0f", 10000000) == " 10000000." +string.format("%0# -.0f", 0.01) == " 0." +string.format("%0# -.0f", 0.0001) == " 0." +string.format("%0# -.0f", 1e-05) == " 0." +string.format("%0# -.0f", 1e-06) == " 0." +string.format("%0# -.0f", 1e-07) == " 0." +string.format("%0# -.0f", 123.456) == " 123." +string.format("%0# -.0f", 1234560000) == " 1234560000." +string.format("%0# -.0f", 1.23456e-05) == " 0." +string.format("%0# -.0f", 123.456789123) == " 123." +string.format("%0# -.0f", 1234567891.23) == " 1234567891." +string.format("%0# -.0f", 1.23456789123e-05) == " 0." +string.format("%0# -.1f", 0) == " 0.0" +string.format("%0# -.1f", 1) == " 1.0" +string.format("%0# -.1f", -1) == "-1.0" +string.format("%0# -.1f", 2) == " 2.0" +string.format("%0# -.1f", -2) == "-2.0" +string.format("%0# -.1f", 3) == " 3.0" +string.format("%0# -.1f", -3) == "-3.0" +string.format("%0# -.1f", 100) == " 100.0" +string.format("%0# -.1f", 10000) == " 10000.0" +string.format("%0# -.1f", 100000) == " 100000.0" +string.format("%0# -.1f", 1000000) == " 1000000.0" +string.format("%0# -.1f", 10000000) == " 10000000.0" +string.format("%0# -.1f", 0.01) == " 0.0" +string.format("%0# -.1f", 0.0001) == " 0.0" +string.format("%0# -.1f", 1e-05) == " 0.0" +string.format("%0# -.1f", 1e-06) == " 0.0" +string.format("%0# -.1f", 1e-07) == " 0.0" +string.format("%0# -.1f", 123.456) == " 123.5" +string.format("%0# -.1f", 1234560000) == " 1234560000.0" +string.format("%0# -.1f", 1.23456e-05) == " 0.0" +string.format("%0# -.1f", 123.456789123) == " 123.5" +string.format("%0# -.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# -.1f", 1.23456789123e-05) == " 0.0" +string.format("%0# -1.0f", 0) == " 0." +string.format("%0# -1.0f", 1) == " 1." +string.format("%0# -1.0f", -1) == "-1." +string.format("%0# -1.0f", 2) == " 2." +string.format("%0# -1.0f", -2) == "-2." +string.format("%0# -1.0f", 3) == " 3." +string.format("%0# -1.0f", -3) == "-3." +string.format("%0# -1.0f", 100) == " 100." +string.format("%0# -1.0f", 10000) == " 10000." +string.format("%0# -1.0f", 100000) == " 100000." +string.format("%0# -1.0f", 1000000) == " 1000000." +string.format("%0# -1.0f", 10000000) == " 10000000." +string.format("%0# -1.0f", 0.01) == " 0." +string.format("%0# -1.0f", 0.0001) == " 0." +string.format("%0# -1.0f", 1e-05) == " 0." +string.format("%0# -1.0f", 1e-06) == " 0." +string.format("%0# -1.0f", 1e-07) == " 0." +string.format("%0# -1.0f", 123.456) == " 123." +string.format("%0# -1.0f", 1234560000) == " 1234560000." +string.format("%0# -1.0f", 1.23456e-05) == " 0." +string.format("%0# -1.0f", 123.456789123) == " 123." +string.format("%0# -1.0f", 1234567891.23) == " 1234567891." +string.format("%0# -1.0f", 1.23456789123e-05) == " 0." +string.format("%0# -1.1f", 0) == " 0.0" +string.format("%0# -1.1f", 1) == " 1.0" +string.format("%0# -1.1f", -1) == "-1.0" +string.format("%0# -1.1f", 2) == " 2.0" +string.format("%0# -1.1f", -2) == "-2.0" +string.format("%0# -1.1f", 3) == " 3.0" +string.format("%0# -1.1f", -3) == "-3.0" +string.format("%0# -1.1f", 100) == " 100.0" +string.format("%0# -1.1f", 10000) == " 10000.0" +string.format("%0# -1.1f", 100000) == " 100000.0" +string.format("%0# -1.1f", 1000000) == " 1000000.0" +string.format("%0# -1.1f", 10000000) == " 10000000.0" +string.format("%0# -1.1f", 0.01) == " 0.0" +string.format("%0# -1.1f", 0.0001) == " 0.0" +string.format("%0# -1.1f", 1e-05) == " 0.0" +string.format("%0# -1.1f", 1e-06) == " 0.0" +string.format("%0# -1.1f", 1e-07) == " 0.0" +string.format("%0# -1.1f", 123.456) == " 123.5" +string.format("%0# -1.1f", 1234560000) == " 1234560000.0" +string.format("%0# -1.1f", 1.23456e-05) == " 0.0" +string.format("%0# -1.1f", 123.456789123) == " 123.5" +string.format("%0# -1.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# -1.1f", 1.23456789123e-05) == " 0.0" +string.format("%0# -2.0f", 0) == " 0." +string.format("%0# -2.0f", 1) == " 1." +string.format("%0# -2.0f", -1) == "-1." +string.format("%0# -2.0f", 2) == " 2." +string.format("%0# -2.0f", -2) == "-2." +string.format("%0# -2.0f", 3) == " 3." +string.format("%0# -2.0f", -3) == "-3." +string.format("%0# -2.0f", 100) == " 100." +string.format("%0# -2.0f", 10000) == " 10000." +string.format("%0# -2.0f", 100000) == " 100000." +string.format("%0# -2.0f", 1000000) == " 1000000." +string.format("%0# -2.0f", 10000000) == " 10000000." +string.format("%0# -2.0f", 0.01) == " 0." +string.format("%0# -2.0f", 0.0001) == " 0." +string.format("%0# -2.0f", 1e-05) == " 0." +string.format("%0# -2.0f", 1e-06) == " 0." +string.format("%0# -2.0f", 1e-07) == " 0." +string.format("%0# -2.0f", 123.456) == " 123." +string.format("%0# -2.0f", 1234560000) == " 1234560000." +string.format("%0# -2.0f", 1.23456e-05) == " 0." +string.format("%0# -2.0f", 123.456789123) == " 123." +string.format("%0# -2.0f", 1234567891.23) == " 1234567891." +string.format("%0# -2.0f", 1.23456789123e-05) == " 0." +string.format("%0# -2.1f", 0) == " 0.0" +string.format("%0# -2.1f", 1) == " 1.0" +string.format("%0# -2.1f", -1) == "-1.0" +string.format("%0# -2.1f", 2) == " 2.0" +string.format("%0# -2.1f", -2) == "-2.0" +string.format("%0# -2.1f", 3) == " 3.0" +string.format("%0# -2.1f", -3) == "-3.0" +string.format("%0# -2.1f", 100) == " 100.0" +string.format("%0# -2.1f", 10000) == " 10000.0" +string.format("%0# -2.1f", 100000) == " 100000.0" +string.format("%0# -2.1f", 1000000) == " 1000000.0" +string.format("%0# -2.1f", 10000000) == " 10000000.0" +string.format("%0# -2.1f", 0.01) == " 0.0" +string.format("%0# -2.1f", 0.0001) == " 0.0" +string.format("%0# -2.1f", 1e-05) == " 0.0" +string.format("%0# -2.1f", 1e-06) == " 0.0" +string.format("%0# -2.1f", 1e-07) == " 0.0" +string.format("%0# -2.1f", 123.456) == " 123.5" +string.format("%0# -2.1f", 1234560000) == " 1234560000.0" +string.format("%0# -2.1f", 1.23456e-05) == " 0.0" +string.format("%0# -2.1f", 123.456789123) == " 123.5" +string.format("%0# -2.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# -2.1f", 1.23456789123e-05) == " 0.0" +string.format("%0# -6f", nan) == " nan " +string.format("%0# -6f", inf) == " inf " +string.format("%0# -6f", -inf) == "-inf " +string.format("%0# -6.0f", 0) == " 0. " +string.format("%0# -6.0f", 1) == " 1. " +string.format("%0# -6.0f", -1) == "-1. " +string.format("%0# -6.0f", 2) == " 2. " +string.format("%0# -6.0f", -2) == "-2. " +string.format("%0# -6.0f", 3) == " 3. " +string.format("%0# -6.0f", -3) == "-3. " +string.format("%0# -6.0f", nan) == " nan " +string.format("%0# -6.0f", inf) == " inf " +string.format("%0# -6.0f", -inf) == "-inf " +string.format("%0# -6.0f", 100) == " 100. " +string.format("%0# -6.0f", 10000) == " 10000." +string.format("%0# -6.0f", 100000) == " 100000." +string.format("%0# -6.0f", 1000000) == " 1000000." +string.format("%0# -6.0f", 10000000) == " 10000000." +string.format("%0# -6.0f", 0.01) == " 0. " +string.format("%0# -6.0f", 0.0001) == " 0. " +string.format("%0# -6.0f", 1e-05) == " 0. " +string.format("%0# -6.0f", 1e-06) == " 0. " +string.format("%0# -6.0f", 1e-07) == " 0. " +string.format("%0# -6.0f", 123.456) == " 123. " +string.format("%0# -6.0f", 1234560000) == " 1234560000." +string.format("%0# -6.0f", 1.23456e-05) == " 0. " +string.format("%0# -6.0f", 123.456789123) == " 123. " +string.format("%0# -6.0f", 1234567891.23) == " 1234567891." +string.format("%0# -6.0f", 1.23456789123e-05) == " 0. " +string.format("%0# -6.1f", 0) == " 0.0 " +string.format("%0# -6.1f", 1) == " 1.0 " +string.format("%0# -6.1f", -1) == "-1.0 " +string.format("%0# -6.1f", 2) == " 2.0 " +string.format("%0# -6.1f", -2) == "-2.0 " +string.format("%0# -6.1f", 3) == " 3.0 " +string.format("%0# -6.1f", -3) == "-3.0 " +string.format("%0# -6.1f", nan) == " nan " +string.format("%0# -6.1f", inf) == " inf " +string.format("%0# -6.1f", -inf) == "-inf " +string.format("%0# -6.1f", 100) == " 100.0" +string.format("%0# -6.1f", 10000) == " 10000.0" +string.format("%0# -6.1f", 100000) == " 100000.0" +string.format("%0# -6.1f", 1000000) == " 1000000.0" +string.format("%0# -6.1f", 10000000) == " 10000000.0" +string.format("%0# -6.1f", 0.01) == " 0.0 " +string.format("%0# -6.1f", 0.0001) == " 0.0 " +string.format("%0# -6.1f", 1e-05) == " 0.0 " +string.format("%0# -6.1f", 1e-06) == " 0.0 " +string.format("%0# -6.1f", 1e-07) == " 0.0 " +string.format("%0# -6.1f", 123.456) == " 123.5" +string.format("%0# -6.1f", 1234560000) == " 1234560000.0" +string.format("%0# -6.1f", 1.23456e-05) == " 0.0 " +string.format("%0# -6.1f", 123.456789123) == " 123.5" +string.format("%0# -6.1f", 1234567891.23) == " 1234567891.2" +string.format("%0# -6.1f", 1.23456789123e-05) == " 0.0 " +string.format("%0# -6.6f", nan) == " nan " +string.format("%0# -6.6f", inf) == " inf " +string.format("%0# -6.6f", -inf) == "-inf " +string.format("%0# -20f", 0) == " 0.000000 " +string.format("%0# -20f", 1) == " 1.000000 " +string.format("%0# -20f", -1) == "-1.000000 " +string.format("%0# -20f", 2) == " 2.000000 " +string.format("%0# -20f", -2) == "-2.000000 " +string.format("%0# -20f", 3) == " 3.000000 " +string.format("%0# -20f", -3) == "-3.000000 " +string.format("%0# -20f", nan) == " nan " +string.format("%0# -20f", inf) == " inf " +string.format("%0# -20f", -inf) == "-inf " +string.format("%0# -20f", 100) == " 100.000000 " +string.format("%0# -20f", 10000) == " 10000.000000 " +string.format("%0# -20f", 100000) == " 100000.000000 " +string.format("%0# -20f", 1000000) == " 1000000.000000 " +string.format("%0# -20f", 10000000) == " 10000000.000000 " +string.format("%0# -20f", 0.01) == " 0.010000 " +string.format("%0# -20f", 0.0001) == " 0.000100 " +string.format("%0# -20f", 1e-05) == " 0.000010 " +string.format("%0# -20f", 1e-06) == " 0.000001 " +string.format("%0# -20f", 1e-07) == " 0.000000 " +string.format("%0# -20f", 123.456) == " 123.456000 " +string.format("%0# -20f", 1234560000) == " 1234560000.000000 " +string.format("%0# -20f", 1.23456e-05) == " 0.000012 " +string.format("%0# -20f", 123.456789123) == " 123.456789 " +string.format("%0# -20f", 1234567891.23) == " 1234567891.230000 " +string.format("%0# -20f", 1.23456789123e-05) == " 0.000012 " +string.format("%0# -20.0f", 0) == " 0. " +string.format("%0# -20.0f", 1) == " 1. " +string.format("%0# -20.0f", -1) == "-1. " +string.format("%0# -20.0f", 2) == " 2. " +string.format("%0# -20.0f", -2) == "-2. " +string.format("%0# -20.0f", 3) == " 3. " +string.format("%0# -20.0f", -3) == "-3. " +string.format("%0# -20.0f", nan) == " nan " +string.format("%0# -20.0f", inf) == " inf " +string.format("%0# -20.0f", -inf) == "-inf " +string.format("%0# -20.0f", 100) == " 100. " +string.format("%0# -20.0f", 10000) == " 10000. " +string.format("%0# -20.0f", 100000) == " 100000. " +string.format("%0# -20.0f", 1000000) == " 1000000. " +string.format("%0# -20.0f", 10000000) == " 10000000. " +string.format("%0# -20.0f", 0.01) == " 0. " +string.format("%0# -20.0f", 0.0001) == " 0. " +string.format("%0# -20.0f", 1e-05) == " 0. " +string.format("%0# -20.0f", 1e-06) == " 0. " +string.format("%0# -20.0f", 1e-07) == " 0. " +string.format("%0# -20.0f", 123.456) == " 123. " +string.format("%0# -20.0f", 1234560000) == " 1234560000. " +string.format("%0# -20.0f", 1.23456e-05) == " 0. " +string.format("%0# -20.0f", 123.456789123) == " 123. " +string.format("%0# -20.0f", 1234567891.23) == " 1234567891. " +string.format("%0# -20.0f", 1.23456789123e-05) == " 0. " +string.format("%0# -20.1f", 0) == " 0.0 " +string.format("%0# -20.1f", 1) == " 1.0 " +string.format("%0# -20.1f", -1) == "-1.0 " +string.format("%0# -20.1f", 2) == " 2.0 " +string.format("%0# -20.1f", -2) == "-2.0 " +string.format("%0# -20.1f", 3) == " 3.0 " +string.format("%0# -20.1f", -3) == "-3.0 " +string.format("%0# -20.1f", nan) == " nan " +string.format("%0# -20.1f", inf) == " inf " +string.format("%0# -20.1f", -inf) == "-inf " +string.format("%0# -20.1f", 100) == " 100.0 " +string.format("%0# -20.1f", 10000) == " 10000.0 " +string.format("%0# -20.1f", 100000) == " 100000.0 " +string.format("%0# -20.1f", 1000000) == " 1000000.0 " +string.format("%0# -20.1f", 10000000) == " 10000000.0 " +string.format("%0# -20.1f", 0.01) == " 0.0 " +string.format("%0# -20.1f", 0.0001) == " 0.0 " +string.format("%0# -20.1f", 1e-05) == " 0.0 " +string.format("%0# -20.1f", 1e-06) == " 0.0 " +string.format("%0# -20.1f", 1e-07) == " 0.0 " +string.format("%0# -20.1f", 123.456) == " 123.5 " +string.format("%0# -20.1f", 1234560000) == " 1234560000.0 " +string.format("%0# -20.1f", 1.23456e-05) == " 0.0 " +string.format("%0# -20.1f", 123.456789123) == " 123.5 " +string.format("%0# -20.1f", 1234567891.23) == " 1234567891.2 " +string.format("%0# -20.1f", 1.23456789123e-05) == " 0.0 " +string.format("%0# -20.6f", 0) == " 0.000000 " +string.format("%0# -20.6f", 1) == " 1.000000 " +string.format("%0# -20.6f", -1) == "-1.000000 " +string.format("%0# -20.6f", 2) == " 2.000000 " +string.format("%0# -20.6f", -2) == "-2.000000 " +string.format("%0# -20.6f", 3) == " 3.000000 " +string.format("%0# -20.6f", -3) == "-3.000000 " +string.format("%0# -20.6f", nan) == " nan " +string.format("%0# -20.6f", inf) == " inf " +string.format("%0# -20.6f", -inf) == "-inf " +string.format("%0# -20.6f", 100) == " 100.000000 " +string.format("%0# -20.6f", 10000) == " 10000.000000 " +string.format("%0# -20.6f", 100000) == " 100000.000000 " +string.format("%0# -20.6f", 1000000) == " 1000000.000000 " +string.format("%0# -20.6f", 10000000) == " 10000000.000000 " +string.format("%0# -20.6f", 0.01) == " 0.010000 " +string.format("%0# -20.6f", 0.0001) == " 0.000100 " +string.format("%0# -20.6f", 1e-05) == " 0.000010 " +string.format("%0# -20.6f", 1e-06) == " 0.000001 " +string.format("%0# -20.6f", 1e-07) == " 0.000000 " +string.format("%0# -20.6f", 123.456) == " 123.456000 " +string.format("%0# -20.6f", 1234560000) == " 1234560000.000000 " +string.format("%0# -20.6f", 1.23456e-05) == " 0.000012 " +string.format("%0# -20.6f", 123.456789123) == " 123.456789 " +string.format("%0# -20.6f", 1234567891.23) == " 1234567891.230000 " +string.format("%0# -20.6f", 1.23456789123e-05) == " 0.000012 " +string.format("%0# -+f", 0) == "+0.000000" +string.format("%0# -+f", 1) == "+1.000000" +string.format("%0# -+f", -1) == "-1.000000" +string.format("%0# -+f", 2) == "+2.000000" +string.format("%0# -+f", -2) == "-2.000000" +string.format("%0# -+f", 3) == "+3.000000" +string.format("%0# -+f", -3) == "-3.000000" +string.format("%0# -+f", nan) == "+nan" +string.format("%0# -+f", inf) == "+inf" +string.format("%0# -+f", -inf) == "-inf" +string.format("%0# -+f", 100) == "+100.000000" +string.format("%0# -+f", 10000) == "+10000.000000" +string.format("%0# -+f", 100000) == "+100000.000000" +string.format("%0# -+f", 1000000) == "+1000000.000000" +string.format("%0# -+f", 10000000) == "+10000000.000000" +string.format("%0# -+f", 0.01) == "+0.010000" +string.format("%0# -+f", 0.0001) == "+0.000100" +string.format("%0# -+f", 1e-05) == "+0.000010" +string.format("%0# -+f", 1e-06) == "+0.000001" +string.format("%0# -+f", 1e-07) == "+0.000000" +string.format("%0# -+f", 123.456) == "+123.456000" +string.format("%0# -+f", 1234560000) == "+1234560000.000000" +string.format("%0# -+f", 1.23456e-05) == "+0.000012" +string.format("%0# -+f", 123.456789123) == "+123.456789" +string.format("%0# -+f", 1234567891.23) == "+1234567891.230000" +string.format("%0# -+f", 1.23456789123e-05) == "+0.000012" +string.format("%0# -+.0f", 0) == "+0." +string.format("%0# -+.0f", 1) == "+1." +string.format("%0# -+.0f", -1) == "-1." +string.format("%0# -+.0f", 2) == "+2." +string.format("%0# -+.0f", -2) == "-2." +string.format("%0# -+.0f", 3) == "+3." +string.format("%0# -+.0f", -3) == "-3." +string.format("%0# -+.0f", 100) == "+100." +string.format("%0# -+.0f", 10000) == "+10000." +string.format("%0# -+.0f", 100000) == "+100000." +string.format("%0# -+.0f", 1000000) == "+1000000." +string.format("%0# -+.0f", 10000000) == "+10000000." +string.format("%0# -+.0f", 0.01) == "+0." +string.format("%0# -+.0f", 0.0001) == "+0." +string.format("%0# -+.0f", 1e-05) == "+0." +string.format("%0# -+.0f", 1e-06) == "+0." +string.format("%0# -+.0f", 1e-07) == "+0." +string.format("%0# -+.0f", 123.456) == "+123." +string.format("%0# -+.0f", 1234560000) == "+1234560000." +string.format("%0# -+.0f", 1.23456e-05) == "+0." +string.format("%0# -+.0f", 123.456789123) == "+123." +string.format("%0# -+.0f", 1234567891.23) == "+1234567891." +string.format("%0# -+.0f", 1.23456789123e-05) == "+0." +string.format("%0# -+.1f", 0) == "+0.0" +string.format("%0# -+.1f", 1) == "+1.0" +string.format("%0# -+.1f", -1) == "-1.0" +string.format("%0# -+.1f", 2) == "+2.0" +string.format("%0# -+.1f", -2) == "-2.0" +string.format("%0# -+.1f", 3) == "+3.0" +string.format("%0# -+.1f", -3) == "-3.0" +string.format("%0# -+.1f", 100) == "+100.0" +string.format("%0# -+.1f", 10000) == "+10000.0" +string.format("%0# -+.1f", 100000) == "+100000.0" +string.format("%0# -+.1f", 1000000) == "+1000000.0" +string.format("%0# -+.1f", 10000000) == "+10000000.0" +string.format("%0# -+.1f", 0.01) == "+0.0" +string.format("%0# -+.1f", 0.0001) == "+0.0" +string.format("%0# -+.1f", 1e-05) == "+0.0" +string.format("%0# -+.1f", 1e-06) == "+0.0" +string.format("%0# -+.1f", 1e-07) == "+0.0" +string.format("%0# -+.1f", 123.456) == "+123.5" +string.format("%0# -+.1f", 1234560000) == "+1234560000.0" +string.format("%0# -+.1f", 1.23456e-05) == "+0.0" +string.format("%0# -+.1f", 123.456789123) == "+123.5" +string.format("%0# -+.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# -+.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# -+1.0f", 0) == "+0." +string.format("%0# -+1.0f", 1) == "+1." +string.format("%0# -+1.0f", -1) == "-1." +string.format("%0# -+1.0f", 2) == "+2." +string.format("%0# -+1.0f", -2) == "-2." +string.format("%0# -+1.0f", 3) == "+3." +string.format("%0# -+1.0f", -3) == "-3." +string.format("%0# -+1.0f", 100) == "+100." +string.format("%0# -+1.0f", 10000) == "+10000." +string.format("%0# -+1.0f", 100000) == "+100000." +string.format("%0# -+1.0f", 1000000) == "+1000000." +string.format("%0# -+1.0f", 10000000) == "+10000000." +string.format("%0# -+1.0f", 0.01) == "+0." +string.format("%0# -+1.0f", 0.0001) == "+0." +string.format("%0# -+1.0f", 1e-05) == "+0." +string.format("%0# -+1.0f", 1e-06) == "+0." +string.format("%0# -+1.0f", 1e-07) == "+0." +string.format("%0# -+1.0f", 123.456) == "+123." +string.format("%0# -+1.0f", 1234560000) == "+1234560000." +string.format("%0# -+1.0f", 1.23456e-05) == "+0." +string.format("%0# -+1.0f", 123.456789123) == "+123." +string.format("%0# -+1.0f", 1234567891.23) == "+1234567891." +string.format("%0# -+1.0f", 1.23456789123e-05) == "+0." +string.format("%0# -+1.1f", 0) == "+0.0" +string.format("%0# -+1.1f", 1) == "+1.0" +string.format("%0# -+1.1f", -1) == "-1.0" +string.format("%0# -+1.1f", 2) == "+2.0" +string.format("%0# -+1.1f", -2) == "-2.0" +string.format("%0# -+1.1f", 3) == "+3.0" +string.format("%0# -+1.1f", -3) == "-3.0" +string.format("%0# -+1.1f", 100) == "+100.0" +string.format("%0# -+1.1f", 10000) == "+10000.0" +string.format("%0# -+1.1f", 100000) == "+100000.0" +string.format("%0# -+1.1f", 1000000) == "+1000000.0" +string.format("%0# -+1.1f", 10000000) == "+10000000.0" +string.format("%0# -+1.1f", 0.01) == "+0.0" +string.format("%0# -+1.1f", 0.0001) == "+0.0" +string.format("%0# -+1.1f", 1e-05) == "+0.0" +string.format("%0# -+1.1f", 1e-06) == "+0.0" +string.format("%0# -+1.1f", 1e-07) == "+0.0" +string.format("%0# -+1.1f", 123.456) == "+123.5" +string.format("%0# -+1.1f", 1234560000) == "+1234560000.0" +string.format("%0# -+1.1f", 1.23456e-05) == "+0.0" +string.format("%0# -+1.1f", 123.456789123) == "+123.5" +string.format("%0# -+1.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# -+1.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# -+2.0f", 0) == "+0." +string.format("%0# -+2.0f", 1) == "+1." +string.format("%0# -+2.0f", -1) == "-1." +string.format("%0# -+2.0f", 2) == "+2." +string.format("%0# -+2.0f", -2) == "-2." +string.format("%0# -+2.0f", 3) == "+3." +string.format("%0# -+2.0f", -3) == "-3." +string.format("%0# -+2.0f", 100) == "+100." +string.format("%0# -+2.0f", 10000) == "+10000." +string.format("%0# -+2.0f", 100000) == "+100000." +string.format("%0# -+2.0f", 1000000) == "+1000000." +string.format("%0# -+2.0f", 10000000) == "+10000000." +string.format("%0# -+2.0f", 0.01) == "+0." +string.format("%0# -+2.0f", 0.0001) == "+0." +string.format("%0# -+2.0f", 1e-05) == "+0." +string.format("%0# -+2.0f", 1e-06) == "+0." +string.format("%0# -+2.0f", 1e-07) == "+0." +string.format("%0# -+2.0f", 123.456) == "+123." +string.format("%0# -+2.0f", 1234560000) == "+1234560000." +string.format("%0# -+2.0f", 1.23456e-05) == "+0." +string.format("%0# -+2.0f", 123.456789123) == "+123." +string.format("%0# -+2.0f", 1234567891.23) == "+1234567891." +string.format("%0# -+2.0f", 1.23456789123e-05) == "+0." +string.format("%0# -+2.1f", 0) == "+0.0" +string.format("%0# -+2.1f", 1) == "+1.0" +string.format("%0# -+2.1f", -1) == "-1.0" +string.format("%0# -+2.1f", 2) == "+2.0" +string.format("%0# -+2.1f", -2) == "-2.0" +string.format("%0# -+2.1f", 3) == "+3.0" +string.format("%0# -+2.1f", -3) == "-3.0" +string.format("%0# -+2.1f", 100) == "+100.0" +string.format("%0# -+2.1f", 10000) == "+10000.0" +string.format("%0# -+2.1f", 100000) == "+100000.0" +string.format("%0# -+2.1f", 1000000) == "+1000000.0" +string.format("%0# -+2.1f", 10000000) == "+10000000.0" +string.format("%0# -+2.1f", 0.01) == "+0.0" +string.format("%0# -+2.1f", 0.0001) == "+0.0" +string.format("%0# -+2.1f", 1e-05) == "+0.0" +string.format("%0# -+2.1f", 1e-06) == "+0.0" +string.format("%0# -+2.1f", 1e-07) == "+0.0" +string.format("%0# -+2.1f", 123.456) == "+123.5" +string.format("%0# -+2.1f", 1234560000) == "+1234560000.0" +string.format("%0# -+2.1f", 1.23456e-05) == "+0.0" +string.format("%0# -+2.1f", 123.456789123) == "+123.5" +string.format("%0# -+2.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# -+2.1f", 1.23456789123e-05) == "+0.0" +string.format("%0# -+6f", nan) == "+nan " +string.format("%0# -+6f", inf) == "+inf " +string.format("%0# -+6f", -inf) == "-inf " +string.format("%0# -+6.0f", 0) == "+0. " +string.format("%0# -+6.0f", 1) == "+1. " +string.format("%0# -+6.0f", -1) == "-1. " +string.format("%0# -+6.0f", 2) == "+2. " +string.format("%0# -+6.0f", -2) == "-2. " +string.format("%0# -+6.0f", 3) == "+3. " +string.format("%0# -+6.0f", -3) == "-3. " +string.format("%0# -+6.0f", nan) == "+nan " +string.format("%0# -+6.0f", inf) == "+inf " +string.format("%0# -+6.0f", -inf) == "-inf " +string.format("%0# -+6.0f", 100) == "+100. " +string.format("%0# -+6.0f", 10000) == "+10000." +string.format("%0# -+6.0f", 100000) == "+100000." +string.format("%0# -+6.0f", 1000000) == "+1000000." +string.format("%0# -+6.0f", 10000000) == "+10000000." +string.format("%0# -+6.0f", 0.01) == "+0. " +string.format("%0# -+6.0f", 0.0001) == "+0. " +string.format("%0# -+6.0f", 1e-05) == "+0. " +string.format("%0# -+6.0f", 1e-06) == "+0. " +string.format("%0# -+6.0f", 1e-07) == "+0. " +string.format("%0# -+6.0f", 123.456) == "+123. " +string.format("%0# -+6.0f", 1234560000) == "+1234560000." +string.format("%0# -+6.0f", 1.23456e-05) == "+0. " +string.format("%0# -+6.0f", 123.456789123) == "+123. " +string.format("%0# -+6.0f", 1234567891.23) == "+1234567891." +string.format("%0# -+6.0f", 1.23456789123e-05) == "+0. " +string.format("%0# -+6.1f", 0) == "+0.0 " +string.format("%0# -+6.1f", 1) == "+1.0 " +string.format("%0# -+6.1f", -1) == "-1.0 " +string.format("%0# -+6.1f", 2) == "+2.0 " +string.format("%0# -+6.1f", -2) == "-2.0 " +string.format("%0# -+6.1f", 3) == "+3.0 " +string.format("%0# -+6.1f", -3) == "-3.0 " +string.format("%0# -+6.1f", nan) == "+nan " +string.format("%0# -+6.1f", inf) == "+inf " +string.format("%0# -+6.1f", -inf) == "-inf " +string.format("%0# -+6.1f", 100) == "+100.0" +string.format("%0# -+6.1f", 10000) == "+10000.0" +string.format("%0# -+6.1f", 100000) == "+100000.0" +string.format("%0# -+6.1f", 1000000) == "+1000000.0" +string.format("%0# -+6.1f", 10000000) == "+10000000.0" +string.format("%0# -+6.1f", 0.01) == "+0.0 " +string.format("%0# -+6.1f", 0.0001) == "+0.0 " +string.format("%0# -+6.1f", 1e-05) == "+0.0 " +string.format("%0# -+6.1f", 1e-06) == "+0.0 " +string.format("%0# -+6.1f", 1e-07) == "+0.0 " +string.format("%0# -+6.1f", 123.456) == "+123.5" +string.format("%0# -+6.1f", 1234560000) == "+1234560000.0" +string.format("%0# -+6.1f", 1.23456e-05) == "+0.0 " +string.format("%0# -+6.1f", 123.456789123) == "+123.5" +string.format("%0# -+6.1f", 1234567891.23) == "+1234567891.2" +string.format("%0# -+6.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0# -+6.6f", nan) == "+nan " +string.format("%0# -+6.6f", inf) == "+inf " +string.format("%0# -+6.6f", -inf) == "-inf " +string.format("%0# -+20f", 0) == "+0.000000 " +string.format("%0# -+20f", 1) == "+1.000000 " +string.format("%0# -+20f", -1) == "-1.000000 " +string.format("%0# -+20f", 2) == "+2.000000 " +string.format("%0# -+20f", -2) == "-2.000000 " +string.format("%0# -+20f", 3) == "+3.000000 " +string.format("%0# -+20f", -3) == "-3.000000 " +string.format("%0# -+20f", nan) == "+nan " +string.format("%0# -+20f", inf) == "+inf " +string.format("%0# -+20f", -inf) == "-inf " +string.format("%0# -+20f", 100) == "+100.000000 " +string.format("%0# -+20f", 10000) == "+10000.000000 " +string.format("%0# -+20f", 100000) == "+100000.000000 " +string.format("%0# -+20f", 1000000) == "+1000000.000000 " +string.format("%0# -+20f", 10000000) == "+10000000.000000 " +string.format("%0# -+20f", 0.01) == "+0.010000 " +string.format("%0# -+20f", 0.0001) == "+0.000100 " +string.format("%0# -+20f", 1e-05) == "+0.000010 " +string.format("%0# -+20f", 1e-06) == "+0.000001 " +string.format("%0# -+20f", 1e-07) == "+0.000000 " +string.format("%0# -+20f", 123.456) == "+123.456000 " +string.format("%0# -+20f", 1234560000) == "+1234560000.000000 " +string.format("%0# -+20f", 1.23456e-05) == "+0.000012 " +string.format("%0# -+20f", 123.456789123) == "+123.456789 " +string.format("%0# -+20f", 1234567891.23) == "+1234567891.230000 " +string.format("%0# -+20f", 1.23456789123e-05) == "+0.000012 " +string.format("%0# -+20.0f", 0) == "+0. " +string.format("%0# -+20.0f", 1) == "+1. " +string.format("%0# -+20.0f", -1) == "-1. " +string.format("%0# -+20.0f", 2) == "+2. " +string.format("%0# -+20.0f", -2) == "-2. " +string.format("%0# -+20.0f", 3) == "+3. " +string.format("%0# -+20.0f", -3) == "-3. " +string.format("%0# -+20.0f", nan) == "+nan " +string.format("%0# -+20.0f", inf) == "+inf " +string.format("%0# -+20.0f", -inf) == "-inf " +string.format("%0# -+20.0f", 100) == "+100. " +string.format("%0# -+20.0f", 10000) == "+10000. " +string.format("%0# -+20.0f", 100000) == "+100000. " +string.format("%0# -+20.0f", 1000000) == "+1000000. " +string.format("%0# -+20.0f", 10000000) == "+10000000. " +string.format("%0# -+20.0f", 0.01) == "+0. " +string.format("%0# -+20.0f", 0.0001) == "+0. " +string.format("%0# -+20.0f", 1e-05) == "+0. " +string.format("%0# -+20.0f", 1e-06) == "+0. " +string.format("%0# -+20.0f", 1e-07) == "+0. " +string.format("%0# -+20.0f", 123.456) == "+123. " +string.format("%0# -+20.0f", 1234560000) == "+1234560000. " +string.format("%0# -+20.0f", 1.23456e-05) == "+0. " +string.format("%0# -+20.0f", 123.456789123) == "+123. " +string.format("%0# -+20.0f", 1234567891.23) == "+1234567891. " +string.format("%0# -+20.0f", 1.23456789123e-05) == "+0. " +string.format("%0# -+20.1f", 0) == "+0.0 " +string.format("%0# -+20.1f", 1) == "+1.0 " +string.format("%0# -+20.1f", -1) == "-1.0 " +string.format("%0# -+20.1f", 2) == "+2.0 " +string.format("%0# -+20.1f", -2) == "-2.0 " +string.format("%0# -+20.1f", 3) == "+3.0 " +string.format("%0# -+20.1f", -3) == "-3.0 " +string.format("%0# -+20.1f", nan) == "+nan " +string.format("%0# -+20.1f", inf) == "+inf " +string.format("%0# -+20.1f", -inf) == "-inf " +string.format("%0# -+20.1f", 100) == "+100.0 " +string.format("%0# -+20.1f", 10000) == "+10000.0 " +string.format("%0# -+20.1f", 100000) == "+100000.0 " +string.format("%0# -+20.1f", 1000000) == "+1000000.0 " +string.format("%0# -+20.1f", 10000000) == "+10000000.0 " +string.format("%0# -+20.1f", 0.01) == "+0.0 " +string.format("%0# -+20.1f", 0.0001) == "+0.0 " +string.format("%0# -+20.1f", 1e-05) == "+0.0 " +string.format("%0# -+20.1f", 1e-06) == "+0.0 " +string.format("%0# -+20.1f", 1e-07) == "+0.0 " +string.format("%0# -+20.1f", 123.456) == "+123.5 " +string.format("%0# -+20.1f", 1234560000) == "+1234560000.0 " +string.format("%0# -+20.1f", 1.23456e-05) == "+0.0 " +string.format("%0# -+20.1f", 123.456789123) == "+123.5 " +string.format("%0# -+20.1f", 1234567891.23) == "+1234567891.2 " +string.format("%0# -+20.1f", 1.23456789123e-05) == "+0.0 " +string.format("%0# -+20.6f", 0) == "+0.000000 " +string.format("%0# -+20.6f", 1) == "+1.000000 " +string.format("%0# -+20.6f", -1) == "-1.000000 " +string.format("%0# -+20.6f", 2) == "+2.000000 " +string.format("%0# -+20.6f", -2) == "-2.000000 " +string.format("%0# -+20.6f", 3) == "+3.000000 " +string.format("%0# -+20.6f", -3) == "-3.000000 " +string.format("%0# -+20.6f", nan) == "+nan " +string.format("%0# -+20.6f", inf) == "+inf " +string.format("%0# -+20.6f", -inf) == "-inf " +string.format("%0# -+20.6f", 100) == "+100.000000 " +string.format("%0# -+20.6f", 10000) == "+10000.000000 " +string.format("%0# -+20.6f", 100000) == "+100000.000000 " +string.format("%0# -+20.6f", 1000000) == "+1000000.000000 " +string.format("%0# -+20.6f", 10000000) == "+10000000.000000 " +string.format("%0# -+20.6f", 0.01) == "+0.010000 " +string.format("%0# -+20.6f", 0.0001) == "+0.000100 " +string.format("%0# -+20.6f", 1e-05) == "+0.000010 " +string.format("%0# -+20.6f", 1e-06) == "+0.000001 " +string.format("%0# -+20.6f", 1e-07) == "+0.000000 " +string.format("%0# -+20.6f", 123.456) == "+123.456000 " +string.format("%0# -+20.6f", 1234560000) == "+1234560000.000000 " +string.format("%0# -+20.6f", 1.23456e-05) == "+0.000012 " +string.format("%0# -+20.6f", 123.456789123) == "+123.456789 " +string.format("%0# -+20.6f", 1234567891.23) == "+1234567891.230000 " +string.format("%0# -+20.6f", 1.23456789123e-05) == "+0.000012 " += F = +string.format("%F", 0) == "invalid option '%F' to 'format'" +string.format("%F", 1) == "invalid option '%F' to 'format'" +string.format("%F", -1) == "invalid option '%F' to 'format'" +string.format("%F", 2) == "invalid option '%F' to 'format'" +string.format("%F", -2) == "invalid option '%F' to 'format'" +string.format("%F", 3) == "invalid option '%F' to 'format'" +string.format("%F", -3) == "invalid option '%F' to 'format'" +string.format("%F", nan) == "invalid option '%F' to 'format'" +string.format("%F", inf) == "invalid option '%F' to 'format'" +string.format("%F", -inf) == "invalid option '%F' to 'format'" +string.format("%F", 100) == "invalid option '%F' to 'format'" +string.format("%F", 10000) == "invalid option '%F' to 'format'" +string.format("%F", 100000) == "invalid option '%F' to 'format'" +string.format("%F", 1000000) == "invalid option '%F' to 'format'" +string.format("%F", 10000000) == "invalid option '%F' to 'format'" +string.format("%F", 0.01) == "invalid option '%F' to 'format'" +string.format("%F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%F", 123.456) == "invalid option '%F' to 'format'" +string.format("%F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%+F", 0) == "invalid option '%F' to 'format'" +string.format("%+F", 1) == "invalid option '%F' to 'format'" +string.format("%+F", -1) == "invalid option '%F' to 'format'" +string.format("%+F", 2) == "invalid option '%F' to 'format'" +string.format("%+F", -2) == "invalid option '%F' to 'format'" +string.format("%+F", 3) == "invalid option '%F' to 'format'" +string.format("%+F", -3) == "invalid option '%F' to 'format'" +string.format("%+F", nan) == "invalid option '%F' to 'format'" +string.format("%+F", inf) == "invalid option '%F' to 'format'" +string.format("%+F", -inf) == "invalid option '%F' to 'format'" +string.format("%+F", 100) == "invalid option '%F' to 'format'" +string.format("%+F", 10000) == "invalid option '%F' to 'format'" +string.format("%+F", 100000) == "invalid option '%F' to 'format'" +string.format("%+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%-F", 0) == "invalid option '%F' to 'format'" +string.format("%-F", 1) == "invalid option '%F' to 'format'" +string.format("%-F", -1) == "invalid option '%F' to 'format'" +string.format("%-F", 2) == "invalid option '%F' to 'format'" +string.format("%-F", -2) == "invalid option '%F' to 'format'" +string.format("%-F", 3) == "invalid option '%F' to 'format'" +string.format("%-F", -3) == "invalid option '%F' to 'format'" +string.format("%-F", nan) == "invalid option '%F' to 'format'" +string.format("%-F", inf) == "invalid option '%F' to 'format'" +string.format("%-F", -inf) == "invalid option '%F' to 'format'" +string.format("%-F", 100) == "invalid option '%F' to 'format'" +string.format("%-F", 10000) == "invalid option '%F' to 'format'" +string.format("%-F", 100000) == "invalid option '%F' to 'format'" +string.format("%-F", 1000000) == "invalid option '%F' to 'format'" +string.format("%-F", 10000000) == "invalid option '%F' to 'format'" +string.format("%-F", 0.01) == "invalid option '%F' to 'format'" +string.format("%-F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%-F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%-F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%-F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%-F", 123.456) == "invalid option '%F' to 'format'" +string.format("%-F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%-F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%-F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%-F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%-F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%-+F", 0) == "invalid option '%F' to 'format'" +string.format("%-+F", 1) == "invalid option '%F' to 'format'" +string.format("%-+F", -1) == "invalid option '%F' to 'format'" +string.format("%-+F", 2) == "invalid option '%F' to 'format'" +string.format("%-+F", -2) == "invalid option '%F' to 'format'" +string.format("%-+F", 3) == "invalid option '%F' to 'format'" +string.format("%-+F", -3) == "invalid option '%F' to 'format'" +string.format("%-+F", nan) == "invalid option '%F' to 'format'" +string.format("%-+F", inf) == "invalid option '%F' to 'format'" +string.format("%-+F", -inf) == "invalid option '%F' to 'format'" +string.format("%-+F", 100) == "invalid option '%F' to 'format'" +string.format("%-+F", 10000) == "invalid option '%F' to 'format'" +string.format("%-+F", 100000) == "invalid option '%F' to 'format'" +string.format("%-+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%-+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%-+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%-+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%-+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%-+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%-+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%-+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%-+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%-+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%-+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%-+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%-+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("% F", 0) == "invalid option '%F' to 'format'" +string.format("% F", 1) == "invalid option '%F' to 'format'" +string.format("% F", -1) == "invalid option '%F' to 'format'" +string.format("% F", 2) == "invalid option '%F' to 'format'" +string.format("% F", -2) == "invalid option '%F' to 'format'" +string.format("% F", 3) == "invalid option '%F' to 'format'" +string.format("% F", -3) == "invalid option '%F' to 'format'" +string.format("% F", nan) == "invalid option '%F' to 'format'" +string.format("% F", inf) == "invalid option '%F' to 'format'" +string.format("% F", -inf) == "invalid option '%F' to 'format'" +string.format("% F", 100) == "invalid option '%F' to 'format'" +string.format("% F", 10000) == "invalid option '%F' to 'format'" +string.format("% F", 100000) == "invalid option '%F' to 'format'" +string.format("% F", 1000000) == "invalid option '%F' to 'format'" +string.format("% F", 10000000) == "invalid option '%F' to 'format'" +string.format("% F", 0.01) == "invalid option '%F' to 'format'" +string.format("% F", 0.0001) == "invalid option '%F' to 'format'" +string.format("% F", 1e-05) == "invalid option '%F' to 'format'" +string.format("% F", 1e-06) == "invalid option '%F' to 'format'" +string.format("% F", 1e-07) == "invalid option '%F' to 'format'" +string.format("% F", 123.456) == "invalid option '%F' to 'format'" +string.format("% F", 1234560000) == "invalid option '%F' to 'format'" +string.format("% F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("% F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("% F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("% F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("% +F", 0) == "invalid option '%F' to 'format'" +string.format("% +F", 1) == "invalid option '%F' to 'format'" +string.format("% +F", -1) == "invalid option '%F' to 'format'" +string.format("% +F", 2) == "invalid option '%F' to 'format'" +string.format("% +F", -2) == "invalid option '%F' to 'format'" +string.format("% +F", 3) == "invalid option '%F' to 'format'" +string.format("% +F", -3) == "invalid option '%F' to 'format'" +string.format("% +F", nan) == "invalid option '%F' to 'format'" +string.format("% +F", inf) == "invalid option '%F' to 'format'" +string.format("% +F", -inf) == "invalid option '%F' to 'format'" +string.format("% +F", 100) == "invalid option '%F' to 'format'" +string.format("% +F", 10000) == "invalid option '%F' to 'format'" +string.format("% +F", 100000) == "invalid option '%F' to 'format'" +string.format("% +F", 1000000) == "invalid option '%F' to 'format'" +string.format("% +F", 10000000) == "invalid option '%F' to 'format'" +string.format("% +F", 0.01) == "invalid option '%F' to 'format'" +string.format("% +F", 0.0001) == "invalid option '%F' to 'format'" +string.format("% +F", 1e-05) == "invalid option '%F' to 'format'" +string.format("% +F", 1e-06) == "invalid option '%F' to 'format'" +string.format("% +F", 1e-07) == "invalid option '%F' to 'format'" +string.format("% +F", 123.456) == "invalid option '%F' to 'format'" +string.format("% +F", 1234560000) == "invalid option '%F' to 'format'" +string.format("% +F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("% +F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("% +F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("% +F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("% -F", 0) == "invalid option '%F' to 'format'" +string.format("% -F", 1) == "invalid option '%F' to 'format'" +string.format("% -F", -1) == "invalid option '%F' to 'format'" +string.format("% -F", 2) == "invalid option '%F' to 'format'" +string.format("% -F", -2) == "invalid option '%F' to 'format'" +string.format("% -F", 3) == "invalid option '%F' to 'format'" +string.format("% -F", -3) == "invalid option '%F' to 'format'" +string.format("% -F", nan) == "invalid option '%F' to 'format'" +string.format("% -F", inf) == "invalid option '%F' to 'format'" +string.format("% -F", -inf) == "invalid option '%F' to 'format'" +string.format("% -F", 100) == "invalid option '%F' to 'format'" +string.format("% -F", 10000) == "invalid option '%F' to 'format'" +string.format("% -F", 100000) == "invalid option '%F' to 'format'" +string.format("% -F", 1000000) == "invalid option '%F' to 'format'" +string.format("% -F", 10000000) == "invalid option '%F' to 'format'" +string.format("% -F", 0.01) == "invalid option '%F' to 'format'" +string.format("% -F", 0.0001) == "invalid option '%F' to 'format'" +string.format("% -F", 1e-05) == "invalid option '%F' to 'format'" +string.format("% -F", 1e-06) == "invalid option '%F' to 'format'" +string.format("% -F", 1e-07) == "invalid option '%F' to 'format'" +string.format("% -F", 123.456) == "invalid option '%F' to 'format'" +string.format("% -F", 1234560000) == "invalid option '%F' to 'format'" +string.format("% -F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("% -F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("% -F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("% -F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("% -+F", 0) == "invalid option '%F' to 'format'" +string.format("% -+F", 1) == "invalid option '%F' to 'format'" +string.format("% -+F", -1) == "invalid option '%F' to 'format'" +string.format("% -+F", 2) == "invalid option '%F' to 'format'" +string.format("% -+F", -2) == "invalid option '%F' to 'format'" +string.format("% -+F", 3) == "invalid option '%F' to 'format'" +string.format("% -+F", -3) == "invalid option '%F' to 'format'" +string.format("% -+F", nan) == "invalid option '%F' to 'format'" +string.format("% -+F", inf) == "invalid option '%F' to 'format'" +string.format("% -+F", -inf) == "invalid option '%F' to 'format'" +string.format("% -+F", 100) == "invalid option '%F' to 'format'" +string.format("% -+F", 10000) == "invalid option '%F' to 'format'" +string.format("% -+F", 100000) == "invalid option '%F' to 'format'" +string.format("% -+F", 1000000) == "invalid option '%F' to 'format'" +string.format("% -+F", 10000000) == "invalid option '%F' to 'format'" +string.format("% -+F", 0.01) == "invalid option '%F' to 'format'" +string.format("% -+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("% -+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("% -+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("% -+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("% -+F", 123.456) == "invalid option '%F' to 'format'" +string.format("% -+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("% -+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("% -+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("% -+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("% -+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%#F", 0) == "invalid option '%F' to 'format'" +string.format("%#F", 1) == "invalid option '%F' to 'format'" +string.format("%#F", -1) == "invalid option '%F' to 'format'" +string.format("%#F", 2) == "invalid option '%F' to 'format'" +string.format("%#F", -2) == "invalid option '%F' to 'format'" +string.format("%#F", 3) == "invalid option '%F' to 'format'" +string.format("%#F", -3) == "invalid option '%F' to 'format'" +string.format("%#F", nan) == "invalid option '%F' to 'format'" +string.format("%#F", inf) == "invalid option '%F' to 'format'" +string.format("%#F", -inf) == "invalid option '%F' to 'format'" +string.format("%#F", 100) == "invalid option '%F' to 'format'" +string.format("%#F", 10000) == "invalid option '%F' to 'format'" +string.format("%#F", 100000) == "invalid option '%F' to 'format'" +string.format("%#F", 1000000) == "invalid option '%F' to 'format'" +string.format("%#F", 10000000) == "invalid option '%F' to 'format'" +string.format("%#F", 0.01) == "invalid option '%F' to 'format'" +string.format("%#F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%#F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%#F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%#F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%#F", 123.456) == "invalid option '%F' to 'format'" +string.format("%#F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%#F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%#F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%#F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%#F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%#+F", 0) == "invalid option '%F' to 'format'" +string.format("%#+F", 1) == "invalid option '%F' to 'format'" +string.format("%#+F", -1) == "invalid option '%F' to 'format'" +string.format("%#+F", 2) == "invalid option '%F' to 'format'" +string.format("%#+F", -2) == "invalid option '%F' to 'format'" +string.format("%#+F", 3) == "invalid option '%F' to 'format'" +string.format("%#+F", -3) == "invalid option '%F' to 'format'" +string.format("%#+F", nan) == "invalid option '%F' to 'format'" +string.format("%#+F", inf) == "invalid option '%F' to 'format'" +string.format("%#+F", -inf) == "invalid option '%F' to 'format'" +string.format("%#+F", 100) == "invalid option '%F' to 'format'" +string.format("%#+F", 10000) == "invalid option '%F' to 'format'" +string.format("%#+F", 100000) == "invalid option '%F' to 'format'" +string.format("%#+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%#+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%#+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%#+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%#+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%#+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%#+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%#+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%#+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%#+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%#+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%#+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%#+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%#-F", 0) == "invalid option '%F' to 'format'" +string.format("%#-F", 1) == "invalid option '%F' to 'format'" +string.format("%#-F", -1) == "invalid option '%F' to 'format'" +string.format("%#-F", 2) == "invalid option '%F' to 'format'" +string.format("%#-F", -2) == "invalid option '%F' to 'format'" +string.format("%#-F", 3) == "invalid option '%F' to 'format'" +string.format("%#-F", -3) == "invalid option '%F' to 'format'" +string.format("%#-F", nan) == "invalid option '%F' to 'format'" +string.format("%#-F", inf) == "invalid option '%F' to 'format'" +string.format("%#-F", -inf) == "invalid option '%F' to 'format'" +string.format("%#-F", 100) == "invalid option '%F' to 'format'" +string.format("%#-F", 10000) == "invalid option '%F' to 'format'" +string.format("%#-F", 100000) == "invalid option '%F' to 'format'" +string.format("%#-F", 1000000) == "invalid option '%F' to 'format'" +string.format("%#-F", 10000000) == "invalid option '%F' to 'format'" +string.format("%#-F", 0.01) == "invalid option '%F' to 'format'" +string.format("%#-F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%#-F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%#-F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%#-F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%#-F", 123.456) == "invalid option '%F' to 'format'" +string.format("%#-F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%#-F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%#-F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%#-F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%#-F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%#-+F", 0) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1) == "invalid option '%F' to 'format'" +string.format("%#-+F", -1) == "invalid option '%F' to 'format'" +string.format("%#-+F", 2) == "invalid option '%F' to 'format'" +string.format("%#-+F", -2) == "invalid option '%F' to 'format'" +string.format("%#-+F", 3) == "invalid option '%F' to 'format'" +string.format("%#-+F", -3) == "invalid option '%F' to 'format'" +string.format("%#-+F", nan) == "invalid option '%F' to 'format'" +string.format("%#-+F", inf) == "invalid option '%F' to 'format'" +string.format("%#-+F", -inf) == "invalid option '%F' to 'format'" +string.format("%#-+F", 100) == "invalid option '%F' to 'format'" +string.format("%#-+F", 10000) == "invalid option '%F' to 'format'" +string.format("%#-+F", 100000) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%#-+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%#-+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%#-+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%#-+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%#-+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%#-+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%# F", 0) == "invalid option '%F' to 'format'" +string.format("%# F", 1) == "invalid option '%F' to 'format'" +string.format("%# F", -1) == "invalid option '%F' to 'format'" +string.format("%# F", 2) == "invalid option '%F' to 'format'" +string.format("%# F", -2) == "invalid option '%F' to 'format'" +string.format("%# F", 3) == "invalid option '%F' to 'format'" +string.format("%# F", -3) == "invalid option '%F' to 'format'" +string.format("%# F", nan) == "invalid option '%F' to 'format'" +string.format("%# F", inf) == "invalid option '%F' to 'format'" +string.format("%# F", -inf) == "invalid option '%F' to 'format'" +string.format("%# F", 100) == "invalid option '%F' to 'format'" +string.format("%# F", 10000) == "invalid option '%F' to 'format'" +string.format("%# F", 100000) == "invalid option '%F' to 'format'" +string.format("%# F", 1000000) == "invalid option '%F' to 'format'" +string.format("%# F", 10000000) == "invalid option '%F' to 'format'" +string.format("%# F", 0.01) == "invalid option '%F' to 'format'" +string.format("%# F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%# F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%# F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%# F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%# F", 123.456) == "invalid option '%F' to 'format'" +string.format("%# F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%# F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%# F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%# F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%# F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%# +F", 0) == "invalid option '%F' to 'format'" +string.format("%# +F", 1) == "invalid option '%F' to 'format'" +string.format("%# +F", -1) == "invalid option '%F' to 'format'" +string.format("%# +F", 2) == "invalid option '%F' to 'format'" +string.format("%# +F", -2) == "invalid option '%F' to 'format'" +string.format("%# +F", 3) == "invalid option '%F' to 'format'" +string.format("%# +F", -3) == "invalid option '%F' to 'format'" +string.format("%# +F", nan) == "invalid option '%F' to 'format'" +string.format("%# +F", inf) == "invalid option '%F' to 'format'" +string.format("%# +F", -inf) == "invalid option '%F' to 'format'" +string.format("%# +F", 100) == "invalid option '%F' to 'format'" +string.format("%# +F", 10000) == "invalid option '%F' to 'format'" +string.format("%# +F", 100000) == "invalid option '%F' to 'format'" +string.format("%# +F", 1000000) == "invalid option '%F' to 'format'" +string.format("%# +F", 10000000) == "invalid option '%F' to 'format'" +string.format("%# +F", 0.01) == "invalid option '%F' to 'format'" +string.format("%# +F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%# +F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%# +F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%# +F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%# +F", 123.456) == "invalid option '%F' to 'format'" +string.format("%# +F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%# +F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%# +F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%# +F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%# +F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%# -F", 0) == "invalid option '%F' to 'format'" +string.format("%# -F", 1) == "invalid option '%F' to 'format'" +string.format("%# -F", -1) == "invalid option '%F' to 'format'" +string.format("%# -F", 2) == "invalid option '%F' to 'format'" +string.format("%# -F", -2) == "invalid option '%F' to 'format'" +string.format("%# -F", 3) == "invalid option '%F' to 'format'" +string.format("%# -F", -3) == "invalid option '%F' to 'format'" +string.format("%# -F", nan) == "invalid option '%F' to 'format'" +string.format("%# -F", inf) == "invalid option '%F' to 'format'" +string.format("%# -F", -inf) == "invalid option '%F' to 'format'" +string.format("%# -F", 100) == "invalid option '%F' to 'format'" +string.format("%# -F", 10000) == "invalid option '%F' to 'format'" +string.format("%# -F", 100000) == "invalid option '%F' to 'format'" +string.format("%# -F", 1000000) == "invalid option '%F' to 'format'" +string.format("%# -F", 10000000) == "invalid option '%F' to 'format'" +string.format("%# -F", 0.01) == "invalid option '%F' to 'format'" +string.format("%# -F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%# -F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%# -F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%# -F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%# -F", 123.456) == "invalid option '%F' to 'format'" +string.format("%# -F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%# -F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%# -F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%# -F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%# -F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%# -+F", 0) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1) == "invalid option '%F' to 'format'" +string.format("%# -+F", -1) == "invalid option '%F' to 'format'" +string.format("%# -+F", 2) == "invalid option '%F' to 'format'" +string.format("%# -+F", -2) == "invalid option '%F' to 'format'" +string.format("%# -+F", 3) == "invalid option '%F' to 'format'" +string.format("%# -+F", -3) == "invalid option '%F' to 'format'" +string.format("%# -+F", nan) == "invalid option '%F' to 'format'" +string.format("%# -+F", inf) == "invalid option '%F' to 'format'" +string.format("%# -+F", -inf) == "invalid option '%F' to 'format'" +string.format("%# -+F", 100) == "invalid option '%F' to 'format'" +string.format("%# -+F", 10000) == "invalid option '%F' to 'format'" +string.format("%# -+F", 100000) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%# -+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%# -+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%# -+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%# -+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%# -+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%# -+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0F", 0) == "invalid option '%F' to 'format'" +string.format("%0F", 1) == "invalid option '%F' to 'format'" +string.format("%0F", -1) == "invalid option '%F' to 'format'" +string.format("%0F", 2) == "invalid option '%F' to 'format'" +string.format("%0F", -2) == "invalid option '%F' to 'format'" +string.format("%0F", 3) == "invalid option '%F' to 'format'" +string.format("%0F", -3) == "invalid option '%F' to 'format'" +string.format("%0F", nan) == "invalid option '%F' to 'format'" +string.format("%0F", inf) == "invalid option '%F' to 'format'" +string.format("%0F", -inf) == "invalid option '%F' to 'format'" +string.format("%0F", 100) == "invalid option '%F' to 'format'" +string.format("%0F", 10000) == "invalid option '%F' to 'format'" +string.format("%0F", 100000) == "invalid option '%F' to 'format'" +string.format("%0F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0+F", 0) == "invalid option '%F' to 'format'" +string.format("%0+F", 1) == "invalid option '%F' to 'format'" +string.format("%0+F", -1) == "invalid option '%F' to 'format'" +string.format("%0+F", 2) == "invalid option '%F' to 'format'" +string.format("%0+F", -2) == "invalid option '%F' to 'format'" +string.format("%0+F", 3) == "invalid option '%F' to 'format'" +string.format("%0+F", -3) == "invalid option '%F' to 'format'" +string.format("%0+F", nan) == "invalid option '%F' to 'format'" +string.format("%0+F", inf) == "invalid option '%F' to 'format'" +string.format("%0+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0+F", 100) == "invalid option '%F' to 'format'" +string.format("%0+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0-F", 0) == "invalid option '%F' to 'format'" +string.format("%0-F", 1) == "invalid option '%F' to 'format'" +string.format("%0-F", -1) == "invalid option '%F' to 'format'" +string.format("%0-F", 2) == "invalid option '%F' to 'format'" +string.format("%0-F", -2) == "invalid option '%F' to 'format'" +string.format("%0-F", 3) == "invalid option '%F' to 'format'" +string.format("%0-F", -3) == "invalid option '%F' to 'format'" +string.format("%0-F", nan) == "invalid option '%F' to 'format'" +string.format("%0-F", inf) == "invalid option '%F' to 'format'" +string.format("%0-F", -inf) == "invalid option '%F' to 'format'" +string.format("%0-F", 100) == "invalid option '%F' to 'format'" +string.format("%0-F", 10000) == "invalid option '%F' to 'format'" +string.format("%0-F", 100000) == "invalid option '%F' to 'format'" +string.format("%0-F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0-F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0-F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0-F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0-F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0-F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0-F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0-F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0-F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0-F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0-F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0-F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0-F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0-+F", 0) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1) == "invalid option '%F' to 'format'" +string.format("%0-+F", -1) == "invalid option '%F' to 'format'" +string.format("%0-+F", 2) == "invalid option '%F' to 'format'" +string.format("%0-+F", -2) == "invalid option '%F' to 'format'" +string.format("%0-+F", 3) == "invalid option '%F' to 'format'" +string.format("%0-+F", -3) == "invalid option '%F' to 'format'" +string.format("%0-+F", nan) == "invalid option '%F' to 'format'" +string.format("%0-+F", inf) == "invalid option '%F' to 'format'" +string.format("%0-+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0-+F", 100) == "invalid option '%F' to 'format'" +string.format("%0-+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0-+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0-+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0-+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0-+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0-+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0-+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0-+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0 F", 0) == "invalid option '%F' to 'format'" +string.format("%0 F", 1) == "invalid option '%F' to 'format'" +string.format("%0 F", -1) == "invalid option '%F' to 'format'" +string.format("%0 F", 2) == "invalid option '%F' to 'format'" +string.format("%0 F", -2) == "invalid option '%F' to 'format'" +string.format("%0 F", 3) == "invalid option '%F' to 'format'" +string.format("%0 F", -3) == "invalid option '%F' to 'format'" +string.format("%0 F", nan) == "invalid option '%F' to 'format'" +string.format("%0 F", inf) == "invalid option '%F' to 'format'" +string.format("%0 F", -inf) == "invalid option '%F' to 'format'" +string.format("%0 F", 100) == "invalid option '%F' to 'format'" +string.format("%0 F", 10000) == "invalid option '%F' to 'format'" +string.format("%0 F", 100000) == "invalid option '%F' to 'format'" +string.format("%0 F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0 F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0 F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0 F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0 F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0 F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0 F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0 F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0 F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0 F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0 F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0 F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0 F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0 +F", 0) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1) == "invalid option '%F' to 'format'" +string.format("%0 +F", -1) == "invalid option '%F' to 'format'" +string.format("%0 +F", 2) == "invalid option '%F' to 'format'" +string.format("%0 +F", -2) == "invalid option '%F' to 'format'" +string.format("%0 +F", 3) == "invalid option '%F' to 'format'" +string.format("%0 +F", -3) == "invalid option '%F' to 'format'" +string.format("%0 +F", nan) == "invalid option '%F' to 'format'" +string.format("%0 +F", inf) == "invalid option '%F' to 'format'" +string.format("%0 +F", -inf) == "invalid option '%F' to 'format'" +string.format("%0 +F", 100) == "invalid option '%F' to 'format'" +string.format("%0 +F", 10000) == "invalid option '%F' to 'format'" +string.format("%0 +F", 100000) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0 +F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0 +F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0 +F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0 +F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0 +F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0 +F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0 -F", 0) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1) == "invalid option '%F' to 'format'" +string.format("%0 -F", -1) == "invalid option '%F' to 'format'" +string.format("%0 -F", 2) == "invalid option '%F' to 'format'" +string.format("%0 -F", -2) == "invalid option '%F' to 'format'" +string.format("%0 -F", 3) == "invalid option '%F' to 'format'" +string.format("%0 -F", -3) == "invalid option '%F' to 'format'" +string.format("%0 -F", nan) == "invalid option '%F' to 'format'" +string.format("%0 -F", inf) == "invalid option '%F' to 'format'" +string.format("%0 -F", -inf) == "invalid option '%F' to 'format'" +string.format("%0 -F", 100) == "invalid option '%F' to 'format'" +string.format("%0 -F", 10000) == "invalid option '%F' to 'format'" +string.format("%0 -F", 100000) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0 -F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0 -F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0 -F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0 -F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0 -F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0 -F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 0) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1) == "invalid option '%F' to 'format'" +string.format("%0 -+F", -1) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 2) == "invalid option '%F' to 'format'" +string.format("%0 -+F", -2) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 3) == "invalid option '%F' to 'format'" +string.format("%0 -+F", -3) == "invalid option '%F' to 'format'" +string.format("%0 -+F", nan) == "invalid option '%F' to 'format'" +string.format("%0 -+F", inf) == "invalid option '%F' to 'format'" +string.format("%0 -+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 100) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0 -+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0#F", 0) == "invalid option '%F' to 'format'" +string.format("%0#F", 1) == "invalid option '%F' to 'format'" +string.format("%0#F", -1) == "invalid option '%F' to 'format'" +string.format("%0#F", 2) == "invalid option '%F' to 'format'" +string.format("%0#F", -2) == "invalid option '%F' to 'format'" +string.format("%0#F", 3) == "invalid option '%F' to 'format'" +string.format("%0#F", -3) == "invalid option '%F' to 'format'" +string.format("%0#F", nan) == "invalid option '%F' to 'format'" +string.format("%0#F", inf) == "invalid option '%F' to 'format'" +string.format("%0#F", -inf) == "invalid option '%F' to 'format'" +string.format("%0#F", 100) == "invalid option '%F' to 'format'" +string.format("%0#F", 10000) == "invalid option '%F' to 'format'" +string.format("%0#F", 100000) == "invalid option '%F' to 'format'" +string.format("%0#F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0#F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0#F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0#F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0#F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0#F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0#F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0#F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0#F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0#F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0#F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0#F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0#F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0#+F", 0) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1) == "invalid option '%F' to 'format'" +string.format("%0#+F", -1) == "invalid option '%F' to 'format'" +string.format("%0#+F", 2) == "invalid option '%F' to 'format'" +string.format("%0#+F", -2) == "invalid option '%F' to 'format'" +string.format("%0#+F", 3) == "invalid option '%F' to 'format'" +string.format("%0#+F", -3) == "invalid option '%F' to 'format'" +string.format("%0#+F", nan) == "invalid option '%F' to 'format'" +string.format("%0#+F", inf) == "invalid option '%F' to 'format'" +string.format("%0#+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0#+F", 100) == "invalid option '%F' to 'format'" +string.format("%0#+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0#+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0#+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0#+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0#+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0#+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0#+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0#+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0#-F", 0) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1) == "invalid option '%F' to 'format'" +string.format("%0#-F", -1) == "invalid option '%F' to 'format'" +string.format("%0#-F", 2) == "invalid option '%F' to 'format'" +string.format("%0#-F", -2) == "invalid option '%F' to 'format'" +string.format("%0#-F", 3) == "invalid option '%F' to 'format'" +string.format("%0#-F", -3) == "invalid option '%F' to 'format'" +string.format("%0#-F", nan) == "invalid option '%F' to 'format'" +string.format("%0#-F", inf) == "invalid option '%F' to 'format'" +string.format("%0#-F", -inf) == "invalid option '%F' to 'format'" +string.format("%0#-F", 100) == "invalid option '%F' to 'format'" +string.format("%0#-F", 10000) == "invalid option '%F' to 'format'" +string.format("%0#-F", 100000) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0#-F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0#-F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0#-F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0#-F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0#-F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0#-F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 0) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1) == "invalid option '%F' to 'format'" +string.format("%0#-+F", -1) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 2) == "invalid option '%F' to 'format'" +string.format("%0#-+F", -2) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 3) == "invalid option '%F' to 'format'" +string.format("%0#-+F", -3) == "invalid option '%F' to 'format'" +string.format("%0#-+F", nan) == "invalid option '%F' to 'format'" +string.format("%0#-+F", inf) == "invalid option '%F' to 'format'" +string.format("%0#-+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 100) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0#-+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0# F", 0) == "invalid option '%F' to 'format'" +string.format("%0# F", 1) == "invalid option '%F' to 'format'" +string.format("%0# F", -1) == "invalid option '%F' to 'format'" +string.format("%0# F", 2) == "invalid option '%F' to 'format'" +string.format("%0# F", -2) == "invalid option '%F' to 'format'" +string.format("%0# F", 3) == "invalid option '%F' to 'format'" +string.format("%0# F", -3) == "invalid option '%F' to 'format'" +string.format("%0# F", nan) == "invalid option '%F' to 'format'" +string.format("%0# F", inf) == "invalid option '%F' to 'format'" +string.format("%0# F", -inf) == "invalid option '%F' to 'format'" +string.format("%0# F", 100) == "invalid option '%F' to 'format'" +string.format("%0# F", 10000) == "invalid option '%F' to 'format'" +string.format("%0# F", 100000) == "invalid option '%F' to 'format'" +string.format("%0# F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0# F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0# F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0# F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0# F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0# F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0# F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0# F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0# F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0# F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0# F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0# F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0# F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0# +F", 0) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1) == "invalid option '%F' to 'format'" +string.format("%0# +F", -1) == "invalid option '%F' to 'format'" +string.format("%0# +F", 2) == "invalid option '%F' to 'format'" +string.format("%0# +F", -2) == "invalid option '%F' to 'format'" +string.format("%0# +F", 3) == "invalid option '%F' to 'format'" +string.format("%0# +F", -3) == "invalid option '%F' to 'format'" +string.format("%0# +F", nan) == "invalid option '%F' to 'format'" +string.format("%0# +F", inf) == "invalid option '%F' to 'format'" +string.format("%0# +F", -inf) == "invalid option '%F' to 'format'" +string.format("%0# +F", 100) == "invalid option '%F' to 'format'" +string.format("%0# +F", 10000) == "invalid option '%F' to 'format'" +string.format("%0# +F", 100000) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0# +F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0# +F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0# +F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0# +F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0# +F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0# +F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0# -F", 0) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1) == "invalid option '%F' to 'format'" +string.format("%0# -F", -1) == "invalid option '%F' to 'format'" +string.format("%0# -F", 2) == "invalid option '%F' to 'format'" +string.format("%0# -F", -2) == "invalid option '%F' to 'format'" +string.format("%0# -F", 3) == "invalid option '%F' to 'format'" +string.format("%0# -F", -3) == "invalid option '%F' to 'format'" +string.format("%0# -F", nan) == "invalid option '%F' to 'format'" +string.format("%0# -F", inf) == "invalid option '%F' to 'format'" +string.format("%0# -F", -inf) == "invalid option '%F' to 'format'" +string.format("%0# -F", 100) == "invalid option '%F' to 'format'" +string.format("%0# -F", 10000) == "invalid option '%F' to 'format'" +string.format("%0# -F", 100000) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0# -F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0# -F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0# -F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0# -F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0# -F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0# -F", 1.23456789123e-05) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 0) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1) == "invalid option '%F' to 'format'" +string.format("%0# -+F", -1) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 2) == "invalid option '%F' to 'format'" +string.format("%0# -+F", -2) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 3) == "invalid option '%F' to 'format'" +string.format("%0# -+F", -3) == "invalid option '%F' to 'format'" +string.format("%0# -+F", nan) == "invalid option '%F' to 'format'" +string.format("%0# -+F", inf) == "invalid option '%F' to 'format'" +string.format("%0# -+F", -inf) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 100) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 10000) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 100000) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1000000) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 10000000) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 0.01) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 0.0001) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1e-05) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1e-06) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1e-07) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 123.456) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1234560000) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1.23456e-05) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 123.456789123) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1234567891.23) == "invalid option '%F' to 'format'" +string.format("%0# -+F", 1.23456789123e-05) == "invalid option '%F' to 'format'" += g = +string.format("%g", 0) == "0" +string.format("%g", 1) == "1" +string.format("%g", -1) == "-1" +string.format("%g", 2) == "2" +string.format("%g", -2) == "-2" +string.format("%g", 3) == "3" +string.format("%g", -3) == "-3" +string.format("%g", nan) == "nan" +string.format("%g", inf) == "inf" +string.format("%g", -inf) == "-inf" +string.format("%g", 100) == "100" +string.format("%g", 10000) == "10000" +string.format("%g", 100000) == "100000" +string.format("%g", 1000000) == "1e+06" +string.format("%g", 10000000) == "1e+07" +string.format("%g", 0.01) == "0.01" +string.format("%g", 0.0001) == "0.0001" +string.format("%g", 1e-05) == "1e-05" +string.format("%g", 1e-06) == "1e-06" +string.format("%g", 1e-07) == "1e-07" +string.format("%g", 123.456) == "123.456" +string.format("%g", 1234560000) == "1.23456e+09" +string.format("%g", 1.23456e-05) == "1.23456e-05" +string.format("%g", 123.456789123) == "123.457" +string.format("%g", 1234567891.23) == "1.23457e+09" +string.format("%g", 1.23456789123e-05) == "1.23457e-05" +string.format("%.0g", 100) == "1e+02" +string.format("%.0g", 10000) == "1e+04" +string.format("%.0g", 100000) == "1e+05" +string.format("%.0g", 123.456) == "1e+02" +string.format("%.0g", 1234560000) == "1e+09" +string.format("%.0g", 1.23456e-05) == "1e-05" +string.format("%.0g", 123.456789123) == "1e+02" +string.format("%.0g", 1234567891.23) == "1e+09" +string.format("%.0g", 1.23456789123e-05) == "1e-05" +string.format("%.1g", 100) == "1e+02" +string.format("%.1g", 10000) == "1e+04" +string.format("%.1g", 100000) == "1e+05" +string.format("%.1g", 123.456) == "1e+02" +string.format("%.1g", 1234560000) == "1e+09" +string.format("%.1g", 1.23456e-05) == "1e-05" +string.format("%.1g", 123.456789123) == "1e+02" +string.format("%.1g", 1234567891.23) == "1e+09" +string.format("%.1g", 1.23456789123e-05) == "1e-05" +string.format("%1.0g", 100) == "1e+02" +string.format("%1.0g", 10000) == "1e+04" +string.format("%1.0g", 100000) == "1e+05" +string.format("%1.0g", 123.456) == "1e+02" +string.format("%1.0g", 1234560000) == "1e+09" +string.format("%1.0g", 1.23456e-05) == "1e-05" +string.format("%1.0g", 123.456789123) == "1e+02" +string.format("%1.0g", 1234567891.23) == "1e+09" +string.format("%1.0g", 1.23456789123e-05) == "1e-05" +string.format("%1.1g", 100) == "1e+02" +string.format("%1.1g", 10000) == "1e+04" +string.format("%1.1g", 100000) == "1e+05" +string.format("%1.1g", 123.456) == "1e+02" +string.format("%1.1g", 1234560000) == "1e+09" +string.format("%1.1g", 1.23456e-05) == "1e-05" +string.format("%1.1g", 123.456789123) == "1e+02" +string.format("%1.1g", 1234567891.23) == "1e+09" +string.format("%1.1g", 1.23456789123e-05) == "1e-05" +string.format("%2g", 0) == " 0" +string.format("%2g", 1) == " 1" +string.format("%2g", 2) == " 2" +string.format("%2g", 3) == " 3" +string.format("%2.0g", 0) == " 0" +string.format("%2.0g", 1) == " 1" +string.format("%2.0g", 2) == " 2" +string.format("%2.0g", 3) == " 3" +string.format("%2.0g", 100) == "1e+02" +string.format("%2.0g", 10000) == "1e+04" +string.format("%2.0g", 100000) == "1e+05" +string.format("%2.0g", 123.456) == "1e+02" +string.format("%2.0g", 1234560000) == "1e+09" +string.format("%2.0g", 1.23456e-05) == "1e-05" +string.format("%2.0g", 123.456789123) == "1e+02" +string.format("%2.0g", 1234567891.23) == "1e+09" +string.format("%2.0g", 1.23456789123e-05) == "1e-05" +string.format("%2.1g", 0) == " 0" +string.format("%2.1g", 1) == " 1" +string.format("%2.1g", 2) == " 2" +string.format("%2.1g", 3) == " 3" +string.format("%2.1g", 100) == "1e+02" +string.format("%2.1g", 10000) == "1e+04" +string.format("%2.1g", 100000) == "1e+05" +string.format("%2.1g", 123.456) == "1e+02" +string.format("%2.1g", 1234560000) == "1e+09" +string.format("%2.1g", 1.23456e-05) == "1e-05" +string.format("%2.1g", 123.456789123) == "1e+02" +string.format("%2.1g", 1234567891.23) == "1e+09" +string.format("%2.1g", 1.23456789123e-05) == "1e-05" +string.format("%2.6g", 0) == " 0" +string.format("%2.6g", 1) == " 1" +string.format("%2.6g", 2) == " 2" +string.format("%2.6g", 3) == " 3" +string.format("%6g", 0) == " 0" +string.format("%6g", 1) == " 1" +string.format("%6g", -1) == " -1" +string.format("%6g", 2) == " 2" +string.format("%6g", -2) == " -2" +string.format("%6g", 3) == " 3" +string.format("%6g", -3) == " -3" +string.format("%6g", nan) == " nan" +string.format("%6g", inf) == " inf" +string.format("%6g", -inf) == " -inf" +string.format("%6g", 100) == " 100" +string.format("%6g", 10000) == " 10000" +string.format("%6g", 1000000) == " 1e+06" +string.format("%6g", 10000000) == " 1e+07" +string.format("%6g", 0.01) == " 0.01" +string.format("%6g", 1e-05) == " 1e-05" +string.format("%6g", 1e-06) == " 1e-06" +string.format("%6g", 1e-07) == " 1e-07" +string.format("%6.0g", 0) == " 0" +string.format("%6.0g", 1) == " 1" +string.format("%6.0g", -1) == " -1" +string.format("%6.0g", 2) == " 2" +string.format("%6.0g", -2) == " -2" +string.format("%6.0g", 3) == " 3" +string.format("%6.0g", -3) == " -3" +string.format("%6.0g", nan) == " nan" +string.format("%6.0g", inf) == " inf" +string.format("%6.0g", -inf) == " -inf" +string.format("%6.0g", 100) == " 1e+02" +string.format("%6.0g", 10000) == " 1e+04" +string.format("%6.0g", 100000) == " 1e+05" +string.format("%6.0g", 1000000) == " 1e+06" +string.format("%6.0g", 10000000) == " 1e+07" +string.format("%6.0g", 0.01) == " 0.01" +string.format("%6.0g", 1e-05) == " 1e-05" +string.format("%6.0g", 1e-06) == " 1e-06" +string.format("%6.0g", 1e-07) == " 1e-07" +string.format("%6.0g", 123.456) == " 1e+02" +string.format("%6.0g", 1234560000) == " 1e+09" +string.format("%6.0g", 1.23456e-05) == " 1e-05" +string.format("%6.0g", 123.456789123) == " 1e+02" +string.format("%6.0g", 1234567891.23) == " 1e+09" +string.format("%6.0g", 1.23456789123e-05) == " 1e-05" +string.format("%6.1g", 0) == " 0" +string.format("%6.1g", 1) == " 1" +string.format("%6.1g", -1) == " -1" +string.format("%6.1g", 2) == " 2" +string.format("%6.1g", -2) == " -2" +string.format("%6.1g", 3) == " 3" +string.format("%6.1g", -3) == " -3" +string.format("%6.1g", nan) == " nan" +string.format("%6.1g", inf) == " inf" +string.format("%6.1g", -inf) == " -inf" +string.format("%6.1g", 100) == " 1e+02" +string.format("%6.1g", 10000) == " 1e+04" +string.format("%6.1g", 100000) == " 1e+05" +string.format("%6.1g", 1000000) == " 1e+06" +string.format("%6.1g", 10000000) == " 1e+07" +string.format("%6.1g", 0.01) == " 0.01" +string.format("%6.1g", 1e-05) == " 1e-05" +string.format("%6.1g", 1e-06) == " 1e-06" +string.format("%6.1g", 1e-07) == " 1e-07" +string.format("%6.1g", 123.456) == " 1e+02" +string.format("%6.1g", 1234560000) == " 1e+09" +string.format("%6.1g", 1.23456e-05) == " 1e-05" +string.format("%6.1g", 123.456789123) == " 1e+02" +string.format("%6.1g", 1234567891.23) == " 1e+09" +string.format("%6.1g", 1.23456789123e-05) == " 1e-05" +string.format("%6.6g", 0) == " 0" +string.format("%6.6g", 1) == " 1" +string.format("%6.6g", -1) == " -1" +string.format("%6.6g", 2) == " 2" +string.format("%6.6g", -2) == " -2" +string.format("%6.6g", 3) == " 3" +string.format("%6.6g", -3) == " -3" +string.format("%6.6g", nan) == " nan" +string.format("%6.6g", inf) == " inf" +string.format("%6.6g", -inf) == " -inf" +string.format("%6.6g", 100) == " 100" +string.format("%6.6g", 10000) == " 10000" +string.format("%6.6g", 1000000) == " 1e+06" +string.format("%6.6g", 10000000) == " 1e+07" +string.format("%6.6g", 0.01) == " 0.01" +string.format("%6.6g", 1e-05) == " 1e-05" +string.format("%6.6g", 1e-06) == " 1e-06" +string.format("%6.6g", 1e-07) == " 1e-07" +string.format("%20g", 0) == " 0" +string.format("%20g", 1) == " 1" +string.format("%20g", -1) == " -1" +string.format("%20g", 2) == " 2" +string.format("%20g", -2) == " -2" +string.format("%20g", 3) == " 3" +string.format("%20g", -3) == " -3" +string.format("%20g", nan) == " nan" +string.format("%20g", inf) == " inf" +string.format("%20g", -inf) == " -inf" +string.format("%20g", 100) == " 100" +string.format("%20g", 10000) == " 10000" +string.format("%20g", 100000) == " 100000" +string.format("%20g", 1000000) == " 1e+06" +string.format("%20g", 10000000) == " 1e+07" +string.format("%20g", 0.01) == " 0.01" +string.format("%20g", 0.0001) == " 0.0001" +string.format("%20g", 1e-05) == " 1e-05" +string.format("%20g", 1e-06) == " 1e-06" +string.format("%20g", 1e-07) == " 1e-07" +string.format("%20g", 123.456) == " 123.456" +string.format("%20g", 1234560000) == " 1.23456e+09" +string.format("%20g", 1.23456e-05) == " 1.23456e-05" +string.format("%20g", 123.456789123) == " 123.457" +string.format("%20g", 1234567891.23) == " 1.23457e+09" +string.format("%20g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%20.0g", 0) == " 0" +string.format("%20.0g", 1) == " 1" +string.format("%20.0g", -1) == " -1" +string.format("%20.0g", 2) == " 2" +string.format("%20.0g", -2) == " -2" +string.format("%20.0g", 3) == " 3" +string.format("%20.0g", -3) == " -3" +string.format("%20.0g", nan) == " nan" +string.format("%20.0g", inf) == " inf" +string.format("%20.0g", -inf) == " -inf" +string.format("%20.0g", 100) == " 1e+02" +string.format("%20.0g", 10000) == " 1e+04" +string.format("%20.0g", 100000) == " 1e+05" +string.format("%20.0g", 1000000) == " 1e+06" +string.format("%20.0g", 10000000) == " 1e+07" +string.format("%20.0g", 0.01) == " 0.01" +string.format("%20.0g", 0.0001) == " 0.0001" +string.format("%20.0g", 1e-05) == " 1e-05" +string.format("%20.0g", 1e-06) == " 1e-06" +string.format("%20.0g", 1e-07) == " 1e-07" +string.format("%20.0g", 123.456) == " 1e+02" +string.format("%20.0g", 1234560000) == " 1e+09" +string.format("%20.0g", 1.23456e-05) == " 1e-05" +string.format("%20.0g", 123.456789123) == " 1e+02" +string.format("%20.0g", 1234567891.23) == " 1e+09" +string.format("%20.0g", 1.23456789123e-05) == " 1e-05" +string.format("%20.1g", 0) == " 0" +string.format("%20.1g", 1) == " 1" +string.format("%20.1g", -1) == " -1" +string.format("%20.1g", 2) == " 2" +string.format("%20.1g", -2) == " -2" +string.format("%20.1g", 3) == " 3" +string.format("%20.1g", -3) == " -3" +string.format("%20.1g", nan) == " nan" +string.format("%20.1g", inf) == " inf" +string.format("%20.1g", -inf) == " -inf" +string.format("%20.1g", 100) == " 1e+02" +string.format("%20.1g", 10000) == " 1e+04" +string.format("%20.1g", 100000) == " 1e+05" +string.format("%20.1g", 1000000) == " 1e+06" +string.format("%20.1g", 10000000) == " 1e+07" +string.format("%20.1g", 0.01) == " 0.01" +string.format("%20.1g", 0.0001) == " 0.0001" +string.format("%20.1g", 1e-05) == " 1e-05" +string.format("%20.1g", 1e-06) == " 1e-06" +string.format("%20.1g", 1e-07) == " 1e-07" +string.format("%20.1g", 123.456) == " 1e+02" +string.format("%20.1g", 1234560000) == " 1e+09" +string.format("%20.1g", 1.23456e-05) == " 1e-05" +string.format("%20.1g", 123.456789123) == " 1e+02" +string.format("%20.1g", 1234567891.23) == " 1e+09" +string.format("%20.1g", 1.23456789123e-05) == " 1e-05" +string.format("%20.6g", 0) == " 0" +string.format("%20.6g", 1) == " 1" +string.format("%20.6g", -1) == " -1" +string.format("%20.6g", 2) == " 2" +string.format("%20.6g", -2) == " -2" +string.format("%20.6g", 3) == " 3" +string.format("%20.6g", -3) == " -3" +string.format("%20.6g", nan) == " nan" +string.format("%20.6g", inf) == " inf" +string.format("%20.6g", -inf) == " -inf" +string.format("%20.6g", 100) == " 100" +string.format("%20.6g", 10000) == " 10000" +string.format("%20.6g", 100000) == " 100000" +string.format("%20.6g", 1000000) == " 1e+06" +string.format("%20.6g", 10000000) == " 1e+07" +string.format("%20.6g", 0.01) == " 0.01" +string.format("%20.6g", 0.0001) == " 0.0001" +string.format("%20.6g", 1e-05) == " 1e-05" +string.format("%20.6g", 1e-06) == " 1e-06" +string.format("%20.6g", 1e-07) == " 1e-07" +string.format("%20.6g", 123.456) == " 123.456" +string.format("%20.6g", 1234560000) == " 1.23456e+09" +string.format("%20.6g", 1.23456e-05) == " 1.23456e-05" +string.format("%20.6g", 123.456789123) == " 123.457" +string.format("%20.6g", 1234567891.23) == " 1.23457e+09" +string.format("%20.6g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%+g", 0) == "+0" +string.format("%+g", 1) == "+1" +string.format("%+g", -1) == "-1" +string.format("%+g", 2) == "+2" +string.format("%+g", -2) == "-2" +string.format("%+g", 3) == "+3" +string.format("%+g", -3) == "-3" +string.format("%+g", nan) == "+nan" +string.format("%+g", inf) == "+inf" +string.format("%+g", -inf) == "-inf" +string.format("%+g", 100) == "+100" +string.format("%+g", 10000) == "+10000" +string.format("%+g", 100000) == "+100000" +string.format("%+g", 1000000) == "+1e+06" +string.format("%+g", 10000000) == "+1e+07" +string.format("%+g", 0.01) == "+0.01" +string.format("%+g", 0.0001) == "+0.0001" +string.format("%+g", 1e-05) == "+1e-05" +string.format("%+g", 1e-06) == "+1e-06" +string.format("%+g", 1e-07) == "+1e-07" +string.format("%+g", 123.456) == "+123.456" +string.format("%+g", 1234560000) == "+1.23456e+09" +string.format("%+g", 1.23456e-05) == "+1.23456e-05" +string.format("%+g", 123.456789123) == "+123.457" +string.format("%+g", 1234567891.23) == "+1.23457e+09" +string.format("%+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%+.0g", 100) == "+1e+02" +string.format("%+.0g", 10000) == "+1e+04" +string.format("%+.0g", 100000) == "+1e+05" +string.format("%+.0g", 123.456) == "+1e+02" +string.format("%+.0g", 1234560000) == "+1e+09" +string.format("%+.0g", 1.23456e-05) == "+1e-05" +string.format("%+.0g", 123.456789123) == "+1e+02" +string.format("%+.0g", 1234567891.23) == "+1e+09" +string.format("%+.0g", 1.23456789123e-05) == "+1e-05" +string.format("%+.1g", 100) == "+1e+02" +string.format("%+.1g", 10000) == "+1e+04" +string.format("%+.1g", 100000) == "+1e+05" +string.format("%+.1g", 123.456) == "+1e+02" +string.format("%+.1g", 1234560000) == "+1e+09" +string.format("%+.1g", 1.23456e-05) == "+1e-05" +string.format("%+.1g", 123.456789123) == "+1e+02" +string.format("%+.1g", 1234567891.23) == "+1e+09" +string.format("%+.1g", 1.23456789123e-05) == "+1e-05" +string.format("%+1.0g", 100) == "+1e+02" +string.format("%+1.0g", 10000) == "+1e+04" +string.format("%+1.0g", 100000) == "+1e+05" +string.format("%+1.0g", 123.456) == "+1e+02" +string.format("%+1.0g", 1234560000) == "+1e+09" +string.format("%+1.0g", 1.23456e-05) == "+1e-05" +string.format("%+1.0g", 123.456789123) == "+1e+02" +string.format("%+1.0g", 1234567891.23) == "+1e+09" +string.format("%+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%+1.1g", 100) == "+1e+02" +string.format("%+1.1g", 10000) == "+1e+04" +string.format("%+1.1g", 100000) == "+1e+05" +string.format("%+1.1g", 123.456) == "+1e+02" +string.format("%+1.1g", 1234560000) == "+1e+09" +string.format("%+1.1g", 1.23456e-05) == "+1e-05" +string.format("%+1.1g", 123.456789123) == "+1e+02" +string.format("%+1.1g", 1234567891.23) == "+1e+09" +string.format("%+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%+2.0g", 100) == "+1e+02" +string.format("%+2.0g", 10000) == "+1e+04" +string.format("%+2.0g", 100000) == "+1e+05" +string.format("%+2.0g", 123.456) == "+1e+02" +string.format("%+2.0g", 1234560000) == "+1e+09" +string.format("%+2.0g", 1.23456e-05) == "+1e-05" +string.format("%+2.0g", 123.456789123) == "+1e+02" +string.format("%+2.0g", 1234567891.23) == "+1e+09" +string.format("%+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%+2.1g", 100) == "+1e+02" +string.format("%+2.1g", 10000) == "+1e+04" +string.format("%+2.1g", 100000) == "+1e+05" +string.format("%+2.1g", 123.456) == "+1e+02" +string.format("%+2.1g", 1234560000) == "+1e+09" +string.format("%+2.1g", 1.23456e-05) == "+1e-05" +string.format("%+2.1g", 123.456789123) == "+1e+02" +string.format("%+2.1g", 1234567891.23) == "+1e+09" +string.format("%+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%+6g", 0) == " +0" +string.format("%+6g", 1) == " +1" +string.format("%+6g", -1) == " -1" +string.format("%+6g", 2) == " +2" +string.format("%+6g", -2) == " -2" +string.format("%+6g", 3) == " +3" +string.format("%+6g", -3) == " -3" +string.format("%+6g", nan) == " +nan" +string.format("%+6g", inf) == " +inf" +string.format("%+6g", -inf) == " -inf" +string.format("%+6g", 100) == " +100" +string.format("%+6g", 0.01) == " +0.01" +string.format("%+6.0g", 0) == " +0" +string.format("%+6.0g", 1) == " +1" +string.format("%+6.0g", -1) == " -1" +string.format("%+6.0g", 2) == " +2" +string.format("%+6.0g", -2) == " -2" +string.format("%+6.0g", 3) == " +3" +string.format("%+6.0g", -3) == " -3" +string.format("%+6.0g", nan) == " +nan" +string.format("%+6.0g", inf) == " +inf" +string.format("%+6.0g", -inf) == " -inf" +string.format("%+6.0g", 100) == "+1e+02" +string.format("%+6.0g", 10000) == "+1e+04" +string.format("%+6.0g", 100000) == "+1e+05" +string.format("%+6.0g", 0.01) == " +0.01" +string.format("%+6.0g", 123.456) == "+1e+02" +string.format("%+6.0g", 1234560000) == "+1e+09" +string.format("%+6.0g", 1.23456e-05) == "+1e-05" +string.format("%+6.0g", 123.456789123) == "+1e+02" +string.format("%+6.0g", 1234567891.23) == "+1e+09" +string.format("%+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%+6.1g", 0) == " +0" +string.format("%+6.1g", 1) == " +1" +string.format("%+6.1g", -1) == " -1" +string.format("%+6.1g", 2) == " +2" +string.format("%+6.1g", -2) == " -2" +string.format("%+6.1g", 3) == " +3" +string.format("%+6.1g", -3) == " -3" +string.format("%+6.1g", nan) == " +nan" +string.format("%+6.1g", inf) == " +inf" +string.format("%+6.1g", -inf) == " -inf" +string.format("%+6.1g", 100) == "+1e+02" +string.format("%+6.1g", 10000) == "+1e+04" +string.format("%+6.1g", 100000) == "+1e+05" +string.format("%+6.1g", 0.01) == " +0.01" +string.format("%+6.1g", 123.456) == "+1e+02" +string.format("%+6.1g", 1234560000) == "+1e+09" +string.format("%+6.1g", 1.23456e-05) == "+1e-05" +string.format("%+6.1g", 123.456789123) == "+1e+02" +string.format("%+6.1g", 1234567891.23) == "+1e+09" +string.format("%+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%+6.6g", 0) == " +0" +string.format("%+6.6g", 1) == " +1" +string.format("%+6.6g", -1) == " -1" +string.format("%+6.6g", 2) == " +2" +string.format("%+6.6g", -2) == " -2" +string.format("%+6.6g", 3) == " +3" +string.format("%+6.6g", -3) == " -3" +string.format("%+6.6g", nan) == " +nan" +string.format("%+6.6g", inf) == " +inf" +string.format("%+6.6g", -inf) == " -inf" +string.format("%+6.6g", 100) == " +100" +string.format("%+6.6g", 0.01) == " +0.01" +string.format("%+20g", 0) == " +0" +string.format("%+20g", 1) == " +1" +string.format("%+20g", -1) == " -1" +string.format("%+20g", 2) == " +2" +string.format("%+20g", -2) == " -2" +string.format("%+20g", 3) == " +3" +string.format("%+20g", -3) == " -3" +string.format("%+20g", nan) == " +nan" +string.format("%+20g", inf) == " +inf" +string.format("%+20g", -inf) == " -inf" +string.format("%+20g", 100) == " +100" +string.format("%+20g", 10000) == " +10000" +string.format("%+20g", 100000) == " +100000" +string.format("%+20g", 1000000) == " +1e+06" +string.format("%+20g", 10000000) == " +1e+07" +string.format("%+20g", 0.01) == " +0.01" +string.format("%+20g", 0.0001) == " +0.0001" +string.format("%+20g", 1e-05) == " +1e-05" +string.format("%+20g", 1e-06) == " +1e-06" +string.format("%+20g", 1e-07) == " +1e-07" +string.format("%+20g", 123.456) == " +123.456" +string.format("%+20g", 1234560000) == " +1.23456e+09" +string.format("%+20g", 1.23456e-05) == " +1.23456e-05" +string.format("%+20g", 123.456789123) == " +123.457" +string.format("%+20g", 1234567891.23) == " +1.23457e+09" +string.format("%+20g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%+20.0g", 0) == " +0" +string.format("%+20.0g", 1) == " +1" +string.format("%+20.0g", -1) == " -1" +string.format("%+20.0g", 2) == " +2" +string.format("%+20.0g", -2) == " -2" +string.format("%+20.0g", 3) == " +3" +string.format("%+20.0g", -3) == " -3" +string.format("%+20.0g", nan) == " +nan" +string.format("%+20.0g", inf) == " +inf" +string.format("%+20.0g", -inf) == " -inf" +string.format("%+20.0g", 100) == " +1e+02" +string.format("%+20.0g", 10000) == " +1e+04" +string.format("%+20.0g", 100000) == " +1e+05" +string.format("%+20.0g", 1000000) == " +1e+06" +string.format("%+20.0g", 10000000) == " +1e+07" +string.format("%+20.0g", 0.01) == " +0.01" +string.format("%+20.0g", 0.0001) == " +0.0001" +string.format("%+20.0g", 1e-05) == " +1e-05" +string.format("%+20.0g", 1e-06) == " +1e-06" +string.format("%+20.0g", 1e-07) == " +1e-07" +string.format("%+20.0g", 123.456) == " +1e+02" +string.format("%+20.0g", 1234560000) == " +1e+09" +string.format("%+20.0g", 1.23456e-05) == " +1e-05" +string.format("%+20.0g", 123.456789123) == " +1e+02" +string.format("%+20.0g", 1234567891.23) == " +1e+09" +string.format("%+20.0g", 1.23456789123e-05) == " +1e-05" +string.format("%+20.1g", 0) == " +0" +string.format("%+20.1g", 1) == " +1" +string.format("%+20.1g", -1) == " -1" +string.format("%+20.1g", 2) == " +2" +string.format("%+20.1g", -2) == " -2" +string.format("%+20.1g", 3) == " +3" +string.format("%+20.1g", -3) == " -3" +string.format("%+20.1g", nan) == " +nan" +string.format("%+20.1g", inf) == " +inf" +string.format("%+20.1g", -inf) == " -inf" +string.format("%+20.1g", 100) == " +1e+02" +string.format("%+20.1g", 10000) == " +1e+04" +string.format("%+20.1g", 100000) == " +1e+05" +string.format("%+20.1g", 1000000) == " +1e+06" +string.format("%+20.1g", 10000000) == " +1e+07" +string.format("%+20.1g", 0.01) == " +0.01" +string.format("%+20.1g", 0.0001) == " +0.0001" +string.format("%+20.1g", 1e-05) == " +1e-05" +string.format("%+20.1g", 1e-06) == " +1e-06" +string.format("%+20.1g", 1e-07) == " +1e-07" +string.format("%+20.1g", 123.456) == " +1e+02" +string.format("%+20.1g", 1234560000) == " +1e+09" +string.format("%+20.1g", 1.23456e-05) == " +1e-05" +string.format("%+20.1g", 123.456789123) == " +1e+02" +string.format("%+20.1g", 1234567891.23) == " +1e+09" +string.format("%+20.1g", 1.23456789123e-05) == " +1e-05" +string.format("%+20.6g", 0) == " +0" +string.format("%+20.6g", 1) == " +1" +string.format("%+20.6g", -1) == " -1" +string.format("%+20.6g", 2) == " +2" +string.format("%+20.6g", -2) == " -2" +string.format("%+20.6g", 3) == " +3" +string.format("%+20.6g", -3) == " -3" +string.format("%+20.6g", nan) == " +nan" +string.format("%+20.6g", inf) == " +inf" +string.format("%+20.6g", -inf) == " -inf" +string.format("%+20.6g", 100) == " +100" +string.format("%+20.6g", 10000) == " +10000" +string.format("%+20.6g", 100000) == " +100000" +string.format("%+20.6g", 1000000) == " +1e+06" +string.format("%+20.6g", 10000000) == " +1e+07" +string.format("%+20.6g", 0.01) == " +0.01" +string.format("%+20.6g", 0.0001) == " +0.0001" +string.format("%+20.6g", 1e-05) == " +1e-05" +string.format("%+20.6g", 1e-06) == " +1e-06" +string.format("%+20.6g", 1e-07) == " +1e-07" +string.format("%+20.6g", 123.456) == " +123.456" +string.format("%+20.6g", 1234560000) == " +1.23456e+09" +string.format("%+20.6g", 1.23456e-05) == " +1.23456e-05" +string.format("%+20.6g", 123.456789123) == " +123.457" +string.format("%+20.6g", 1234567891.23) == " +1.23457e+09" +string.format("%+20.6g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%-g", 0) == "0" +string.format("%-g", 1) == "1" +string.format("%-g", -1) == "-1" +string.format("%-g", 2) == "2" +string.format("%-g", -2) == "-2" +string.format("%-g", 3) == "3" +string.format("%-g", -3) == "-3" +string.format("%-g", nan) == "nan" +string.format("%-g", inf) == "inf" +string.format("%-g", -inf) == "-inf" +string.format("%-g", 100) == "100" +string.format("%-g", 10000) == "10000" +string.format("%-g", 100000) == "100000" +string.format("%-g", 1000000) == "1e+06" +string.format("%-g", 10000000) == "1e+07" +string.format("%-g", 0.01) == "0.01" +string.format("%-g", 0.0001) == "0.0001" +string.format("%-g", 1e-05) == "1e-05" +string.format("%-g", 1e-06) == "1e-06" +string.format("%-g", 1e-07) == "1e-07" +string.format("%-g", 123.456) == "123.456" +string.format("%-g", 1234560000) == "1.23456e+09" +string.format("%-g", 1.23456e-05) == "1.23456e-05" +string.format("%-g", 123.456789123) == "123.457" +string.format("%-g", 1234567891.23) == "1.23457e+09" +string.format("%-g", 1.23456789123e-05) == "1.23457e-05" +string.format("%-.0g", 100) == "1e+02" +string.format("%-.0g", 10000) == "1e+04" +string.format("%-.0g", 100000) == "1e+05" +string.format("%-.0g", 123.456) == "1e+02" +string.format("%-.0g", 1234560000) == "1e+09" +string.format("%-.0g", 1.23456e-05) == "1e-05" +string.format("%-.0g", 123.456789123) == "1e+02" +string.format("%-.0g", 1234567891.23) == "1e+09" +string.format("%-.0g", 1.23456789123e-05) == "1e-05" +string.format("%-.1g", 100) == "1e+02" +string.format("%-.1g", 10000) == "1e+04" +string.format("%-.1g", 100000) == "1e+05" +string.format("%-.1g", 123.456) == "1e+02" +string.format("%-.1g", 1234560000) == "1e+09" +string.format("%-.1g", 1.23456e-05) == "1e-05" +string.format("%-.1g", 123.456789123) == "1e+02" +string.format("%-.1g", 1234567891.23) == "1e+09" +string.format("%-.1g", 1.23456789123e-05) == "1e-05" +string.format("%-1.0g", 100) == "1e+02" +string.format("%-1.0g", 10000) == "1e+04" +string.format("%-1.0g", 100000) == "1e+05" +string.format("%-1.0g", 123.456) == "1e+02" +string.format("%-1.0g", 1234560000) == "1e+09" +string.format("%-1.0g", 1.23456e-05) == "1e-05" +string.format("%-1.0g", 123.456789123) == "1e+02" +string.format("%-1.0g", 1234567891.23) == "1e+09" +string.format("%-1.0g", 1.23456789123e-05) == "1e-05" +string.format("%-1.1g", 100) == "1e+02" +string.format("%-1.1g", 10000) == "1e+04" +string.format("%-1.1g", 100000) == "1e+05" +string.format("%-1.1g", 123.456) == "1e+02" +string.format("%-1.1g", 1234560000) == "1e+09" +string.format("%-1.1g", 1.23456e-05) == "1e-05" +string.format("%-1.1g", 123.456789123) == "1e+02" +string.format("%-1.1g", 1234567891.23) == "1e+09" +string.format("%-1.1g", 1.23456789123e-05) == "1e-05" +string.format("%-2g", 0) == "0 " +string.format("%-2g", 1) == "1 " +string.format("%-2g", 2) == "2 " +string.format("%-2g", 3) == "3 " +string.format("%-2.0g", 0) == "0 " +string.format("%-2.0g", 1) == "1 " +string.format("%-2.0g", 2) == "2 " +string.format("%-2.0g", 3) == "3 " +string.format("%-2.0g", 100) == "1e+02" +string.format("%-2.0g", 10000) == "1e+04" +string.format("%-2.0g", 100000) == "1e+05" +string.format("%-2.0g", 123.456) == "1e+02" +string.format("%-2.0g", 1234560000) == "1e+09" +string.format("%-2.0g", 1.23456e-05) == "1e-05" +string.format("%-2.0g", 123.456789123) == "1e+02" +string.format("%-2.0g", 1234567891.23) == "1e+09" +string.format("%-2.0g", 1.23456789123e-05) == "1e-05" +string.format("%-2.1g", 0) == "0 " +string.format("%-2.1g", 1) == "1 " +string.format("%-2.1g", 2) == "2 " +string.format("%-2.1g", 3) == "3 " +string.format("%-2.1g", 100) == "1e+02" +string.format("%-2.1g", 10000) == "1e+04" +string.format("%-2.1g", 100000) == "1e+05" +string.format("%-2.1g", 123.456) == "1e+02" +string.format("%-2.1g", 1234560000) == "1e+09" +string.format("%-2.1g", 1.23456e-05) == "1e-05" +string.format("%-2.1g", 123.456789123) == "1e+02" +string.format("%-2.1g", 1234567891.23) == "1e+09" +string.format("%-2.1g", 1.23456789123e-05) == "1e-05" +string.format("%-2.6g", 0) == "0 " +string.format("%-2.6g", 1) == "1 " +string.format("%-2.6g", 2) == "2 " +string.format("%-2.6g", 3) == "3 " +string.format("%-6g", 0) == "0 " +string.format("%-6g", 1) == "1 " +string.format("%-6g", -1) == "-1 " +string.format("%-6g", 2) == "2 " +string.format("%-6g", -2) == "-2 " +string.format("%-6g", 3) == "3 " +string.format("%-6g", -3) == "-3 " +string.format("%-6g", nan) == "nan " +string.format("%-6g", inf) == "inf " +string.format("%-6g", -inf) == "-inf " +string.format("%-6g", 100) == "100 " +string.format("%-6g", 10000) == "10000 " +string.format("%-6g", 1000000) == "1e+06 " +string.format("%-6g", 10000000) == "1e+07 " +string.format("%-6g", 0.01) == "0.01 " +string.format("%-6g", 1e-05) == "1e-05 " +string.format("%-6g", 1e-06) == "1e-06 " +string.format("%-6g", 1e-07) == "1e-07 " +string.format("%-6.0g", 0) == "0 " +string.format("%-6.0g", 1) == "1 " +string.format("%-6.0g", -1) == "-1 " +string.format("%-6.0g", 2) == "2 " +string.format("%-6.0g", -2) == "-2 " +string.format("%-6.0g", 3) == "3 " +string.format("%-6.0g", -3) == "-3 " +string.format("%-6.0g", nan) == "nan " +string.format("%-6.0g", inf) == "inf " +string.format("%-6.0g", -inf) == "-inf " +string.format("%-6.0g", 100) == "1e+02 " +string.format("%-6.0g", 10000) == "1e+04 " +string.format("%-6.0g", 100000) == "1e+05 " +string.format("%-6.0g", 1000000) == "1e+06 " +string.format("%-6.0g", 10000000) == "1e+07 " +string.format("%-6.0g", 0.01) == "0.01 " +string.format("%-6.0g", 1e-05) == "1e-05 " +string.format("%-6.0g", 1e-06) == "1e-06 " +string.format("%-6.0g", 1e-07) == "1e-07 " +string.format("%-6.0g", 123.456) == "1e+02 " +string.format("%-6.0g", 1234560000) == "1e+09 " +string.format("%-6.0g", 1.23456e-05) == "1e-05 " +string.format("%-6.0g", 123.456789123) == "1e+02 " +string.format("%-6.0g", 1234567891.23) == "1e+09 " +string.format("%-6.0g", 1.23456789123e-05) == "1e-05 " +string.format("%-6.1g", 0) == "0 " +string.format("%-6.1g", 1) == "1 " +string.format("%-6.1g", -1) == "-1 " +string.format("%-6.1g", 2) == "2 " +string.format("%-6.1g", -2) == "-2 " +string.format("%-6.1g", 3) == "3 " +string.format("%-6.1g", -3) == "-3 " +string.format("%-6.1g", nan) == "nan " +string.format("%-6.1g", inf) == "inf " +string.format("%-6.1g", -inf) == "-inf " +string.format("%-6.1g", 100) == "1e+02 " +string.format("%-6.1g", 10000) == "1e+04 " +string.format("%-6.1g", 100000) == "1e+05 " +string.format("%-6.1g", 1000000) == "1e+06 " +string.format("%-6.1g", 10000000) == "1e+07 " +string.format("%-6.1g", 0.01) == "0.01 " +string.format("%-6.1g", 1e-05) == "1e-05 " +string.format("%-6.1g", 1e-06) == "1e-06 " +string.format("%-6.1g", 1e-07) == "1e-07 " +string.format("%-6.1g", 123.456) == "1e+02 " +string.format("%-6.1g", 1234560000) == "1e+09 " +string.format("%-6.1g", 1.23456e-05) == "1e-05 " +string.format("%-6.1g", 123.456789123) == "1e+02 " +string.format("%-6.1g", 1234567891.23) == "1e+09 " +string.format("%-6.1g", 1.23456789123e-05) == "1e-05 " +string.format("%-6.6g", 0) == "0 " +string.format("%-6.6g", 1) == "1 " +string.format("%-6.6g", -1) == "-1 " +string.format("%-6.6g", 2) == "2 " +string.format("%-6.6g", -2) == "-2 " +string.format("%-6.6g", 3) == "3 " +string.format("%-6.6g", -3) == "-3 " +string.format("%-6.6g", nan) == "nan " +string.format("%-6.6g", inf) == "inf " +string.format("%-6.6g", -inf) == "-inf " +string.format("%-6.6g", 100) == "100 " +string.format("%-6.6g", 10000) == "10000 " +string.format("%-6.6g", 1000000) == "1e+06 " +string.format("%-6.6g", 10000000) == "1e+07 " +string.format("%-6.6g", 0.01) == "0.01 " +string.format("%-6.6g", 1e-05) == "1e-05 " +string.format("%-6.6g", 1e-06) == "1e-06 " +string.format("%-6.6g", 1e-07) == "1e-07 " +string.format("%-20g", 0) == "0 " +string.format("%-20g", 1) == "1 " +string.format("%-20g", -1) == "-1 " +string.format("%-20g", 2) == "2 " +string.format("%-20g", -2) == "-2 " +string.format("%-20g", 3) == "3 " +string.format("%-20g", -3) == "-3 " +string.format("%-20g", nan) == "nan " +string.format("%-20g", inf) == "inf " +string.format("%-20g", -inf) == "-inf " +string.format("%-20g", 100) == "100 " +string.format("%-20g", 10000) == "10000 " +string.format("%-20g", 100000) == "100000 " +string.format("%-20g", 1000000) == "1e+06 " +string.format("%-20g", 10000000) == "1e+07 " +string.format("%-20g", 0.01) == "0.01 " +string.format("%-20g", 0.0001) == "0.0001 " +string.format("%-20g", 1e-05) == "1e-05 " +string.format("%-20g", 1e-06) == "1e-06 " +string.format("%-20g", 1e-07) == "1e-07 " +string.format("%-20g", 123.456) == "123.456 " +string.format("%-20g", 1234560000) == "1.23456e+09 " +string.format("%-20g", 1.23456e-05) == "1.23456e-05 " +string.format("%-20g", 123.456789123) == "123.457 " +string.format("%-20g", 1234567891.23) == "1.23457e+09 " +string.format("%-20g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%-20.0g", 0) == "0 " +string.format("%-20.0g", 1) == "1 " +string.format("%-20.0g", -1) == "-1 " +string.format("%-20.0g", 2) == "2 " +string.format("%-20.0g", -2) == "-2 " +string.format("%-20.0g", 3) == "3 " +string.format("%-20.0g", -3) == "-3 " +string.format("%-20.0g", nan) == "nan " +string.format("%-20.0g", inf) == "inf " +string.format("%-20.0g", -inf) == "-inf " +string.format("%-20.0g", 100) == "1e+02 " +string.format("%-20.0g", 10000) == "1e+04 " +string.format("%-20.0g", 100000) == "1e+05 " +string.format("%-20.0g", 1000000) == "1e+06 " +string.format("%-20.0g", 10000000) == "1e+07 " +string.format("%-20.0g", 0.01) == "0.01 " +string.format("%-20.0g", 0.0001) == "0.0001 " +string.format("%-20.0g", 1e-05) == "1e-05 " +string.format("%-20.0g", 1e-06) == "1e-06 " +string.format("%-20.0g", 1e-07) == "1e-07 " +string.format("%-20.0g", 123.456) == "1e+02 " +string.format("%-20.0g", 1234560000) == "1e+09 " +string.format("%-20.0g", 1.23456e-05) == "1e-05 " +string.format("%-20.0g", 123.456789123) == "1e+02 " +string.format("%-20.0g", 1234567891.23) == "1e+09 " +string.format("%-20.0g", 1.23456789123e-05) == "1e-05 " +string.format("%-20.1g", 0) == "0 " +string.format("%-20.1g", 1) == "1 " +string.format("%-20.1g", -1) == "-1 " +string.format("%-20.1g", 2) == "2 " +string.format("%-20.1g", -2) == "-2 " +string.format("%-20.1g", 3) == "3 " +string.format("%-20.1g", -3) == "-3 " +string.format("%-20.1g", nan) == "nan " +string.format("%-20.1g", inf) == "inf " +string.format("%-20.1g", -inf) == "-inf " +string.format("%-20.1g", 100) == "1e+02 " +string.format("%-20.1g", 10000) == "1e+04 " +string.format("%-20.1g", 100000) == "1e+05 " +string.format("%-20.1g", 1000000) == "1e+06 " +string.format("%-20.1g", 10000000) == "1e+07 " +string.format("%-20.1g", 0.01) == "0.01 " +string.format("%-20.1g", 0.0001) == "0.0001 " +string.format("%-20.1g", 1e-05) == "1e-05 " +string.format("%-20.1g", 1e-06) == "1e-06 " +string.format("%-20.1g", 1e-07) == "1e-07 " +string.format("%-20.1g", 123.456) == "1e+02 " +string.format("%-20.1g", 1234560000) == "1e+09 " +string.format("%-20.1g", 1.23456e-05) == "1e-05 " +string.format("%-20.1g", 123.456789123) == "1e+02 " +string.format("%-20.1g", 1234567891.23) == "1e+09 " +string.format("%-20.1g", 1.23456789123e-05) == "1e-05 " +string.format("%-20.6g", 0) == "0 " +string.format("%-20.6g", 1) == "1 " +string.format("%-20.6g", -1) == "-1 " +string.format("%-20.6g", 2) == "2 " +string.format("%-20.6g", -2) == "-2 " +string.format("%-20.6g", 3) == "3 " +string.format("%-20.6g", -3) == "-3 " +string.format("%-20.6g", nan) == "nan " +string.format("%-20.6g", inf) == "inf " +string.format("%-20.6g", -inf) == "-inf " +string.format("%-20.6g", 100) == "100 " +string.format("%-20.6g", 10000) == "10000 " +string.format("%-20.6g", 100000) == "100000 " +string.format("%-20.6g", 1000000) == "1e+06 " +string.format("%-20.6g", 10000000) == "1e+07 " +string.format("%-20.6g", 0.01) == "0.01 " +string.format("%-20.6g", 0.0001) == "0.0001 " +string.format("%-20.6g", 1e-05) == "1e-05 " +string.format("%-20.6g", 1e-06) == "1e-06 " +string.format("%-20.6g", 1e-07) == "1e-07 " +string.format("%-20.6g", 123.456) == "123.456 " +string.format("%-20.6g", 1234560000) == "1.23456e+09 " +string.format("%-20.6g", 1.23456e-05) == "1.23456e-05 " +string.format("%-20.6g", 123.456789123) == "123.457 " +string.format("%-20.6g", 1234567891.23) == "1.23457e+09 " +string.format("%-20.6g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%-+g", 0) == "+0" +string.format("%-+g", 1) == "+1" +string.format("%-+g", -1) == "-1" +string.format("%-+g", 2) == "+2" +string.format("%-+g", -2) == "-2" +string.format("%-+g", 3) == "+3" +string.format("%-+g", -3) == "-3" +string.format("%-+g", nan) == "+nan" +string.format("%-+g", inf) == "+inf" +string.format("%-+g", -inf) == "-inf" +string.format("%-+g", 100) == "+100" +string.format("%-+g", 10000) == "+10000" +string.format("%-+g", 100000) == "+100000" +string.format("%-+g", 1000000) == "+1e+06" +string.format("%-+g", 10000000) == "+1e+07" +string.format("%-+g", 0.01) == "+0.01" +string.format("%-+g", 0.0001) == "+0.0001" +string.format("%-+g", 1e-05) == "+1e-05" +string.format("%-+g", 1e-06) == "+1e-06" +string.format("%-+g", 1e-07) == "+1e-07" +string.format("%-+g", 123.456) == "+123.456" +string.format("%-+g", 1234560000) == "+1.23456e+09" +string.format("%-+g", 1.23456e-05) == "+1.23456e-05" +string.format("%-+g", 123.456789123) == "+123.457" +string.format("%-+g", 1234567891.23) == "+1.23457e+09" +string.format("%-+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%-+.0g", 100) == "+1e+02" +string.format("%-+.0g", 10000) == "+1e+04" +string.format("%-+.0g", 100000) == "+1e+05" +string.format("%-+.0g", 123.456) == "+1e+02" +string.format("%-+.0g", 1234560000) == "+1e+09" +string.format("%-+.0g", 1.23456e-05) == "+1e-05" +string.format("%-+.0g", 123.456789123) == "+1e+02" +string.format("%-+.0g", 1234567891.23) == "+1e+09" +string.format("%-+.0g", 1.23456789123e-05) == "+1e-05" +string.format("%-+.1g", 100) == "+1e+02" +string.format("%-+.1g", 10000) == "+1e+04" +string.format("%-+.1g", 100000) == "+1e+05" +string.format("%-+.1g", 123.456) == "+1e+02" +string.format("%-+.1g", 1234560000) == "+1e+09" +string.format("%-+.1g", 1.23456e-05) == "+1e-05" +string.format("%-+.1g", 123.456789123) == "+1e+02" +string.format("%-+.1g", 1234567891.23) == "+1e+09" +string.format("%-+.1g", 1.23456789123e-05) == "+1e-05" +string.format("%-+1.0g", 100) == "+1e+02" +string.format("%-+1.0g", 10000) == "+1e+04" +string.format("%-+1.0g", 100000) == "+1e+05" +string.format("%-+1.0g", 123.456) == "+1e+02" +string.format("%-+1.0g", 1234560000) == "+1e+09" +string.format("%-+1.0g", 1.23456e-05) == "+1e-05" +string.format("%-+1.0g", 123.456789123) == "+1e+02" +string.format("%-+1.0g", 1234567891.23) == "+1e+09" +string.format("%-+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%-+1.1g", 100) == "+1e+02" +string.format("%-+1.1g", 10000) == "+1e+04" +string.format("%-+1.1g", 100000) == "+1e+05" +string.format("%-+1.1g", 123.456) == "+1e+02" +string.format("%-+1.1g", 1234560000) == "+1e+09" +string.format("%-+1.1g", 1.23456e-05) == "+1e-05" +string.format("%-+1.1g", 123.456789123) == "+1e+02" +string.format("%-+1.1g", 1234567891.23) == "+1e+09" +string.format("%-+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%-+2.0g", 100) == "+1e+02" +string.format("%-+2.0g", 10000) == "+1e+04" +string.format("%-+2.0g", 100000) == "+1e+05" +string.format("%-+2.0g", 123.456) == "+1e+02" +string.format("%-+2.0g", 1234560000) == "+1e+09" +string.format("%-+2.0g", 1.23456e-05) == "+1e-05" +string.format("%-+2.0g", 123.456789123) == "+1e+02" +string.format("%-+2.0g", 1234567891.23) == "+1e+09" +string.format("%-+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%-+2.1g", 100) == "+1e+02" +string.format("%-+2.1g", 10000) == "+1e+04" +string.format("%-+2.1g", 100000) == "+1e+05" +string.format("%-+2.1g", 123.456) == "+1e+02" +string.format("%-+2.1g", 1234560000) == "+1e+09" +string.format("%-+2.1g", 1.23456e-05) == "+1e-05" +string.format("%-+2.1g", 123.456789123) == "+1e+02" +string.format("%-+2.1g", 1234567891.23) == "+1e+09" +string.format("%-+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%-+6g", 0) == "+0 " +string.format("%-+6g", 1) == "+1 " +string.format("%-+6g", -1) == "-1 " +string.format("%-+6g", 2) == "+2 " +string.format("%-+6g", -2) == "-2 " +string.format("%-+6g", 3) == "+3 " +string.format("%-+6g", -3) == "-3 " +string.format("%-+6g", nan) == "+nan " +string.format("%-+6g", inf) == "+inf " +string.format("%-+6g", -inf) == "-inf " +string.format("%-+6g", 100) == "+100 " +string.format("%-+6g", 0.01) == "+0.01 " +string.format("%-+6.0g", 0) == "+0 " +string.format("%-+6.0g", 1) == "+1 " +string.format("%-+6.0g", -1) == "-1 " +string.format("%-+6.0g", 2) == "+2 " +string.format("%-+6.0g", -2) == "-2 " +string.format("%-+6.0g", 3) == "+3 " +string.format("%-+6.0g", -3) == "-3 " +string.format("%-+6.0g", nan) == "+nan " +string.format("%-+6.0g", inf) == "+inf " +string.format("%-+6.0g", -inf) == "-inf " +string.format("%-+6.0g", 100) == "+1e+02" +string.format("%-+6.0g", 10000) == "+1e+04" +string.format("%-+6.0g", 100000) == "+1e+05" +string.format("%-+6.0g", 0.01) == "+0.01 " +string.format("%-+6.0g", 123.456) == "+1e+02" +string.format("%-+6.0g", 1234560000) == "+1e+09" +string.format("%-+6.0g", 1.23456e-05) == "+1e-05" +string.format("%-+6.0g", 123.456789123) == "+1e+02" +string.format("%-+6.0g", 1234567891.23) == "+1e+09" +string.format("%-+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%-+6.1g", 0) == "+0 " +string.format("%-+6.1g", 1) == "+1 " +string.format("%-+6.1g", -1) == "-1 " +string.format("%-+6.1g", 2) == "+2 " +string.format("%-+6.1g", -2) == "-2 " +string.format("%-+6.1g", 3) == "+3 " +string.format("%-+6.1g", -3) == "-3 " +string.format("%-+6.1g", nan) == "+nan " +string.format("%-+6.1g", inf) == "+inf " +string.format("%-+6.1g", -inf) == "-inf " +string.format("%-+6.1g", 100) == "+1e+02" +string.format("%-+6.1g", 10000) == "+1e+04" +string.format("%-+6.1g", 100000) == "+1e+05" +string.format("%-+6.1g", 0.01) == "+0.01 " +string.format("%-+6.1g", 123.456) == "+1e+02" +string.format("%-+6.1g", 1234560000) == "+1e+09" +string.format("%-+6.1g", 1.23456e-05) == "+1e-05" +string.format("%-+6.1g", 123.456789123) == "+1e+02" +string.format("%-+6.1g", 1234567891.23) == "+1e+09" +string.format("%-+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%-+6.6g", 0) == "+0 " +string.format("%-+6.6g", 1) == "+1 " +string.format("%-+6.6g", -1) == "-1 " +string.format("%-+6.6g", 2) == "+2 " +string.format("%-+6.6g", -2) == "-2 " +string.format("%-+6.6g", 3) == "+3 " +string.format("%-+6.6g", -3) == "-3 " +string.format("%-+6.6g", nan) == "+nan " +string.format("%-+6.6g", inf) == "+inf " +string.format("%-+6.6g", -inf) == "-inf " +string.format("%-+6.6g", 100) == "+100 " +string.format("%-+6.6g", 0.01) == "+0.01 " +string.format("%-+20g", 0) == "+0 " +string.format("%-+20g", 1) == "+1 " +string.format("%-+20g", -1) == "-1 " +string.format("%-+20g", 2) == "+2 " +string.format("%-+20g", -2) == "-2 " +string.format("%-+20g", 3) == "+3 " +string.format("%-+20g", -3) == "-3 " +string.format("%-+20g", nan) == "+nan " +string.format("%-+20g", inf) == "+inf " +string.format("%-+20g", -inf) == "-inf " +string.format("%-+20g", 100) == "+100 " +string.format("%-+20g", 10000) == "+10000 " +string.format("%-+20g", 100000) == "+100000 " +string.format("%-+20g", 1000000) == "+1e+06 " +string.format("%-+20g", 10000000) == "+1e+07 " +string.format("%-+20g", 0.01) == "+0.01 " +string.format("%-+20g", 0.0001) == "+0.0001 " +string.format("%-+20g", 1e-05) == "+1e-05 " +string.format("%-+20g", 1e-06) == "+1e-06 " +string.format("%-+20g", 1e-07) == "+1e-07 " +string.format("%-+20g", 123.456) == "+123.456 " +string.format("%-+20g", 1234560000) == "+1.23456e+09 " +string.format("%-+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%-+20g", 123.456789123) == "+123.457 " +string.format("%-+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%-+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%-+20.0g", 0) == "+0 " +string.format("%-+20.0g", 1) == "+1 " +string.format("%-+20.0g", -1) == "-1 " +string.format("%-+20.0g", 2) == "+2 " +string.format("%-+20.0g", -2) == "-2 " +string.format("%-+20.0g", 3) == "+3 " +string.format("%-+20.0g", -3) == "-3 " +string.format("%-+20.0g", nan) == "+nan " +string.format("%-+20.0g", inf) == "+inf " +string.format("%-+20.0g", -inf) == "-inf " +string.format("%-+20.0g", 100) == "+1e+02 " +string.format("%-+20.0g", 10000) == "+1e+04 " +string.format("%-+20.0g", 100000) == "+1e+05 " +string.format("%-+20.0g", 1000000) == "+1e+06 " +string.format("%-+20.0g", 10000000) == "+1e+07 " +string.format("%-+20.0g", 0.01) == "+0.01 " +string.format("%-+20.0g", 0.0001) == "+0.0001 " +string.format("%-+20.0g", 1e-05) == "+1e-05 " +string.format("%-+20.0g", 1e-06) == "+1e-06 " +string.format("%-+20.0g", 1e-07) == "+1e-07 " +string.format("%-+20.0g", 123.456) == "+1e+02 " +string.format("%-+20.0g", 1234560000) == "+1e+09 " +string.format("%-+20.0g", 1.23456e-05) == "+1e-05 " +string.format("%-+20.0g", 123.456789123) == "+1e+02 " +string.format("%-+20.0g", 1234567891.23) == "+1e+09 " +string.format("%-+20.0g", 1.23456789123e-05) == "+1e-05 " +string.format("%-+20.1g", 0) == "+0 " +string.format("%-+20.1g", 1) == "+1 " +string.format("%-+20.1g", -1) == "-1 " +string.format("%-+20.1g", 2) == "+2 " +string.format("%-+20.1g", -2) == "-2 " +string.format("%-+20.1g", 3) == "+3 " +string.format("%-+20.1g", -3) == "-3 " +string.format("%-+20.1g", nan) == "+nan " +string.format("%-+20.1g", inf) == "+inf " +string.format("%-+20.1g", -inf) == "-inf " +string.format("%-+20.1g", 100) == "+1e+02 " +string.format("%-+20.1g", 10000) == "+1e+04 " +string.format("%-+20.1g", 100000) == "+1e+05 " +string.format("%-+20.1g", 1000000) == "+1e+06 " +string.format("%-+20.1g", 10000000) == "+1e+07 " +string.format("%-+20.1g", 0.01) == "+0.01 " +string.format("%-+20.1g", 0.0001) == "+0.0001 " +string.format("%-+20.1g", 1e-05) == "+1e-05 " +string.format("%-+20.1g", 1e-06) == "+1e-06 " +string.format("%-+20.1g", 1e-07) == "+1e-07 " +string.format("%-+20.1g", 123.456) == "+1e+02 " +string.format("%-+20.1g", 1234560000) == "+1e+09 " +string.format("%-+20.1g", 1.23456e-05) == "+1e-05 " +string.format("%-+20.1g", 123.456789123) == "+1e+02 " +string.format("%-+20.1g", 1234567891.23) == "+1e+09 " +string.format("%-+20.1g", 1.23456789123e-05) == "+1e-05 " +string.format("%-+20.6g", 0) == "+0 " +string.format("%-+20.6g", 1) == "+1 " +string.format("%-+20.6g", -1) == "-1 " +string.format("%-+20.6g", 2) == "+2 " +string.format("%-+20.6g", -2) == "-2 " +string.format("%-+20.6g", 3) == "+3 " +string.format("%-+20.6g", -3) == "-3 " +string.format("%-+20.6g", nan) == "+nan " +string.format("%-+20.6g", inf) == "+inf " +string.format("%-+20.6g", -inf) == "-inf " +string.format("%-+20.6g", 100) == "+100 " +string.format("%-+20.6g", 10000) == "+10000 " +string.format("%-+20.6g", 100000) == "+100000 " +string.format("%-+20.6g", 1000000) == "+1e+06 " +string.format("%-+20.6g", 10000000) == "+1e+07 " +string.format("%-+20.6g", 0.01) == "+0.01 " +string.format("%-+20.6g", 0.0001) == "+0.0001 " +string.format("%-+20.6g", 1e-05) == "+1e-05 " +string.format("%-+20.6g", 1e-06) == "+1e-06 " +string.format("%-+20.6g", 1e-07) == "+1e-07 " +string.format("%-+20.6g", 123.456) == "+123.456 " +string.format("%-+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%-+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%-+20.6g", 123.456789123) == "+123.457 " +string.format("%-+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%-+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("% g", 0) == " 0" +string.format("% g", 1) == " 1" +string.format("% g", -1) == "-1" +string.format("% g", 2) == " 2" +string.format("% g", -2) == "-2" +string.format("% g", 3) == " 3" +string.format("% g", -3) == "-3" +string.format("% g", nan) == " nan" +string.format("% g", inf) == " inf" +string.format("% g", -inf) == "-inf" +string.format("% g", 100) == " 100" +string.format("% g", 10000) == " 10000" +string.format("% g", 100000) == " 100000" +string.format("% g", 1000000) == " 1e+06" +string.format("% g", 10000000) == " 1e+07" +string.format("% g", 0.01) == " 0.01" +string.format("% g", 0.0001) == " 0.0001" +string.format("% g", 1e-05) == " 1e-05" +string.format("% g", 1e-06) == " 1e-06" +string.format("% g", 1e-07) == " 1e-07" +string.format("% g", 123.456) == " 123.456" +string.format("% g", 1234560000) == " 1.23456e+09" +string.format("% g", 1.23456e-05) == " 1.23456e-05" +string.format("% g", 123.456789123) == " 123.457" +string.format("% g", 1234567891.23) == " 1.23457e+09" +string.format("% g", 1.23456789123e-05) == " 1.23457e-05" +string.format("% .0g", 100) == " 1e+02" +string.format("% .0g", 10000) == " 1e+04" +string.format("% .0g", 100000) == " 1e+05" +string.format("% .0g", 123.456) == " 1e+02" +string.format("% .0g", 1234560000) == " 1e+09" +string.format("% .0g", 1.23456e-05) == " 1e-05" +string.format("% .0g", 123.456789123) == " 1e+02" +string.format("% .0g", 1234567891.23) == " 1e+09" +string.format("% .0g", 1.23456789123e-05) == " 1e-05" +string.format("% .1g", 100) == " 1e+02" +string.format("% .1g", 10000) == " 1e+04" +string.format("% .1g", 100000) == " 1e+05" +string.format("% .1g", 123.456) == " 1e+02" +string.format("% .1g", 1234560000) == " 1e+09" +string.format("% .1g", 1.23456e-05) == " 1e-05" +string.format("% .1g", 123.456789123) == " 1e+02" +string.format("% .1g", 1234567891.23) == " 1e+09" +string.format("% .1g", 1.23456789123e-05) == " 1e-05" +string.format("% 1.0g", 100) == " 1e+02" +string.format("% 1.0g", 10000) == " 1e+04" +string.format("% 1.0g", 100000) == " 1e+05" +string.format("% 1.0g", 123.456) == " 1e+02" +string.format("% 1.0g", 1234560000) == " 1e+09" +string.format("% 1.0g", 1.23456e-05) == " 1e-05" +string.format("% 1.0g", 123.456789123) == " 1e+02" +string.format("% 1.0g", 1234567891.23) == " 1e+09" +string.format("% 1.0g", 1.23456789123e-05) == " 1e-05" +string.format("% 1.1g", 100) == " 1e+02" +string.format("% 1.1g", 10000) == " 1e+04" +string.format("% 1.1g", 100000) == " 1e+05" +string.format("% 1.1g", 123.456) == " 1e+02" +string.format("% 1.1g", 1234560000) == " 1e+09" +string.format("% 1.1g", 1.23456e-05) == " 1e-05" +string.format("% 1.1g", 123.456789123) == " 1e+02" +string.format("% 1.1g", 1234567891.23) == " 1e+09" +string.format("% 1.1g", 1.23456789123e-05) == " 1e-05" +string.format("% 2.0g", 100) == " 1e+02" +string.format("% 2.0g", 10000) == " 1e+04" +string.format("% 2.0g", 100000) == " 1e+05" +string.format("% 2.0g", 123.456) == " 1e+02" +string.format("% 2.0g", 1234560000) == " 1e+09" +string.format("% 2.0g", 1.23456e-05) == " 1e-05" +string.format("% 2.0g", 123.456789123) == " 1e+02" +string.format("% 2.0g", 1234567891.23) == " 1e+09" +string.format("% 2.0g", 1.23456789123e-05) == " 1e-05" +string.format("% 2.1g", 100) == " 1e+02" +string.format("% 2.1g", 10000) == " 1e+04" +string.format("% 2.1g", 100000) == " 1e+05" +string.format("% 2.1g", 123.456) == " 1e+02" +string.format("% 2.1g", 1234560000) == " 1e+09" +string.format("% 2.1g", 1.23456e-05) == " 1e-05" +string.format("% 2.1g", 123.456789123) == " 1e+02" +string.format("% 2.1g", 1234567891.23) == " 1e+09" +string.format("% 2.1g", 1.23456789123e-05) == " 1e-05" +string.format("% 6g", 0) == " 0" +string.format("% 6g", 1) == " 1" +string.format("% 6g", -1) == " -1" +string.format("% 6g", 2) == " 2" +string.format("% 6g", -2) == " -2" +string.format("% 6g", 3) == " 3" +string.format("% 6g", -3) == " -3" +string.format("% 6g", nan) == " nan" +string.format("% 6g", inf) == " inf" +string.format("% 6g", -inf) == " -inf" +string.format("% 6g", 100) == " 100" +string.format("% 6g", 0.01) == " 0.01" +string.format("% 6.0g", 0) == " 0" +string.format("% 6.0g", 1) == " 1" +string.format("% 6.0g", -1) == " -1" +string.format("% 6.0g", 2) == " 2" +string.format("% 6.0g", -2) == " -2" +string.format("% 6.0g", 3) == " 3" +string.format("% 6.0g", -3) == " -3" +string.format("% 6.0g", nan) == " nan" +string.format("% 6.0g", inf) == " inf" +string.format("% 6.0g", -inf) == " -inf" +string.format("% 6.0g", 100) == " 1e+02" +string.format("% 6.0g", 10000) == " 1e+04" +string.format("% 6.0g", 100000) == " 1e+05" +string.format("% 6.0g", 0.01) == " 0.01" +string.format("% 6.0g", 123.456) == " 1e+02" +string.format("% 6.0g", 1234560000) == " 1e+09" +string.format("% 6.0g", 1.23456e-05) == " 1e-05" +string.format("% 6.0g", 123.456789123) == " 1e+02" +string.format("% 6.0g", 1234567891.23) == " 1e+09" +string.format("% 6.0g", 1.23456789123e-05) == " 1e-05" +string.format("% 6.1g", 0) == " 0" +string.format("% 6.1g", 1) == " 1" +string.format("% 6.1g", -1) == " -1" +string.format("% 6.1g", 2) == " 2" +string.format("% 6.1g", -2) == " -2" +string.format("% 6.1g", 3) == " 3" +string.format("% 6.1g", -3) == " -3" +string.format("% 6.1g", nan) == " nan" +string.format("% 6.1g", inf) == " inf" +string.format("% 6.1g", -inf) == " -inf" +string.format("% 6.1g", 100) == " 1e+02" +string.format("% 6.1g", 10000) == " 1e+04" +string.format("% 6.1g", 100000) == " 1e+05" +string.format("% 6.1g", 0.01) == " 0.01" +string.format("% 6.1g", 123.456) == " 1e+02" +string.format("% 6.1g", 1234560000) == " 1e+09" +string.format("% 6.1g", 1.23456e-05) == " 1e-05" +string.format("% 6.1g", 123.456789123) == " 1e+02" +string.format("% 6.1g", 1234567891.23) == " 1e+09" +string.format("% 6.1g", 1.23456789123e-05) == " 1e-05" +string.format("% 6.6g", 0) == " 0" +string.format("% 6.6g", 1) == " 1" +string.format("% 6.6g", -1) == " -1" +string.format("% 6.6g", 2) == " 2" +string.format("% 6.6g", -2) == " -2" +string.format("% 6.6g", 3) == " 3" +string.format("% 6.6g", -3) == " -3" +string.format("% 6.6g", nan) == " nan" +string.format("% 6.6g", inf) == " inf" +string.format("% 6.6g", -inf) == " -inf" +string.format("% 6.6g", 100) == " 100" +string.format("% 6.6g", 0.01) == " 0.01" +string.format("% 20g", 0) == " 0" +string.format("% 20g", 1) == " 1" +string.format("% 20g", -1) == " -1" +string.format("% 20g", 2) == " 2" +string.format("% 20g", -2) == " -2" +string.format("% 20g", 3) == " 3" +string.format("% 20g", -3) == " -3" +string.format("% 20g", nan) == " nan" +string.format("% 20g", inf) == " inf" +string.format("% 20g", -inf) == " -inf" +string.format("% 20g", 100) == " 100" +string.format("% 20g", 10000) == " 10000" +string.format("% 20g", 100000) == " 100000" +string.format("% 20g", 1000000) == " 1e+06" +string.format("% 20g", 10000000) == " 1e+07" +string.format("% 20g", 0.01) == " 0.01" +string.format("% 20g", 0.0001) == " 0.0001" +string.format("% 20g", 1e-05) == " 1e-05" +string.format("% 20g", 1e-06) == " 1e-06" +string.format("% 20g", 1e-07) == " 1e-07" +string.format("% 20g", 123.456) == " 123.456" +string.format("% 20g", 1234560000) == " 1.23456e+09" +string.format("% 20g", 1.23456e-05) == " 1.23456e-05" +string.format("% 20g", 123.456789123) == " 123.457" +string.format("% 20g", 1234567891.23) == " 1.23457e+09" +string.format("% 20g", 1.23456789123e-05) == " 1.23457e-05" +string.format("% 20.0g", 0) == " 0" +string.format("% 20.0g", 1) == " 1" +string.format("% 20.0g", -1) == " -1" +string.format("% 20.0g", 2) == " 2" +string.format("% 20.0g", -2) == " -2" +string.format("% 20.0g", 3) == " 3" +string.format("% 20.0g", -3) == " -3" +string.format("% 20.0g", nan) == " nan" +string.format("% 20.0g", inf) == " inf" +string.format("% 20.0g", -inf) == " -inf" +string.format("% 20.0g", 100) == " 1e+02" +string.format("% 20.0g", 10000) == " 1e+04" +string.format("% 20.0g", 100000) == " 1e+05" +string.format("% 20.0g", 1000000) == " 1e+06" +string.format("% 20.0g", 10000000) == " 1e+07" +string.format("% 20.0g", 0.01) == " 0.01" +string.format("% 20.0g", 0.0001) == " 0.0001" +string.format("% 20.0g", 1e-05) == " 1e-05" +string.format("% 20.0g", 1e-06) == " 1e-06" +string.format("% 20.0g", 1e-07) == " 1e-07" +string.format("% 20.0g", 123.456) == " 1e+02" +string.format("% 20.0g", 1234560000) == " 1e+09" +string.format("% 20.0g", 1.23456e-05) == " 1e-05" +string.format("% 20.0g", 123.456789123) == " 1e+02" +string.format("% 20.0g", 1234567891.23) == " 1e+09" +string.format("% 20.0g", 1.23456789123e-05) == " 1e-05" +string.format("% 20.1g", 0) == " 0" +string.format("% 20.1g", 1) == " 1" +string.format("% 20.1g", -1) == " -1" +string.format("% 20.1g", 2) == " 2" +string.format("% 20.1g", -2) == " -2" +string.format("% 20.1g", 3) == " 3" +string.format("% 20.1g", -3) == " -3" +string.format("% 20.1g", nan) == " nan" +string.format("% 20.1g", inf) == " inf" +string.format("% 20.1g", -inf) == " -inf" +string.format("% 20.1g", 100) == " 1e+02" +string.format("% 20.1g", 10000) == " 1e+04" +string.format("% 20.1g", 100000) == " 1e+05" +string.format("% 20.1g", 1000000) == " 1e+06" +string.format("% 20.1g", 10000000) == " 1e+07" +string.format("% 20.1g", 0.01) == " 0.01" +string.format("% 20.1g", 0.0001) == " 0.0001" +string.format("% 20.1g", 1e-05) == " 1e-05" +string.format("% 20.1g", 1e-06) == " 1e-06" +string.format("% 20.1g", 1e-07) == " 1e-07" +string.format("% 20.1g", 123.456) == " 1e+02" +string.format("% 20.1g", 1234560000) == " 1e+09" +string.format("% 20.1g", 1.23456e-05) == " 1e-05" +string.format("% 20.1g", 123.456789123) == " 1e+02" +string.format("% 20.1g", 1234567891.23) == " 1e+09" +string.format("% 20.1g", 1.23456789123e-05) == " 1e-05" +string.format("% 20.6g", 0) == " 0" +string.format("% 20.6g", 1) == " 1" +string.format("% 20.6g", -1) == " -1" +string.format("% 20.6g", 2) == " 2" +string.format("% 20.6g", -2) == " -2" +string.format("% 20.6g", 3) == " 3" +string.format("% 20.6g", -3) == " -3" +string.format("% 20.6g", nan) == " nan" +string.format("% 20.6g", inf) == " inf" +string.format("% 20.6g", -inf) == " -inf" +string.format("% 20.6g", 100) == " 100" +string.format("% 20.6g", 10000) == " 10000" +string.format("% 20.6g", 100000) == " 100000" +string.format("% 20.6g", 1000000) == " 1e+06" +string.format("% 20.6g", 10000000) == " 1e+07" +string.format("% 20.6g", 0.01) == " 0.01" +string.format("% 20.6g", 0.0001) == " 0.0001" +string.format("% 20.6g", 1e-05) == " 1e-05" +string.format("% 20.6g", 1e-06) == " 1e-06" +string.format("% 20.6g", 1e-07) == " 1e-07" +string.format("% 20.6g", 123.456) == " 123.456" +string.format("% 20.6g", 1234560000) == " 1.23456e+09" +string.format("% 20.6g", 1.23456e-05) == " 1.23456e-05" +string.format("% 20.6g", 123.456789123) == " 123.457" +string.format("% 20.6g", 1234567891.23) == " 1.23457e+09" +string.format("% 20.6g", 1.23456789123e-05) == " 1.23457e-05" +string.format("% +g", 0) == "+0" +string.format("% +g", 1) == "+1" +string.format("% +g", -1) == "-1" +string.format("% +g", 2) == "+2" +string.format("% +g", -2) == "-2" +string.format("% +g", 3) == "+3" +string.format("% +g", -3) == "-3" +string.format("% +g", nan) == "+nan" +string.format("% +g", inf) == "+inf" +string.format("% +g", -inf) == "-inf" +string.format("% +g", 100) == "+100" +string.format("% +g", 10000) == "+10000" +string.format("% +g", 100000) == "+100000" +string.format("% +g", 1000000) == "+1e+06" +string.format("% +g", 10000000) == "+1e+07" +string.format("% +g", 0.01) == "+0.01" +string.format("% +g", 0.0001) == "+0.0001" +string.format("% +g", 1e-05) == "+1e-05" +string.format("% +g", 1e-06) == "+1e-06" +string.format("% +g", 1e-07) == "+1e-07" +string.format("% +g", 123.456) == "+123.456" +string.format("% +g", 1234560000) == "+1.23456e+09" +string.format("% +g", 1.23456e-05) == "+1.23456e-05" +string.format("% +g", 123.456789123) == "+123.457" +string.format("% +g", 1234567891.23) == "+1.23457e+09" +string.format("% +g", 1.23456789123e-05) == "+1.23457e-05" +string.format("% +.0g", 100) == "+1e+02" +string.format("% +.0g", 10000) == "+1e+04" +string.format("% +.0g", 100000) == "+1e+05" +string.format("% +.0g", 123.456) == "+1e+02" +string.format("% +.0g", 1234560000) == "+1e+09" +string.format("% +.0g", 1.23456e-05) == "+1e-05" +string.format("% +.0g", 123.456789123) == "+1e+02" +string.format("% +.0g", 1234567891.23) == "+1e+09" +string.format("% +.0g", 1.23456789123e-05) == "+1e-05" +string.format("% +.1g", 100) == "+1e+02" +string.format("% +.1g", 10000) == "+1e+04" +string.format("% +.1g", 100000) == "+1e+05" +string.format("% +.1g", 123.456) == "+1e+02" +string.format("% +.1g", 1234560000) == "+1e+09" +string.format("% +.1g", 1.23456e-05) == "+1e-05" +string.format("% +.1g", 123.456789123) == "+1e+02" +string.format("% +.1g", 1234567891.23) == "+1e+09" +string.format("% +.1g", 1.23456789123e-05) == "+1e-05" +string.format("% +1.0g", 100) == "+1e+02" +string.format("% +1.0g", 10000) == "+1e+04" +string.format("% +1.0g", 100000) == "+1e+05" +string.format("% +1.0g", 123.456) == "+1e+02" +string.format("% +1.0g", 1234560000) == "+1e+09" +string.format("% +1.0g", 1.23456e-05) == "+1e-05" +string.format("% +1.0g", 123.456789123) == "+1e+02" +string.format("% +1.0g", 1234567891.23) == "+1e+09" +string.format("% +1.0g", 1.23456789123e-05) == "+1e-05" +string.format("% +1.1g", 100) == "+1e+02" +string.format("% +1.1g", 10000) == "+1e+04" +string.format("% +1.1g", 100000) == "+1e+05" +string.format("% +1.1g", 123.456) == "+1e+02" +string.format("% +1.1g", 1234560000) == "+1e+09" +string.format("% +1.1g", 1.23456e-05) == "+1e-05" +string.format("% +1.1g", 123.456789123) == "+1e+02" +string.format("% +1.1g", 1234567891.23) == "+1e+09" +string.format("% +1.1g", 1.23456789123e-05) == "+1e-05" +string.format("% +2.0g", 100) == "+1e+02" +string.format("% +2.0g", 10000) == "+1e+04" +string.format("% +2.0g", 100000) == "+1e+05" +string.format("% +2.0g", 123.456) == "+1e+02" +string.format("% +2.0g", 1234560000) == "+1e+09" +string.format("% +2.0g", 1.23456e-05) == "+1e-05" +string.format("% +2.0g", 123.456789123) == "+1e+02" +string.format("% +2.0g", 1234567891.23) == "+1e+09" +string.format("% +2.0g", 1.23456789123e-05) == "+1e-05" +string.format("% +2.1g", 100) == "+1e+02" +string.format("% +2.1g", 10000) == "+1e+04" +string.format("% +2.1g", 100000) == "+1e+05" +string.format("% +2.1g", 123.456) == "+1e+02" +string.format("% +2.1g", 1234560000) == "+1e+09" +string.format("% +2.1g", 1.23456e-05) == "+1e-05" +string.format("% +2.1g", 123.456789123) == "+1e+02" +string.format("% +2.1g", 1234567891.23) == "+1e+09" +string.format("% +2.1g", 1.23456789123e-05) == "+1e-05" +string.format("% +6g", 0) == " +0" +string.format("% +6g", 1) == " +1" +string.format("% +6g", -1) == " -1" +string.format("% +6g", 2) == " +2" +string.format("% +6g", -2) == " -2" +string.format("% +6g", 3) == " +3" +string.format("% +6g", -3) == " -3" +string.format("% +6g", nan) == " +nan" +string.format("% +6g", inf) == " +inf" +string.format("% +6g", -inf) == " -inf" +string.format("% +6g", 100) == " +100" +string.format("% +6g", 0.01) == " +0.01" +string.format("% +6.0g", 0) == " +0" +string.format("% +6.0g", 1) == " +1" +string.format("% +6.0g", -1) == " -1" +string.format("% +6.0g", 2) == " +2" +string.format("% +6.0g", -2) == " -2" +string.format("% +6.0g", 3) == " +3" +string.format("% +6.0g", -3) == " -3" +string.format("% +6.0g", nan) == " +nan" +string.format("% +6.0g", inf) == " +inf" +string.format("% +6.0g", -inf) == " -inf" +string.format("% +6.0g", 100) == "+1e+02" +string.format("% +6.0g", 10000) == "+1e+04" +string.format("% +6.0g", 100000) == "+1e+05" +string.format("% +6.0g", 0.01) == " +0.01" +string.format("% +6.0g", 123.456) == "+1e+02" +string.format("% +6.0g", 1234560000) == "+1e+09" +string.format("% +6.0g", 1.23456e-05) == "+1e-05" +string.format("% +6.0g", 123.456789123) == "+1e+02" +string.format("% +6.0g", 1234567891.23) == "+1e+09" +string.format("% +6.0g", 1.23456789123e-05) == "+1e-05" +string.format("% +6.1g", 0) == " +0" +string.format("% +6.1g", 1) == " +1" +string.format("% +6.1g", -1) == " -1" +string.format("% +6.1g", 2) == " +2" +string.format("% +6.1g", -2) == " -2" +string.format("% +6.1g", 3) == " +3" +string.format("% +6.1g", -3) == " -3" +string.format("% +6.1g", nan) == " +nan" +string.format("% +6.1g", inf) == " +inf" +string.format("% +6.1g", -inf) == " -inf" +string.format("% +6.1g", 100) == "+1e+02" +string.format("% +6.1g", 10000) == "+1e+04" +string.format("% +6.1g", 100000) == "+1e+05" +string.format("% +6.1g", 0.01) == " +0.01" +string.format("% +6.1g", 123.456) == "+1e+02" +string.format("% +6.1g", 1234560000) == "+1e+09" +string.format("% +6.1g", 1.23456e-05) == "+1e-05" +string.format("% +6.1g", 123.456789123) == "+1e+02" +string.format("% +6.1g", 1234567891.23) == "+1e+09" +string.format("% +6.1g", 1.23456789123e-05) == "+1e-05" +string.format("% +6.6g", 0) == " +0" +string.format("% +6.6g", 1) == " +1" +string.format("% +6.6g", -1) == " -1" +string.format("% +6.6g", 2) == " +2" +string.format("% +6.6g", -2) == " -2" +string.format("% +6.6g", 3) == " +3" +string.format("% +6.6g", -3) == " -3" +string.format("% +6.6g", nan) == " +nan" +string.format("% +6.6g", inf) == " +inf" +string.format("% +6.6g", -inf) == " -inf" +string.format("% +6.6g", 100) == " +100" +string.format("% +6.6g", 0.01) == " +0.01" +string.format("% +20g", 0) == " +0" +string.format("% +20g", 1) == " +1" +string.format("% +20g", -1) == " -1" +string.format("% +20g", 2) == " +2" +string.format("% +20g", -2) == " -2" +string.format("% +20g", 3) == " +3" +string.format("% +20g", -3) == " -3" +string.format("% +20g", nan) == " +nan" +string.format("% +20g", inf) == " +inf" +string.format("% +20g", -inf) == " -inf" +string.format("% +20g", 100) == " +100" +string.format("% +20g", 10000) == " +10000" +string.format("% +20g", 100000) == " +100000" +string.format("% +20g", 1000000) == " +1e+06" +string.format("% +20g", 10000000) == " +1e+07" +string.format("% +20g", 0.01) == " +0.01" +string.format("% +20g", 0.0001) == " +0.0001" +string.format("% +20g", 1e-05) == " +1e-05" +string.format("% +20g", 1e-06) == " +1e-06" +string.format("% +20g", 1e-07) == " +1e-07" +string.format("% +20g", 123.456) == " +123.456" +string.format("% +20g", 1234560000) == " +1.23456e+09" +string.format("% +20g", 1.23456e-05) == " +1.23456e-05" +string.format("% +20g", 123.456789123) == " +123.457" +string.format("% +20g", 1234567891.23) == " +1.23457e+09" +string.format("% +20g", 1.23456789123e-05) == " +1.23457e-05" +string.format("% +20.0g", 0) == " +0" +string.format("% +20.0g", 1) == " +1" +string.format("% +20.0g", -1) == " -1" +string.format("% +20.0g", 2) == " +2" +string.format("% +20.0g", -2) == " -2" +string.format("% +20.0g", 3) == " +3" +string.format("% +20.0g", -3) == " -3" +string.format("% +20.0g", nan) == " +nan" +string.format("% +20.0g", inf) == " +inf" +string.format("% +20.0g", -inf) == " -inf" +string.format("% +20.0g", 100) == " +1e+02" +string.format("% +20.0g", 10000) == " +1e+04" +string.format("% +20.0g", 100000) == " +1e+05" +string.format("% +20.0g", 1000000) == " +1e+06" +string.format("% +20.0g", 10000000) == " +1e+07" +string.format("% +20.0g", 0.01) == " +0.01" +string.format("% +20.0g", 0.0001) == " +0.0001" +string.format("% +20.0g", 1e-05) == " +1e-05" +string.format("% +20.0g", 1e-06) == " +1e-06" +string.format("% +20.0g", 1e-07) == " +1e-07" +string.format("% +20.0g", 123.456) == " +1e+02" +string.format("% +20.0g", 1234560000) == " +1e+09" +string.format("% +20.0g", 1.23456e-05) == " +1e-05" +string.format("% +20.0g", 123.456789123) == " +1e+02" +string.format("% +20.0g", 1234567891.23) == " +1e+09" +string.format("% +20.0g", 1.23456789123e-05) == " +1e-05" +string.format("% +20.1g", 0) == " +0" +string.format("% +20.1g", 1) == " +1" +string.format("% +20.1g", -1) == " -1" +string.format("% +20.1g", 2) == " +2" +string.format("% +20.1g", -2) == " -2" +string.format("% +20.1g", 3) == " +3" +string.format("% +20.1g", -3) == " -3" +string.format("% +20.1g", nan) == " +nan" +string.format("% +20.1g", inf) == " +inf" +string.format("% +20.1g", -inf) == " -inf" +string.format("% +20.1g", 100) == " +1e+02" +string.format("% +20.1g", 10000) == " +1e+04" +string.format("% +20.1g", 100000) == " +1e+05" +string.format("% +20.1g", 1000000) == " +1e+06" +string.format("% +20.1g", 10000000) == " +1e+07" +string.format("% +20.1g", 0.01) == " +0.01" +string.format("% +20.1g", 0.0001) == " +0.0001" +string.format("% +20.1g", 1e-05) == " +1e-05" +string.format("% +20.1g", 1e-06) == " +1e-06" +string.format("% +20.1g", 1e-07) == " +1e-07" +string.format("% +20.1g", 123.456) == " +1e+02" +string.format("% +20.1g", 1234560000) == " +1e+09" +string.format("% +20.1g", 1.23456e-05) == " +1e-05" +string.format("% +20.1g", 123.456789123) == " +1e+02" +string.format("% +20.1g", 1234567891.23) == " +1e+09" +string.format("% +20.1g", 1.23456789123e-05) == " +1e-05" +string.format("% +20.6g", 0) == " +0" +string.format("% +20.6g", 1) == " +1" +string.format("% +20.6g", -1) == " -1" +string.format("% +20.6g", 2) == " +2" +string.format("% +20.6g", -2) == " -2" +string.format("% +20.6g", 3) == " +3" +string.format("% +20.6g", -3) == " -3" +string.format("% +20.6g", nan) == " +nan" +string.format("% +20.6g", inf) == " +inf" +string.format("% +20.6g", -inf) == " -inf" +string.format("% +20.6g", 100) == " +100" +string.format("% +20.6g", 10000) == " +10000" +string.format("% +20.6g", 100000) == " +100000" +string.format("% +20.6g", 1000000) == " +1e+06" +string.format("% +20.6g", 10000000) == " +1e+07" +string.format("% +20.6g", 0.01) == " +0.01" +string.format("% +20.6g", 0.0001) == " +0.0001" +string.format("% +20.6g", 1e-05) == " +1e-05" +string.format("% +20.6g", 1e-06) == " +1e-06" +string.format("% +20.6g", 1e-07) == " +1e-07" +string.format("% +20.6g", 123.456) == " +123.456" +string.format("% +20.6g", 1234560000) == " +1.23456e+09" +string.format("% +20.6g", 1.23456e-05) == " +1.23456e-05" +string.format("% +20.6g", 123.456789123) == " +123.457" +string.format("% +20.6g", 1234567891.23) == " +1.23457e+09" +string.format("% +20.6g", 1.23456789123e-05) == " +1.23457e-05" +string.format("% -g", 0) == " 0" +string.format("% -g", 1) == " 1" +string.format("% -g", -1) == "-1" +string.format("% -g", 2) == " 2" +string.format("% -g", -2) == "-2" +string.format("% -g", 3) == " 3" +string.format("% -g", -3) == "-3" +string.format("% -g", nan) == " nan" +string.format("% -g", inf) == " inf" +string.format("% -g", -inf) == "-inf" +string.format("% -g", 100) == " 100" +string.format("% -g", 10000) == " 10000" +string.format("% -g", 100000) == " 100000" +string.format("% -g", 1000000) == " 1e+06" +string.format("% -g", 10000000) == " 1e+07" +string.format("% -g", 0.01) == " 0.01" +string.format("% -g", 0.0001) == " 0.0001" +string.format("% -g", 1e-05) == " 1e-05" +string.format("% -g", 1e-06) == " 1e-06" +string.format("% -g", 1e-07) == " 1e-07" +string.format("% -g", 123.456) == " 123.456" +string.format("% -g", 1234560000) == " 1.23456e+09" +string.format("% -g", 1.23456e-05) == " 1.23456e-05" +string.format("% -g", 123.456789123) == " 123.457" +string.format("% -g", 1234567891.23) == " 1.23457e+09" +string.format("% -g", 1.23456789123e-05) == " 1.23457e-05" +string.format("% -.0g", 100) == " 1e+02" +string.format("% -.0g", 10000) == " 1e+04" +string.format("% -.0g", 100000) == " 1e+05" +string.format("% -.0g", 123.456) == " 1e+02" +string.format("% -.0g", 1234560000) == " 1e+09" +string.format("% -.0g", 1.23456e-05) == " 1e-05" +string.format("% -.0g", 123.456789123) == " 1e+02" +string.format("% -.0g", 1234567891.23) == " 1e+09" +string.format("% -.0g", 1.23456789123e-05) == " 1e-05" +string.format("% -.1g", 100) == " 1e+02" +string.format("% -.1g", 10000) == " 1e+04" +string.format("% -.1g", 100000) == " 1e+05" +string.format("% -.1g", 123.456) == " 1e+02" +string.format("% -.1g", 1234560000) == " 1e+09" +string.format("% -.1g", 1.23456e-05) == " 1e-05" +string.format("% -.1g", 123.456789123) == " 1e+02" +string.format("% -.1g", 1234567891.23) == " 1e+09" +string.format("% -.1g", 1.23456789123e-05) == " 1e-05" +string.format("% -1.0g", 100) == " 1e+02" +string.format("% -1.0g", 10000) == " 1e+04" +string.format("% -1.0g", 100000) == " 1e+05" +string.format("% -1.0g", 123.456) == " 1e+02" +string.format("% -1.0g", 1234560000) == " 1e+09" +string.format("% -1.0g", 1.23456e-05) == " 1e-05" +string.format("% -1.0g", 123.456789123) == " 1e+02" +string.format("% -1.0g", 1234567891.23) == " 1e+09" +string.format("% -1.0g", 1.23456789123e-05) == " 1e-05" +string.format("% -1.1g", 100) == " 1e+02" +string.format("% -1.1g", 10000) == " 1e+04" +string.format("% -1.1g", 100000) == " 1e+05" +string.format("% -1.1g", 123.456) == " 1e+02" +string.format("% -1.1g", 1234560000) == " 1e+09" +string.format("% -1.1g", 1.23456e-05) == " 1e-05" +string.format("% -1.1g", 123.456789123) == " 1e+02" +string.format("% -1.1g", 1234567891.23) == " 1e+09" +string.format("% -1.1g", 1.23456789123e-05) == " 1e-05" +string.format("% -2.0g", 100) == " 1e+02" +string.format("% -2.0g", 10000) == " 1e+04" +string.format("% -2.0g", 100000) == " 1e+05" +string.format("% -2.0g", 123.456) == " 1e+02" +string.format("% -2.0g", 1234560000) == " 1e+09" +string.format("% -2.0g", 1.23456e-05) == " 1e-05" +string.format("% -2.0g", 123.456789123) == " 1e+02" +string.format("% -2.0g", 1234567891.23) == " 1e+09" +string.format("% -2.0g", 1.23456789123e-05) == " 1e-05" +string.format("% -2.1g", 100) == " 1e+02" +string.format("% -2.1g", 10000) == " 1e+04" +string.format("% -2.1g", 100000) == " 1e+05" +string.format("% -2.1g", 123.456) == " 1e+02" +string.format("% -2.1g", 1234560000) == " 1e+09" +string.format("% -2.1g", 1.23456e-05) == " 1e-05" +string.format("% -2.1g", 123.456789123) == " 1e+02" +string.format("% -2.1g", 1234567891.23) == " 1e+09" +string.format("% -2.1g", 1.23456789123e-05) == " 1e-05" +string.format("% -6g", 0) == " 0 " +string.format("% -6g", 1) == " 1 " +string.format("% -6g", -1) == "-1 " +string.format("% -6g", 2) == " 2 " +string.format("% -6g", -2) == "-2 " +string.format("% -6g", 3) == " 3 " +string.format("% -6g", -3) == "-3 " +string.format("% -6g", nan) == " nan " +string.format("% -6g", inf) == " inf " +string.format("% -6g", -inf) == "-inf " +string.format("% -6g", 100) == " 100 " +string.format("% -6g", 0.01) == " 0.01 " +string.format("% -6.0g", 0) == " 0 " +string.format("% -6.0g", 1) == " 1 " +string.format("% -6.0g", -1) == "-1 " +string.format("% -6.0g", 2) == " 2 " +string.format("% -6.0g", -2) == "-2 " +string.format("% -6.0g", 3) == " 3 " +string.format("% -6.0g", -3) == "-3 " +string.format("% -6.0g", nan) == " nan " +string.format("% -6.0g", inf) == " inf " +string.format("% -6.0g", -inf) == "-inf " +string.format("% -6.0g", 100) == " 1e+02" +string.format("% -6.0g", 10000) == " 1e+04" +string.format("% -6.0g", 100000) == " 1e+05" +string.format("% -6.0g", 0.01) == " 0.01 " +string.format("% -6.0g", 123.456) == " 1e+02" +string.format("% -6.0g", 1234560000) == " 1e+09" +string.format("% -6.0g", 1.23456e-05) == " 1e-05" +string.format("% -6.0g", 123.456789123) == " 1e+02" +string.format("% -6.0g", 1234567891.23) == " 1e+09" +string.format("% -6.0g", 1.23456789123e-05) == " 1e-05" +string.format("% -6.1g", 0) == " 0 " +string.format("% -6.1g", 1) == " 1 " +string.format("% -6.1g", -1) == "-1 " +string.format("% -6.1g", 2) == " 2 " +string.format("% -6.1g", -2) == "-2 " +string.format("% -6.1g", 3) == " 3 " +string.format("% -6.1g", -3) == "-3 " +string.format("% -6.1g", nan) == " nan " +string.format("% -6.1g", inf) == " inf " +string.format("% -6.1g", -inf) == "-inf " +string.format("% -6.1g", 100) == " 1e+02" +string.format("% -6.1g", 10000) == " 1e+04" +string.format("% -6.1g", 100000) == " 1e+05" +string.format("% -6.1g", 0.01) == " 0.01 " +string.format("% -6.1g", 123.456) == " 1e+02" +string.format("% -6.1g", 1234560000) == " 1e+09" +string.format("% -6.1g", 1.23456e-05) == " 1e-05" +string.format("% -6.1g", 123.456789123) == " 1e+02" +string.format("% -6.1g", 1234567891.23) == " 1e+09" +string.format("% -6.1g", 1.23456789123e-05) == " 1e-05" +string.format("% -6.6g", 0) == " 0 " +string.format("% -6.6g", 1) == " 1 " +string.format("% -6.6g", -1) == "-1 " +string.format("% -6.6g", 2) == " 2 " +string.format("% -6.6g", -2) == "-2 " +string.format("% -6.6g", 3) == " 3 " +string.format("% -6.6g", -3) == "-3 " +string.format("% -6.6g", nan) == " nan " +string.format("% -6.6g", inf) == " inf " +string.format("% -6.6g", -inf) == "-inf " +string.format("% -6.6g", 100) == " 100 " +string.format("% -6.6g", 0.01) == " 0.01 " +string.format("% -20g", 0) == " 0 " +string.format("% -20g", 1) == " 1 " +string.format("% -20g", -1) == "-1 " +string.format("% -20g", 2) == " 2 " +string.format("% -20g", -2) == "-2 " +string.format("% -20g", 3) == " 3 " +string.format("% -20g", -3) == "-3 " +string.format("% -20g", nan) == " nan " +string.format("% -20g", inf) == " inf " +string.format("% -20g", -inf) == "-inf " +string.format("% -20g", 100) == " 100 " +string.format("% -20g", 10000) == " 10000 " +string.format("% -20g", 100000) == " 100000 " +string.format("% -20g", 1000000) == " 1e+06 " +string.format("% -20g", 10000000) == " 1e+07 " +string.format("% -20g", 0.01) == " 0.01 " +string.format("% -20g", 0.0001) == " 0.0001 " +string.format("% -20g", 1e-05) == " 1e-05 " +string.format("% -20g", 1e-06) == " 1e-06 " +string.format("% -20g", 1e-07) == " 1e-07 " +string.format("% -20g", 123.456) == " 123.456 " +string.format("% -20g", 1234560000) == " 1.23456e+09 " +string.format("% -20g", 1.23456e-05) == " 1.23456e-05 " +string.format("% -20g", 123.456789123) == " 123.457 " +string.format("% -20g", 1234567891.23) == " 1.23457e+09 " +string.format("% -20g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("% -20.0g", 0) == " 0 " +string.format("% -20.0g", 1) == " 1 " +string.format("% -20.0g", -1) == "-1 " +string.format("% -20.0g", 2) == " 2 " +string.format("% -20.0g", -2) == "-2 " +string.format("% -20.0g", 3) == " 3 " +string.format("% -20.0g", -3) == "-3 " +string.format("% -20.0g", nan) == " nan " +string.format("% -20.0g", inf) == " inf " +string.format("% -20.0g", -inf) == "-inf " +string.format("% -20.0g", 100) == " 1e+02 " +string.format("% -20.0g", 10000) == " 1e+04 " +string.format("% -20.0g", 100000) == " 1e+05 " +string.format("% -20.0g", 1000000) == " 1e+06 " +string.format("% -20.0g", 10000000) == " 1e+07 " +string.format("% -20.0g", 0.01) == " 0.01 " +string.format("% -20.0g", 0.0001) == " 0.0001 " +string.format("% -20.0g", 1e-05) == " 1e-05 " +string.format("% -20.0g", 1e-06) == " 1e-06 " +string.format("% -20.0g", 1e-07) == " 1e-07 " +string.format("% -20.0g", 123.456) == " 1e+02 " +string.format("% -20.0g", 1234560000) == " 1e+09 " +string.format("% -20.0g", 1.23456e-05) == " 1e-05 " +string.format("% -20.0g", 123.456789123) == " 1e+02 " +string.format("% -20.0g", 1234567891.23) == " 1e+09 " +string.format("% -20.0g", 1.23456789123e-05) == " 1e-05 " +string.format("% -20.1g", 0) == " 0 " +string.format("% -20.1g", 1) == " 1 " +string.format("% -20.1g", -1) == "-1 " +string.format("% -20.1g", 2) == " 2 " +string.format("% -20.1g", -2) == "-2 " +string.format("% -20.1g", 3) == " 3 " +string.format("% -20.1g", -3) == "-3 " +string.format("% -20.1g", nan) == " nan " +string.format("% -20.1g", inf) == " inf " +string.format("% -20.1g", -inf) == "-inf " +string.format("% -20.1g", 100) == " 1e+02 " +string.format("% -20.1g", 10000) == " 1e+04 " +string.format("% -20.1g", 100000) == " 1e+05 " +string.format("% -20.1g", 1000000) == " 1e+06 " +string.format("% -20.1g", 10000000) == " 1e+07 " +string.format("% -20.1g", 0.01) == " 0.01 " +string.format("% -20.1g", 0.0001) == " 0.0001 " +string.format("% -20.1g", 1e-05) == " 1e-05 " +string.format("% -20.1g", 1e-06) == " 1e-06 " +string.format("% -20.1g", 1e-07) == " 1e-07 " +string.format("% -20.1g", 123.456) == " 1e+02 " +string.format("% -20.1g", 1234560000) == " 1e+09 " +string.format("% -20.1g", 1.23456e-05) == " 1e-05 " +string.format("% -20.1g", 123.456789123) == " 1e+02 " +string.format("% -20.1g", 1234567891.23) == " 1e+09 " +string.format("% -20.1g", 1.23456789123e-05) == " 1e-05 " +string.format("% -20.6g", 0) == " 0 " +string.format("% -20.6g", 1) == " 1 " +string.format("% -20.6g", -1) == "-1 " +string.format("% -20.6g", 2) == " 2 " +string.format("% -20.6g", -2) == "-2 " +string.format("% -20.6g", 3) == " 3 " +string.format("% -20.6g", -3) == "-3 " +string.format("% -20.6g", nan) == " nan " +string.format("% -20.6g", inf) == " inf " +string.format("% -20.6g", -inf) == "-inf " +string.format("% -20.6g", 100) == " 100 " +string.format("% -20.6g", 10000) == " 10000 " +string.format("% -20.6g", 100000) == " 100000 " +string.format("% -20.6g", 1000000) == " 1e+06 " +string.format("% -20.6g", 10000000) == " 1e+07 " +string.format("% -20.6g", 0.01) == " 0.01 " +string.format("% -20.6g", 0.0001) == " 0.0001 " +string.format("% -20.6g", 1e-05) == " 1e-05 " +string.format("% -20.6g", 1e-06) == " 1e-06 " +string.format("% -20.6g", 1e-07) == " 1e-07 " +string.format("% -20.6g", 123.456) == " 123.456 " +string.format("% -20.6g", 1234560000) == " 1.23456e+09 " +string.format("% -20.6g", 1.23456e-05) == " 1.23456e-05 " +string.format("% -20.6g", 123.456789123) == " 123.457 " +string.format("% -20.6g", 1234567891.23) == " 1.23457e+09 " +string.format("% -20.6g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("% -+g", 0) == "+0" +string.format("% -+g", 1) == "+1" +string.format("% -+g", -1) == "-1" +string.format("% -+g", 2) == "+2" +string.format("% -+g", -2) == "-2" +string.format("% -+g", 3) == "+3" +string.format("% -+g", -3) == "-3" +string.format("% -+g", nan) == "+nan" +string.format("% -+g", inf) == "+inf" +string.format("% -+g", -inf) == "-inf" +string.format("% -+g", 100) == "+100" +string.format("% -+g", 10000) == "+10000" +string.format("% -+g", 100000) == "+100000" +string.format("% -+g", 1000000) == "+1e+06" +string.format("% -+g", 10000000) == "+1e+07" +string.format("% -+g", 0.01) == "+0.01" +string.format("% -+g", 0.0001) == "+0.0001" +string.format("% -+g", 1e-05) == "+1e-05" +string.format("% -+g", 1e-06) == "+1e-06" +string.format("% -+g", 1e-07) == "+1e-07" +string.format("% -+g", 123.456) == "+123.456" +string.format("% -+g", 1234560000) == "+1.23456e+09" +string.format("% -+g", 1.23456e-05) == "+1.23456e-05" +string.format("% -+g", 123.456789123) == "+123.457" +string.format("% -+g", 1234567891.23) == "+1.23457e+09" +string.format("% -+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("% -+.0g", 100) == "+1e+02" +string.format("% -+.0g", 10000) == "+1e+04" +string.format("% -+.0g", 100000) == "+1e+05" +string.format("% -+.0g", 123.456) == "+1e+02" +string.format("% -+.0g", 1234560000) == "+1e+09" +string.format("% -+.0g", 1.23456e-05) == "+1e-05" +string.format("% -+.0g", 123.456789123) == "+1e+02" +string.format("% -+.0g", 1234567891.23) == "+1e+09" +string.format("% -+.0g", 1.23456789123e-05) == "+1e-05" +string.format("% -+.1g", 100) == "+1e+02" +string.format("% -+.1g", 10000) == "+1e+04" +string.format("% -+.1g", 100000) == "+1e+05" +string.format("% -+.1g", 123.456) == "+1e+02" +string.format("% -+.1g", 1234560000) == "+1e+09" +string.format("% -+.1g", 1.23456e-05) == "+1e-05" +string.format("% -+.1g", 123.456789123) == "+1e+02" +string.format("% -+.1g", 1234567891.23) == "+1e+09" +string.format("% -+.1g", 1.23456789123e-05) == "+1e-05" +string.format("% -+1.0g", 100) == "+1e+02" +string.format("% -+1.0g", 10000) == "+1e+04" +string.format("% -+1.0g", 100000) == "+1e+05" +string.format("% -+1.0g", 123.456) == "+1e+02" +string.format("% -+1.0g", 1234560000) == "+1e+09" +string.format("% -+1.0g", 1.23456e-05) == "+1e-05" +string.format("% -+1.0g", 123.456789123) == "+1e+02" +string.format("% -+1.0g", 1234567891.23) == "+1e+09" +string.format("% -+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("% -+1.1g", 100) == "+1e+02" +string.format("% -+1.1g", 10000) == "+1e+04" +string.format("% -+1.1g", 100000) == "+1e+05" +string.format("% -+1.1g", 123.456) == "+1e+02" +string.format("% -+1.1g", 1234560000) == "+1e+09" +string.format("% -+1.1g", 1.23456e-05) == "+1e-05" +string.format("% -+1.1g", 123.456789123) == "+1e+02" +string.format("% -+1.1g", 1234567891.23) == "+1e+09" +string.format("% -+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("% -+2.0g", 100) == "+1e+02" +string.format("% -+2.0g", 10000) == "+1e+04" +string.format("% -+2.0g", 100000) == "+1e+05" +string.format("% -+2.0g", 123.456) == "+1e+02" +string.format("% -+2.0g", 1234560000) == "+1e+09" +string.format("% -+2.0g", 1.23456e-05) == "+1e-05" +string.format("% -+2.0g", 123.456789123) == "+1e+02" +string.format("% -+2.0g", 1234567891.23) == "+1e+09" +string.format("% -+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("% -+2.1g", 100) == "+1e+02" +string.format("% -+2.1g", 10000) == "+1e+04" +string.format("% -+2.1g", 100000) == "+1e+05" +string.format("% -+2.1g", 123.456) == "+1e+02" +string.format("% -+2.1g", 1234560000) == "+1e+09" +string.format("% -+2.1g", 1.23456e-05) == "+1e-05" +string.format("% -+2.1g", 123.456789123) == "+1e+02" +string.format("% -+2.1g", 1234567891.23) == "+1e+09" +string.format("% -+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("% -+6g", 0) == "+0 " +string.format("% -+6g", 1) == "+1 " +string.format("% -+6g", -1) == "-1 " +string.format("% -+6g", 2) == "+2 " +string.format("% -+6g", -2) == "-2 " +string.format("% -+6g", 3) == "+3 " +string.format("% -+6g", -3) == "-3 " +string.format("% -+6g", nan) == "+nan " +string.format("% -+6g", inf) == "+inf " +string.format("% -+6g", -inf) == "-inf " +string.format("% -+6g", 100) == "+100 " +string.format("% -+6g", 0.01) == "+0.01 " +string.format("% -+6.0g", 0) == "+0 " +string.format("% -+6.0g", 1) == "+1 " +string.format("% -+6.0g", -1) == "-1 " +string.format("% -+6.0g", 2) == "+2 " +string.format("% -+6.0g", -2) == "-2 " +string.format("% -+6.0g", 3) == "+3 " +string.format("% -+6.0g", -3) == "-3 " +string.format("% -+6.0g", nan) == "+nan " +string.format("% -+6.0g", inf) == "+inf " +string.format("% -+6.0g", -inf) == "-inf " +string.format("% -+6.0g", 100) == "+1e+02" +string.format("% -+6.0g", 10000) == "+1e+04" +string.format("% -+6.0g", 100000) == "+1e+05" +string.format("% -+6.0g", 0.01) == "+0.01 " +string.format("% -+6.0g", 123.456) == "+1e+02" +string.format("% -+6.0g", 1234560000) == "+1e+09" +string.format("% -+6.0g", 1.23456e-05) == "+1e-05" +string.format("% -+6.0g", 123.456789123) == "+1e+02" +string.format("% -+6.0g", 1234567891.23) == "+1e+09" +string.format("% -+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("% -+6.1g", 0) == "+0 " +string.format("% -+6.1g", 1) == "+1 " +string.format("% -+6.1g", -1) == "-1 " +string.format("% -+6.1g", 2) == "+2 " +string.format("% -+6.1g", -2) == "-2 " +string.format("% -+6.1g", 3) == "+3 " +string.format("% -+6.1g", -3) == "-3 " +string.format("% -+6.1g", nan) == "+nan " +string.format("% -+6.1g", inf) == "+inf " +string.format("% -+6.1g", -inf) == "-inf " +string.format("% -+6.1g", 100) == "+1e+02" +string.format("% -+6.1g", 10000) == "+1e+04" +string.format("% -+6.1g", 100000) == "+1e+05" +string.format("% -+6.1g", 0.01) == "+0.01 " +string.format("% -+6.1g", 123.456) == "+1e+02" +string.format("% -+6.1g", 1234560000) == "+1e+09" +string.format("% -+6.1g", 1.23456e-05) == "+1e-05" +string.format("% -+6.1g", 123.456789123) == "+1e+02" +string.format("% -+6.1g", 1234567891.23) == "+1e+09" +string.format("% -+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("% -+6.6g", 0) == "+0 " +string.format("% -+6.6g", 1) == "+1 " +string.format("% -+6.6g", -1) == "-1 " +string.format("% -+6.6g", 2) == "+2 " +string.format("% -+6.6g", -2) == "-2 " +string.format("% -+6.6g", 3) == "+3 " +string.format("% -+6.6g", -3) == "-3 " +string.format("% -+6.6g", nan) == "+nan " +string.format("% -+6.6g", inf) == "+inf " +string.format("% -+6.6g", -inf) == "-inf " +string.format("% -+6.6g", 100) == "+100 " +string.format("% -+6.6g", 0.01) == "+0.01 " +string.format("% -+20g", 0) == "+0 " +string.format("% -+20g", 1) == "+1 " +string.format("% -+20g", -1) == "-1 " +string.format("% -+20g", 2) == "+2 " +string.format("% -+20g", -2) == "-2 " +string.format("% -+20g", 3) == "+3 " +string.format("% -+20g", -3) == "-3 " +string.format("% -+20g", nan) == "+nan " +string.format("% -+20g", inf) == "+inf " +string.format("% -+20g", -inf) == "-inf " +string.format("% -+20g", 100) == "+100 " +string.format("% -+20g", 10000) == "+10000 " +string.format("% -+20g", 100000) == "+100000 " +string.format("% -+20g", 1000000) == "+1e+06 " +string.format("% -+20g", 10000000) == "+1e+07 " +string.format("% -+20g", 0.01) == "+0.01 " +string.format("% -+20g", 0.0001) == "+0.0001 " +string.format("% -+20g", 1e-05) == "+1e-05 " +string.format("% -+20g", 1e-06) == "+1e-06 " +string.format("% -+20g", 1e-07) == "+1e-07 " +string.format("% -+20g", 123.456) == "+123.456 " +string.format("% -+20g", 1234560000) == "+1.23456e+09 " +string.format("% -+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("% -+20g", 123.456789123) == "+123.457 " +string.format("% -+20g", 1234567891.23) == "+1.23457e+09 " +string.format("% -+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("% -+20.0g", 0) == "+0 " +string.format("% -+20.0g", 1) == "+1 " +string.format("% -+20.0g", -1) == "-1 " +string.format("% -+20.0g", 2) == "+2 " +string.format("% -+20.0g", -2) == "-2 " +string.format("% -+20.0g", 3) == "+3 " +string.format("% -+20.0g", -3) == "-3 " +string.format("% -+20.0g", nan) == "+nan " +string.format("% -+20.0g", inf) == "+inf " +string.format("% -+20.0g", -inf) == "-inf " +string.format("% -+20.0g", 100) == "+1e+02 " +string.format("% -+20.0g", 10000) == "+1e+04 " +string.format("% -+20.0g", 100000) == "+1e+05 " +string.format("% -+20.0g", 1000000) == "+1e+06 " +string.format("% -+20.0g", 10000000) == "+1e+07 " +string.format("% -+20.0g", 0.01) == "+0.01 " +string.format("% -+20.0g", 0.0001) == "+0.0001 " +string.format("% -+20.0g", 1e-05) == "+1e-05 " +string.format("% -+20.0g", 1e-06) == "+1e-06 " +string.format("% -+20.0g", 1e-07) == "+1e-07 " +string.format("% -+20.0g", 123.456) == "+1e+02 " +string.format("% -+20.0g", 1234560000) == "+1e+09 " +string.format("% -+20.0g", 1.23456e-05) == "+1e-05 " +string.format("% -+20.0g", 123.456789123) == "+1e+02 " +string.format("% -+20.0g", 1234567891.23) == "+1e+09 " +string.format("% -+20.0g", 1.23456789123e-05) == "+1e-05 " +string.format("% -+20.1g", 0) == "+0 " +string.format("% -+20.1g", 1) == "+1 " +string.format("% -+20.1g", -1) == "-1 " +string.format("% -+20.1g", 2) == "+2 " +string.format("% -+20.1g", -2) == "-2 " +string.format("% -+20.1g", 3) == "+3 " +string.format("% -+20.1g", -3) == "-3 " +string.format("% -+20.1g", nan) == "+nan " +string.format("% -+20.1g", inf) == "+inf " +string.format("% -+20.1g", -inf) == "-inf " +string.format("% -+20.1g", 100) == "+1e+02 " +string.format("% -+20.1g", 10000) == "+1e+04 " +string.format("% -+20.1g", 100000) == "+1e+05 " +string.format("% -+20.1g", 1000000) == "+1e+06 " +string.format("% -+20.1g", 10000000) == "+1e+07 " +string.format("% -+20.1g", 0.01) == "+0.01 " +string.format("% -+20.1g", 0.0001) == "+0.0001 " +string.format("% -+20.1g", 1e-05) == "+1e-05 " +string.format("% -+20.1g", 1e-06) == "+1e-06 " +string.format("% -+20.1g", 1e-07) == "+1e-07 " +string.format("% -+20.1g", 123.456) == "+1e+02 " +string.format("% -+20.1g", 1234560000) == "+1e+09 " +string.format("% -+20.1g", 1.23456e-05) == "+1e-05 " +string.format("% -+20.1g", 123.456789123) == "+1e+02 " +string.format("% -+20.1g", 1234567891.23) == "+1e+09 " +string.format("% -+20.1g", 1.23456789123e-05) == "+1e-05 " +string.format("% -+20.6g", 0) == "+0 " +string.format("% -+20.6g", 1) == "+1 " +string.format("% -+20.6g", -1) == "-1 " +string.format("% -+20.6g", 2) == "+2 " +string.format("% -+20.6g", -2) == "-2 " +string.format("% -+20.6g", 3) == "+3 " +string.format("% -+20.6g", -3) == "-3 " +string.format("% -+20.6g", nan) == "+nan " +string.format("% -+20.6g", inf) == "+inf " +string.format("% -+20.6g", -inf) == "-inf " +string.format("% -+20.6g", 100) == "+100 " +string.format("% -+20.6g", 10000) == "+10000 " +string.format("% -+20.6g", 100000) == "+100000 " +string.format("% -+20.6g", 1000000) == "+1e+06 " +string.format("% -+20.6g", 10000000) == "+1e+07 " +string.format("% -+20.6g", 0.01) == "+0.01 " +string.format("% -+20.6g", 0.0001) == "+0.0001 " +string.format("% -+20.6g", 1e-05) == "+1e-05 " +string.format("% -+20.6g", 1e-06) == "+1e-06 " +string.format("% -+20.6g", 1e-07) == "+1e-07 " +string.format("% -+20.6g", 123.456) == "+123.456 " +string.format("% -+20.6g", 1234560000) == "+1.23456e+09 " +string.format("% -+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("% -+20.6g", 123.456789123) == "+123.457 " +string.format("% -+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("% -+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%#g", 0) == "0.00000" +string.format("%#g", 1) == "1.00000" +string.format("%#g", -1) == "-1.00000" +string.format("%#g", 2) == "2.00000" +string.format("%#g", -2) == "-2.00000" +string.format("%#g", 3) == "3.00000" +string.format("%#g", -3) == "-3.00000" +string.format("%#g", nan) == "nan" +string.format("%#g", inf) == "inf" +string.format("%#g", -inf) == "-inf" +string.format("%#g", 100) == "100.000" +string.format("%#g", 10000) == "10000.0" +string.format("%#g", 100000) == "100000." +string.format("%#g", 1000000) == "1.00000e+06" +string.format("%#g", 10000000) == "1.00000e+07" +string.format("%#g", 0.01) == "0.0100000" +string.format("%#g", 0.0001) == "0.000100000" +string.format("%#g", 1e-05) == "1.00000e-05" +string.format("%#g", 1e-06) == "1.00000e-06" +string.format("%#g", 1e-07) == "1.00000e-07" +string.format("%#g", 123.456) == "123.456" +string.format("%#g", 1234560000) == "1.23456e+09" +string.format("%#g", 1.23456e-05) == "1.23456e-05" +string.format("%#g", 123.456789123) == "123.457" +string.format("%#g", 1234567891.23) == "1.23457e+09" +string.format("%#g", 1.23456789123e-05) == "1.23457e-05" +string.format("%#.0g", 0) == "0." +string.format("%#.0g", 1) == "1." +string.format("%#.0g", -1) == "-1." +string.format("%#.0g", 2) == "2." +string.format("%#.0g", -2) == "-2." +string.format("%#.0g", 3) == "3." +string.format("%#.0g", -3) == "-3." +string.format("%#.0g", 100) == "1.e+02" +string.format("%#.0g", 10000) == "1.e+04" +string.format("%#.0g", 100000) == "1.e+05" +string.format("%#.0g", 1000000) == "1.e+06" +string.format("%#.0g", 10000000) == "1.e+07" +string.format("%#.0g", 0.01) == "0.01" +string.format("%#.0g", 0.0001) == "0.0001" +string.format("%#.0g", 1e-05) == "1.e-05" +string.format("%#.0g", 1e-06) == "1.e-06" +string.format("%#.0g", 1e-07) == "1.e-07" +string.format("%#.0g", 123.456) == "1.e+02" +string.format("%#.0g", 1234560000) == "1.e+09" +string.format("%#.0g", 1.23456e-05) == "1.e-05" +string.format("%#.0g", 123.456789123) == "1.e+02" +string.format("%#.0g", 1234567891.23) == "1.e+09" +string.format("%#.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#.1g", 0) == "0." +string.format("%#.1g", 1) == "1." +string.format("%#.1g", -1) == "-1." +string.format("%#.1g", 2) == "2." +string.format("%#.1g", -2) == "-2." +string.format("%#.1g", 3) == "3." +string.format("%#.1g", -3) == "-3." +string.format("%#.1g", 100) == "1.e+02" +string.format("%#.1g", 10000) == "1.e+04" +string.format("%#.1g", 100000) == "1.e+05" +string.format("%#.1g", 1000000) == "1.e+06" +string.format("%#.1g", 10000000) == "1.e+07" +string.format("%#.1g", 0.01) == "0.01" +string.format("%#.1g", 0.0001) == "0.0001" +string.format("%#.1g", 1e-05) == "1.e-05" +string.format("%#.1g", 1e-06) == "1.e-06" +string.format("%#.1g", 1e-07) == "1.e-07" +string.format("%#.1g", 123.456) == "1.e+02" +string.format("%#.1g", 1234560000) == "1.e+09" +string.format("%#.1g", 1.23456e-05) == "1.e-05" +string.format("%#.1g", 123.456789123) == "1.e+02" +string.format("%#.1g", 1234567891.23) == "1.e+09" +string.format("%#.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#1.0g", 0) == "0." +string.format("%#1.0g", 1) == "1." +string.format("%#1.0g", -1) == "-1." +string.format("%#1.0g", 2) == "2." +string.format("%#1.0g", -2) == "-2." +string.format("%#1.0g", 3) == "3." +string.format("%#1.0g", -3) == "-3." +string.format("%#1.0g", 100) == "1.e+02" +string.format("%#1.0g", 10000) == "1.e+04" +string.format("%#1.0g", 100000) == "1.e+05" +string.format("%#1.0g", 1000000) == "1.e+06" +string.format("%#1.0g", 10000000) == "1.e+07" +string.format("%#1.0g", 0.01) == "0.01" +string.format("%#1.0g", 0.0001) == "0.0001" +string.format("%#1.0g", 1e-05) == "1.e-05" +string.format("%#1.0g", 1e-06) == "1.e-06" +string.format("%#1.0g", 1e-07) == "1.e-07" +string.format("%#1.0g", 123.456) == "1.e+02" +string.format("%#1.0g", 1234560000) == "1.e+09" +string.format("%#1.0g", 1.23456e-05) == "1.e-05" +string.format("%#1.0g", 123.456789123) == "1.e+02" +string.format("%#1.0g", 1234567891.23) == "1.e+09" +string.format("%#1.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#1.1g", 0) == "0." +string.format("%#1.1g", 1) == "1." +string.format("%#1.1g", -1) == "-1." +string.format("%#1.1g", 2) == "2." +string.format("%#1.1g", -2) == "-2." +string.format("%#1.1g", 3) == "3." +string.format("%#1.1g", -3) == "-3." +string.format("%#1.1g", 100) == "1.e+02" +string.format("%#1.1g", 10000) == "1.e+04" +string.format("%#1.1g", 100000) == "1.e+05" +string.format("%#1.1g", 1000000) == "1.e+06" +string.format("%#1.1g", 10000000) == "1.e+07" +string.format("%#1.1g", 0.01) == "0.01" +string.format("%#1.1g", 0.0001) == "0.0001" +string.format("%#1.1g", 1e-05) == "1.e-05" +string.format("%#1.1g", 1e-06) == "1.e-06" +string.format("%#1.1g", 1e-07) == "1.e-07" +string.format("%#1.1g", 123.456) == "1.e+02" +string.format("%#1.1g", 1234560000) == "1.e+09" +string.format("%#1.1g", 1.23456e-05) == "1.e-05" +string.format("%#1.1g", 123.456789123) == "1.e+02" +string.format("%#1.1g", 1234567891.23) == "1.e+09" +string.format("%#1.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#2.0g", 0) == "0." +string.format("%#2.0g", 1) == "1." +string.format("%#2.0g", -1) == "-1." +string.format("%#2.0g", 2) == "2." +string.format("%#2.0g", -2) == "-2." +string.format("%#2.0g", 3) == "3." +string.format("%#2.0g", -3) == "-3." +string.format("%#2.0g", 100) == "1.e+02" +string.format("%#2.0g", 10000) == "1.e+04" +string.format("%#2.0g", 100000) == "1.e+05" +string.format("%#2.0g", 1000000) == "1.e+06" +string.format("%#2.0g", 10000000) == "1.e+07" +string.format("%#2.0g", 0.01) == "0.01" +string.format("%#2.0g", 0.0001) == "0.0001" +string.format("%#2.0g", 1e-05) == "1.e-05" +string.format("%#2.0g", 1e-06) == "1.e-06" +string.format("%#2.0g", 1e-07) == "1.e-07" +string.format("%#2.0g", 123.456) == "1.e+02" +string.format("%#2.0g", 1234560000) == "1.e+09" +string.format("%#2.0g", 1.23456e-05) == "1.e-05" +string.format("%#2.0g", 123.456789123) == "1.e+02" +string.format("%#2.0g", 1234567891.23) == "1.e+09" +string.format("%#2.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#2.1g", 0) == "0." +string.format("%#2.1g", 1) == "1." +string.format("%#2.1g", -1) == "-1." +string.format("%#2.1g", 2) == "2." +string.format("%#2.1g", -2) == "-2." +string.format("%#2.1g", 3) == "3." +string.format("%#2.1g", -3) == "-3." +string.format("%#2.1g", 100) == "1.e+02" +string.format("%#2.1g", 10000) == "1.e+04" +string.format("%#2.1g", 100000) == "1.e+05" +string.format("%#2.1g", 1000000) == "1.e+06" +string.format("%#2.1g", 10000000) == "1.e+07" +string.format("%#2.1g", 0.01) == "0.01" +string.format("%#2.1g", 0.0001) == "0.0001" +string.format("%#2.1g", 1e-05) == "1.e-05" +string.format("%#2.1g", 1e-06) == "1.e-06" +string.format("%#2.1g", 1e-07) == "1.e-07" +string.format("%#2.1g", 123.456) == "1.e+02" +string.format("%#2.1g", 1234560000) == "1.e+09" +string.format("%#2.1g", 1.23456e-05) == "1.e-05" +string.format("%#2.1g", 123.456789123) == "1.e+02" +string.format("%#2.1g", 1234567891.23) == "1.e+09" +string.format("%#2.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#6g", nan) == " nan" +string.format("%#6g", inf) == " inf" +string.format("%#6g", -inf) == " -inf" +string.format("%#6.0g", 0) == " 0." +string.format("%#6.0g", 1) == " 1." +string.format("%#6.0g", -1) == " -1." +string.format("%#6.0g", 2) == " 2." +string.format("%#6.0g", -2) == " -2." +string.format("%#6.0g", 3) == " 3." +string.format("%#6.0g", -3) == " -3." +string.format("%#6.0g", nan) == " nan" +string.format("%#6.0g", inf) == " inf" +string.format("%#6.0g", -inf) == " -inf" +string.format("%#6.0g", 100) == "1.e+02" +string.format("%#6.0g", 10000) == "1.e+04" +string.format("%#6.0g", 100000) == "1.e+05" +string.format("%#6.0g", 1000000) == "1.e+06" +string.format("%#6.0g", 10000000) == "1.e+07" +string.format("%#6.0g", 0.01) == " 0.01" +string.format("%#6.0g", 0.0001) == "0.0001" +string.format("%#6.0g", 1e-05) == "1.e-05" +string.format("%#6.0g", 1e-06) == "1.e-06" +string.format("%#6.0g", 1e-07) == "1.e-07" +string.format("%#6.0g", 123.456) == "1.e+02" +string.format("%#6.0g", 1234560000) == "1.e+09" +string.format("%#6.0g", 1.23456e-05) == "1.e-05" +string.format("%#6.0g", 123.456789123) == "1.e+02" +string.format("%#6.0g", 1234567891.23) == "1.e+09" +string.format("%#6.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#6.1g", 0) == " 0." +string.format("%#6.1g", 1) == " 1." +string.format("%#6.1g", -1) == " -1." +string.format("%#6.1g", 2) == " 2." +string.format("%#6.1g", -2) == " -2." +string.format("%#6.1g", 3) == " 3." +string.format("%#6.1g", -3) == " -3." +string.format("%#6.1g", nan) == " nan" +string.format("%#6.1g", inf) == " inf" +string.format("%#6.1g", -inf) == " -inf" +string.format("%#6.1g", 100) == "1.e+02" +string.format("%#6.1g", 10000) == "1.e+04" +string.format("%#6.1g", 100000) == "1.e+05" +string.format("%#6.1g", 1000000) == "1.e+06" +string.format("%#6.1g", 10000000) == "1.e+07" +string.format("%#6.1g", 0.01) == " 0.01" +string.format("%#6.1g", 0.0001) == "0.0001" +string.format("%#6.1g", 1e-05) == "1.e-05" +string.format("%#6.1g", 1e-06) == "1.e-06" +string.format("%#6.1g", 1e-07) == "1.e-07" +string.format("%#6.1g", 123.456) == "1.e+02" +string.format("%#6.1g", 1234560000) == "1.e+09" +string.format("%#6.1g", 1.23456e-05) == "1.e-05" +string.format("%#6.1g", 123.456789123) == "1.e+02" +string.format("%#6.1g", 1234567891.23) == "1.e+09" +string.format("%#6.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#6.6g", nan) == " nan" +string.format("%#6.6g", inf) == " inf" +string.format("%#6.6g", -inf) == " -inf" +string.format("%#20g", 0) == " 0.00000" +string.format("%#20g", 1) == " 1.00000" +string.format("%#20g", -1) == " -1.00000" +string.format("%#20g", 2) == " 2.00000" +string.format("%#20g", -2) == " -2.00000" +string.format("%#20g", 3) == " 3.00000" +string.format("%#20g", -3) == " -3.00000" +string.format("%#20g", nan) == " nan" +string.format("%#20g", inf) == " inf" +string.format("%#20g", -inf) == " -inf" +string.format("%#20g", 100) == " 100.000" +string.format("%#20g", 10000) == " 10000.0" +string.format("%#20g", 100000) == " 100000." +string.format("%#20g", 1000000) == " 1.00000e+06" +string.format("%#20g", 10000000) == " 1.00000e+07" +string.format("%#20g", 0.01) == " 0.0100000" +string.format("%#20g", 0.0001) == " 0.000100000" +string.format("%#20g", 1e-05) == " 1.00000e-05" +string.format("%#20g", 1e-06) == " 1.00000e-06" +string.format("%#20g", 1e-07) == " 1.00000e-07" +string.format("%#20g", 123.456) == " 123.456" +string.format("%#20g", 1234560000) == " 1.23456e+09" +string.format("%#20g", 1.23456e-05) == " 1.23456e-05" +string.format("%#20g", 123.456789123) == " 123.457" +string.format("%#20g", 1234567891.23) == " 1.23457e+09" +string.format("%#20g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%#20.0g", 0) == " 0." +string.format("%#20.0g", 1) == " 1." +string.format("%#20.0g", -1) == " -1." +string.format("%#20.0g", 2) == " 2." +string.format("%#20.0g", -2) == " -2." +string.format("%#20.0g", 3) == " 3." +string.format("%#20.0g", -3) == " -3." +string.format("%#20.0g", nan) == " nan" +string.format("%#20.0g", inf) == " inf" +string.format("%#20.0g", -inf) == " -inf" +string.format("%#20.0g", 100) == " 1.e+02" +string.format("%#20.0g", 10000) == " 1.e+04" +string.format("%#20.0g", 100000) == " 1.e+05" +string.format("%#20.0g", 1000000) == " 1.e+06" +string.format("%#20.0g", 10000000) == " 1.e+07" +string.format("%#20.0g", 0.01) == " 0.01" +string.format("%#20.0g", 0.0001) == " 0.0001" +string.format("%#20.0g", 1e-05) == " 1.e-05" +string.format("%#20.0g", 1e-06) == " 1.e-06" +string.format("%#20.0g", 1e-07) == " 1.e-07" +string.format("%#20.0g", 123.456) == " 1.e+02" +string.format("%#20.0g", 1234560000) == " 1.e+09" +string.format("%#20.0g", 1.23456e-05) == " 1.e-05" +string.format("%#20.0g", 123.456789123) == " 1.e+02" +string.format("%#20.0g", 1234567891.23) == " 1.e+09" +string.format("%#20.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%#20.1g", 0) == " 0." +string.format("%#20.1g", 1) == " 1." +string.format("%#20.1g", -1) == " -1." +string.format("%#20.1g", 2) == " 2." +string.format("%#20.1g", -2) == " -2." +string.format("%#20.1g", 3) == " 3." +string.format("%#20.1g", -3) == " -3." +string.format("%#20.1g", nan) == " nan" +string.format("%#20.1g", inf) == " inf" +string.format("%#20.1g", -inf) == " -inf" +string.format("%#20.1g", 100) == " 1.e+02" +string.format("%#20.1g", 10000) == " 1.e+04" +string.format("%#20.1g", 100000) == " 1.e+05" +string.format("%#20.1g", 1000000) == " 1.e+06" +string.format("%#20.1g", 10000000) == " 1.e+07" +string.format("%#20.1g", 0.01) == " 0.01" +string.format("%#20.1g", 0.0001) == " 0.0001" +string.format("%#20.1g", 1e-05) == " 1.e-05" +string.format("%#20.1g", 1e-06) == " 1.e-06" +string.format("%#20.1g", 1e-07) == " 1.e-07" +string.format("%#20.1g", 123.456) == " 1.e+02" +string.format("%#20.1g", 1234560000) == " 1.e+09" +string.format("%#20.1g", 1.23456e-05) == " 1.e-05" +string.format("%#20.1g", 123.456789123) == " 1.e+02" +string.format("%#20.1g", 1234567891.23) == " 1.e+09" +string.format("%#20.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%#20.6g", 0) == " 0.00000" +string.format("%#20.6g", 1) == " 1.00000" +string.format("%#20.6g", -1) == " -1.00000" +string.format("%#20.6g", 2) == " 2.00000" +string.format("%#20.6g", -2) == " -2.00000" +string.format("%#20.6g", 3) == " 3.00000" +string.format("%#20.6g", -3) == " -3.00000" +string.format("%#20.6g", nan) == " nan" +string.format("%#20.6g", inf) == " inf" +string.format("%#20.6g", -inf) == " -inf" +string.format("%#20.6g", 100) == " 100.000" +string.format("%#20.6g", 10000) == " 10000.0" +string.format("%#20.6g", 100000) == " 100000." +string.format("%#20.6g", 1000000) == " 1.00000e+06" +string.format("%#20.6g", 10000000) == " 1.00000e+07" +string.format("%#20.6g", 0.01) == " 0.0100000" +string.format("%#20.6g", 0.0001) == " 0.000100000" +string.format("%#20.6g", 1e-05) == " 1.00000e-05" +string.format("%#20.6g", 1e-06) == " 1.00000e-06" +string.format("%#20.6g", 1e-07) == " 1.00000e-07" +string.format("%#20.6g", 123.456) == " 123.456" +string.format("%#20.6g", 1234560000) == " 1.23456e+09" +string.format("%#20.6g", 1.23456e-05) == " 1.23456e-05" +string.format("%#20.6g", 123.456789123) == " 123.457" +string.format("%#20.6g", 1234567891.23) == " 1.23457e+09" +string.format("%#20.6g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%#+g", 0) == "+0.00000" +string.format("%#+g", 1) == "+1.00000" +string.format("%#+g", -1) == "-1.00000" +string.format("%#+g", 2) == "+2.00000" +string.format("%#+g", -2) == "-2.00000" +string.format("%#+g", 3) == "+3.00000" +string.format("%#+g", -3) == "-3.00000" +string.format("%#+g", nan) == "+nan" +string.format("%#+g", inf) == "+inf" +string.format("%#+g", -inf) == "-inf" +string.format("%#+g", 100) == "+100.000" +string.format("%#+g", 10000) == "+10000.0" +string.format("%#+g", 100000) == "+100000." +string.format("%#+g", 1000000) == "+1.00000e+06" +string.format("%#+g", 10000000) == "+1.00000e+07" +string.format("%#+g", 0.01) == "+0.0100000" +string.format("%#+g", 0.0001) == "+0.000100000" +string.format("%#+g", 1e-05) == "+1.00000e-05" +string.format("%#+g", 1e-06) == "+1.00000e-06" +string.format("%#+g", 1e-07) == "+1.00000e-07" +string.format("%#+g", 123.456) == "+123.456" +string.format("%#+g", 1234560000) == "+1.23456e+09" +string.format("%#+g", 1.23456e-05) == "+1.23456e-05" +string.format("%#+g", 123.456789123) == "+123.457" +string.format("%#+g", 1234567891.23) == "+1.23457e+09" +string.format("%#+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%#+.0g", 0) == "+0." +string.format("%#+.0g", 1) == "+1." +string.format("%#+.0g", -1) == "-1." +string.format("%#+.0g", 2) == "+2." +string.format("%#+.0g", -2) == "-2." +string.format("%#+.0g", 3) == "+3." +string.format("%#+.0g", -3) == "-3." +string.format("%#+.0g", 100) == "+1.e+02" +string.format("%#+.0g", 10000) == "+1.e+04" +string.format("%#+.0g", 100000) == "+1.e+05" +string.format("%#+.0g", 1000000) == "+1.e+06" +string.format("%#+.0g", 10000000) == "+1.e+07" +string.format("%#+.0g", 0.01) == "+0.01" +string.format("%#+.0g", 0.0001) == "+0.0001" +string.format("%#+.0g", 1e-05) == "+1.e-05" +string.format("%#+.0g", 1e-06) == "+1.e-06" +string.format("%#+.0g", 1e-07) == "+1.e-07" +string.format("%#+.0g", 123.456) == "+1.e+02" +string.format("%#+.0g", 1234560000) == "+1.e+09" +string.format("%#+.0g", 1.23456e-05) == "+1.e-05" +string.format("%#+.0g", 123.456789123) == "+1.e+02" +string.format("%#+.0g", 1234567891.23) == "+1.e+09" +string.format("%#+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+.1g", 0) == "+0." +string.format("%#+.1g", 1) == "+1." +string.format("%#+.1g", -1) == "-1." +string.format("%#+.1g", 2) == "+2." +string.format("%#+.1g", -2) == "-2." +string.format("%#+.1g", 3) == "+3." +string.format("%#+.1g", -3) == "-3." +string.format("%#+.1g", 100) == "+1.e+02" +string.format("%#+.1g", 10000) == "+1.e+04" +string.format("%#+.1g", 100000) == "+1.e+05" +string.format("%#+.1g", 1000000) == "+1.e+06" +string.format("%#+.1g", 10000000) == "+1.e+07" +string.format("%#+.1g", 0.01) == "+0.01" +string.format("%#+.1g", 0.0001) == "+0.0001" +string.format("%#+.1g", 1e-05) == "+1.e-05" +string.format("%#+.1g", 1e-06) == "+1.e-06" +string.format("%#+.1g", 1e-07) == "+1.e-07" +string.format("%#+.1g", 123.456) == "+1.e+02" +string.format("%#+.1g", 1234560000) == "+1.e+09" +string.format("%#+.1g", 1.23456e-05) == "+1.e-05" +string.format("%#+.1g", 123.456789123) == "+1.e+02" +string.format("%#+.1g", 1234567891.23) == "+1.e+09" +string.format("%#+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+1.0g", 0) == "+0." +string.format("%#+1.0g", 1) == "+1." +string.format("%#+1.0g", -1) == "-1." +string.format("%#+1.0g", 2) == "+2." +string.format("%#+1.0g", -2) == "-2." +string.format("%#+1.0g", 3) == "+3." +string.format("%#+1.0g", -3) == "-3." +string.format("%#+1.0g", 100) == "+1.e+02" +string.format("%#+1.0g", 10000) == "+1.e+04" +string.format("%#+1.0g", 100000) == "+1.e+05" +string.format("%#+1.0g", 1000000) == "+1.e+06" +string.format("%#+1.0g", 10000000) == "+1.e+07" +string.format("%#+1.0g", 0.01) == "+0.01" +string.format("%#+1.0g", 0.0001) == "+0.0001" +string.format("%#+1.0g", 1e-05) == "+1.e-05" +string.format("%#+1.0g", 1e-06) == "+1.e-06" +string.format("%#+1.0g", 1e-07) == "+1.e-07" +string.format("%#+1.0g", 123.456) == "+1.e+02" +string.format("%#+1.0g", 1234560000) == "+1.e+09" +string.format("%#+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%#+1.0g", 123.456789123) == "+1.e+02" +string.format("%#+1.0g", 1234567891.23) == "+1.e+09" +string.format("%#+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+1.1g", 0) == "+0." +string.format("%#+1.1g", 1) == "+1." +string.format("%#+1.1g", -1) == "-1." +string.format("%#+1.1g", 2) == "+2." +string.format("%#+1.1g", -2) == "-2." +string.format("%#+1.1g", 3) == "+3." +string.format("%#+1.1g", -3) == "-3." +string.format("%#+1.1g", 100) == "+1.e+02" +string.format("%#+1.1g", 10000) == "+1.e+04" +string.format("%#+1.1g", 100000) == "+1.e+05" +string.format("%#+1.1g", 1000000) == "+1.e+06" +string.format("%#+1.1g", 10000000) == "+1.e+07" +string.format("%#+1.1g", 0.01) == "+0.01" +string.format("%#+1.1g", 0.0001) == "+0.0001" +string.format("%#+1.1g", 1e-05) == "+1.e-05" +string.format("%#+1.1g", 1e-06) == "+1.e-06" +string.format("%#+1.1g", 1e-07) == "+1.e-07" +string.format("%#+1.1g", 123.456) == "+1.e+02" +string.format("%#+1.1g", 1234560000) == "+1.e+09" +string.format("%#+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%#+1.1g", 123.456789123) == "+1.e+02" +string.format("%#+1.1g", 1234567891.23) == "+1.e+09" +string.format("%#+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+2.0g", 0) == "+0." +string.format("%#+2.0g", 1) == "+1." +string.format("%#+2.0g", -1) == "-1." +string.format("%#+2.0g", 2) == "+2." +string.format("%#+2.0g", -2) == "-2." +string.format("%#+2.0g", 3) == "+3." +string.format("%#+2.0g", -3) == "-3." +string.format("%#+2.0g", 100) == "+1.e+02" +string.format("%#+2.0g", 10000) == "+1.e+04" +string.format("%#+2.0g", 100000) == "+1.e+05" +string.format("%#+2.0g", 1000000) == "+1.e+06" +string.format("%#+2.0g", 10000000) == "+1.e+07" +string.format("%#+2.0g", 0.01) == "+0.01" +string.format("%#+2.0g", 0.0001) == "+0.0001" +string.format("%#+2.0g", 1e-05) == "+1.e-05" +string.format("%#+2.0g", 1e-06) == "+1.e-06" +string.format("%#+2.0g", 1e-07) == "+1.e-07" +string.format("%#+2.0g", 123.456) == "+1.e+02" +string.format("%#+2.0g", 1234560000) == "+1.e+09" +string.format("%#+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%#+2.0g", 123.456789123) == "+1.e+02" +string.format("%#+2.0g", 1234567891.23) == "+1.e+09" +string.format("%#+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+2.1g", 0) == "+0." +string.format("%#+2.1g", 1) == "+1." +string.format("%#+2.1g", -1) == "-1." +string.format("%#+2.1g", 2) == "+2." +string.format("%#+2.1g", -2) == "-2." +string.format("%#+2.1g", 3) == "+3." +string.format("%#+2.1g", -3) == "-3." +string.format("%#+2.1g", 100) == "+1.e+02" +string.format("%#+2.1g", 10000) == "+1.e+04" +string.format("%#+2.1g", 100000) == "+1.e+05" +string.format("%#+2.1g", 1000000) == "+1.e+06" +string.format("%#+2.1g", 10000000) == "+1.e+07" +string.format("%#+2.1g", 0.01) == "+0.01" +string.format("%#+2.1g", 0.0001) == "+0.0001" +string.format("%#+2.1g", 1e-05) == "+1.e-05" +string.format("%#+2.1g", 1e-06) == "+1.e-06" +string.format("%#+2.1g", 1e-07) == "+1.e-07" +string.format("%#+2.1g", 123.456) == "+1.e+02" +string.format("%#+2.1g", 1234560000) == "+1.e+09" +string.format("%#+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%#+2.1g", 123.456789123) == "+1.e+02" +string.format("%#+2.1g", 1234567891.23) == "+1.e+09" +string.format("%#+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+6g", nan) == " +nan" +string.format("%#+6g", inf) == " +inf" +string.format("%#+6g", -inf) == " -inf" +string.format("%#+6.0g", 0) == " +0." +string.format("%#+6.0g", 1) == " +1." +string.format("%#+6.0g", -1) == " -1." +string.format("%#+6.0g", 2) == " +2." +string.format("%#+6.0g", -2) == " -2." +string.format("%#+6.0g", 3) == " +3." +string.format("%#+6.0g", -3) == " -3." +string.format("%#+6.0g", nan) == " +nan" +string.format("%#+6.0g", inf) == " +inf" +string.format("%#+6.0g", -inf) == " -inf" +string.format("%#+6.0g", 100) == "+1.e+02" +string.format("%#+6.0g", 10000) == "+1.e+04" +string.format("%#+6.0g", 100000) == "+1.e+05" +string.format("%#+6.0g", 1000000) == "+1.e+06" +string.format("%#+6.0g", 10000000) == "+1.e+07" +string.format("%#+6.0g", 0.01) == " +0.01" +string.format("%#+6.0g", 0.0001) == "+0.0001" +string.format("%#+6.0g", 1e-05) == "+1.e-05" +string.format("%#+6.0g", 1e-06) == "+1.e-06" +string.format("%#+6.0g", 1e-07) == "+1.e-07" +string.format("%#+6.0g", 123.456) == "+1.e+02" +string.format("%#+6.0g", 1234560000) == "+1.e+09" +string.format("%#+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%#+6.0g", 123.456789123) == "+1.e+02" +string.format("%#+6.0g", 1234567891.23) == "+1.e+09" +string.format("%#+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+6.1g", 0) == " +0." +string.format("%#+6.1g", 1) == " +1." +string.format("%#+6.1g", -1) == " -1." +string.format("%#+6.1g", 2) == " +2." +string.format("%#+6.1g", -2) == " -2." +string.format("%#+6.1g", 3) == " +3." +string.format("%#+6.1g", -3) == " -3." +string.format("%#+6.1g", nan) == " +nan" +string.format("%#+6.1g", inf) == " +inf" +string.format("%#+6.1g", -inf) == " -inf" +string.format("%#+6.1g", 100) == "+1.e+02" +string.format("%#+6.1g", 10000) == "+1.e+04" +string.format("%#+6.1g", 100000) == "+1.e+05" +string.format("%#+6.1g", 1000000) == "+1.e+06" +string.format("%#+6.1g", 10000000) == "+1.e+07" +string.format("%#+6.1g", 0.01) == " +0.01" +string.format("%#+6.1g", 0.0001) == "+0.0001" +string.format("%#+6.1g", 1e-05) == "+1.e-05" +string.format("%#+6.1g", 1e-06) == "+1.e-06" +string.format("%#+6.1g", 1e-07) == "+1.e-07" +string.format("%#+6.1g", 123.456) == "+1.e+02" +string.format("%#+6.1g", 1234560000) == "+1.e+09" +string.format("%#+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%#+6.1g", 123.456789123) == "+1.e+02" +string.format("%#+6.1g", 1234567891.23) == "+1.e+09" +string.format("%#+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#+6.6g", nan) == " +nan" +string.format("%#+6.6g", inf) == " +inf" +string.format("%#+6.6g", -inf) == " -inf" +string.format("%#+20g", 0) == " +0.00000" +string.format("%#+20g", 1) == " +1.00000" +string.format("%#+20g", -1) == " -1.00000" +string.format("%#+20g", 2) == " +2.00000" +string.format("%#+20g", -2) == " -2.00000" +string.format("%#+20g", 3) == " +3.00000" +string.format("%#+20g", -3) == " -3.00000" +string.format("%#+20g", nan) == " +nan" +string.format("%#+20g", inf) == " +inf" +string.format("%#+20g", -inf) == " -inf" +string.format("%#+20g", 100) == " +100.000" +string.format("%#+20g", 10000) == " +10000.0" +string.format("%#+20g", 100000) == " +100000." +string.format("%#+20g", 1000000) == " +1.00000e+06" +string.format("%#+20g", 10000000) == " +1.00000e+07" +string.format("%#+20g", 0.01) == " +0.0100000" +string.format("%#+20g", 0.0001) == " +0.000100000" +string.format("%#+20g", 1e-05) == " +1.00000e-05" +string.format("%#+20g", 1e-06) == " +1.00000e-06" +string.format("%#+20g", 1e-07) == " +1.00000e-07" +string.format("%#+20g", 123.456) == " +123.456" +string.format("%#+20g", 1234560000) == " +1.23456e+09" +string.format("%#+20g", 1.23456e-05) == " +1.23456e-05" +string.format("%#+20g", 123.456789123) == " +123.457" +string.format("%#+20g", 1234567891.23) == " +1.23457e+09" +string.format("%#+20g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%#+20.0g", 0) == " +0." +string.format("%#+20.0g", 1) == " +1." +string.format("%#+20.0g", -1) == " -1." +string.format("%#+20.0g", 2) == " +2." +string.format("%#+20.0g", -2) == " -2." +string.format("%#+20.0g", 3) == " +3." +string.format("%#+20.0g", -3) == " -3." +string.format("%#+20.0g", nan) == " +nan" +string.format("%#+20.0g", inf) == " +inf" +string.format("%#+20.0g", -inf) == " -inf" +string.format("%#+20.0g", 100) == " +1.e+02" +string.format("%#+20.0g", 10000) == " +1.e+04" +string.format("%#+20.0g", 100000) == " +1.e+05" +string.format("%#+20.0g", 1000000) == " +1.e+06" +string.format("%#+20.0g", 10000000) == " +1.e+07" +string.format("%#+20.0g", 0.01) == " +0.01" +string.format("%#+20.0g", 0.0001) == " +0.0001" +string.format("%#+20.0g", 1e-05) == " +1.e-05" +string.format("%#+20.0g", 1e-06) == " +1.e-06" +string.format("%#+20.0g", 1e-07) == " +1.e-07" +string.format("%#+20.0g", 123.456) == " +1.e+02" +string.format("%#+20.0g", 1234560000) == " +1.e+09" +string.format("%#+20.0g", 1.23456e-05) == " +1.e-05" +string.format("%#+20.0g", 123.456789123) == " +1.e+02" +string.format("%#+20.0g", 1234567891.23) == " +1.e+09" +string.format("%#+20.0g", 1.23456789123e-05) == " +1.e-05" +string.format("%#+20.1g", 0) == " +0." +string.format("%#+20.1g", 1) == " +1." +string.format("%#+20.1g", -1) == " -1." +string.format("%#+20.1g", 2) == " +2." +string.format("%#+20.1g", -2) == " -2." +string.format("%#+20.1g", 3) == " +3." +string.format("%#+20.1g", -3) == " -3." +string.format("%#+20.1g", nan) == " +nan" +string.format("%#+20.1g", inf) == " +inf" +string.format("%#+20.1g", -inf) == " -inf" +string.format("%#+20.1g", 100) == " +1.e+02" +string.format("%#+20.1g", 10000) == " +1.e+04" +string.format("%#+20.1g", 100000) == " +1.e+05" +string.format("%#+20.1g", 1000000) == " +1.e+06" +string.format("%#+20.1g", 10000000) == " +1.e+07" +string.format("%#+20.1g", 0.01) == " +0.01" +string.format("%#+20.1g", 0.0001) == " +0.0001" +string.format("%#+20.1g", 1e-05) == " +1.e-05" +string.format("%#+20.1g", 1e-06) == " +1.e-06" +string.format("%#+20.1g", 1e-07) == " +1.e-07" +string.format("%#+20.1g", 123.456) == " +1.e+02" +string.format("%#+20.1g", 1234560000) == " +1.e+09" +string.format("%#+20.1g", 1.23456e-05) == " +1.e-05" +string.format("%#+20.1g", 123.456789123) == " +1.e+02" +string.format("%#+20.1g", 1234567891.23) == " +1.e+09" +string.format("%#+20.1g", 1.23456789123e-05) == " +1.e-05" +string.format("%#+20.6g", 0) == " +0.00000" +string.format("%#+20.6g", 1) == " +1.00000" +string.format("%#+20.6g", -1) == " -1.00000" +string.format("%#+20.6g", 2) == " +2.00000" +string.format("%#+20.6g", -2) == " -2.00000" +string.format("%#+20.6g", 3) == " +3.00000" +string.format("%#+20.6g", -3) == " -3.00000" +string.format("%#+20.6g", nan) == " +nan" +string.format("%#+20.6g", inf) == " +inf" +string.format("%#+20.6g", -inf) == " -inf" +string.format("%#+20.6g", 100) == " +100.000" +string.format("%#+20.6g", 10000) == " +10000.0" +string.format("%#+20.6g", 100000) == " +100000." +string.format("%#+20.6g", 1000000) == " +1.00000e+06" +string.format("%#+20.6g", 10000000) == " +1.00000e+07" +string.format("%#+20.6g", 0.01) == " +0.0100000" +string.format("%#+20.6g", 0.0001) == " +0.000100000" +string.format("%#+20.6g", 1e-05) == " +1.00000e-05" +string.format("%#+20.6g", 1e-06) == " +1.00000e-06" +string.format("%#+20.6g", 1e-07) == " +1.00000e-07" +string.format("%#+20.6g", 123.456) == " +123.456" +string.format("%#+20.6g", 1234560000) == " +1.23456e+09" +string.format("%#+20.6g", 1.23456e-05) == " +1.23456e-05" +string.format("%#+20.6g", 123.456789123) == " +123.457" +string.format("%#+20.6g", 1234567891.23) == " +1.23457e+09" +string.format("%#+20.6g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%#-g", 0) == "0.00000" +string.format("%#-g", 1) == "1.00000" +string.format("%#-g", -1) == "-1.00000" +string.format("%#-g", 2) == "2.00000" +string.format("%#-g", -2) == "-2.00000" +string.format("%#-g", 3) == "3.00000" +string.format("%#-g", -3) == "-3.00000" +string.format("%#-g", nan) == "nan" +string.format("%#-g", inf) == "inf" +string.format("%#-g", -inf) == "-inf" +string.format("%#-g", 100) == "100.000" +string.format("%#-g", 10000) == "10000.0" +string.format("%#-g", 100000) == "100000." +string.format("%#-g", 1000000) == "1.00000e+06" +string.format("%#-g", 10000000) == "1.00000e+07" +string.format("%#-g", 0.01) == "0.0100000" +string.format("%#-g", 0.0001) == "0.000100000" +string.format("%#-g", 1e-05) == "1.00000e-05" +string.format("%#-g", 1e-06) == "1.00000e-06" +string.format("%#-g", 1e-07) == "1.00000e-07" +string.format("%#-g", 123.456) == "123.456" +string.format("%#-g", 1234560000) == "1.23456e+09" +string.format("%#-g", 1.23456e-05) == "1.23456e-05" +string.format("%#-g", 123.456789123) == "123.457" +string.format("%#-g", 1234567891.23) == "1.23457e+09" +string.format("%#-g", 1.23456789123e-05) == "1.23457e-05" +string.format("%#-.0g", 0) == "0." +string.format("%#-.0g", 1) == "1." +string.format("%#-.0g", -1) == "-1." +string.format("%#-.0g", 2) == "2." +string.format("%#-.0g", -2) == "-2." +string.format("%#-.0g", 3) == "3." +string.format("%#-.0g", -3) == "-3." +string.format("%#-.0g", 100) == "1.e+02" +string.format("%#-.0g", 10000) == "1.e+04" +string.format("%#-.0g", 100000) == "1.e+05" +string.format("%#-.0g", 1000000) == "1.e+06" +string.format("%#-.0g", 10000000) == "1.e+07" +string.format("%#-.0g", 0.01) == "0.01" +string.format("%#-.0g", 0.0001) == "0.0001" +string.format("%#-.0g", 1e-05) == "1.e-05" +string.format("%#-.0g", 1e-06) == "1.e-06" +string.format("%#-.0g", 1e-07) == "1.e-07" +string.format("%#-.0g", 123.456) == "1.e+02" +string.format("%#-.0g", 1234560000) == "1.e+09" +string.format("%#-.0g", 1.23456e-05) == "1.e-05" +string.format("%#-.0g", 123.456789123) == "1.e+02" +string.format("%#-.0g", 1234567891.23) == "1.e+09" +string.format("%#-.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#-.1g", 0) == "0." +string.format("%#-.1g", 1) == "1." +string.format("%#-.1g", -1) == "-1." +string.format("%#-.1g", 2) == "2." +string.format("%#-.1g", -2) == "-2." +string.format("%#-.1g", 3) == "3." +string.format("%#-.1g", -3) == "-3." +string.format("%#-.1g", 100) == "1.e+02" +string.format("%#-.1g", 10000) == "1.e+04" +string.format("%#-.1g", 100000) == "1.e+05" +string.format("%#-.1g", 1000000) == "1.e+06" +string.format("%#-.1g", 10000000) == "1.e+07" +string.format("%#-.1g", 0.01) == "0.01" +string.format("%#-.1g", 0.0001) == "0.0001" +string.format("%#-.1g", 1e-05) == "1.e-05" +string.format("%#-.1g", 1e-06) == "1.e-06" +string.format("%#-.1g", 1e-07) == "1.e-07" +string.format("%#-.1g", 123.456) == "1.e+02" +string.format("%#-.1g", 1234560000) == "1.e+09" +string.format("%#-.1g", 1.23456e-05) == "1.e-05" +string.format("%#-.1g", 123.456789123) == "1.e+02" +string.format("%#-.1g", 1234567891.23) == "1.e+09" +string.format("%#-.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#-1.0g", 0) == "0." +string.format("%#-1.0g", 1) == "1." +string.format("%#-1.0g", -1) == "-1." +string.format("%#-1.0g", 2) == "2." +string.format("%#-1.0g", -2) == "-2." +string.format("%#-1.0g", 3) == "3." +string.format("%#-1.0g", -3) == "-3." +string.format("%#-1.0g", 100) == "1.e+02" +string.format("%#-1.0g", 10000) == "1.e+04" +string.format("%#-1.0g", 100000) == "1.e+05" +string.format("%#-1.0g", 1000000) == "1.e+06" +string.format("%#-1.0g", 10000000) == "1.e+07" +string.format("%#-1.0g", 0.01) == "0.01" +string.format("%#-1.0g", 0.0001) == "0.0001" +string.format("%#-1.0g", 1e-05) == "1.e-05" +string.format("%#-1.0g", 1e-06) == "1.e-06" +string.format("%#-1.0g", 1e-07) == "1.e-07" +string.format("%#-1.0g", 123.456) == "1.e+02" +string.format("%#-1.0g", 1234560000) == "1.e+09" +string.format("%#-1.0g", 1.23456e-05) == "1.e-05" +string.format("%#-1.0g", 123.456789123) == "1.e+02" +string.format("%#-1.0g", 1234567891.23) == "1.e+09" +string.format("%#-1.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#-1.1g", 0) == "0." +string.format("%#-1.1g", 1) == "1." +string.format("%#-1.1g", -1) == "-1." +string.format("%#-1.1g", 2) == "2." +string.format("%#-1.1g", -2) == "-2." +string.format("%#-1.1g", 3) == "3." +string.format("%#-1.1g", -3) == "-3." +string.format("%#-1.1g", 100) == "1.e+02" +string.format("%#-1.1g", 10000) == "1.e+04" +string.format("%#-1.1g", 100000) == "1.e+05" +string.format("%#-1.1g", 1000000) == "1.e+06" +string.format("%#-1.1g", 10000000) == "1.e+07" +string.format("%#-1.1g", 0.01) == "0.01" +string.format("%#-1.1g", 0.0001) == "0.0001" +string.format("%#-1.1g", 1e-05) == "1.e-05" +string.format("%#-1.1g", 1e-06) == "1.e-06" +string.format("%#-1.1g", 1e-07) == "1.e-07" +string.format("%#-1.1g", 123.456) == "1.e+02" +string.format("%#-1.1g", 1234560000) == "1.e+09" +string.format("%#-1.1g", 1.23456e-05) == "1.e-05" +string.format("%#-1.1g", 123.456789123) == "1.e+02" +string.format("%#-1.1g", 1234567891.23) == "1.e+09" +string.format("%#-1.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#-2.0g", 0) == "0." +string.format("%#-2.0g", 1) == "1." +string.format("%#-2.0g", -1) == "-1." +string.format("%#-2.0g", 2) == "2." +string.format("%#-2.0g", -2) == "-2." +string.format("%#-2.0g", 3) == "3." +string.format("%#-2.0g", -3) == "-3." +string.format("%#-2.0g", 100) == "1.e+02" +string.format("%#-2.0g", 10000) == "1.e+04" +string.format("%#-2.0g", 100000) == "1.e+05" +string.format("%#-2.0g", 1000000) == "1.e+06" +string.format("%#-2.0g", 10000000) == "1.e+07" +string.format("%#-2.0g", 0.01) == "0.01" +string.format("%#-2.0g", 0.0001) == "0.0001" +string.format("%#-2.0g", 1e-05) == "1.e-05" +string.format("%#-2.0g", 1e-06) == "1.e-06" +string.format("%#-2.0g", 1e-07) == "1.e-07" +string.format("%#-2.0g", 123.456) == "1.e+02" +string.format("%#-2.0g", 1234560000) == "1.e+09" +string.format("%#-2.0g", 1.23456e-05) == "1.e-05" +string.format("%#-2.0g", 123.456789123) == "1.e+02" +string.format("%#-2.0g", 1234567891.23) == "1.e+09" +string.format("%#-2.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#-2.1g", 0) == "0." +string.format("%#-2.1g", 1) == "1." +string.format("%#-2.1g", -1) == "-1." +string.format("%#-2.1g", 2) == "2." +string.format("%#-2.1g", -2) == "-2." +string.format("%#-2.1g", 3) == "3." +string.format("%#-2.1g", -3) == "-3." +string.format("%#-2.1g", 100) == "1.e+02" +string.format("%#-2.1g", 10000) == "1.e+04" +string.format("%#-2.1g", 100000) == "1.e+05" +string.format("%#-2.1g", 1000000) == "1.e+06" +string.format("%#-2.1g", 10000000) == "1.e+07" +string.format("%#-2.1g", 0.01) == "0.01" +string.format("%#-2.1g", 0.0001) == "0.0001" +string.format("%#-2.1g", 1e-05) == "1.e-05" +string.format("%#-2.1g", 1e-06) == "1.e-06" +string.format("%#-2.1g", 1e-07) == "1.e-07" +string.format("%#-2.1g", 123.456) == "1.e+02" +string.format("%#-2.1g", 1234560000) == "1.e+09" +string.format("%#-2.1g", 1.23456e-05) == "1.e-05" +string.format("%#-2.1g", 123.456789123) == "1.e+02" +string.format("%#-2.1g", 1234567891.23) == "1.e+09" +string.format("%#-2.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#-6g", nan) == "nan " +string.format("%#-6g", inf) == "inf " +string.format("%#-6g", -inf) == "-inf " +string.format("%#-6.0g", 0) == "0. " +string.format("%#-6.0g", 1) == "1. " +string.format("%#-6.0g", -1) == "-1. " +string.format("%#-6.0g", 2) == "2. " +string.format("%#-6.0g", -2) == "-2. " +string.format("%#-6.0g", 3) == "3. " +string.format("%#-6.0g", -3) == "-3. " +string.format("%#-6.0g", nan) == "nan " +string.format("%#-6.0g", inf) == "inf " +string.format("%#-6.0g", -inf) == "-inf " +string.format("%#-6.0g", 100) == "1.e+02" +string.format("%#-6.0g", 10000) == "1.e+04" +string.format("%#-6.0g", 100000) == "1.e+05" +string.format("%#-6.0g", 1000000) == "1.e+06" +string.format("%#-6.0g", 10000000) == "1.e+07" +string.format("%#-6.0g", 0.01) == "0.01 " +string.format("%#-6.0g", 0.0001) == "0.0001" +string.format("%#-6.0g", 1e-05) == "1.e-05" +string.format("%#-6.0g", 1e-06) == "1.e-06" +string.format("%#-6.0g", 1e-07) == "1.e-07" +string.format("%#-6.0g", 123.456) == "1.e+02" +string.format("%#-6.0g", 1234560000) == "1.e+09" +string.format("%#-6.0g", 1.23456e-05) == "1.e-05" +string.format("%#-6.0g", 123.456789123) == "1.e+02" +string.format("%#-6.0g", 1234567891.23) == "1.e+09" +string.format("%#-6.0g", 1.23456789123e-05) == "1.e-05" +string.format("%#-6.1g", 0) == "0. " +string.format("%#-6.1g", 1) == "1. " +string.format("%#-6.1g", -1) == "-1. " +string.format("%#-6.1g", 2) == "2. " +string.format("%#-6.1g", -2) == "-2. " +string.format("%#-6.1g", 3) == "3. " +string.format("%#-6.1g", -3) == "-3. " +string.format("%#-6.1g", nan) == "nan " +string.format("%#-6.1g", inf) == "inf " +string.format("%#-6.1g", -inf) == "-inf " +string.format("%#-6.1g", 100) == "1.e+02" +string.format("%#-6.1g", 10000) == "1.e+04" +string.format("%#-6.1g", 100000) == "1.e+05" +string.format("%#-6.1g", 1000000) == "1.e+06" +string.format("%#-6.1g", 10000000) == "1.e+07" +string.format("%#-6.1g", 0.01) == "0.01 " +string.format("%#-6.1g", 0.0001) == "0.0001" +string.format("%#-6.1g", 1e-05) == "1.e-05" +string.format("%#-6.1g", 1e-06) == "1.e-06" +string.format("%#-6.1g", 1e-07) == "1.e-07" +string.format("%#-6.1g", 123.456) == "1.e+02" +string.format("%#-6.1g", 1234560000) == "1.e+09" +string.format("%#-6.1g", 1.23456e-05) == "1.e-05" +string.format("%#-6.1g", 123.456789123) == "1.e+02" +string.format("%#-6.1g", 1234567891.23) == "1.e+09" +string.format("%#-6.1g", 1.23456789123e-05) == "1.e-05" +string.format("%#-6.6g", nan) == "nan " +string.format("%#-6.6g", inf) == "inf " +string.format("%#-6.6g", -inf) == "-inf " +string.format("%#-20g", 0) == "0.00000 " +string.format("%#-20g", 1) == "1.00000 " +string.format("%#-20g", -1) == "-1.00000 " +string.format("%#-20g", 2) == "2.00000 " +string.format("%#-20g", -2) == "-2.00000 " +string.format("%#-20g", 3) == "3.00000 " +string.format("%#-20g", -3) == "-3.00000 " +string.format("%#-20g", nan) == "nan " +string.format("%#-20g", inf) == "inf " +string.format("%#-20g", -inf) == "-inf " +string.format("%#-20g", 100) == "100.000 " +string.format("%#-20g", 10000) == "10000.0 " +string.format("%#-20g", 100000) == "100000. " +string.format("%#-20g", 1000000) == "1.00000e+06 " +string.format("%#-20g", 10000000) == "1.00000e+07 " +string.format("%#-20g", 0.01) == "0.0100000 " +string.format("%#-20g", 0.0001) == "0.000100000 " +string.format("%#-20g", 1e-05) == "1.00000e-05 " +string.format("%#-20g", 1e-06) == "1.00000e-06 " +string.format("%#-20g", 1e-07) == "1.00000e-07 " +string.format("%#-20g", 123.456) == "123.456 " +string.format("%#-20g", 1234560000) == "1.23456e+09 " +string.format("%#-20g", 1.23456e-05) == "1.23456e-05 " +string.format("%#-20g", 123.456789123) == "123.457 " +string.format("%#-20g", 1234567891.23) == "1.23457e+09 " +string.format("%#-20g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%#-20.0g", 0) == "0. " +string.format("%#-20.0g", 1) == "1. " +string.format("%#-20.0g", -1) == "-1. " +string.format("%#-20.0g", 2) == "2. " +string.format("%#-20.0g", -2) == "-2. " +string.format("%#-20.0g", 3) == "3. " +string.format("%#-20.0g", -3) == "-3. " +string.format("%#-20.0g", nan) == "nan " +string.format("%#-20.0g", inf) == "inf " +string.format("%#-20.0g", -inf) == "-inf " +string.format("%#-20.0g", 100) == "1.e+02 " +string.format("%#-20.0g", 10000) == "1.e+04 " +string.format("%#-20.0g", 100000) == "1.e+05 " +string.format("%#-20.0g", 1000000) == "1.e+06 " +string.format("%#-20.0g", 10000000) == "1.e+07 " +string.format("%#-20.0g", 0.01) == "0.01 " +string.format("%#-20.0g", 0.0001) == "0.0001 " +string.format("%#-20.0g", 1e-05) == "1.e-05 " +string.format("%#-20.0g", 1e-06) == "1.e-06 " +string.format("%#-20.0g", 1e-07) == "1.e-07 " +string.format("%#-20.0g", 123.456) == "1.e+02 " +string.format("%#-20.0g", 1234560000) == "1.e+09 " +string.format("%#-20.0g", 1.23456e-05) == "1.e-05 " +string.format("%#-20.0g", 123.456789123) == "1.e+02 " +string.format("%#-20.0g", 1234567891.23) == "1.e+09 " +string.format("%#-20.0g", 1.23456789123e-05) == "1.e-05 " +string.format("%#-20.1g", 0) == "0. " +string.format("%#-20.1g", 1) == "1. " +string.format("%#-20.1g", -1) == "-1. " +string.format("%#-20.1g", 2) == "2. " +string.format("%#-20.1g", -2) == "-2. " +string.format("%#-20.1g", 3) == "3. " +string.format("%#-20.1g", -3) == "-3. " +string.format("%#-20.1g", nan) == "nan " +string.format("%#-20.1g", inf) == "inf " +string.format("%#-20.1g", -inf) == "-inf " +string.format("%#-20.1g", 100) == "1.e+02 " +string.format("%#-20.1g", 10000) == "1.e+04 " +string.format("%#-20.1g", 100000) == "1.e+05 " +string.format("%#-20.1g", 1000000) == "1.e+06 " +string.format("%#-20.1g", 10000000) == "1.e+07 " +string.format("%#-20.1g", 0.01) == "0.01 " +string.format("%#-20.1g", 0.0001) == "0.0001 " +string.format("%#-20.1g", 1e-05) == "1.e-05 " +string.format("%#-20.1g", 1e-06) == "1.e-06 " +string.format("%#-20.1g", 1e-07) == "1.e-07 " +string.format("%#-20.1g", 123.456) == "1.e+02 " +string.format("%#-20.1g", 1234560000) == "1.e+09 " +string.format("%#-20.1g", 1.23456e-05) == "1.e-05 " +string.format("%#-20.1g", 123.456789123) == "1.e+02 " +string.format("%#-20.1g", 1234567891.23) == "1.e+09 " +string.format("%#-20.1g", 1.23456789123e-05) == "1.e-05 " +string.format("%#-20.6g", 0) == "0.00000 " +string.format("%#-20.6g", 1) == "1.00000 " +string.format("%#-20.6g", -1) == "-1.00000 " +string.format("%#-20.6g", 2) == "2.00000 " +string.format("%#-20.6g", -2) == "-2.00000 " +string.format("%#-20.6g", 3) == "3.00000 " +string.format("%#-20.6g", -3) == "-3.00000 " +string.format("%#-20.6g", nan) == "nan " +string.format("%#-20.6g", inf) == "inf " +string.format("%#-20.6g", -inf) == "-inf " +string.format("%#-20.6g", 100) == "100.000 " +string.format("%#-20.6g", 10000) == "10000.0 " +string.format("%#-20.6g", 100000) == "100000. " +string.format("%#-20.6g", 1000000) == "1.00000e+06 " +string.format("%#-20.6g", 10000000) == "1.00000e+07 " +string.format("%#-20.6g", 0.01) == "0.0100000 " +string.format("%#-20.6g", 0.0001) == "0.000100000 " +string.format("%#-20.6g", 1e-05) == "1.00000e-05 " +string.format("%#-20.6g", 1e-06) == "1.00000e-06 " +string.format("%#-20.6g", 1e-07) == "1.00000e-07 " +string.format("%#-20.6g", 123.456) == "123.456 " +string.format("%#-20.6g", 1234560000) == "1.23456e+09 " +string.format("%#-20.6g", 1.23456e-05) == "1.23456e-05 " +string.format("%#-20.6g", 123.456789123) == "123.457 " +string.format("%#-20.6g", 1234567891.23) == "1.23457e+09 " +string.format("%#-20.6g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%#-+g", 0) == "+0.00000" +string.format("%#-+g", 1) == "+1.00000" +string.format("%#-+g", -1) == "-1.00000" +string.format("%#-+g", 2) == "+2.00000" +string.format("%#-+g", -2) == "-2.00000" +string.format("%#-+g", 3) == "+3.00000" +string.format("%#-+g", -3) == "-3.00000" +string.format("%#-+g", nan) == "+nan" +string.format("%#-+g", inf) == "+inf" +string.format("%#-+g", -inf) == "-inf" +string.format("%#-+g", 100) == "+100.000" +string.format("%#-+g", 10000) == "+10000.0" +string.format("%#-+g", 100000) == "+100000." +string.format("%#-+g", 1000000) == "+1.00000e+06" +string.format("%#-+g", 10000000) == "+1.00000e+07" +string.format("%#-+g", 0.01) == "+0.0100000" +string.format("%#-+g", 0.0001) == "+0.000100000" +string.format("%#-+g", 1e-05) == "+1.00000e-05" +string.format("%#-+g", 1e-06) == "+1.00000e-06" +string.format("%#-+g", 1e-07) == "+1.00000e-07" +string.format("%#-+g", 123.456) == "+123.456" +string.format("%#-+g", 1234560000) == "+1.23456e+09" +string.format("%#-+g", 1.23456e-05) == "+1.23456e-05" +string.format("%#-+g", 123.456789123) == "+123.457" +string.format("%#-+g", 1234567891.23) == "+1.23457e+09" +string.format("%#-+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%#-+.0g", 0) == "+0." +string.format("%#-+.0g", 1) == "+1." +string.format("%#-+.0g", -1) == "-1." +string.format("%#-+.0g", 2) == "+2." +string.format("%#-+.0g", -2) == "-2." +string.format("%#-+.0g", 3) == "+3." +string.format("%#-+.0g", -3) == "-3." +string.format("%#-+.0g", 100) == "+1.e+02" +string.format("%#-+.0g", 10000) == "+1.e+04" +string.format("%#-+.0g", 100000) == "+1.e+05" +string.format("%#-+.0g", 1000000) == "+1.e+06" +string.format("%#-+.0g", 10000000) == "+1.e+07" +string.format("%#-+.0g", 0.01) == "+0.01" +string.format("%#-+.0g", 0.0001) == "+0.0001" +string.format("%#-+.0g", 1e-05) == "+1.e-05" +string.format("%#-+.0g", 1e-06) == "+1.e-06" +string.format("%#-+.0g", 1e-07) == "+1.e-07" +string.format("%#-+.0g", 123.456) == "+1.e+02" +string.format("%#-+.0g", 1234560000) == "+1.e+09" +string.format("%#-+.0g", 1.23456e-05) == "+1.e-05" +string.format("%#-+.0g", 123.456789123) == "+1.e+02" +string.format("%#-+.0g", 1234567891.23) == "+1.e+09" +string.format("%#-+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+.1g", 0) == "+0." +string.format("%#-+.1g", 1) == "+1." +string.format("%#-+.1g", -1) == "-1." +string.format("%#-+.1g", 2) == "+2." +string.format("%#-+.1g", -2) == "-2." +string.format("%#-+.1g", 3) == "+3." +string.format("%#-+.1g", -3) == "-3." +string.format("%#-+.1g", 100) == "+1.e+02" +string.format("%#-+.1g", 10000) == "+1.e+04" +string.format("%#-+.1g", 100000) == "+1.e+05" +string.format("%#-+.1g", 1000000) == "+1.e+06" +string.format("%#-+.1g", 10000000) == "+1.e+07" +string.format("%#-+.1g", 0.01) == "+0.01" +string.format("%#-+.1g", 0.0001) == "+0.0001" +string.format("%#-+.1g", 1e-05) == "+1.e-05" +string.format("%#-+.1g", 1e-06) == "+1.e-06" +string.format("%#-+.1g", 1e-07) == "+1.e-07" +string.format("%#-+.1g", 123.456) == "+1.e+02" +string.format("%#-+.1g", 1234560000) == "+1.e+09" +string.format("%#-+.1g", 1.23456e-05) == "+1.e-05" +string.format("%#-+.1g", 123.456789123) == "+1.e+02" +string.format("%#-+.1g", 1234567891.23) == "+1.e+09" +string.format("%#-+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+1.0g", 0) == "+0." +string.format("%#-+1.0g", 1) == "+1." +string.format("%#-+1.0g", -1) == "-1." +string.format("%#-+1.0g", 2) == "+2." +string.format("%#-+1.0g", -2) == "-2." +string.format("%#-+1.0g", 3) == "+3." +string.format("%#-+1.0g", -3) == "-3." +string.format("%#-+1.0g", 100) == "+1.e+02" +string.format("%#-+1.0g", 10000) == "+1.e+04" +string.format("%#-+1.0g", 100000) == "+1.e+05" +string.format("%#-+1.0g", 1000000) == "+1.e+06" +string.format("%#-+1.0g", 10000000) == "+1.e+07" +string.format("%#-+1.0g", 0.01) == "+0.01" +string.format("%#-+1.0g", 0.0001) == "+0.0001" +string.format("%#-+1.0g", 1e-05) == "+1.e-05" +string.format("%#-+1.0g", 1e-06) == "+1.e-06" +string.format("%#-+1.0g", 1e-07) == "+1.e-07" +string.format("%#-+1.0g", 123.456) == "+1.e+02" +string.format("%#-+1.0g", 1234560000) == "+1.e+09" +string.format("%#-+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%#-+1.0g", 123.456789123) == "+1.e+02" +string.format("%#-+1.0g", 1234567891.23) == "+1.e+09" +string.format("%#-+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+1.1g", 0) == "+0." +string.format("%#-+1.1g", 1) == "+1." +string.format("%#-+1.1g", -1) == "-1." +string.format("%#-+1.1g", 2) == "+2." +string.format("%#-+1.1g", -2) == "-2." +string.format("%#-+1.1g", 3) == "+3." +string.format("%#-+1.1g", -3) == "-3." +string.format("%#-+1.1g", 100) == "+1.e+02" +string.format("%#-+1.1g", 10000) == "+1.e+04" +string.format("%#-+1.1g", 100000) == "+1.e+05" +string.format("%#-+1.1g", 1000000) == "+1.e+06" +string.format("%#-+1.1g", 10000000) == "+1.e+07" +string.format("%#-+1.1g", 0.01) == "+0.01" +string.format("%#-+1.1g", 0.0001) == "+0.0001" +string.format("%#-+1.1g", 1e-05) == "+1.e-05" +string.format("%#-+1.1g", 1e-06) == "+1.e-06" +string.format("%#-+1.1g", 1e-07) == "+1.e-07" +string.format("%#-+1.1g", 123.456) == "+1.e+02" +string.format("%#-+1.1g", 1234560000) == "+1.e+09" +string.format("%#-+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%#-+1.1g", 123.456789123) == "+1.e+02" +string.format("%#-+1.1g", 1234567891.23) == "+1.e+09" +string.format("%#-+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+2.0g", 0) == "+0." +string.format("%#-+2.0g", 1) == "+1." +string.format("%#-+2.0g", -1) == "-1." +string.format("%#-+2.0g", 2) == "+2." +string.format("%#-+2.0g", -2) == "-2." +string.format("%#-+2.0g", 3) == "+3." +string.format("%#-+2.0g", -3) == "-3." +string.format("%#-+2.0g", 100) == "+1.e+02" +string.format("%#-+2.0g", 10000) == "+1.e+04" +string.format("%#-+2.0g", 100000) == "+1.e+05" +string.format("%#-+2.0g", 1000000) == "+1.e+06" +string.format("%#-+2.0g", 10000000) == "+1.e+07" +string.format("%#-+2.0g", 0.01) == "+0.01" +string.format("%#-+2.0g", 0.0001) == "+0.0001" +string.format("%#-+2.0g", 1e-05) == "+1.e-05" +string.format("%#-+2.0g", 1e-06) == "+1.e-06" +string.format("%#-+2.0g", 1e-07) == "+1.e-07" +string.format("%#-+2.0g", 123.456) == "+1.e+02" +string.format("%#-+2.0g", 1234560000) == "+1.e+09" +string.format("%#-+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%#-+2.0g", 123.456789123) == "+1.e+02" +string.format("%#-+2.0g", 1234567891.23) == "+1.e+09" +string.format("%#-+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+2.1g", 0) == "+0." +string.format("%#-+2.1g", 1) == "+1." +string.format("%#-+2.1g", -1) == "-1." +string.format("%#-+2.1g", 2) == "+2." +string.format("%#-+2.1g", -2) == "-2." +string.format("%#-+2.1g", 3) == "+3." +string.format("%#-+2.1g", -3) == "-3." +string.format("%#-+2.1g", 100) == "+1.e+02" +string.format("%#-+2.1g", 10000) == "+1.e+04" +string.format("%#-+2.1g", 100000) == "+1.e+05" +string.format("%#-+2.1g", 1000000) == "+1.e+06" +string.format("%#-+2.1g", 10000000) == "+1.e+07" +string.format("%#-+2.1g", 0.01) == "+0.01" +string.format("%#-+2.1g", 0.0001) == "+0.0001" +string.format("%#-+2.1g", 1e-05) == "+1.e-05" +string.format("%#-+2.1g", 1e-06) == "+1.e-06" +string.format("%#-+2.1g", 1e-07) == "+1.e-07" +string.format("%#-+2.1g", 123.456) == "+1.e+02" +string.format("%#-+2.1g", 1234560000) == "+1.e+09" +string.format("%#-+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%#-+2.1g", 123.456789123) == "+1.e+02" +string.format("%#-+2.1g", 1234567891.23) == "+1.e+09" +string.format("%#-+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+6g", nan) == "+nan " +string.format("%#-+6g", inf) == "+inf " +string.format("%#-+6g", -inf) == "-inf " +string.format("%#-+6.0g", 0) == "+0. " +string.format("%#-+6.0g", 1) == "+1. " +string.format("%#-+6.0g", -1) == "-1. " +string.format("%#-+6.0g", 2) == "+2. " +string.format("%#-+6.0g", -2) == "-2. " +string.format("%#-+6.0g", 3) == "+3. " +string.format("%#-+6.0g", -3) == "-3. " +string.format("%#-+6.0g", nan) == "+nan " +string.format("%#-+6.0g", inf) == "+inf " +string.format("%#-+6.0g", -inf) == "-inf " +string.format("%#-+6.0g", 100) == "+1.e+02" +string.format("%#-+6.0g", 10000) == "+1.e+04" +string.format("%#-+6.0g", 100000) == "+1.e+05" +string.format("%#-+6.0g", 1000000) == "+1.e+06" +string.format("%#-+6.0g", 10000000) == "+1.e+07" +string.format("%#-+6.0g", 0.01) == "+0.01 " +string.format("%#-+6.0g", 0.0001) == "+0.0001" +string.format("%#-+6.0g", 1e-05) == "+1.e-05" +string.format("%#-+6.0g", 1e-06) == "+1.e-06" +string.format("%#-+6.0g", 1e-07) == "+1.e-07" +string.format("%#-+6.0g", 123.456) == "+1.e+02" +string.format("%#-+6.0g", 1234560000) == "+1.e+09" +string.format("%#-+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%#-+6.0g", 123.456789123) == "+1.e+02" +string.format("%#-+6.0g", 1234567891.23) == "+1.e+09" +string.format("%#-+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+6.1g", 0) == "+0. " +string.format("%#-+6.1g", 1) == "+1. " +string.format("%#-+6.1g", -1) == "-1. " +string.format("%#-+6.1g", 2) == "+2. " +string.format("%#-+6.1g", -2) == "-2. " +string.format("%#-+6.1g", 3) == "+3. " +string.format("%#-+6.1g", -3) == "-3. " +string.format("%#-+6.1g", nan) == "+nan " +string.format("%#-+6.1g", inf) == "+inf " +string.format("%#-+6.1g", -inf) == "-inf " +string.format("%#-+6.1g", 100) == "+1.e+02" +string.format("%#-+6.1g", 10000) == "+1.e+04" +string.format("%#-+6.1g", 100000) == "+1.e+05" +string.format("%#-+6.1g", 1000000) == "+1.e+06" +string.format("%#-+6.1g", 10000000) == "+1.e+07" +string.format("%#-+6.1g", 0.01) == "+0.01 " +string.format("%#-+6.1g", 0.0001) == "+0.0001" +string.format("%#-+6.1g", 1e-05) == "+1.e-05" +string.format("%#-+6.1g", 1e-06) == "+1.e-06" +string.format("%#-+6.1g", 1e-07) == "+1.e-07" +string.format("%#-+6.1g", 123.456) == "+1.e+02" +string.format("%#-+6.1g", 1234560000) == "+1.e+09" +string.format("%#-+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%#-+6.1g", 123.456789123) == "+1.e+02" +string.format("%#-+6.1g", 1234567891.23) == "+1.e+09" +string.format("%#-+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%#-+6.6g", nan) == "+nan " +string.format("%#-+6.6g", inf) == "+inf " +string.format("%#-+6.6g", -inf) == "-inf " +string.format("%#-+20g", 0) == "+0.00000 " +string.format("%#-+20g", 1) == "+1.00000 " +string.format("%#-+20g", -1) == "-1.00000 " +string.format("%#-+20g", 2) == "+2.00000 " +string.format("%#-+20g", -2) == "-2.00000 " +string.format("%#-+20g", 3) == "+3.00000 " +string.format("%#-+20g", -3) == "-3.00000 " +string.format("%#-+20g", nan) == "+nan " +string.format("%#-+20g", inf) == "+inf " +string.format("%#-+20g", -inf) == "-inf " +string.format("%#-+20g", 100) == "+100.000 " +string.format("%#-+20g", 10000) == "+10000.0 " +string.format("%#-+20g", 100000) == "+100000. " +string.format("%#-+20g", 1000000) == "+1.00000e+06 " +string.format("%#-+20g", 10000000) == "+1.00000e+07 " +string.format("%#-+20g", 0.01) == "+0.0100000 " +string.format("%#-+20g", 0.0001) == "+0.000100000 " +string.format("%#-+20g", 1e-05) == "+1.00000e-05 " +string.format("%#-+20g", 1e-06) == "+1.00000e-06 " +string.format("%#-+20g", 1e-07) == "+1.00000e-07 " +string.format("%#-+20g", 123.456) == "+123.456 " +string.format("%#-+20g", 1234560000) == "+1.23456e+09 " +string.format("%#-+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%#-+20g", 123.456789123) == "+123.457 " +string.format("%#-+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%#-+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%#-+20.0g", 0) == "+0. " +string.format("%#-+20.0g", 1) == "+1. " +string.format("%#-+20.0g", -1) == "-1. " +string.format("%#-+20.0g", 2) == "+2. " +string.format("%#-+20.0g", -2) == "-2. " +string.format("%#-+20.0g", 3) == "+3. " +string.format("%#-+20.0g", -3) == "-3. " +string.format("%#-+20.0g", nan) == "+nan " +string.format("%#-+20.0g", inf) == "+inf " +string.format("%#-+20.0g", -inf) == "-inf " +string.format("%#-+20.0g", 100) == "+1.e+02 " +string.format("%#-+20.0g", 10000) == "+1.e+04 " +string.format("%#-+20.0g", 100000) == "+1.e+05 " +string.format("%#-+20.0g", 1000000) == "+1.e+06 " +string.format("%#-+20.0g", 10000000) == "+1.e+07 " +string.format("%#-+20.0g", 0.01) == "+0.01 " +string.format("%#-+20.0g", 0.0001) == "+0.0001 " +string.format("%#-+20.0g", 1e-05) == "+1.e-05 " +string.format("%#-+20.0g", 1e-06) == "+1.e-06 " +string.format("%#-+20.0g", 1e-07) == "+1.e-07 " +string.format("%#-+20.0g", 123.456) == "+1.e+02 " +string.format("%#-+20.0g", 1234560000) == "+1.e+09 " +string.format("%#-+20.0g", 1.23456e-05) == "+1.e-05 " +string.format("%#-+20.0g", 123.456789123) == "+1.e+02 " +string.format("%#-+20.0g", 1234567891.23) == "+1.e+09 " +string.format("%#-+20.0g", 1.23456789123e-05) == "+1.e-05 " +string.format("%#-+20.1g", 0) == "+0. " +string.format("%#-+20.1g", 1) == "+1. " +string.format("%#-+20.1g", -1) == "-1. " +string.format("%#-+20.1g", 2) == "+2. " +string.format("%#-+20.1g", -2) == "-2. " +string.format("%#-+20.1g", 3) == "+3. " +string.format("%#-+20.1g", -3) == "-3. " +string.format("%#-+20.1g", nan) == "+nan " +string.format("%#-+20.1g", inf) == "+inf " +string.format("%#-+20.1g", -inf) == "-inf " +string.format("%#-+20.1g", 100) == "+1.e+02 " +string.format("%#-+20.1g", 10000) == "+1.e+04 " +string.format("%#-+20.1g", 100000) == "+1.e+05 " +string.format("%#-+20.1g", 1000000) == "+1.e+06 " +string.format("%#-+20.1g", 10000000) == "+1.e+07 " +string.format("%#-+20.1g", 0.01) == "+0.01 " +string.format("%#-+20.1g", 0.0001) == "+0.0001 " +string.format("%#-+20.1g", 1e-05) == "+1.e-05 " +string.format("%#-+20.1g", 1e-06) == "+1.e-06 " +string.format("%#-+20.1g", 1e-07) == "+1.e-07 " +string.format("%#-+20.1g", 123.456) == "+1.e+02 " +string.format("%#-+20.1g", 1234560000) == "+1.e+09 " +string.format("%#-+20.1g", 1.23456e-05) == "+1.e-05 " +string.format("%#-+20.1g", 123.456789123) == "+1.e+02 " +string.format("%#-+20.1g", 1234567891.23) == "+1.e+09 " +string.format("%#-+20.1g", 1.23456789123e-05) == "+1.e-05 " +string.format("%#-+20.6g", 0) == "+0.00000 " +string.format("%#-+20.6g", 1) == "+1.00000 " +string.format("%#-+20.6g", -1) == "-1.00000 " +string.format("%#-+20.6g", 2) == "+2.00000 " +string.format("%#-+20.6g", -2) == "-2.00000 " +string.format("%#-+20.6g", 3) == "+3.00000 " +string.format("%#-+20.6g", -3) == "-3.00000 " +string.format("%#-+20.6g", nan) == "+nan " +string.format("%#-+20.6g", inf) == "+inf " +string.format("%#-+20.6g", -inf) == "-inf " +string.format("%#-+20.6g", 100) == "+100.000 " +string.format("%#-+20.6g", 10000) == "+10000.0 " +string.format("%#-+20.6g", 100000) == "+100000. " +string.format("%#-+20.6g", 1000000) == "+1.00000e+06 " +string.format("%#-+20.6g", 10000000) == "+1.00000e+07 " +string.format("%#-+20.6g", 0.01) == "+0.0100000 " +string.format("%#-+20.6g", 0.0001) == "+0.000100000 " +string.format("%#-+20.6g", 1e-05) == "+1.00000e-05 " +string.format("%#-+20.6g", 1e-06) == "+1.00000e-06 " +string.format("%#-+20.6g", 1e-07) == "+1.00000e-07 " +string.format("%#-+20.6g", 123.456) == "+123.456 " +string.format("%#-+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%#-+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%#-+20.6g", 123.456789123) == "+123.457 " +string.format("%#-+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%#-+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%# g", 0) == " 0.00000" +string.format("%# g", 1) == " 1.00000" +string.format("%# g", -1) == "-1.00000" +string.format("%# g", 2) == " 2.00000" +string.format("%# g", -2) == "-2.00000" +string.format("%# g", 3) == " 3.00000" +string.format("%# g", -3) == "-3.00000" +string.format("%# g", nan) == " nan" +string.format("%# g", inf) == " inf" +string.format("%# g", -inf) == "-inf" +string.format("%# g", 100) == " 100.000" +string.format("%# g", 10000) == " 10000.0" +string.format("%# g", 100000) == " 100000." +string.format("%# g", 1000000) == " 1.00000e+06" +string.format("%# g", 10000000) == " 1.00000e+07" +string.format("%# g", 0.01) == " 0.0100000" +string.format("%# g", 0.0001) == " 0.000100000" +string.format("%# g", 1e-05) == " 1.00000e-05" +string.format("%# g", 1e-06) == " 1.00000e-06" +string.format("%# g", 1e-07) == " 1.00000e-07" +string.format("%# g", 123.456) == " 123.456" +string.format("%# g", 1234560000) == " 1.23456e+09" +string.format("%# g", 1.23456e-05) == " 1.23456e-05" +string.format("%# g", 123.456789123) == " 123.457" +string.format("%# g", 1234567891.23) == " 1.23457e+09" +string.format("%# g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%# .0g", 0) == " 0." +string.format("%# .0g", 1) == " 1." +string.format("%# .0g", -1) == "-1." +string.format("%# .0g", 2) == " 2." +string.format("%# .0g", -2) == "-2." +string.format("%# .0g", 3) == " 3." +string.format("%# .0g", -3) == "-3." +string.format("%# .0g", 100) == " 1.e+02" +string.format("%# .0g", 10000) == " 1.e+04" +string.format("%# .0g", 100000) == " 1.e+05" +string.format("%# .0g", 1000000) == " 1.e+06" +string.format("%# .0g", 10000000) == " 1.e+07" +string.format("%# .0g", 0.01) == " 0.01" +string.format("%# .0g", 0.0001) == " 0.0001" +string.format("%# .0g", 1e-05) == " 1.e-05" +string.format("%# .0g", 1e-06) == " 1.e-06" +string.format("%# .0g", 1e-07) == " 1.e-07" +string.format("%# .0g", 123.456) == " 1.e+02" +string.format("%# .0g", 1234560000) == " 1.e+09" +string.format("%# .0g", 1.23456e-05) == " 1.e-05" +string.format("%# .0g", 123.456789123) == " 1.e+02" +string.format("%# .0g", 1234567891.23) == " 1.e+09" +string.format("%# .0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# .1g", 0) == " 0." +string.format("%# .1g", 1) == " 1." +string.format("%# .1g", -1) == "-1." +string.format("%# .1g", 2) == " 2." +string.format("%# .1g", -2) == "-2." +string.format("%# .1g", 3) == " 3." +string.format("%# .1g", -3) == "-3." +string.format("%# .1g", 100) == " 1.e+02" +string.format("%# .1g", 10000) == " 1.e+04" +string.format("%# .1g", 100000) == " 1.e+05" +string.format("%# .1g", 1000000) == " 1.e+06" +string.format("%# .1g", 10000000) == " 1.e+07" +string.format("%# .1g", 0.01) == " 0.01" +string.format("%# .1g", 0.0001) == " 0.0001" +string.format("%# .1g", 1e-05) == " 1.e-05" +string.format("%# .1g", 1e-06) == " 1.e-06" +string.format("%# .1g", 1e-07) == " 1.e-07" +string.format("%# .1g", 123.456) == " 1.e+02" +string.format("%# .1g", 1234560000) == " 1.e+09" +string.format("%# .1g", 1.23456e-05) == " 1.e-05" +string.format("%# .1g", 123.456789123) == " 1.e+02" +string.format("%# .1g", 1234567891.23) == " 1.e+09" +string.format("%# .1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 1.0g", 0) == " 0." +string.format("%# 1.0g", 1) == " 1." +string.format("%# 1.0g", -1) == "-1." +string.format("%# 1.0g", 2) == " 2." +string.format("%# 1.0g", -2) == "-2." +string.format("%# 1.0g", 3) == " 3." +string.format("%# 1.0g", -3) == "-3." +string.format("%# 1.0g", 100) == " 1.e+02" +string.format("%# 1.0g", 10000) == " 1.e+04" +string.format("%# 1.0g", 100000) == " 1.e+05" +string.format("%# 1.0g", 1000000) == " 1.e+06" +string.format("%# 1.0g", 10000000) == " 1.e+07" +string.format("%# 1.0g", 0.01) == " 0.01" +string.format("%# 1.0g", 0.0001) == " 0.0001" +string.format("%# 1.0g", 1e-05) == " 1.e-05" +string.format("%# 1.0g", 1e-06) == " 1.e-06" +string.format("%# 1.0g", 1e-07) == " 1.e-07" +string.format("%# 1.0g", 123.456) == " 1.e+02" +string.format("%# 1.0g", 1234560000) == " 1.e+09" +string.format("%# 1.0g", 1.23456e-05) == " 1.e-05" +string.format("%# 1.0g", 123.456789123) == " 1.e+02" +string.format("%# 1.0g", 1234567891.23) == " 1.e+09" +string.format("%# 1.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 1.1g", 0) == " 0." +string.format("%# 1.1g", 1) == " 1." +string.format("%# 1.1g", -1) == "-1." +string.format("%# 1.1g", 2) == " 2." +string.format("%# 1.1g", -2) == "-2." +string.format("%# 1.1g", 3) == " 3." +string.format("%# 1.1g", -3) == "-3." +string.format("%# 1.1g", 100) == " 1.e+02" +string.format("%# 1.1g", 10000) == " 1.e+04" +string.format("%# 1.1g", 100000) == " 1.e+05" +string.format("%# 1.1g", 1000000) == " 1.e+06" +string.format("%# 1.1g", 10000000) == " 1.e+07" +string.format("%# 1.1g", 0.01) == " 0.01" +string.format("%# 1.1g", 0.0001) == " 0.0001" +string.format("%# 1.1g", 1e-05) == " 1.e-05" +string.format("%# 1.1g", 1e-06) == " 1.e-06" +string.format("%# 1.1g", 1e-07) == " 1.e-07" +string.format("%# 1.1g", 123.456) == " 1.e+02" +string.format("%# 1.1g", 1234560000) == " 1.e+09" +string.format("%# 1.1g", 1.23456e-05) == " 1.e-05" +string.format("%# 1.1g", 123.456789123) == " 1.e+02" +string.format("%# 1.1g", 1234567891.23) == " 1.e+09" +string.format("%# 1.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 2.0g", 0) == " 0." +string.format("%# 2.0g", 1) == " 1." +string.format("%# 2.0g", -1) == "-1." +string.format("%# 2.0g", 2) == " 2." +string.format("%# 2.0g", -2) == "-2." +string.format("%# 2.0g", 3) == " 3." +string.format("%# 2.0g", -3) == "-3." +string.format("%# 2.0g", 100) == " 1.e+02" +string.format("%# 2.0g", 10000) == " 1.e+04" +string.format("%# 2.0g", 100000) == " 1.e+05" +string.format("%# 2.0g", 1000000) == " 1.e+06" +string.format("%# 2.0g", 10000000) == " 1.e+07" +string.format("%# 2.0g", 0.01) == " 0.01" +string.format("%# 2.0g", 0.0001) == " 0.0001" +string.format("%# 2.0g", 1e-05) == " 1.e-05" +string.format("%# 2.0g", 1e-06) == " 1.e-06" +string.format("%# 2.0g", 1e-07) == " 1.e-07" +string.format("%# 2.0g", 123.456) == " 1.e+02" +string.format("%# 2.0g", 1234560000) == " 1.e+09" +string.format("%# 2.0g", 1.23456e-05) == " 1.e-05" +string.format("%# 2.0g", 123.456789123) == " 1.e+02" +string.format("%# 2.0g", 1234567891.23) == " 1.e+09" +string.format("%# 2.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 2.1g", 0) == " 0." +string.format("%# 2.1g", 1) == " 1." +string.format("%# 2.1g", -1) == "-1." +string.format("%# 2.1g", 2) == " 2." +string.format("%# 2.1g", -2) == "-2." +string.format("%# 2.1g", 3) == " 3." +string.format("%# 2.1g", -3) == "-3." +string.format("%# 2.1g", 100) == " 1.e+02" +string.format("%# 2.1g", 10000) == " 1.e+04" +string.format("%# 2.1g", 100000) == " 1.e+05" +string.format("%# 2.1g", 1000000) == " 1.e+06" +string.format("%# 2.1g", 10000000) == " 1.e+07" +string.format("%# 2.1g", 0.01) == " 0.01" +string.format("%# 2.1g", 0.0001) == " 0.0001" +string.format("%# 2.1g", 1e-05) == " 1.e-05" +string.format("%# 2.1g", 1e-06) == " 1.e-06" +string.format("%# 2.1g", 1e-07) == " 1.e-07" +string.format("%# 2.1g", 123.456) == " 1.e+02" +string.format("%# 2.1g", 1234560000) == " 1.e+09" +string.format("%# 2.1g", 1.23456e-05) == " 1.e-05" +string.format("%# 2.1g", 123.456789123) == " 1.e+02" +string.format("%# 2.1g", 1234567891.23) == " 1.e+09" +string.format("%# 2.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 6g", nan) == " nan" +string.format("%# 6g", inf) == " inf" +string.format("%# 6g", -inf) == " -inf" +string.format("%# 6.0g", 0) == " 0." +string.format("%# 6.0g", 1) == " 1." +string.format("%# 6.0g", -1) == " -1." +string.format("%# 6.0g", 2) == " 2." +string.format("%# 6.0g", -2) == " -2." +string.format("%# 6.0g", 3) == " 3." +string.format("%# 6.0g", -3) == " -3." +string.format("%# 6.0g", nan) == " nan" +string.format("%# 6.0g", inf) == " inf" +string.format("%# 6.0g", -inf) == " -inf" +string.format("%# 6.0g", 100) == " 1.e+02" +string.format("%# 6.0g", 10000) == " 1.e+04" +string.format("%# 6.0g", 100000) == " 1.e+05" +string.format("%# 6.0g", 1000000) == " 1.e+06" +string.format("%# 6.0g", 10000000) == " 1.e+07" +string.format("%# 6.0g", 0.01) == " 0.01" +string.format("%# 6.0g", 0.0001) == " 0.0001" +string.format("%# 6.0g", 1e-05) == " 1.e-05" +string.format("%# 6.0g", 1e-06) == " 1.e-06" +string.format("%# 6.0g", 1e-07) == " 1.e-07" +string.format("%# 6.0g", 123.456) == " 1.e+02" +string.format("%# 6.0g", 1234560000) == " 1.e+09" +string.format("%# 6.0g", 1.23456e-05) == " 1.e-05" +string.format("%# 6.0g", 123.456789123) == " 1.e+02" +string.format("%# 6.0g", 1234567891.23) == " 1.e+09" +string.format("%# 6.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 6.1g", 0) == " 0." +string.format("%# 6.1g", 1) == " 1." +string.format("%# 6.1g", -1) == " -1." +string.format("%# 6.1g", 2) == " 2." +string.format("%# 6.1g", -2) == " -2." +string.format("%# 6.1g", 3) == " 3." +string.format("%# 6.1g", -3) == " -3." +string.format("%# 6.1g", nan) == " nan" +string.format("%# 6.1g", inf) == " inf" +string.format("%# 6.1g", -inf) == " -inf" +string.format("%# 6.1g", 100) == " 1.e+02" +string.format("%# 6.1g", 10000) == " 1.e+04" +string.format("%# 6.1g", 100000) == " 1.e+05" +string.format("%# 6.1g", 1000000) == " 1.e+06" +string.format("%# 6.1g", 10000000) == " 1.e+07" +string.format("%# 6.1g", 0.01) == " 0.01" +string.format("%# 6.1g", 0.0001) == " 0.0001" +string.format("%# 6.1g", 1e-05) == " 1.e-05" +string.format("%# 6.1g", 1e-06) == " 1.e-06" +string.format("%# 6.1g", 1e-07) == " 1.e-07" +string.format("%# 6.1g", 123.456) == " 1.e+02" +string.format("%# 6.1g", 1234560000) == " 1.e+09" +string.format("%# 6.1g", 1.23456e-05) == " 1.e-05" +string.format("%# 6.1g", 123.456789123) == " 1.e+02" +string.format("%# 6.1g", 1234567891.23) == " 1.e+09" +string.format("%# 6.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 6.6g", nan) == " nan" +string.format("%# 6.6g", inf) == " inf" +string.format("%# 6.6g", -inf) == " -inf" +string.format("%# 20g", 0) == " 0.00000" +string.format("%# 20g", 1) == " 1.00000" +string.format("%# 20g", -1) == " -1.00000" +string.format("%# 20g", 2) == " 2.00000" +string.format("%# 20g", -2) == " -2.00000" +string.format("%# 20g", 3) == " 3.00000" +string.format("%# 20g", -3) == " -3.00000" +string.format("%# 20g", nan) == " nan" +string.format("%# 20g", inf) == " inf" +string.format("%# 20g", -inf) == " -inf" +string.format("%# 20g", 100) == " 100.000" +string.format("%# 20g", 10000) == " 10000.0" +string.format("%# 20g", 100000) == " 100000." +string.format("%# 20g", 1000000) == " 1.00000e+06" +string.format("%# 20g", 10000000) == " 1.00000e+07" +string.format("%# 20g", 0.01) == " 0.0100000" +string.format("%# 20g", 0.0001) == " 0.000100000" +string.format("%# 20g", 1e-05) == " 1.00000e-05" +string.format("%# 20g", 1e-06) == " 1.00000e-06" +string.format("%# 20g", 1e-07) == " 1.00000e-07" +string.format("%# 20g", 123.456) == " 123.456" +string.format("%# 20g", 1234560000) == " 1.23456e+09" +string.format("%# 20g", 1.23456e-05) == " 1.23456e-05" +string.format("%# 20g", 123.456789123) == " 123.457" +string.format("%# 20g", 1234567891.23) == " 1.23457e+09" +string.format("%# 20g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%# 20.0g", 0) == " 0." +string.format("%# 20.0g", 1) == " 1." +string.format("%# 20.0g", -1) == " -1." +string.format("%# 20.0g", 2) == " 2." +string.format("%# 20.0g", -2) == " -2." +string.format("%# 20.0g", 3) == " 3." +string.format("%# 20.0g", -3) == " -3." +string.format("%# 20.0g", nan) == " nan" +string.format("%# 20.0g", inf) == " inf" +string.format("%# 20.0g", -inf) == " -inf" +string.format("%# 20.0g", 100) == " 1.e+02" +string.format("%# 20.0g", 10000) == " 1.e+04" +string.format("%# 20.0g", 100000) == " 1.e+05" +string.format("%# 20.0g", 1000000) == " 1.e+06" +string.format("%# 20.0g", 10000000) == " 1.e+07" +string.format("%# 20.0g", 0.01) == " 0.01" +string.format("%# 20.0g", 0.0001) == " 0.0001" +string.format("%# 20.0g", 1e-05) == " 1.e-05" +string.format("%# 20.0g", 1e-06) == " 1.e-06" +string.format("%# 20.0g", 1e-07) == " 1.e-07" +string.format("%# 20.0g", 123.456) == " 1.e+02" +string.format("%# 20.0g", 1234560000) == " 1.e+09" +string.format("%# 20.0g", 1.23456e-05) == " 1.e-05" +string.format("%# 20.0g", 123.456789123) == " 1.e+02" +string.format("%# 20.0g", 1234567891.23) == " 1.e+09" +string.format("%# 20.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 20.1g", 0) == " 0." +string.format("%# 20.1g", 1) == " 1." +string.format("%# 20.1g", -1) == " -1." +string.format("%# 20.1g", 2) == " 2." +string.format("%# 20.1g", -2) == " -2." +string.format("%# 20.1g", 3) == " 3." +string.format("%# 20.1g", -3) == " -3." +string.format("%# 20.1g", nan) == " nan" +string.format("%# 20.1g", inf) == " inf" +string.format("%# 20.1g", -inf) == " -inf" +string.format("%# 20.1g", 100) == " 1.e+02" +string.format("%# 20.1g", 10000) == " 1.e+04" +string.format("%# 20.1g", 100000) == " 1.e+05" +string.format("%# 20.1g", 1000000) == " 1.e+06" +string.format("%# 20.1g", 10000000) == " 1.e+07" +string.format("%# 20.1g", 0.01) == " 0.01" +string.format("%# 20.1g", 0.0001) == " 0.0001" +string.format("%# 20.1g", 1e-05) == " 1.e-05" +string.format("%# 20.1g", 1e-06) == " 1.e-06" +string.format("%# 20.1g", 1e-07) == " 1.e-07" +string.format("%# 20.1g", 123.456) == " 1.e+02" +string.format("%# 20.1g", 1234560000) == " 1.e+09" +string.format("%# 20.1g", 1.23456e-05) == " 1.e-05" +string.format("%# 20.1g", 123.456789123) == " 1.e+02" +string.format("%# 20.1g", 1234567891.23) == " 1.e+09" +string.format("%# 20.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# 20.6g", 0) == " 0.00000" +string.format("%# 20.6g", 1) == " 1.00000" +string.format("%# 20.6g", -1) == " -1.00000" +string.format("%# 20.6g", 2) == " 2.00000" +string.format("%# 20.6g", -2) == " -2.00000" +string.format("%# 20.6g", 3) == " 3.00000" +string.format("%# 20.6g", -3) == " -3.00000" +string.format("%# 20.6g", nan) == " nan" +string.format("%# 20.6g", inf) == " inf" +string.format("%# 20.6g", -inf) == " -inf" +string.format("%# 20.6g", 100) == " 100.000" +string.format("%# 20.6g", 10000) == " 10000.0" +string.format("%# 20.6g", 100000) == " 100000." +string.format("%# 20.6g", 1000000) == " 1.00000e+06" +string.format("%# 20.6g", 10000000) == " 1.00000e+07" +string.format("%# 20.6g", 0.01) == " 0.0100000" +string.format("%# 20.6g", 0.0001) == " 0.000100000" +string.format("%# 20.6g", 1e-05) == " 1.00000e-05" +string.format("%# 20.6g", 1e-06) == " 1.00000e-06" +string.format("%# 20.6g", 1e-07) == " 1.00000e-07" +string.format("%# 20.6g", 123.456) == " 123.456" +string.format("%# 20.6g", 1234560000) == " 1.23456e+09" +string.format("%# 20.6g", 1.23456e-05) == " 1.23456e-05" +string.format("%# 20.6g", 123.456789123) == " 123.457" +string.format("%# 20.6g", 1234567891.23) == " 1.23457e+09" +string.format("%# 20.6g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%# +g", 0) == "+0.00000" +string.format("%# +g", 1) == "+1.00000" +string.format("%# +g", -1) == "-1.00000" +string.format("%# +g", 2) == "+2.00000" +string.format("%# +g", -2) == "-2.00000" +string.format("%# +g", 3) == "+3.00000" +string.format("%# +g", -3) == "-3.00000" +string.format("%# +g", nan) == "+nan" +string.format("%# +g", inf) == "+inf" +string.format("%# +g", -inf) == "-inf" +string.format("%# +g", 100) == "+100.000" +string.format("%# +g", 10000) == "+10000.0" +string.format("%# +g", 100000) == "+100000." +string.format("%# +g", 1000000) == "+1.00000e+06" +string.format("%# +g", 10000000) == "+1.00000e+07" +string.format("%# +g", 0.01) == "+0.0100000" +string.format("%# +g", 0.0001) == "+0.000100000" +string.format("%# +g", 1e-05) == "+1.00000e-05" +string.format("%# +g", 1e-06) == "+1.00000e-06" +string.format("%# +g", 1e-07) == "+1.00000e-07" +string.format("%# +g", 123.456) == "+123.456" +string.format("%# +g", 1234560000) == "+1.23456e+09" +string.format("%# +g", 1.23456e-05) == "+1.23456e-05" +string.format("%# +g", 123.456789123) == "+123.457" +string.format("%# +g", 1234567891.23) == "+1.23457e+09" +string.format("%# +g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%# +.0g", 0) == "+0." +string.format("%# +.0g", 1) == "+1." +string.format("%# +.0g", -1) == "-1." +string.format("%# +.0g", 2) == "+2." +string.format("%# +.0g", -2) == "-2." +string.format("%# +.0g", 3) == "+3." +string.format("%# +.0g", -3) == "-3." +string.format("%# +.0g", 100) == "+1.e+02" +string.format("%# +.0g", 10000) == "+1.e+04" +string.format("%# +.0g", 100000) == "+1.e+05" +string.format("%# +.0g", 1000000) == "+1.e+06" +string.format("%# +.0g", 10000000) == "+1.e+07" +string.format("%# +.0g", 0.01) == "+0.01" +string.format("%# +.0g", 0.0001) == "+0.0001" +string.format("%# +.0g", 1e-05) == "+1.e-05" +string.format("%# +.0g", 1e-06) == "+1.e-06" +string.format("%# +.0g", 1e-07) == "+1.e-07" +string.format("%# +.0g", 123.456) == "+1.e+02" +string.format("%# +.0g", 1234560000) == "+1.e+09" +string.format("%# +.0g", 1.23456e-05) == "+1.e-05" +string.format("%# +.0g", 123.456789123) == "+1.e+02" +string.format("%# +.0g", 1234567891.23) == "+1.e+09" +string.format("%# +.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +.1g", 0) == "+0." +string.format("%# +.1g", 1) == "+1." +string.format("%# +.1g", -1) == "-1." +string.format("%# +.1g", 2) == "+2." +string.format("%# +.1g", -2) == "-2." +string.format("%# +.1g", 3) == "+3." +string.format("%# +.1g", -3) == "-3." +string.format("%# +.1g", 100) == "+1.e+02" +string.format("%# +.1g", 10000) == "+1.e+04" +string.format("%# +.1g", 100000) == "+1.e+05" +string.format("%# +.1g", 1000000) == "+1.e+06" +string.format("%# +.1g", 10000000) == "+1.e+07" +string.format("%# +.1g", 0.01) == "+0.01" +string.format("%# +.1g", 0.0001) == "+0.0001" +string.format("%# +.1g", 1e-05) == "+1.e-05" +string.format("%# +.1g", 1e-06) == "+1.e-06" +string.format("%# +.1g", 1e-07) == "+1.e-07" +string.format("%# +.1g", 123.456) == "+1.e+02" +string.format("%# +.1g", 1234560000) == "+1.e+09" +string.format("%# +.1g", 1.23456e-05) == "+1.e-05" +string.format("%# +.1g", 123.456789123) == "+1.e+02" +string.format("%# +.1g", 1234567891.23) == "+1.e+09" +string.format("%# +.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +1.0g", 0) == "+0." +string.format("%# +1.0g", 1) == "+1." +string.format("%# +1.0g", -1) == "-1." +string.format("%# +1.0g", 2) == "+2." +string.format("%# +1.0g", -2) == "-2." +string.format("%# +1.0g", 3) == "+3." +string.format("%# +1.0g", -3) == "-3." +string.format("%# +1.0g", 100) == "+1.e+02" +string.format("%# +1.0g", 10000) == "+1.e+04" +string.format("%# +1.0g", 100000) == "+1.e+05" +string.format("%# +1.0g", 1000000) == "+1.e+06" +string.format("%# +1.0g", 10000000) == "+1.e+07" +string.format("%# +1.0g", 0.01) == "+0.01" +string.format("%# +1.0g", 0.0001) == "+0.0001" +string.format("%# +1.0g", 1e-05) == "+1.e-05" +string.format("%# +1.0g", 1e-06) == "+1.e-06" +string.format("%# +1.0g", 1e-07) == "+1.e-07" +string.format("%# +1.0g", 123.456) == "+1.e+02" +string.format("%# +1.0g", 1234560000) == "+1.e+09" +string.format("%# +1.0g", 1.23456e-05) == "+1.e-05" +string.format("%# +1.0g", 123.456789123) == "+1.e+02" +string.format("%# +1.0g", 1234567891.23) == "+1.e+09" +string.format("%# +1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +1.1g", 0) == "+0." +string.format("%# +1.1g", 1) == "+1." +string.format("%# +1.1g", -1) == "-1." +string.format("%# +1.1g", 2) == "+2." +string.format("%# +1.1g", -2) == "-2." +string.format("%# +1.1g", 3) == "+3." +string.format("%# +1.1g", -3) == "-3." +string.format("%# +1.1g", 100) == "+1.e+02" +string.format("%# +1.1g", 10000) == "+1.e+04" +string.format("%# +1.1g", 100000) == "+1.e+05" +string.format("%# +1.1g", 1000000) == "+1.e+06" +string.format("%# +1.1g", 10000000) == "+1.e+07" +string.format("%# +1.1g", 0.01) == "+0.01" +string.format("%# +1.1g", 0.0001) == "+0.0001" +string.format("%# +1.1g", 1e-05) == "+1.e-05" +string.format("%# +1.1g", 1e-06) == "+1.e-06" +string.format("%# +1.1g", 1e-07) == "+1.e-07" +string.format("%# +1.1g", 123.456) == "+1.e+02" +string.format("%# +1.1g", 1234560000) == "+1.e+09" +string.format("%# +1.1g", 1.23456e-05) == "+1.e-05" +string.format("%# +1.1g", 123.456789123) == "+1.e+02" +string.format("%# +1.1g", 1234567891.23) == "+1.e+09" +string.format("%# +1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +2.0g", 0) == "+0." +string.format("%# +2.0g", 1) == "+1." +string.format("%# +2.0g", -1) == "-1." +string.format("%# +2.0g", 2) == "+2." +string.format("%# +2.0g", -2) == "-2." +string.format("%# +2.0g", 3) == "+3." +string.format("%# +2.0g", -3) == "-3." +string.format("%# +2.0g", 100) == "+1.e+02" +string.format("%# +2.0g", 10000) == "+1.e+04" +string.format("%# +2.0g", 100000) == "+1.e+05" +string.format("%# +2.0g", 1000000) == "+1.e+06" +string.format("%# +2.0g", 10000000) == "+1.e+07" +string.format("%# +2.0g", 0.01) == "+0.01" +string.format("%# +2.0g", 0.0001) == "+0.0001" +string.format("%# +2.0g", 1e-05) == "+1.e-05" +string.format("%# +2.0g", 1e-06) == "+1.e-06" +string.format("%# +2.0g", 1e-07) == "+1.e-07" +string.format("%# +2.0g", 123.456) == "+1.e+02" +string.format("%# +2.0g", 1234560000) == "+1.e+09" +string.format("%# +2.0g", 1.23456e-05) == "+1.e-05" +string.format("%# +2.0g", 123.456789123) == "+1.e+02" +string.format("%# +2.0g", 1234567891.23) == "+1.e+09" +string.format("%# +2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +2.1g", 0) == "+0." +string.format("%# +2.1g", 1) == "+1." +string.format("%# +2.1g", -1) == "-1." +string.format("%# +2.1g", 2) == "+2." +string.format("%# +2.1g", -2) == "-2." +string.format("%# +2.1g", 3) == "+3." +string.format("%# +2.1g", -3) == "-3." +string.format("%# +2.1g", 100) == "+1.e+02" +string.format("%# +2.1g", 10000) == "+1.e+04" +string.format("%# +2.1g", 100000) == "+1.e+05" +string.format("%# +2.1g", 1000000) == "+1.e+06" +string.format("%# +2.1g", 10000000) == "+1.e+07" +string.format("%# +2.1g", 0.01) == "+0.01" +string.format("%# +2.1g", 0.0001) == "+0.0001" +string.format("%# +2.1g", 1e-05) == "+1.e-05" +string.format("%# +2.1g", 1e-06) == "+1.e-06" +string.format("%# +2.1g", 1e-07) == "+1.e-07" +string.format("%# +2.1g", 123.456) == "+1.e+02" +string.format("%# +2.1g", 1234560000) == "+1.e+09" +string.format("%# +2.1g", 1.23456e-05) == "+1.e-05" +string.format("%# +2.1g", 123.456789123) == "+1.e+02" +string.format("%# +2.1g", 1234567891.23) == "+1.e+09" +string.format("%# +2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +6g", nan) == " +nan" +string.format("%# +6g", inf) == " +inf" +string.format("%# +6g", -inf) == " -inf" +string.format("%# +6.0g", 0) == " +0." +string.format("%# +6.0g", 1) == " +1." +string.format("%# +6.0g", -1) == " -1." +string.format("%# +6.0g", 2) == " +2." +string.format("%# +6.0g", -2) == " -2." +string.format("%# +6.0g", 3) == " +3." +string.format("%# +6.0g", -3) == " -3." +string.format("%# +6.0g", nan) == " +nan" +string.format("%# +6.0g", inf) == " +inf" +string.format("%# +6.0g", -inf) == " -inf" +string.format("%# +6.0g", 100) == "+1.e+02" +string.format("%# +6.0g", 10000) == "+1.e+04" +string.format("%# +6.0g", 100000) == "+1.e+05" +string.format("%# +6.0g", 1000000) == "+1.e+06" +string.format("%# +6.0g", 10000000) == "+1.e+07" +string.format("%# +6.0g", 0.01) == " +0.01" +string.format("%# +6.0g", 0.0001) == "+0.0001" +string.format("%# +6.0g", 1e-05) == "+1.e-05" +string.format("%# +6.0g", 1e-06) == "+1.e-06" +string.format("%# +6.0g", 1e-07) == "+1.e-07" +string.format("%# +6.0g", 123.456) == "+1.e+02" +string.format("%# +6.0g", 1234560000) == "+1.e+09" +string.format("%# +6.0g", 1.23456e-05) == "+1.e-05" +string.format("%# +6.0g", 123.456789123) == "+1.e+02" +string.format("%# +6.0g", 1234567891.23) == "+1.e+09" +string.format("%# +6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +6.1g", 0) == " +0." +string.format("%# +6.1g", 1) == " +1." +string.format("%# +6.1g", -1) == " -1." +string.format("%# +6.1g", 2) == " +2." +string.format("%# +6.1g", -2) == " -2." +string.format("%# +6.1g", 3) == " +3." +string.format("%# +6.1g", -3) == " -3." +string.format("%# +6.1g", nan) == " +nan" +string.format("%# +6.1g", inf) == " +inf" +string.format("%# +6.1g", -inf) == " -inf" +string.format("%# +6.1g", 100) == "+1.e+02" +string.format("%# +6.1g", 10000) == "+1.e+04" +string.format("%# +6.1g", 100000) == "+1.e+05" +string.format("%# +6.1g", 1000000) == "+1.e+06" +string.format("%# +6.1g", 10000000) == "+1.e+07" +string.format("%# +6.1g", 0.01) == " +0.01" +string.format("%# +6.1g", 0.0001) == "+0.0001" +string.format("%# +6.1g", 1e-05) == "+1.e-05" +string.format("%# +6.1g", 1e-06) == "+1.e-06" +string.format("%# +6.1g", 1e-07) == "+1.e-07" +string.format("%# +6.1g", 123.456) == "+1.e+02" +string.format("%# +6.1g", 1234560000) == "+1.e+09" +string.format("%# +6.1g", 1.23456e-05) == "+1.e-05" +string.format("%# +6.1g", 123.456789123) == "+1.e+02" +string.format("%# +6.1g", 1234567891.23) == "+1.e+09" +string.format("%# +6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# +6.6g", nan) == " +nan" +string.format("%# +6.6g", inf) == " +inf" +string.format("%# +6.6g", -inf) == " -inf" +string.format("%# +20g", 0) == " +0.00000" +string.format("%# +20g", 1) == " +1.00000" +string.format("%# +20g", -1) == " -1.00000" +string.format("%# +20g", 2) == " +2.00000" +string.format("%# +20g", -2) == " -2.00000" +string.format("%# +20g", 3) == " +3.00000" +string.format("%# +20g", -3) == " -3.00000" +string.format("%# +20g", nan) == " +nan" +string.format("%# +20g", inf) == " +inf" +string.format("%# +20g", -inf) == " -inf" +string.format("%# +20g", 100) == " +100.000" +string.format("%# +20g", 10000) == " +10000.0" +string.format("%# +20g", 100000) == " +100000." +string.format("%# +20g", 1000000) == " +1.00000e+06" +string.format("%# +20g", 10000000) == " +1.00000e+07" +string.format("%# +20g", 0.01) == " +0.0100000" +string.format("%# +20g", 0.0001) == " +0.000100000" +string.format("%# +20g", 1e-05) == " +1.00000e-05" +string.format("%# +20g", 1e-06) == " +1.00000e-06" +string.format("%# +20g", 1e-07) == " +1.00000e-07" +string.format("%# +20g", 123.456) == " +123.456" +string.format("%# +20g", 1234560000) == " +1.23456e+09" +string.format("%# +20g", 1.23456e-05) == " +1.23456e-05" +string.format("%# +20g", 123.456789123) == " +123.457" +string.format("%# +20g", 1234567891.23) == " +1.23457e+09" +string.format("%# +20g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%# +20.0g", 0) == " +0." +string.format("%# +20.0g", 1) == " +1." +string.format("%# +20.0g", -1) == " -1." +string.format("%# +20.0g", 2) == " +2." +string.format("%# +20.0g", -2) == " -2." +string.format("%# +20.0g", 3) == " +3." +string.format("%# +20.0g", -3) == " -3." +string.format("%# +20.0g", nan) == " +nan" +string.format("%# +20.0g", inf) == " +inf" +string.format("%# +20.0g", -inf) == " -inf" +string.format("%# +20.0g", 100) == " +1.e+02" +string.format("%# +20.0g", 10000) == " +1.e+04" +string.format("%# +20.0g", 100000) == " +1.e+05" +string.format("%# +20.0g", 1000000) == " +1.e+06" +string.format("%# +20.0g", 10000000) == " +1.e+07" +string.format("%# +20.0g", 0.01) == " +0.01" +string.format("%# +20.0g", 0.0001) == " +0.0001" +string.format("%# +20.0g", 1e-05) == " +1.e-05" +string.format("%# +20.0g", 1e-06) == " +1.e-06" +string.format("%# +20.0g", 1e-07) == " +1.e-07" +string.format("%# +20.0g", 123.456) == " +1.e+02" +string.format("%# +20.0g", 1234560000) == " +1.e+09" +string.format("%# +20.0g", 1.23456e-05) == " +1.e-05" +string.format("%# +20.0g", 123.456789123) == " +1.e+02" +string.format("%# +20.0g", 1234567891.23) == " +1.e+09" +string.format("%# +20.0g", 1.23456789123e-05) == " +1.e-05" +string.format("%# +20.1g", 0) == " +0." +string.format("%# +20.1g", 1) == " +1." +string.format("%# +20.1g", -1) == " -1." +string.format("%# +20.1g", 2) == " +2." +string.format("%# +20.1g", -2) == " -2." +string.format("%# +20.1g", 3) == " +3." +string.format("%# +20.1g", -3) == " -3." +string.format("%# +20.1g", nan) == " +nan" +string.format("%# +20.1g", inf) == " +inf" +string.format("%# +20.1g", -inf) == " -inf" +string.format("%# +20.1g", 100) == " +1.e+02" +string.format("%# +20.1g", 10000) == " +1.e+04" +string.format("%# +20.1g", 100000) == " +1.e+05" +string.format("%# +20.1g", 1000000) == " +1.e+06" +string.format("%# +20.1g", 10000000) == " +1.e+07" +string.format("%# +20.1g", 0.01) == " +0.01" +string.format("%# +20.1g", 0.0001) == " +0.0001" +string.format("%# +20.1g", 1e-05) == " +1.e-05" +string.format("%# +20.1g", 1e-06) == " +1.e-06" +string.format("%# +20.1g", 1e-07) == " +1.e-07" +string.format("%# +20.1g", 123.456) == " +1.e+02" +string.format("%# +20.1g", 1234560000) == " +1.e+09" +string.format("%# +20.1g", 1.23456e-05) == " +1.e-05" +string.format("%# +20.1g", 123.456789123) == " +1.e+02" +string.format("%# +20.1g", 1234567891.23) == " +1.e+09" +string.format("%# +20.1g", 1.23456789123e-05) == " +1.e-05" +string.format("%# +20.6g", 0) == " +0.00000" +string.format("%# +20.6g", 1) == " +1.00000" +string.format("%# +20.6g", -1) == " -1.00000" +string.format("%# +20.6g", 2) == " +2.00000" +string.format("%# +20.6g", -2) == " -2.00000" +string.format("%# +20.6g", 3) == " +3.00000" +string.format("%# +20.6g", -3) == " -3.00000" +string.format("%# +20.6g", nan) == " +nan" +string.format("%# +20.6g", inf) == " +inf" +string.format("%# +20.6g", -inf) == " -inf" +string.format("%# +20.6g", 100) == " +100.000" +string.format("%# +20.6g", 10000) == " +10000.0" +string.format("%# +20.6g", 100000) == " +100000." +string.format("%# +20.6g", 1000000) == " +1.00000e+06" +string.format("%# +20.6g", 10000000) == " +1.00000e+07" +string.format("%# +20.6g", 0.01) == " +0.0100000" +string.format("%# +20.6g", 0.0001) == " +0.000100000" +string.format("%# +20.6g", 1e-05) == " +1.00000e-05" +string.format("%# +20.6g", 1e-06) == " +1.00000e-06" +string.format("%# +20.6g", 1e-07) == " +1.00000e-07" +string.format("%# +20.6g", 123.456) == " +123.456" +string.format("%# +20.6g", 1234560000) == " +1.23456e+09" +string.format("%# +20.6g", 1.23456e-05) == " +1.23456e-05" +string.format("%# +20.6g", 123.456789123) == " +123.457" +string.format("%# +20.6g", 1234567891.23) == " +1.23457e+09" +string.format("%# +20.6g", 1.23456789123e-05) == " +1.23457e-05" +string.format("%# -g", 0) == " 0.00000" +string.format("%# -g", 1) == " 1.00000" +string.format("%# -g", -1) == "-1.00000" +string.format("%# -g", 2) == " 2.00000" +string.format("%# -g", -2) == "-2.00000" +string.format("%# -g", 3) == " 3.00000" +string.format("%# -g", -3) == "-3.00000" +string.format("%# -g", nan) == " nan" +string.format("%# -g", inf) == " inf" +string.format("%# -g", -inf) == "-inf" +string.format("%# -g", 100) == " 100.000" +string.format("%# -g", 10000) == " 10000.0" +string.format("%# -g", 100000) == " 100000." +string.format("%# -g", 1000000) == " 1.00000e+06" +string.format("%# -g", 10000000) == " 1.00000e+07" +string.format("%# -g", 0.01) == " 0.0100000" +string.format("%# -g", 0.0001) == " 0.000100000" +string.format("%# -g", 1e-05) == " 1.00000e-05" +string.format("%# -g", 1e-06) == " 1.00000e-06" +string.format("%# -g", 1e-07) == " 1.00000e-07" +string.format("%# -g", 123.456) == " 123.456" +string.format("%# -g", 1234560000) == " 1.23456e+09" +string.format("%# -g", 1.23456e-05) == " 1.23456e-05" +string.format("%# -g", 123.456789123) == " 123.457" +string.format("%# -g", 1234567891.23) == " 1.23457e+09" +string.format("%# -g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%# -.0g", 0) == " 0." +string.format("%# -.0g", 1) == " 1." +string.format("%# -.0g", -1) == "-1." +string.format("%# -.0g", 2) == " 2." +string.format("%# -.0g", -2) == "-2." +string.format("%# -.0g", 3) == " 3." +string.format("%# -.0g", -3) == "-3." +string.format("%# -.0g", 100) == " 1.e+02" +string.format("%# -.0g", 10000) == " 1.e+04" +string.format("%# -.0g", 100000) == " 1.e+05" +string.format("%# -.0g", 1000000) == " 1.e+06" +string.format("%# -.0g", 10000000) == " 1.e+07" +string.format("%# -.0g", 0.01) == " 0.01" +string.format("%# -.0g", 0.0001) == " 0.0001" +string.format("%# -.0g", 1e-05) == " 1.e-05" +string.format("%# -.0g", 1e-06) == " 1.e-06" +string.format("%# -.0g", 1e-07) == " 1.e-07" +string.format("%# -.0g", 123.456) == " 1.e+02" +string.format("%# -.0g", 1234560000) == " 1.e+09" +string.format("%# -.0g", 1.23456e-05) == " 1.e-05" +string.format("%# -.0g", 123.456789123) == " 1.e+02" +string.format("%# -.0g", 1234567891.23) == " 1.e+09" +string.format("%# -.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -.1g", 0) == " 0." +string.format("%# -.1g", 1) == " 1." +string.format("%# -.1g", -1) == "-1." +string.format("%# -.1g", 2) == " 2." +string.format("%# -.1g", -2) == "-2." +string.format("%# -.1g", 3) == " 3." +string.format("%# -.1g", -3) == "-3." +string.format("%# -.1g", 100) == " 1.e+02" +string.format("%# -.1g", 10000) == " 1.e+04" +string.format("%# -.1g", 100000) == " 1.e+05" +string.format("%# -.1g", 1000000) == " 1.e+06" +string.format("%# -.1g", 10000000) == " 1.e+07" +string.format("%# -.1g", 0.01) == " 0.01" +string.format("%# -.1g", 0.0001) == " 0.0001" +string.format("%# -.1g", 1e-05) == " 1.e-05" +string.format("%# -.1g", 1e-06) == " 1.e-06" +string.format("%# -.1g", 1e-07) == " 1.e-07" +string.format("%# -.1g", 123.456) == " 1.e+02" +string.format("%# -.1g", 1234560000) == " 1.e+09" +string.format("%# -.1g", 1.23456e-05) == " 1.e-05" +string.format("%# -.1g", 123.456789123) == " 1.e+02" +string.format("%# -.1g", 1234567891.23) == " 1.e+09" +string.format("%# -.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -1.0g", 0) == " 0." +string.format("%# -1.0g", 1) == " 1." +string.format("%# -1.0g", -1) == "-1." +string.format("%# -1.0g", 2) == " 2." +string.format("%# -1.0g", -2) == "-2." +string.format("%# -1.0g", 3) == " 3." +string.format("%# -1.0g", -3) == "-3." +string.format("%# -1.0g", 100) == " 1.e+02" +string.format("%# -1.0g", 10000) == " 1.e+04" +string.format("%# -1.0g", 100000) == " 1.e+05" +string.format("%# -1.0g", 1000000) == " 1.e+06" +string.format("%# -1.0g", 10000000) == " 1.e+07" +string.format("%# -1.0g", 0.01) == " 0.01" +string.format("%# -1.0g", 0.0001) == " 0.0001" +string.format("%# -1.0g", 1e-05) == " 1.e-05" +string.format("%# -1.0g", 1e-06) == " 1.e-06" +string.format("%# -1.0g", 1e-07) == " 1.e-07" +string.format("%# -1.0g", 123.456) == " 1.e+02" +string.format("%# -1.0g", 1234560000) == " 1.e+09" +string.format("%# -1.0g", 1.23456e-05) == " 1.e-05" +string.format("%# -1.0g", 123.456789123) == " 1.e+02" +string.format("%# -1.0g", 1234567891.23) == " 1.e+09" +string.format("%# -1.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -1.1g", 0) == " 0." +string.format("%# -1.1g", 1) == " 1." +string.format("%# -1.1g", -1) == "-1." +string.format("%# -1.1g", 2) == " 2." +string.format("%# -1.1g", -2) == "-2." +string.format("%# -1.1g", 3) == " 3." +string.format("%# -1.1g", -3) == "-3." +string.format("%# -1.1g", 100) == " 1.e+02" +string.format("%# -1.1g", 10000) == " 1.e+04" +string.format("%# -1.1g", 100000) == " 1.e+05" +string.format("%# -1.1g", 1000000) == " 1.e+06" +string.format("%# -1.1g", 10000000) == " 1.e+07" +string.format("%# -1.1g", 0.01) == " 0.01" +string.format("%# -1.1g", 0.0001) == " 0.0001" +string.format("%# -1.1g", 1e-05) == " 1.e-05" +string.format("%# -1.1g", 1e-06) == " 1.e-06" +string.format("%# -1.1g", 1e-07) == " 1.e-07" +string.format("%# -1.1g", 123.456) == " 1.e+02" +string.format("%# -1.1g", 1234560000) == " 1.e+09" +string.format("%# -1.1g", 1.23456e-05) == " 1.e-05" +string.format("%# -1.1g", 123.456789123) == " 1.e+02" +string.format("%# -1.1g", 1234567891.23) == " 1.e+09" +string.format("%# -1.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -2.0g", 0) == " 0." +string.format("%# -2.0g", 1) == " 1." +string.format("%# -2.0g", -1) == "-1." +string.format("%# -2.0g", 2) == " 2." +string.format("%# -2.0g", -2) == "-2." +string.format("%# -2.0g", 3) == " 3." +string.format("%# -2.0g", -3) == "-3." +string.format("%# -2.0g", 100) == " 1.e+02" +string.format("%# -2.0g", 10000) == " 1.e+04" +string.format("%# -2.0g", 100000) == " 1.e+05" +string.format("%# -2.0g", 1000000) == " 1.e+06" +string.format("%# -2.0g", 10000000) == " 1.e+07" +string.format("%# -2.0g", 0.01) == " 0.01" +string.format("%# -2.0g", 0.0001) == " 0.0001" +string.format("%# -2.0g", 1e-05) == " 1.e-05" +string.format("%# -2.0g", 1e-06) == " 1.e-06" +string.format("%# -2.0g", 1e-07) == " 1.e-07" +string.format("%# -2.0g", 123.456) == " 1.e+02" +string.format("%# -2.0g", 1234560000) == " 1.e+09" +string.format("%# -2.0g", 1.23456e-05) == " 1.e-05" +string.format("%# -2.0g", 123.456789123) == " 1.e+02" +string.format("%# -2.0g", 1234567891.23) == " 1.e+09" +string.format("%# -2.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -2.1g", 0) == " 0." +string.format("%# -2.1g", 1) == " 1." +string.format("%# -2.1g", -1) == "-1." +string.format("%# -2.1g", 2) == " 2." +string.format("%# -2.1g", -2) == "-2." +string.format("%# -2.1g", 3) == " 3." +string.format("%# -2.1g", -3) == "-3." +string.format("%# -2.1g", 100) == " 1.e+02" +string.format("%# -2.1g", 10000) == " 1.e+04" +string.format("%# -2.1g", 100000) == " 1.e+05" +string.format("%# -2.1g", 1000000) == " 1.e+06" +string.format("%# -2.1g", 10000000) == " 1.e+07" +string.format("%# -2.1g", 0.01) == " 0.01" +string.format("%# -2.1g", 0.0001) == " 0.0001" +string.format("%# -2.1g", 1e-05) == " 1.e-05" +string.format("%# -2.1g", 1e-06) == " 1.e-06" +string.format("%# -2.1g", 1e-07) == " 1.e-07" +string.format("%# -2.1g", 123.456) == " 1.e+02" +string.format("%# -2.1g", 1234560000) == " 1.e+09" +string.format("%# -2.1g", 1.23456e-05) == " 1.e-05" +string.format("%# -2.1g", 123.456789123) == " 1.e+02" +string.format("%# -2.1g", 1234567891.23) == " 1.e+09" +string.format("%# -2.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -6g", nan) == " nan " +string.format("%# -6g", inf) == " inf " +string.format("%# -6g", -inf) == "-inf " +string.format("%# -6.0g", 0) == " 0. " +string.format("%# -6.0g", 1) == " 1. " +string.format("%# -6.0g", -1) == "-1. " +string.format("%# -6.0g", 2) == " 2. " +string.format("%# -6.0g", -2) == "-2. " +string.format("%# -6.0g", 3) == " 3. " +string.format("%# -6.0g", -3) == "-3. " +string.format("%# -6.0g", nan) == " nan " +string.format("%# -6.0g", inf) == " inf " +string.format("%# -6.0g", -inf) == "-inf " +string.format("%# -6.0g", 100) == " 1.e+02" +string.format("%# -6.0g", 10000) == " 1.e+04" +string.format("%# -6.0g", 100000) == " 1.e+05" +string.format("%# -6.0g", 1000000) == " 1.e+06" +string.format("%# -6.0g", 10000000) == " 1.e+07" +string.format("%# -6.0g", 0.01) == " 0.01 " +string.format("%# -6.0g", 0.0001) == " 0.0001" +string.format("%# -6.0g", 1e-05) == " 1.e-05" +string.format("%# -6.0g", 1e-06) == " 1.e-06" +string.format("%# -6.0g", 1e-07) == " 1.e-07" +string.format("%# -6.0g", 123.456) == " 1.e+02" +string.format("%# -6.0g", 1234560000) == " 1.e+09" +string.format("%# -6.0g", 1.23456e-05) == " 1.e-05" +string.format("%# -6.0g", 123.456789123) == " 1.e+02" +string.format("%# -6.0g", 1234567891.23) == " 1.e+09" +string.format("%# -6.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -6.1g", 0) == " 0. " +string.format("%# -6.1g", 1) == " 1. " +string.format("%# -6.1g", -1) == "-1. " +string.format("%# -6.1g", 2) == " 2. " +string.format("%# -6.1g", -2) == "-2. " +string.format("%# -6.1g", 3) == " 3. " +string.format("%# -6.1g", -3) == "-3. " +string.format("%# -6.1g", nan) == " nan " +string.format("%# -6.1g", inf) == " inf " +string.format("%# -6.1g", -inf) == "-inf " +string.format("%# -6.1g", 100) == " 1.e+02" +string.format("%# -6.1g", 10000) == " 1.e+04" +string.format("%# -6.1g", 100000) == " 1.e+05" +string.format("%# -6.1g", 1000000) == " 1.e+06" +string.format("%# -6.1g", 10000000) == " 1.e+07" +string.format("%# -6.1g", 0.01) == " 0.01 " +string.format("%# -6.1g", 0.0001) == " 0.0001" +string.format("%# -6.1g", 1e-05) == " 1.e-05" +string.format("%# -6.1g", 1e-06) == " 1.e-06" +string.format("%# -6.1g", 1e-07) == " 1.e-07" +string.format("%# -6.1g", 123.456) == " 1.e+02" +string.format("%# -6.1g", 1234560000) == " 1.e+09" +string.format("%# -6.1g", 1.23456e-05) == " 1.e-05" +string.format("%# -6.1g", 123.456789123) == " 1.e+02" +string.format("%# -6.1g", 1234567891.23) == " 1.e+09" +string.format("%# -6.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%# -6.6g", nan) == " nan " +string.format("%# -6.6g", inf) == " inf " +string.format("%# -6.6g", -inf) == "-inf " +string.format("%# -20g", 0) == " 0.00000 " +string.format("%# -20g", 1) == " 1.00000 " +string.format("%# -20g", -1) == "-1.00000 " +string.format("%# -20g", 2) == " 2.00000 " +string.format("%# -20g", -2) == "-2.00000 " +string.format("%# -20g", 3) == " 3.00000 " +string.format("%# -20g", -3) == "-3.00000 " +string.format("%# -20g", nan) == " nan " +string.format("%# -20g", inf) == " inf " +string.format("%# -20g", -inf) == "-inf " +string.format("%# -20g", 100) == " 100.000 " +string.format("%# -20g", 10000) == " 10000.0 " +string.format("%# -20g", 100000) == " 100000. " +string.format("%# -20g", 1000000) == " 1.00000e+06 " +string.format("%# -20g", 10000000) == " 1.00000e+07 " +string.format("%# -20g", 0.01) == " 0.0100000 " +string.format("%# -20g", 0.0001) == " 0.000100000 " +string.format("%# -20g", 1e-05) == " 1.00000e-05 " +string.format("%# -20g", 1e-06) == " 1.00000e-06 " +string.format("%# -20g", 1e-07) == " 1.00000e-07 " +string.format("%# -20g", 123.456) == " 123.456 " +string.format("%# -20g", 1234560000) == " 1.23456e+09 " +string.format("%# -20g", 1.23456e-05) == " 1.23456e-05 " +string.format("%# -20g", 123.456789123) == " 123.457 " +string.format("%# -20g", 1234567891.23) == " 1.23457e+09 " +string.format("%# -20g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%# -20.0g", 0) == " 0. " +string.format("%# -20.0g", 1) == " 1. " +string.format("%# -20.0g", -1) == "-1. " +string.format("%# -20.0g", 2) == " 2. " +string.format("%# -20.0g", -2) == "-2. " +string.format("%# -20.0g", 3) == " 3. " +string.format("%# -20.0g", -3) == "-3. " +string.format("%# -20.0g", nan) == " nan " +string.format("%# -20.0g", inf) == " inf " +string.format("%# -20.0g", -inf) == "-inf " +string.format("%# -20.0g", 100) == " 1.e+02 " +string.format("%# -20.0g", 10000) == " 1.e+04 " +string.format("%# -20.0g", 100000) == " 1.e+05 " +string.format("%# -20.0g", 1000000) == " 1.e+06 " +string.format("%# -20.0g", 10000000) == " 1.e+07 " +string.format("%# -20.0g", 0.01) == " 0.01 " +string.format("%# -20.0g", 0.0001) == " 0.0001 " +string.format("%# -20.0g", 1e-05) == " 1.e-05 " +string.format("%# -20.0g", 1e-06) == " 1.e-06 " +string.format("%# -20.0g", 1e-07) == " 1.e-07 " +string.format("%# -20.0g", 123.456) == " 1.e+02 " +string.format("%# -20.0g", 1234560000) == " 1.e+09 " +string.format("%# -20.0g", 1.23456e-05) == " 1.e-05 " +string.format("%# -20.0g", 123.456789123) == " 1.e+02 " +string.format("%# -20.0g", 1234567891.23) == " 1.e+09 " +string.format("%# -20.0g", 1.23456789123e-05) == " 1.e-05 " +string.format("%# -20.1g", 0) == " 0. " +string.format("%# -20.1g", 1) == " 1. " +string.format("%# -20.1g", -1) == "-1. " +string.format("%# -20.1g", 2) == " 2. " +string.format("%# -20.1g", -2) == "-2. " +string.format("%# -20.1g", 3) == " 3. " +string.format("%# -20.1g", -3) == "-3. " +string.format("%# -20.1g", nan) == " nan " +string.format("%# -20.1g", inf) == " inf " +string.format("%# -20.1g", -inf) == "-inf " +string.format("%# -20.1g", 100) == " 1.e+02 " +string.format("%# -20.1g", 10000) == " 1.e+04 " +string.format("%# -20.1g", 100000) == " 1.e+05 " +string.format("%# -20.1g", 1000000) == " 1.e+06 " +string.format("%# -20.1g", 10000000) == " 1.e+07 " +string.format("%# -20.1g", 0.01) == " 0.01 " +string.format("%# -20.1g", 0.0001) == " 0.0001 " +string.format("%# -20.1g", 1e-05) == " 1.e-05 " +string.format("%# -20.1g", 1e-06) == " 1.e-06 " +string.format("%# -20.1g", 1e-07) == " 1.e-07 " +string.format("%# -20.1g", 123.456) == " 1.e+02 " +string.format("%# -20.1g", 1234560000) == " 1.e+09 " +string.format("%# -20.1g", 1.23456e-05) == " 1.e-05 " +string.format("%# -20.1g", 123.456789123) == " 1.e+02 " +string.format("%# -20.1g", 1234567891.23) == " 1.e+09 " +string.format("%# -20.1g", 1.23456789123e-05) == " 1.e-05 " +string.format("%# -20.6g", 0) == " 0.00000 " +string.format("%# -20.6g", 1) == " 1.00000 " +string.format("%# -20.6g", -1) == "-1.00000 " +string.format("%# -20.6g", 2) == " 2.00000 " +string.format("%# -20.6g", -2) == "-2.00000 " +string.format("%# -20.6g", 3) == " 3.00000 " +string.format("%# -20.6g", -3) == "-3.00000 " +string.format("%# -20.6g", nan) == " nan " +string.format("%# -20.6g", inf) == " inf " +string.format("%# -20.6g", -inf) == "-inf " +string.format("%# -20.6g", 100) == " 100.000 " +string.format("%# -20.6g", 10000) == " 10000.0 " +string.format("%# -20.6g", 100000) == " 100000. " +string.format("%# -20.6g", 1000000) == " 1.00000e+06 " +string.format("%# -20.6g", 10000000) == " 1.00000e+07 " +string.format("%# -20.6g", 0.01) == " 0.0100000 " +string.format("%# -20.6g", 0.0001) == " 0.000100000 " +string.format("%# -20.6g", 1e-05) == " 1.00000e-05 " +string.format("%# -20.6g", 1e-06) == " 1.00000e-06 " +string.format("%# -20.6g", 1e-07) == " 1.00000e-07 " +string.format("%# -20.6g", 123.456) == " 123.456 " +string.format("%# -20.6g", 1234560000) == " 1.23456e+09 " +string.format("%# -20.6g", 1.23456e-05) == " 1.23456e-05 " +string.format("%# -20.6g", 123.456789123) == " 123.457 " +string.format("%# -20.6g", 1234567891.23) == " 1.23457e+09 " +string.format("%# -20.6g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%# -+g", 0) == "+0.00000" +string.format("%# -+g", 1) == "+1.00000" +string.format("%# -+g", -1) == "-1.00000" +string.format("%# -+g", 2) == "+2.00000" +string.format("%# -+g", -2) == "-2.00000" +string.format("%# -+g", 3) == "+3.00000" +string.format("%# -+g", -3) == "-3.00000" +string.format("%# -+g", nan) == "+nan" +string.format("%# -+g", inf) == "+inf" +string.format("%# -+g", -inf) == "-inf" +string.format("%# -+g", 100) == "+100.000" +string.format("%# -+g", 10000) == "+10000.0" +string.format("%# -+g", 100000) == "+100000." +string.format("%# -+g", 1000000) == "+1.00000e+06" +string.format("%# -+g", 10000000) == "+1.00000e+07" +string.format("%# -+g", 0.01) == "+0.0100000" +string.format("%# -+g", 0.0001) == "+0.000100000" +string.format("%# -+g", 1e-05) == "+1.00000e-05" +string.format("%# -+g", 1e-06) == "+1.00000e-06" +string.format("%# -+g", 1e-07) == "+1.00000e-07" +string.format("%# -+g", 123.456) == "+123.456" +string.format("%# -+g", 1234560000) == "+1.23456e+09" +string.format("%# -+g", 1.23456e-05) == "+1.23456e-05" +string.format("%# -+g", 123.456789123) == "+123.457" +string.format("%# -+g", 1234567891.23) == "+1.23457e+09" +string.format("%# -+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%# -+.0g", 0) == "+0." +string.format("%# -+.0g", 1) == "+1." +string.format("%# -+.0g", -1) == "-1." +string.format("%# -+.0g", 2) == "+2." +string.format("%# -+.0g", -2) == "-2." +string.format("%# -+.0g", 3) == "+3." +string.format("%# -+.0g", -3) == "-3." +string.format("%# -+.0g", 100) == "+1.e+02" +string.format("%# -+.0g", 10000) == "+1.e+04" +string.format("%# -+.0g", 100000) == "+1.e+05" +string.format("%# -+.0g", 1000000) == "+1.e+06" +string.format("%# -+.0g", 10000000) == "+1.e+07" +string.format("%# -+.0g", 0.01) == "+0.01" +string.format("%# -+.0g", 0.0001) == "+0.0001" +string.format("%# -+.0g", 1e-05) == "+1.e-05" +string.format("%# -+.0g", 1e-06) == "+1.e-06" +string.format("%# -+.0g", 1e-07) == "+1.e-07" +string.format("%# -+.0g", 123.456) == "+1.e+02" +string.format("%# -+.0g", 1234560000) == "+1.e+09" +string.format("%# -+.0g", 1.23456e-05) == "+1.e-05" +string.format("%# -+.0g", 123.456789123) == "+1.e+02" +string.format("%# -+.0g", 1234567891.23) == "+1.e+09" +string.format("%# -+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+.1g", 0) == "+0." +string.format("%# -+.1g", 1) == "+1." +string.format("%# -+.1g", -1) == "-1." +string.format("%# -+.1g", 2) == "+2." +string.format("%# -+.1g", -2) == "-2." +string.format("%# -+.1g", 3) == "+3." +string.format("%# -+.1g", -3) == "-3." +string.format("%# -+.1g", 100) == "+1.e+02" +string.format("%# -+.1g", 10000) == "+1.e+04" +string.format("%# -+.1g", 100000) == "+1.e+05" +string.format("%# -+.1g", 1000000) == "+1.e+06" +string.format("%# -+.1g", 10000000) == "+1.e+07" +string.format("%# -+.1g", 0.01) == "+0.01" +string.format("%# -+.1g", 0.0001) == "+0.0001" +string.format("%# -+.1g", 1e-05) == "+1.e-05" +string.format("%# -+.1g", 1e-06) == "+1.e-06" +string.format("%# -+.1g", 1e-07) == "+1.e-07" +string.format("%# -+.1g", 123.456) == "+1.e+02" +string.format("%# -+.1g", 1234560000) == "+1.e+09" +string.format("%# -+.1g", 1.23456e-05) == "+1.e-05" +string.format("%# -+.1g", 123.456789123) == "+1.e+02" +string.format("%# -+.1g", 1234567891.23) == "+1.e+09" +string.format("%# -+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+1.0g", 0) == "+0." +string.format("%# -+1.0g", 1) == "+1." +string.format("%# -+1.0g", -1) == "-1." +string.format("%# -+1.0g", 2) == "+2." +string.format("%# -+1.0g", -2) == "-2." +string.format("%# -+1.0g", 3) == "+3." +string.format("%# -+1.0g", -3) == "-3." +string.format("%# -+1.0g", 100) == "+1.e+02" +string.format("%# -+1.0g", 10000) == "+1.e+04" +string.format("%# -+1.0g", 100000) == "+1.e+05" +string.format("%# -+1.0g", 1000000) == "+1.e+06" +string.format("%# -+1.0g", 10000000) == "+1.e+07" +string.format("%# -+1.0g", 0.01) == "+0.01" +string.format("%# -+1.0g", 0.0001) == "+0.0001" +string.format("%# -+1.0g", 1e-05) == "+1.e-05" +string.format("%# -+1.0g", 1e-06) == "+1.e-06" +string.format("%# -+1.0g", 1e-07) == "+1.e-07" +string.format("%# -+1.0g", 123.456) == "+1.e+02" +string.format("%# -+1.0g", 1234560000) == "+1.e+09" +string.format("%# -+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%# -+1.0g", 123.456789123) == "+1.e+02" +string.format("%# -+1.0g", 1234567891.23) == "+1.e+09" +string.format("%# -+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+1.1g", 0) == "+0." +string.format("%# -+1.1g", 1) == "+1." +string.format("%# -+1.1g", -1) == "-1." +string.format("%# -+1.1g", 2) == "+2." +string.format("%# -+1.1g", -2) == "-2." +string.format("%# -+1.1g", 3) == "+3." +string.format("%# -+1.1g", -3) == "-3." +string.format("%# -+1.1g", 100) == "+1.e+02" +string.format("%# -+1.1g", 10000) == "+1.e+04" +string.format("%# -+1.1g", 100000) == "+1.e+05" +string.format("%# -+1.1g", 1000000) == "+1.e+06" +string.format("%# -+1.1g", 10000000) == "+1.e+07" +string.format("%# -+1.1g", 0.01) == "+0.01" +string.format("%# -+1.1g", 0.0001) == "+0.0001" +string.format("%# -+1.1g", 1e-05) == "+1.e-05" +string.format("%# -+1.1g", 1e-06) == "+1.e-06" +string.format("%# -+1.1g", 1e-07) == "+1.e-07" +string.format("%# -+1.1g", 123.456) == "+1.e+02" +string.format("%# -+1.1g", 1234560000) == "+1.e+09" +string.format("%# -+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%# -+1.1g", 123.456789123) == "+1.e+02" +string.format("%# -+1.1g", 1234567891.23) == "+1.e+09" +string.format("%# -+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+2.0g", 0) == "+0." +string.format("%# -+2.0g", 1) == "+1." +string.format("%# -+2.0g", -1) == "-1." +string.format("%# -+2.0g", 2) == "+2." +string.format("%# -+2.0g", -2) == "-2." +string.format("%# -+2.0g", 3) == "+3." +string.format("%# -+2.0g", -3) == "-3." +string.format("%# -+2.0g", 100) == "+1.e+02" +string.format("%# -+2.0g", 10000) == "+1.e+04" +string.format("%# -+2.0g", 100000) == "+1.e+05" +string.format("%# -+2.0g", 1000000) == "+1.e+06" +string.format("%# -+2.0g", 10000000) == "+1.e+07" +string.format("%# -+2.0g", 0.01) == "+0.01" +string.format("%# -+2.0g", 0.0001) == "+0.0001" +string.format("%# -+2.0g", 1e-05) == "+1.e-05" +string.format("%# -+2.0g", 1e-06) == "+1.e-06" +string.format("%# -+2.0g", 1e-07) == "+1.e-07" +string.format("%# -+2.0g", 123.456) == "+1.e+02" +string.format("%# -+2.0g", 1234560000) == "+1.e+09" +string.format("%# -+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%# -+2.0g", 123.456789123) == "+1.e+02" +string.format("%# -+2.0g", 1234567891.23) == "+1.e+09" +string.format("%# -+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+2.1g", 0) == "+0." +string.format("%# -+2.1g", 1) == "+1." +string.format("%# -+2.1g", -1) == "-1." +string.format("%# -+2.1g", 2) == "+2." +string.format("%# -+2.1g", -2) == "-2." +string.format("%# -+2.1g", 3) == "+3." +string.format("%# -+2.1g", -3) == "-3." +string.format("%# -+2.1g", 100) == "+1.e+02" +string.format("%# -+2.1g", 10000) == "+1.e+04" +string.format("%# -+2.1g", 100000) == "+1.e+05" +string.format("%# -+2.1g", 1000000) == "+1.e+06" +string.format("%# -+2.1g", 10000000) == "+1.e+07" +string.format("%# -+2.1g", 0.01) == "+0.01" +string.format("%# -+2.1g", 0.0001) == "+0.0001" +string.format("%# -+2.1g", 1e-05) == "+1.e-05" +string.format("%# -+2.1g", 1e-06) == "+1.e-06" +string.format("%# -+2.1g", 1e-07) == "+1.e-07" +string.format("%# -+2.1g", 123.456) == "+1.e+02" +string.format("%# -+2.1g", 1234560000) == "+1.e+09" +string.format("%# -+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%# -+2.1g", 123.456789123) == "+1.e+02" +string.format("%# -+2.1g", 1234567891.23) == "+1.e+09" +string.format("%# -+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+6g", nan) == "+nan " +string.format("%# -+6g", inf) == "+inf " +string.format("%# -+6g", -inf) == "-inf " +string.format("%# -+6.0g", 0) == "+0. " +string.format("%# -+6.0g", 1) == "+1. " +string.format("%# -+6.0g", -1) == "-1. " +string.format("%# -+6.0g", 2) == "+2. " +string.format("%# -+6.0g", -2) == "-2. " +string.format("%# -+6.0g", 3) == "+3. " +string.format("%# -+6.0g", -3) == "-3. " +string.format("%# -+6.0g", nan) == "+nan " +string.format("%# -+6.0g", inf) == "+inf " +string.format("%# -+6.0g", -inf) == "-inf " +string.format("%# -+6.0g", 100) == "+1.e+02" +string.format("%# -+6.0g", 10000) == "+1.e+04" +string.format("%# -+6.0g", 100000) == "+1.e+05" +string.format("%# -+6.0g", 1000000) == "+1.e+06" +string.format("%# -+6.0g", 10000000) == "+1.e+07" +string.format("%# -+6.0g", 0.01) == "+0.01 " +string.format("%# -+6.0g", 0.0001) == "+0.0001" +string.format("%# -+6.0g", 1e-05) == "+1.e-05" +string.format("%# -+6.0g", 1e-06) == "+1.e-06" +string.format("%# -+6.0g", 1e-07) == "+1.e-07" +string.format("%# -+6.0g", 123.456) == "+1.e+02" +string.format("%# -+6.0g", 1234560000) == "+1.e+09" +string.format("%# -+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%# -+6.0g", 123.456789123) == "+1.e+02" +string.format("%# -+6.0g", 1234567891.23) == "+1.e+09" +string.format("%# -+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+6.1g", 0) == "+0. " +string.format("%# -+6.1g", 1) == "+1. " +string.format("%# -+6.1g", -1) == "-1. " +string.format("%# -+6.1g", 2) == "+2. " +string.format("%# -+6.1g", -2) == "-2. " +string.format("%# -+6.1g", 3) == "+3. " +string.format("%# -+6.1g", -3) == "-3. " +string.format("%# -+6.1g", nan) == "+nan " +string.format("%# -+6.1g", inf) == "+inf " +string.format("%# -+6.1g", -inf) == "-inf " +string.format("%# -+6.1g", 100) == "+1.e+02" +string.format("%# -+6.1g", 10000) == "+1.e+04" +string.format("%# -+6.1g", 100000) == "+1.e+05" +string.format("%# -+6.1g", 1000000) == "+1.e+06" +string.format("%# -+6.1g", 10000000) == "+1.e+07" +string.format("%# -+6.1g", 0.01) == "+0.01 " +string.format("%# -+6.1g", 0.0001) == "+0.0001" +string.format("%# -+6.1g", 1e-05) == "+1.e-05" +string.format("%# -+6.1g", 1e-06) == "+1.e-06" +string.format("%# -+6.1g", 1e-07) == "+1.e-07" +string.format("%# -+6.1g", 123.456) == "+1.e+02" +string.format("%# -+6.1g", 1234560000) == "+1.e+09" +string.format("%# -+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%# -+6.1g", 123.456789123) == "+1.e+02" +string.format("%# -+6.1g", 1234567891.23) == "+1.e+09" +string.format("%# -+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%# -+6.6g", nan) == "+nan " +string.format("%# -+6.6g", inf) == "+inf " +string.format("%# -+6.6g", -inf) == "-inf " +string.format("%# -+20g", 0) == "+0.00000 " +string.format("%# -+20g", 1) == "+1.00000 " +string.format("%# -+20g", -1) == "-1.00000 " +string.format("%# -+20g", 2) == "+2.00000 " +string.format("%# -+20g", -2) == "-2.00000 " +string.format("%# -+20g", 3) == "+3.00000 " +string.format("%# -+20g", -3) == "-3.00000 " +string.format("%# -+20g", nan) == "+nan " +string.format("%# -+20g", inf) == "+inf " +string.format("%# -+20g", -inf) == "-inf " +string.format("%# -+20g", 100) == "+100.000 " +string.format("%# -+20g", 10000) == "+10000.0 " +string.format("%# -+20g", 100000) == "+100000. " +string.format("%# -+20g", 1000000) == "+1.00000e+06 " +string.format("%# -+20g", 10000000) == "+1.00000e+07 " +string.format("%# -+20g", 0.01) == "+0.0100000 " +string.format("%# -+20g", 0.0001) == "+0.000100000 " +string.format("%# -+20g", 1e-05) == "+1.00000e-05 " +string.format("%# -+20g", 1e-06) == "+1.00000e-06 " +string.format("%# -+20g", 1e-07) == "+1.00000e-07 " +string.format("%# -+20g", 123.456) == "+123.456 " +string.format("%# -+20g", 1234560000) == "+1.23456e+09 " +string.format("%# -+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%# -+20g", 123.456789123) == "+123.457 " +string.format("%# -+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%# -+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%# -+20.0g", 0) == "+0. " +string.format("%# -+20.0g", 1) == "+1. " +string.format("%# -+20.0g", -1) == "-1. " +string.format("%# -+20.0g", 2) == "+2. " +string.format("%# -+20.0g", -2) == "-2. " +string.format("%# -+20.0g", 3) == "+3. " +string.format("%# -+20.0g", -3) == "-3. " +string.format("%# -+20.0g", nan) == "+nan " +string.format("%# -+20.0g", inf) == "+inf " +string.format("%# -+20.0g", -inf) == "-inf " +string.format("%# -+20.0g", 100) == "+1.e+02 " +string.format("%# -+20.0g", 10000) == "+1.e+04 " +string.format("%# -+20.0g", 100000) == "+1.e+05 " +string.format("%# -+20.0g", 1000000) == "+1.e+06 " +string.format("%# -+20.0g", 10000000) == "+1.e+07 " +string.format("%# -+20.0g", 0.01) == "+0.01 " +string.format("%# -+20.0g", 0.0001) == "+0.0001 " +string.format("%# -+20.0g", 1e-05) == "+1.e-05 " +string.format("%# -+20.0g", 1e-06) == "+1.e-06 " +string.format("%# -+20.0g", 1e-07) == "+1.e-07 " +string.format("%# -+20.0g", 123.456) == "+1.e+02 " +string.format("%# -+20.0g", 1234560000) == "+1.e+09 " +string.format("%# -+20.0g", 1.23456e-05) == "+1.e-05 " +string.format("%# -+20.0g", 123.456789123) == "+1.e+02 " +string.format("%# -+20.0g", 1234567891.23) == "+1.e+09 " +string.format("%# -+20.0g", 1.23456789123e-05) == "+1.e-05 " +string.format("%# -+20.1g", 0) == "+0. " +string.format("%# -+20.1g", 1) == "+1. " +string.format("%# -+20.1g", -1) == "-1. " +string.format("%# -+20.1g", 2) == "+2. " +string.format("%# -+20.1g", -2) == "-2. " +string.format("%# -+20.1g", 3) == "+3. " +string.format("%# -+20.1g", -3) == "-3. " +string.format("%# -+20.1g", nan) == "+nan " +string.format("%# -+20.1g", inf) == "+inf " +string.format("%# -+20.1g", -inf) == "-inf " +string.format("%# -+20.1g", 100) == "+1.e+02 " +string.format("%# -+20.1g", 10000) == "+1.e+04 " +string.format("%# -+20.1g", 100000) == "+1.e+05 " +string.format("%# -+20.1g", 1000000) == "+1.e+06 " +string.format("%# -+20.1g", 10000000) == "+1.e+07 " +string.format("%# -+20.1g", 0.01) == "+0.01 " +string.format("%# -+20.1g", 0.0001) == "+0.0001 " +string.format("%# -+20.1g", 1e-05) == "+1.e-05 " +string.format("%# -+20.1g", 1e-06) == "+1.e-06 " +string.format("%# -+20.1g", 1e-07) == "+1.e-07 " +string.format("%# -+20.1g", 123.456) == "+1.e+02 " +string.format("%# -+20.1g", 1234560000) == "+1.e+09 " +string.format("%# -+20.1g", 1.23456e-05) == "+1.e-05 " +string.format("%# -+20.1g", 123.456789123) == "+1.e+02 " +string.format("%# -+20.1g", 1234567891.23) == "+1.e+09 " +string.format("%# -+20.1g", 1.23456789123e-05) == "+1.e-05 " +string.format("%# -+20.6g", 0) == "+0.00000 " +string.format("%# -+20.6g", 1) == "+1.00000 " +string.format("%# -+20.6g", -1) == "-1.00000 " +string.format("%# -+20.6g", 2) == "+2.00000 " +string.format("%# -+20.6g", -2) == "-2.00000 " +string.format("%# -+20.6g", 3) == "+3.00000 " +string.format("%# -+20.6g", -3) == "-3.00000 " +string.format("%# -+20.6g", nan) == "+nan " +string.format("%# -+20.6g", inf) == "+inf " +string.format("%# -+20.6g", -inf) == "-inf " +string.format("%# -+20.6g", 100) == "+100.000 " +string.format("%# -+20.6g", 10000) == "+10000.0 " +string.format("%# -+20.6g", 100000) == "+100000. " +string.format("%# -+20.6g", 1000000) == "+1.00000e+06 " +string.format("%# -+20.6g", 10000000) == "+1.00000e+07 " +string.format("%# -+20.6g", 0.01) == "+0.0100000 " +string.format("%# -+20.6g", 0.0001) == "+0.000100000 " +string.format("%# -+20.6g", 1e-05) == "+1.00000e-05 " +string.format("%# -+20.6g", 1e-06) == "+1.00000e-06 " +string.format("%# -+20.6g", 1e-07) == "+1.00000e-07 " +string.format("%# -+20.6g", 123.456) == "+123.456 " +string.format("%# -+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%# -+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%# -+20.6g", 123.456789123) == "+123.457 " +string.format("%# -+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%# -+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0g", 0) == "0" +string.format("%0g", 1) == "1" +string.format("%0g", -1) == "-1" +string.format("%0g", 2) == "2" +string.format("%0g", -2) == "-2" +string.format("%0g", 3) == "3" +string.format("%0g", -3) == "-3" +string.format("%0g", nan) == "nan" +string.format("%0g", inf) == "inf" +string.format("%0g", -inf) == "-inf" +string.format("%0g", 100) == "100" +string.format("%0g", 10000) == "10000" +string.format("%0g", 100000) == "100000" +string.format("%0g", 1000000) == "1e+06" +string.format("%0g", 10000000) == "1e+07" +string.format("%0g", 0.01) == "0.01" +string.format("%0g", 0.0001) == "0.0001" +string.format("%0g", 1e-05) == "1e-05" +string.format("%0g", 1e-06) == "1e-06" +string.format("%0g", 1e-07) == "1e-07" +string.format("%0g", 123.456) == "123.456" +string.format("%0g", 1234560000) == "1.23456e+09" +string.format("%0g", 1.23456e-05) == "1.23456e-05" +string.format("%0g", 123.456789123) == "123.457" +string.format("%0g", 1234567891.23) == "1.23457e+09" +string.format("%0g", 1.23456789123e-05) == "1.23457e-05" +string.format("%0.0g", 100) == "1e+02" +string.format("%0.0g", 10000) == "1e+04" +string.format("%0.0g", 100000) == "1e+05" +string.format("%0.0g", 123.456) == "1e+02" +string.format("%0.0g", 1234560000) == "1e+09" +string.format("%0.0g", 1.23456e-05) == "1e-05" +string.format("%0.0g", 123.456789123) == "1e+02" +string.format("%0.0g", 1234567891.23) == "1e+09" +string.format("%0.0g", 1.23456789123e-05) == "1e-05" +string.format("%0.1g", 100) == "1e+02" +string.format("%0.1g", 10000) == "1e+04" +string.format("%0.1g", 100000) == "1e+05" +string.format("%0.1g", 123.456) == "1e+02" +string.format("%0.1g", 1234560000) == "1e+09" +string.format("%0.1g", 1.23456e-05) == "1e-05" +string.format("%0.1g", 123.456789123) == "1e+02" +string.format("%0.1g", 1234567891.23) == "1e+09" +string.format("%0.1g", 1.23456789123e-05) == "1e-05" +string.format("%01.0g", 100) == "1e+02" +string.format("%01.0g", 10000) == "1e+04" +string.format("%01.0g", 100000) == "1e+05" +string.format("%01.0g", 123.456) == "1e+02" +string.format("%01.0g", 1234560000) == "1e+09" +string.format("%01.0g", 1.23456e-05) == "1e-05" +string.format("%01.0g", 123.456789123) == "1e+02" +string.format("%01.0g", 1234567891.23) == "1e+09" +string.format("%01.0g", 1.23456789123e-05) == "1e-05" +string.format("%01.1g", 100) == "1e+02" +string.format("%01.1g", 10000) == "1e+04" +string.format("%01.1g", 100000) == "1e+05" +string.format("%01.1g", 123.456) == "1e+02" +string.format("%01.1g", 1234560000) == "1e+09" +string.format("%01.1g", 1.23456e-05) == "1e-05" +string.format("%01.1g", 123.456789123) == "1e+02" +string.format("%01.1g", 1234567891.23) == "1e+09" +string.format("%01.1g", 1.23456789123e-05) == "1e-05" +string.format("%02g", 0) == "00" +string.format("%02g", 1) == "01" +string.format("%02g", 2) == "02" +string.format("%02g", 3) == "03" +string.format("%02.0g", 0) == "00" +string.format("%02.0g", 1) == "01" +string.format("%02.0g", 2) == "02" +string.format("%02.0g", 3) == "03" +string.format("%02.0g", 100) == "1e+02" +string.format("%02.0g", 10000) == "1e+04" +string.format("%02.0g", 100000) == "1e+05" +string.format("%02.0g", 123.456) == "1e+02" +string.format("%02.0g", 1234560000) == "1e+09" +string.format("%02.0g", 1.23456e-05) == "1e-05" +string.format("%02.0g", 123.456789123) == "1e+02" +string.format("%02.0g", 1234567891.23) == "1e+09" +string.format("%02.0g", 1.23456789123e-05) == "1e-05" +string.format("%02.1g", 0) == "00" +string.format("%02.1g", 1) == "01" +string.format("%02.1g", 2) == "02" +string.format("%02.1g", 3) == "03" +string.format("%02.1g", 100) == "1e+02" +string.format("%02.1g", 10000) == "1e+04" +string.format("%02.1g", 100000) == "1e+05" +string.format("%02.1g", 123.456) == "1e+02" +string.format("%02.1g", 1234560000) == "1e+09" +string.format("%02.1g", 1.23456e-05) == "1e-05" +string.format("%02.1g", 123.456789123) == "1e+02" +string.format("%02.1g", 1234567891.23) == "1e+09" +string.format("%02.1g", 1.23456789123e-05) == "1e-05" +string.format("%02.6g", 0) == "00" +string.format("%02.6g", 1) == "01" +string.format("%02.6g", 2) == "02" +string.format("%02.6g", 3) == "03" +string.format("%06g", 0) == "000000" +string.format("%06g", 1) == "000001" +string.format("%06g", -1) == "-00001" +string.format("%06g", 2) == "000002" +string.format("%06g", -2) == "-00002" +string.format("%06g", 3) == "000003" +string.format("%06g", -3) == "-00003" +string.format("%06g", nan) == " nan" +string.format("%06g", inf) == " inf" +string.format("%06g", -inf) == " -inf" +string.format("%06g", 100) == "000100" +string.format("%06g", 10000) == "010000" +string.format("%06g", 1000000) == "01e+06" +string.format("%06g", 10000000) == "01e+07" +string.format("%06g", 0.01) == "000.01" +string.format("%06g", 1e-05) == "01e-05" +string.format("%06g", 1e-06) == "01e-06" +string.format("%06g", 1e-07) == "01e-07" +string.format("%06.0g", 0) == "000000" +string.format("%06.0g", 1) == "000001" +string.format("%06.0g", -1) == "-00001" +string.format("%06.0g", 2) == "000002" +string.format("%06.0g", -2) == "-00002" +string.format("%06.0g", 3) == "000003" +string.format("%06.0g", -3) == "-00003" +string.format("%06.0g", nan) == " nan" +string.format("%06.0g", inf) == " inf" +string.format("%06.0g", -inf) == " -inf" +string.format("%06.0g", 100) == "01e+02" +string.format("%06.0g", 10000) == "01e+04" +string.format("%06.0g", 100000) == "01e+05" +string.format("%06.0g", 1000000) == "01e+06" +string.format("%06.0g", 10000000) == "01e+07" +string.format("%06.0g", 0.01) == "000.01" +string.format("%06.0g", 1e-05) == "01e-05" +string.format("%06.0g", 1e-06) == "01e-06" +string.format("%06.0g", 1e-07) == "01e-07" +string.format("%06.0g", 123.456) == "01e+02" +string.format("%06.0g", 1234560000) == "01e+09" +string.format("%06.0g", 1.23456e-05) == "01e-05" +string.format("%06.0g", 123.456789123) == "01e+02" +string.format("%06.0g", 1234567891.23) == "01e+09" +string.format("%06.0g", 1.23456789123e-05) == "01e-05" +string.format("%06.1g", 0) == "000000" +string.format("%06.1g", 1) == "000001" +string.format("%06.1g", -1) == "-00001" +string.format("%06.1g", 2) == "000002" +string.format("%06.1g", -2) == "-00002" +string.format("%06.1g", 3) == "000003" +string.format("%06.1g", -3) == "-00003" +string.format("%06.1g", nan) == " nan" +string.format("%06.1g", inf) == " inf" +string.format("%06.1g", -inf) == " -inf" +string.format("%06.1g", 100) == "01e+02" +string.format("%06.1g", 10000) == "01e+04" +string.format("%06.1g", 100000) == "01e+05" +string.format("%06.1g", 1000000) == "01e+06" +string.format("%06.1g", 10000000) == "01e+07" +string.format("%06.1g", 0.01) == "000.01" +string.format("%06.1g", 1e-05) == "01e-05" +string.format("%06.1g", 1e-06) == "01e-06" +string.format("%06.1g", 1e-07) == "01e-07" +string.format("%06.1g", 123.456) == "01e+02" +string.format("%06.1g", 1234560000) == "01e+09" +string.format("%06.1g", 1.23456e-05) == "01e-05" +string.format("%06.1g", 123.456789123) == "01e+02" +string.format("%06.1g", 1234567891.23) == "01e+09" +string.format("%06.1g", 1.23456789123e-05) == "01e-05" +string.format("%06.6g", 0) == "000000" +string.format("%06.6g", 1) == "000001" +string.format("%06.6g", -1) == "-00001" +string.format("%06.6g", 2) == "000002" +string.format("%06.6g", -2) == "-00002" +string.format("%06.6g", 3) == "000003" +string.format("%06.6g", -3) == "-00003" +string.format("%06.6g", nan) == " nan" +string.format("%06.6g", inf) == " inf" +string.format("%06.6g", -inf) == " -inf" +string.format("%06.6g", 100) == "000100" +string.format("%06.6g", 10000) == "010000" +string.format("%06.6g", 1000000) == "01e+06" +string.format("%06.6g", 10000000) == "01e+07" +string.format("%06.6g", 0.01) == "000.01" +string.format("%06.6g", 1e-05) == "01e-05" +string.format("%06.6g", 1e-06) == "01e-06" +string.format("%06.6g", 1e-07) == "01e-07" +string.format("%020g", 0) == "00000000000000000000" +string.format("%020g", 1) == "00000000000000000001" +string.format("%020g", -1) == "-0000000000000000001" +string.format("%020g", 2) == "00000000000000000002" +string.format("%020g", -2) == "-0000000000000000002" +string.format("%020g", 3) == "00000000000000000003" +string.format("%020g", -3) == "-0000000000000000003" +string.format("%020g", nan) == " nan" +string.format("%020g", inf) == " inf" +string.format("%020g", -inf) == " -inf" +string.format("%020g", 100) == "00000000000000000100" +string.format("%020g", 10000) == "00000000000000010000" +string.format("%020g", 100000) == "00000000000000100000" +string.format("%020g", 1000000) == "0000000000000001e+06" +string.format("%020g", 10000000) == "0000000000000001e+07" +string.format("%020g", 0.01) == "00000000000000000.01" +string.format("%020g", 0.0001) == "000000000000000.0001" +string.format("%020g", 1e-05) == "0000000000000001e-05" +string.format("%020g", 1e-06) == "0000000000000001e-06" +string.format("%020g", 1e-07) == "0000000000000001e-07" +string.format("%020g", 123.456) == "0000000000000123.456" +string.format("%020g", 1234560000) == "0000000001.23456e+09" +string.format("%020g", 1.23456e-05) == "0000000001.23456e-05" +string.format("%020g", 123.456789123) == "0000000000000123.457" +string.format("%020g", 1234567891.23) == "0000000001.23457e+09" +string.format("%020g", 1.23456789123e-05) == "0000000001.23457e-05" +string.format("%020.0g", 0) == "00000000000000000000" +string.format("%020.0g", 1) == "00000000000000000001" +string.format("%020.0g", -1) == "-0000000000000000001" +string.format("%020.0g", 2) == "00000000000000000002" +string.format("%020.0g", -2) == "-0000000000000000002" +string.format("%020.0g", 3) == "00000000000000000003" +string.format("%020.0g", -3) == "-0000000000000000003" +string.format("%020.0g", nan) == " nan" +string.format("%020.0g", inf) == " inf" +string.format("%020.0g", -inf) == " -inf" +string.format("%020.0g", 100) == "0000000000000001e+02" +string.format("%020.0g", 10000) == "0000000000000001e+04" +string.format("%020.0g", 100000) == "0000000000000001e+05" +string.format("%020.0g", 1000000) == "0000000000000001e+06" +string.format("%020.0g", 10000000) == "0000000000000001e+07" +string.format("%020.0g", 0.01) == "00000000000000000.01" +string.format("%020.0g", 0.0001) == "000000000000000.0001" +string.format("%020.0g", 1e-05) == "0000000000000001e-05" +string.format("%020.0g", 1e-06) == "0000000000000001e-06" +string.format("%020.0g", 1e-07) == "0000000000000001e-07" +string.format("%020.0g", 123.456) == "0000000000000001e+02" +string.format("%020.0g", 1234560000) == "0000000000000001e+09" +string.format("%020.0g", 1.23456e-05) == "0000000000000001e-05" +string.format("%020.0g", 123.456789123) == "0000000000000001e+02" +string.format("%020.0g", 1234567891.23) == "0000000000000001e+09" +string.format("%020.0g", 1.23456789123e-05) == "0000000000000001e-05" +string.format("%020.1g", 0) == "00000000000000000000" +string.format("%020.1g", 1) == "00000000000000000001" +string.format("%020.1g", -1) == "-0000000000000000001" +string.format("%020.1g", 2) == "00000000000000000002" +string.format("%020.1g", -2) == "-0000000000000000002" +string.format("%020.1g", 3) == "00000000000000000003" +string.format("%020.1g", -3) == "-0000000000000000003" +string.format("%020.1g", nan) == " nan" +string.format("%020.1g", inf) == " inf" +string.format("%020.1g", -inf) == " -inf" +string.format("%020.1g", 100) == "0000000000000001e+02" +string.format("%020.1g", 10000) == "0000000000000001e+04" +string.format("%020.1g", 100000) == "0000000000000001e+05" +string.format("%020.1g", 1000000) == "0000000000000001e+06" +string.format("%020.1g", 10000000) == "0000000000000001e+07" +string.format("%020.1g", 0.01) == "00000000000000000.01" +string.format("%020.1g", 0.0001) == "000000000000000.0001" +string.format("%020.1g", 1e-05) == "0000000000000001e-05" +string.format("%020.1g", 1e-06) == "0000000000000001e-06" +string.format("%020.1g", 1e-07) == "0000000000000001e-07" +string.format("%020.1g", 123.456) == "0000000000000001e+02" +string.format("%020.1g", 1234560000) == "0000000000000001e+09" +string.format("%020.1g", 1.23456e-05) == "0000000000000001e-05" +string.format("%020.1g", 123.456789123) == "0000000000000001e+02" +string.format("%020.1g", 1234567891.23) == "0000000000000001e+09" +string.format("%020.1g", 1.23456789123e-05) == "0000000000000001e-05" +string.format("%020.6g", 0) == "00000000000000000000" +string.format("%020.6g", 1) == "00000000000000000001" +string.format("%020.6g", -1) == "-0000000000000000001" +string.format("%020.6g", 2) == "00000000000000000002" +string.format("%020.6g", -2) == "-0000000000000000002" +string.format("%020.6g", 3) == "00000000000000000003" +string.format("%020.6g", -3) == "-0000000000000000003" +string.format("%020.6g", nan) == " nan" +string.format("%020.6g", inf) == " inf" +string.format("%020.6g", -inf) == " -inf" +string.format("%020.6g", 100) == "00000000000000000100" +string.format("%020.6g", 10000) == "00000000000000010000" +string.format("%020.6g", 100000) == "00000000000000100000" +string.format("%020.6g", 1000000) == "0000000000000001e+06" +string.format("%020.6g", 10000000) == "0000000000000001e+07" +string.format("%020.6g", 0.01) == "00000000000000000.01" +string.format("%020.6g", 0.0001) == "000000000000000.0001" +string.format("%020.6g", 1e-05) == "0000000000000001e-05" +string.format("%020.6g", 1e-06) == "0000000000000001e-06" +string.format("%020.6g", 1e-07) == "0000000000000001e-07" +string.format("%020.6g", 123.456) == "0000000000000123.456" +string.format("%020.6g", 1234560000) == "0000000001.23456e+09" +string.format("%020.6g", 1.23456e-05) == "0000000001.23456e-05" +string.format("%020.6g", 123.456789123) == "0000000000000123.457" +string.format("%020.6g", 1234567891.23) == "0000000001.23457e+09" +string.format("%020.6g", 1.23456789123e-05) == "0000000001.23457e-05" +string.format("%0+g", 0) == "+0" +string.format("%0+g", 1) == "+1" +string.format("%0+g", -1) == "-1" +string.format("%0+g", 2) == "+2" +string.format("%0+g", -2) == "-2" +string.format("%0+g", 3) == "+3" +string.format("%0+g", -3) == "-3" +string.format("%0+g", nan) == "+nan" +string.format("%0+g", inf) == "+inf" +string.format("%0+g", -inf) == "-inf" +string.format("%0+g", 100) == "+100" +string.format("%0+g", 10000) == "+10000" +string.format("%0+g", 100000) == "+100000" +string.format("%0+g", 1000000) == "+1e+06" +string.format("%0+g", 10000000) == "+1e+07" +string.format("%0+g", 0.01) == "+0.01" +string.format("%0+g", 0.0001) == "+0.0001" +string.format("%0+g", 1e-05) == "+1e-05" +string.format("%0+g", 1e-06) == "+1e-06" +string.format("%0+g", 1e-07) == "+1e-07" +string.format("%0+g", 123.456) == "+123.456" +string.format("%0+g", 1234560000) == "+1.23456e+09" +string.format("%0+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0+g", 123.456789123) == "+123.457" +string.format("%0+g", 1234567891.23) == "+1.23457e+09" +string.format("%0+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0+.0g", 100) == "+1e+02" +string.format("%0+.0g", 10000) == "+1e+04" +string.format("%0+.0g", 100000) == "+1e+05" +string.format("%0+.0g", 123.456) == "+1e+02" +string.format("%0+.0g", 1234560000) == "+1e+09" +string.format("%0+.0g", 1.23456e-05) == "+1e-05" +string.format("%0+.0g", 123.456789123) == "+1e+02" +string.format("%0+.0g", 1234567891.23) == "+1e+09" +string.format("%0+.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0+.1g", 100) == "+1e+02" +string.format("%0+.1g", 10000) == "+1e+04" +string.format("%0+.1g", 100000) == "+1e+05" +string.format("%0+.1g", 123.456) == "+1e+02" +string.format("%0+.1g", 1234560000) == "+1e+09" +string.format("%0+.1g", 1.23456e-05) == "+1e-05" +string.format("%0+.1g", 123.456789123) == "+1e+02" +string.format("%0+.1g", 1234567891.23) == "+1e+09" +string.format("%0+.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0+1.0g", 100) == "+1e+02" +string.format("%0+1.0g", 10000) == "+1e+04" +string.format("%0+1.0g", 100000) == "+1e+05" +string.format("%0+1.0g", 123.456) == "+1e+02" +string.format("%0+1.0g", 1234560000) == "+1e+09" +string.format("%0+1.0g", 1.23456e-05) == "+1e-05" +string.format("%0+1.0g", 123.456789123) == "+1e+02" +string.format("%0+1.0g", 1234567891.23) == "+1e+09" +string.format("%0+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0+1.1g", 100) == "+1e+02" +string.format("%0+1.1g", 10000) == "+1e+04" +string.format("%0+1.1g", 100000) == "+1e+05" +string.format("%0+1.1g", 123.456) == "+1e+02" +string.format("%0+1.1g", 1234560000) == "+1e+09" +string.format("%0+1.1g", 1.23456e-05) == "+1e-05" +string.format("%0+1.1g", 123.456789123) == "+1e+02" +string.format("%0+1.1g", 1234567891.23) == "+1e+09" +string.format("%0+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0+2.0g", 100) == "+1e+02" +string.format("%0+2.0g", 10000) == "+1e+04" +string.format("%0+2.0g", 100000) == "+1e+05" +string.format("%0+2.0g", 123.456) == "+1e+02" +string.format("%0+2.0g", 1234560000) == "+1e+09" +string.format("%0+2.0g", 1.23456e-05) == "+1e-05" +string.format("%0+2.0g", 123.456789123) == "+1e+02" +string.format("%0+2.0g", 1234567891.23) == "+1e+09" +string.format("%0+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0+2.1g", 100) == "+1e+02" +string.format("%0+2.1g", 10000) == "+1e+04" +string.format("%0+2.1g", 100000) == "+1e+05" +string.format("%0+2.1g", 123.456) == "+1e+02" +string.format("%0+2.1g", 1234560000) == "+1e+09" +string.format("%0+2.1g", 1.23456e-05) == "+1e-05" +string.format("%0+2.1g", 123.456789123) == "+1e+02" +string.format("%0+2.1g", 1234567891.23) == "+1e+09" +string.format("%0+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0+6g", 0) == "+00000" +string.format("%0+6g", 1) == "+00001" +string.format("%0+6g", -1) == "-00001" +string.format("%0+6g", 2) == "+00002" +string.format("%0+6g", -2) == "-00002" +string.format("%0+6g", 3) == "+00003" +string.format("%0+6g", -3) == "-00003" +string.format("%0+6g", nan) == " +nan" +string.format("%0+6g", inf) == " +inf" +string.format("%0+6g", -inf) == " -inf" +string.format("%0+6g", 100) == "+00100" +string.format("%0+6g", 0.01) == "+00.01" +string.format("%0+6.0g", 0) == "+00000" +string.format("%0+6.0g", 1) == "+00001" +string.format("%0+6.0g", -1) == "-00001" +string.format("%0+6.0g", 2) == "+00002" +string.format("%0+6.0g", -2) == "-00002" +string.format("%0+6.0g", 3) == "+00003" +string.format("%0+6.0g", -3) == "-00003" +string.format("%0+6.0g", nan) == " +nan" +string.format("%0+6.0g", inf) == " +inf" +string.format("%0+6.0g", -inf) == " -inf" +string.format("%0+6.0g", 100) == "+1e+02" +string.format("%0+6.0g", 10000) == "+1e+04" +string.format("%0+6.0g", 100000) == "+1e+05" +string.format("%0+6.0g", 0.01) == "+00.01" +string.format("%0+6.0g", 123.456) == "+1e+02" +string.format("%0+6.0g", 1234560000) == "+1e+09" +string.format("%0+6.0g", 1.23456e-05) == "+1e-05" +string.format("%0+6.0g", 123.456789123) == "+1e+02" +string.format("%0+6.0g", 1234567891.23) == "+1e+09" +string.format("%0+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0+6.1g", 0) == "+00000" +string.format("%0+6.1g", 1) == "+00001" +string.format("%0+6.1g", -1) == "-00001" +string.format("%0+6.1g", 2) == "+00002" +string.format("%0+6.1g", -2) == "-00002" +string.format("%0+6.1g", 3) == "+00003" +string.format("%0+6.1g", -3) == "-00003" +string.format("%0+6.1g", nan) == " +nan" +string.format("%0+6.1g", inf) == " +inf" +string.format("%0+6.1g", -inf) == " -inf" +string.format("%0+6.1g", 100) == "+1e+02" +string.format("%0+6.1g", 10000) == "+1e+04" +string.format("%0+6.1g", 100000) == "+1e+05" +string.format("%0+6.1g", 0.01) == "+00.01" +string.format("%0+6.1g", 123.456) == "+1e+02" +string.format("%0+6.1g", 1234560000) == "+1e+09" +string.format("%0+6.1g", 1.23456e-05) == "+1e-05" +string.format("%0+6.1g", 123.456789123) == "+1e+02" +string.format("%0+6.1g", 1234567891.23) == "+1e+09" +string.format("%0+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0+6.6g", 0) == "+00000" +string.format("%0+6.6g", 1) == "+00001" +string.format("%0+6.6g", -1) == "-00001" +string.format("%0+6.6g", 2) == "+00002" +string.format("%0+6.6g", -2) == "-00002" +string.format("%0+6.6g", 3) == "+00003" +string.format("%0+6.6g", -3) == "-00003" +string.format("%0+6.6g", nan) == " +nan" +string.format("%0+6.6g", inf) == " +inf" +string.format("%0+6.6g", -inf) == " -inf" +string.format("%0+6.6g", 100) == "+00100" +string.format("%0+6.6g", 0.01) == "+00.01" +string.format("%0+20g", 0) == "+0000000000000000000" +string.format("%0+20g", 1) == "+0000000000000000001" +string.format("%0+20g", -1) == "-0000000000000000001" +string.format("%0+20g", 2) == "+0000000000000000002" +string.format("%0+20g", -2) == "-0000000000000000002" +string.format("%0+20g", 3) == "+0000000000000000003" +string.format("%0+20g", -3) == "-0000000000000000003" +string.format("%0+20g", nan) == " +nan" +string.format("%0+20g", inf) == " +inf" +string.format("%0+20g", -inf) == " -inf" +string.format("%0+20g", 100) == "+0000000000000000100" +string.format("%0+20g", 10000) == "+0000000000000010000" +string.format("%0+20g", 100000) == "+0000000000000100000" +string.format("%0+20g", 1000000) == "+000000000000001e+06" +string.format("%0+20g", 10000000) == "+000000000000001e+07" +string.format("%0+20g", 0.01) == "+0000000000000000.01" +string.format("%0+20g", 0.0001) == "+00000000000000.0001" +string.format("%0+20g", 1e-05) == "+000000000000001e-05" +string.format("%0+20g", 1e-06) == "+000000000000001e-06" +string.format("%0+20g", 1e-07) == "+000000000000001e-07" +string.format("%0+20g", 123.456) == "+000000000000123.456" +string.format("%0+20g", 1234560000) == "+000000001.23456e+09" +string.format("%0+20g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0+20g", 123.456789123) == "+000000000000123.457" +string.format("%0+20g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0+20g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0+20.0g", 0) == "+0000000000000000000" +string.format("%0+20.0g", 1) == "+0000000000000000001" +string.format("%0+20.0g", -1) == "-0000000000000000001" +string.format("%0+20.0g", 2) == "+0000000000000000002" +string.format("%0+20.0g", -2) == "-0000000000000000002" +string.format("%0+20.0g", 3) == "+0000000000000000003" +string.format("%0+20.0g", -3) == "-0000000000000000003" +string.format("%0+20.0g", nan) == " +nan" +string.format("%0+20.0g", inf) == " +inf" +string.format("%0+20.0g", -inf) == " -inf" +string.format("%0+20.0g", 100) == "+000000000000001e+02" +string.format("%0+20.0g", 10000) == "+000000000000001e+04" +string.format("%0+20.0g", 100000) == "+000000000000001e+05" +string.format("%0+20.0g", 1000000) == "+000000000000001e+06" +string.format("%0+20.0g", 10000000) == "+000000000000001e+07" +string.format("%0+20.0g", 0.01) == "+0000000000000000.01" +string.format("%0+20.0g", 0.0001) == "+00000000000000.0001" +string.format("%0+20.0g", 1e-05) == "+000000000000001e-05" +string.format("%0+20.0g", 1e-06) == "+000000000000001e-06" +string.format("%0+20.0g", 1e-07) == "+000000000000001e-07" +string.format("%0+20.0g", 123.456) == "+000000000000001e+02" +string.format("%0+20.0g", 1234560000) == "+000000000000001e+09" +string.format("%0+20.0g", 1.23456e-05) == "+000000000000001e-05" +string.format("%0+20.0g", 123.456789123) == "+000000000000001e+02" +string.format("%0+20.0g", 1234567891.23) == "+000000000000001e+09" +string.format("%0+20.0g", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0+20.1g", 0) == "+0000000000000000000" +string.format("%0+20.1g", 1) == "+0000000000000000001" +string.format("%0+20.1g", -1) == "-0000000000000000001" +string.format("%0+20.1g", 2) == "+0000000000000000002" +string.format("%0+20.1g", -2) == "-0000000000000000002" +string.format("%0+20.1g", 3) == "+0000000000000000003" +string.format("%0+20.1g", -3) == "-0000000000000000003" +string.format("%0+20.1g", nan) == " +nan" +string.format("%0+20.1g", inf) == " +inf" +string.format("%0+20.1g", -inf) == " -inf" +string.format("%0+20.1g", 100) == "+000000000000001e+02" +string.format("%0+20.1g", 10000) == "+000000000000001e+04" +string.format("%0+20.1g", 100000) == "+000000000000001e+05" +string.format("%0+20.1g", 1000000) == "+000000000000001e+06" +string.format("%0+20.1g", 10000000) == "+000000000000001e+07" +string.format("%0+20.1g", 0.01) == "+0000000000000000.01" +string.format("%0+20.1g", 0.0001) == "+00000000000000.0001" +string.format("%0+20.1g", 1e-05) == "+000000000000001e-05" +string.format("%0+20.1g", 1e-06) == "+000000000000001e-06" +string.format("%0+20.1g", 1e-07) == "+000000000000001e-07" +string.format("%0+20.1g", 123.456) == "+000000000000001e+02" +string.format("%0+20.1g", 1234560000) == "+000000000000001e+09" +string.format("%0+20.1g", 1.23456e-05) == "+000000000000001e-05" +string.format("%0+20.1g", 123.456789123) == "+000000000000001e+02" +string.format("%0+20.1g", 1234567891.23) == "+000000000000001e+09" +string.format("%0+20.1g", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0+20.6g", 0) == "+0000000000000000000" +string.format("%0+20.6g", 1) == "+0000000000000000001" +string.format("%0+20.6g", -1) == "-0000000000000000001" +string.format("%0+20.6g", 2) == "+0000000000000000002" +string.format("%0+20.6g", -2) == "-0000000000000000002" +string.format("%0+20.6g", 3) == "+0000000000000000003" +string.format("%0+20.6g", -3) == "-0000000000000000003" +string.format("%0+20.6g", nan) == " +nan" +string.format("%0+20.6g", inf) == " +inf" +string.format("%0+20.6g", -inf) == " -inf" +string.format("%0+20.6g", 100) == "+0000000000000000100" +string.format("%0+20.6g", 10000) == "+0000000000000010000" +string.format("%0+20.6g", 100000) == "+0000000000000100000" +string.format("%0+20.6g", 1000000) == "+000000000000001e+06" +string.format("%0+20.6g", 10000000) == "+000000000000001e+07" +string.format("%0+20.6g", 0.01) == "+0000000000000000.01" +string.format("%0+20.6g", 0.0001) == "+00000000000000.0001" +string.format("%0+20.6g", 1e-05) == "+000000000000001e-05" +string.format("%0+20.6g", 1e-06) == "+000000000000001e-06" +string.format("%0+20.6g", 1e-07) == "+000000000000001e-07" +string.format("%0+20.6g", 123.456) == "+000000000000123.456" +string.format("%0+20.6g", 1234560000) == "+000000001.23456e+09" +string.format("%0+20.6g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0+20.6g", 123.456789123) == "+000000000000123.457" +string.format("%0+20.6g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0+20.6g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0-g", 0) == "0" +string.format("%0-g", 1) == "1" +string.format("%0-g", -1) == "-1" +string.format("%0-g", 2) == "2" +string.format("%0-g", -2) == "-2" +string.format("%0-g", 3) == "3" +string.format("%0-g", -3) == "-3" +string.format("%0-g", nan) == "nan" +string.format("%0-g", inf) == "inf" +string.format("%0-g", -inf) == "-inf" +string.format("%0-g", 100) == "100" +string.format("%0-g", 10000) == "10000" +string.format("%0-g", 100000) == "100000" +string.format("%0-g", 1000000) == "1e+06" +string.format("%0-g", 10000000) == "1e+07" +string.format("%0-g", 0.01) == "0.01" +string.format("%0-g", 0.0001) == "0.0001" +string.format("%0-g", 1e-05) == "1e-05" +string.format("%0-g", 1e-06) == "1e-06" +string.format("%0-g", 1e-07) == "1e-07" +string.format("%0-g", 123.456) == "123.456" +string.format("%0-g", 1234560000) == "1.23456e+09" +string.format("%0-g", 1.23456e-05) == "1.23456e-05" +string.format("%0-g", 123.456789123) == "123.457" +string.format("%0-g", 1234567891.23) == "1.23457e+09" +string.format("%0-g", 1.23456789123e-05) == "1.23457e-05" +string.format("%0-.0g", 100) == "1e+02" +string.format("%0-.0g", 10000) == "1e+04" +string.format("%0-.0g", 100000) == "1e+05" +string.format("%0-.0g", 123.456) == "1e+02" +string.format("%0-.0g", 1234560000) == "1e+09" +string.format("%0-.0g", 1.23456e-05) == "1e-05" +string.format("%0-.0g", 123.456789123) == "1e+02" +string.format("%0-.0g", 1234567891.23) == "1e+09" +string.format("%0-.0g", 1.23456789123e-05) == "1e-05" +string.format("%0-.1g", 100) == "1e+02" +string.format("%0-.1g", 10000) == "1e+04" +string.format("%0-.1g", 100000) == "1e+05" +string.format("%0-.1g", 123.456) == "1e+02" +string.format("%0-.1g", 1234560000) == "1e+09" +string.format("%0-.1g", 1.23456e-05) == "1e-05" +string.format("%0-.1g", 123.456789123) == "1e+02" +string.format("%0-.1g", 1234567891.23) == "1e+09" +string.format("%0-.1g", 1.23456789123e-05) == "1e-05" +string.format("%0-1.0g", 100) == "1e+02" +string.format("%0-1.0g", 10000) == "1e+04" +string.format("%0-1.0g", 100000) == "1e+05" +string.format("%0-1.0g", 123.456) == "1e+02" +string.format("%0-1.0g", 1234560000) == "1e+09" +string.format("%0-1.0g", 1.23456e-05) == "1e-05" +string.format("%0-1.0g", 123.456789123) == "1e+02" +string.format("%0-1.0g", 1234567891.23) == "1e+09" +string.format("%0-1.0g", 1.23456789123e-05) == "1e-05" +string.format("%0-1.1g", 100) == "1e+02" +string.format("%0-1.1g", 10000) == "1e+04" +string.format("%0-1.1g", 100000) == "1e+05" +string.format("%0-1.1g", 123.456) == "1e+02" +string.format("%0-1.1g", 1234560000) == "1e+09" +string.format("%0-1.1g", 1.23456e-05) == "1e-05" +string.format("%0-1.1g", 123.456789123) == "1e+02" +string.format("%0-1.1g", 1234567891.23) == "1e+09" +string.format("%0-1.1g", 1.23456789123e-05) == "1e-05" +string.format("%0-2g", 0) == "0 " +string.format("%0-2g", 1) == "1 " +string.format("%0-2g", 2) == "2 " +string.format("%0-2g", 3) == "3 " +string.format("%0-2.0g", 0) == "0 " +string.format("%0-2.0g", 1) == "1 " +string.format("%0-2.0g", 2) == "2 " +string.format("%0-2.0g", 3) == "3 " +string.format("%0-2.0g", 100) == "1e+02" +string.format("%0-2.0g", 10000) == "1e+04" +string.format("%0-2.0g", 100000) == "1e+05" +string.format("%0-2.0g", 123.456) == "1e+02" +string.format("%0-2.0g", 1234560000) == "1e+09" +string.format("%0-2.0g", 1.23456e-05) == "1e-05" +string.format("%0-2.0g", 123.456789123) == "1e+02" +string.format("%0-2.0g", 1234567891.23) == "1e+09" +string.format("%0-2.0g", 1.23456789123e-05) == "1e-05" +string.format("%0-2.1g", 0) == "0 " +string.format("%0-2.1g", 1) == "1 " +string.format("%0-2.1g", 2) == "2 " +string.format("%0-2.1g", 3) == "3 " +string.format("%0-2.1g", 100) == "1e+02" +string.format("%0-2.1g", 10000) == "1e+04" +string.format("%0-2.1g", 100000) == "1e+05" +string.format("%0-2.1g", 123.456) == "1e+02" +string.format("%0-2.1g", 1234560000) == "1e+09" +string.format("%0-2.1g", 1.23456e-05) == "1e-05" +string.format("%0-2.1g", 123.456789123) == "1e+02" +string.format("%0-2.1g", 1234567891.23) == "1e+09" +string.format("%0-2.1g", 1.23456789123e-05) == "1e-05" +string.format("%0-2.6g", 0) == "0 " +string.format("%0-2.6g", 1) == "1 " +string.format("%0-2.6g", 2) == "2 " +string.format("%0-2.6g", 3) == "3 " +string.format("%0-6g", 0) == "0 " +string.format("%0-6g", 1) == "1 " +string.format("%0-6g", -1) == "-1 " +string.format("%0-6g", 2) == "2 " +string.format("%0-6g", -2) == "-2 " +string.format("%0-6g", 3) == "3 " +string.format("%0-6g", -3) == "-3 " +string.format("%0-6g", nan) == "nan " +string.format("%0-6g", inf) == "inf " +string.format("%0-6g", -inf) == "-inf " +string.format("%0-6g", 100) == "100 " +string.format("%0-6g", 10000) == "10000 " +string.format("%0-6g", 1000000) == "1e+06 " +string.format("%0-6g", 10000000) == "1e+07 " +string.format("%0-6g", 0.01) == "0.01 " +string.format("%0-6g", 1e-05) == "1e-05 " +string.format("%0-6g", 1e-06) == "1e-06 " +string.format("%0-6g", 1e-07) == "1e-07 " +string.format("%0-6.0g", 0) == "0 " +string.format("%0-6.0g", 1) == "1 " +string.format("%0-6.0g", -1) == "-1 " +string.format("%0-6.0g", 2) == "2 " +string.format("%0-6.0g", -2) == "-2 " +string.format("%0-6.0g", 3) == "3 " +string.format("%0-6.0g", -3) == "-3 " +string.format("%0-6.0g", nan) == "nan " +string.format("%0-6.0g", inf) == "inf " +string.format("%0-6.0g", -inf) == "-inf " +string.format("%0-6.0g", 100) == "1e+02 " +string.format("%0-6.0g", 10000) == "1e+04 " +string.format("%0-6.0g", 100000) == "1e+05 " +string.format("%0-6.0g", 1000000) == "1e+06 " +string.format("%0-6.0g", 10000000) == "1e+07 " +string.format("%0-6.0g", 0.01) == "0.01 " +string.format("%0-6.0g", 1e-05) == "1e-05 " +string.format("%0-6.0g", 1e-06) == "1e-06 " +string.format("%0-6.0g", 1e-07) == "1e-07 " +string.format("%0-6.0g", 123.456) == "1e+02 " +string.format("%0-6.0g", 1234560000) == "1e+09 " +string.format("%0-6.0g", 1.23456e-05) == "1e-05 " +string.format("%0-6.0g", 123.456789123) == "1e+02 " +string.format("%0-6.0g", 1234567891.23) == "1e+09 " +string.format("%0-6.0g", 1.23456789123e-05) == "1e-05 " +string.format("%0-6.1g", 0) == "0 " +string.format("%0-6.1g", 1) == "1 " +string.format("%0-6.1g", -1) == "-1 " +string.format("%0-6.1g", 2) == "2 " +string.format("%0-6.1g", -2) == "-2 " +string.format("%0-6.1g", 3) == "3 " +string.format("%0-6.1g", -3) == "-3 " +string.format("%0-6.1g", nan) == "nan " +string.format("%0-6.1g", inf) == "inf " +string.format("%0-6.1g", -inf) == "-inf " +string.format("%0-6.1g", 100) == "1e+02 " +string.format("%0-6.1g", 10000) == "1e+04 " +string.format("%0-6.1g", 100000) == "1e+05 " +string.format("%0-6.1g", 1000000) == "1e+06 " +string.format("%0-6.1g", 10000000) == "1e+07 " +string.format("%0-6.1g", 0.01) == "0.01 " +string.format("%0-6.1g", 1e-05) == "1e-05 " +string.format("%0-6.1g", 1e-06) == "1e-06 " +string.format("%0-6.1g", 1e-07) == "1e-07 " +string.format("%0-6.1g", 123.456) == "1e+02 " +string.format("%0-6.1g", 1234560000) == "1e+09 " +string.format("%0-6.1g", 1.23456e-05) == "1e-05 " +string.format("%0-6.1g", 123.456789123) == "1e+02 " +string.format("%0-6.1g", 1234567891.23) == "1e+09 " +string.format("%0-6.1g", 1.23456789123e-05) == "1e-05 " +string.format("%0-6.6g", 0) == "0 " +string.format("%0-6.6g", 1) == "1 " +string.format("%0-6.6g", -1) == "-1 " +string.format("%0-6.6g", 2) == "2 " +string.format("%0-6.6g", -2) == "-2 " +string.format("%0-6.6g", 3) == "3 " +string.format("%0-6.6g", -3) == "-3 " +string.format("%0-6.6g", nan) == "nan " +string.format("%0-6.6g", inf) == "inf " +string.format("%0-6.6g", -inf) == "-inf " +string.format("%0-6.6g", 100) == "100 " +string.format("%0-6.6g", 10000) == "10000 " +string.format("%0-6.6g", 1000000) == "1e+06 " +string.format("%0-6.6g", 10000000) == "1e+07 " +string.format("%0-6.6g", 0.01) == "0.01 " +string.format("%0-6.6g", 1e-05) == "1e-05 " +string.format("%0-6.6g", 1e-06) == "1e-06 " +string.format("%0-6.6g", 1e-07) == "1e-07 " +string.format("%0-20g", 0) == "0 " +string.format("%0-20g", 1) == "1 " +string.format("%0-20g", -1) == "-1 " +string.format("%0-20g", 2) == "2 " +string.format("%0-20g", -2) == "-2 " +string.format("%0-20g", 3) == "3 " +string.format("%0-20g", -3) == "-3 " +string.format("%0-20g", nan) == "nan " +string.format("%0-20g", inf) == "inf " +string.format("%0-20g", -inf) == "-inf " +string.format("%0-20g", 100) == "100 " +string.format("%0-20g", 10000) == "10000 " +string.format("%0-20g", 100000) == "100000 " +string.format("%0-20g", 1000000) == "1e+06 " +string.format("%0-20g", 10000000) == "1e+07 " +string.format("%0-20g", 0.01) == "0.01 " +string.format("%0-20g", 0.0001) == "0.0001 " +string.format("%0-20g", 1e-05) == "1e-05 " +string.format("%0-20g", 1e-06) == "1e-06 " +string.format("%0-20g", 1e-07) == "1e-07 " +string.format("%0-20g", 123.456) == "123.456 " +string.format("%0-20g", 1234560000) == "1.23456e+09 " +string.format("%0-20g", 1.23456e-05) == "1.23456e-05 " +string.format("%0-20g", 123.456789123) == "123.457 " +string.format("%0-20g", 1234567891.23) == "1.23457e+09 " +string.format("%0-20g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%0-20.0g", 0) == "0 " +string.format("%0-20.0g", 1) == "1 " +string.format("%0-20.0g", -1) == "-1 " +string.format("%0-20.0g", 2) == "2 " +string.format("%0-20.0g", -2) == "-2 " +string.format("%0-20.0g", 3) == "3 " +string.format("%0-20.0g", -3) == "-3 " +string.format("%0-20.0g", nan) == "nan " +string.format("%0-20.0g", inf) == "inf " +string.format("%0-20.0g", -inf) == "-inf " +string.format("%0-20.0g", 100) == "1e+02 " +string.format("%0-20.0g", 10000) == "1e+04 " +string.format("%0-20.0g", 100000) == "1e+05 " +string.format("%0-20.0g", 1000000) == "1e+06 " +string.format("%0-20.0g", 10000000) == "1e+07 " +string.format("%0-20.0g", 0.01) == "0.01 " +string.format("%0-20.0g", 0.0001) == "0.0001 " +string.format("%0-20.0g", 1e-05) == "1e-05 " +string.format("%0-20.0g", 1e-06) == "1e-06 " +string.format("%0-20.0g", 1e-07) == "1e-07 " +string.format("%0-20.0g", 123.456) == "1e+02 " +string.format("%0-20.0g", 1234560000) == "1e+09 " +string.format("%0-20.0g", 1.23456e-05) == "1e-05 " +string.format("%0-20.0g", 123.456789123) == "1e+02 " +string.format("%0-20.0g", 1234567891.23) == "1e+09 " +string.format("%0-20.0g", 1.23456789123e-05) == "1e-05 " +string.format("%0-20.1g", 0) == "0 " +string.format("%0-20.1g", 1) == "1 " +string.format("%0-20.1g", -1) == "-1 " +string.format("%0-20.1g", 2) == "2 " +string.format("%0-20.1g", -2) == "-2 " +string.format("%0-20.1g", 3) == "3 " +string.format("%0-20.1g", -3) == "-3 " +string.format("%0-20.1g", nan) == "nan " +string.format("%0-20.1g", inf) == "inf " +string.format("%0-20.1g", -inf) == "-inf " +string.format("%0-20.1g", 100) == "1e+02 " +string.format("%0-20.1g", 10000) == "1e+04 " +string.format("%0-20.1g", 100000) == "1e+05 " +string.format("%0-20.1g", 1000000) == "1e+06 " +string.format("%0-20.1g", 10000000) == "1e+07 " +string.format("%0-20.1g", 0.01) == "0.01 " +string.format("%0-20.1g", 0.0001) == "0.0001 " +string.format("%0-20.1g", 1e-05) == "1e-05 " +string.format("%0-20.1g", 1e-06) == "1e-06 " +string.format("%0-20.1g", 1e-07) == "1e-07 " +string.format("%0-20.1g", 123.456) == "1e+02 " +string.format("%0-20.1g", 1234560000) == "1e+09 " +string.format("%0-20.1g", 1.23456e-05) == "1e-05 " +string.format("%0-20.1g", 123.456789123) == "1e+02 " +string.format("%0-20.1g", 1234567891.23) == "1e+09 " +string.format("%0-20.1g", 1.23456789123e-05) == "1e-05 " +string.format("%0-20.6g", 0) == "0 " +string.format("%0-20.6g", 1) == "1 " +string.format("%0-20.6g", -1) == "-1 " +string.format("%0-20.6g", 2) == "2 " +string.format("%0-20.6g", -2) == "-2 " +string.format("%0-20.6g", 3) == "3 " +string.format("%0-20.6g", -3) == "-3 " +string.format("%0-20.6g", nan) == "nan " +string.format("%0-20.6g", inf) == "inf " +string.format("%0-20.6g", -inf) == "-inf " +string.format("%0-20.6g", 100) == "100 " +string.format("%0-20.6g", 10000) == "10000 " +string.format("%0-20.6g", 100000) == "100000 " +string.format("%0-20.6g", 1000000) == "1e+06 " +string.format("%0-20.6g", 10000000) == "1e+07 " +string.format("%0-20.6g", 0.01) == "0.01 " +string.format("%0-20.6g", 0.0001) == "0.0001 " +string.format("%0-20.6g", 1e-05) == "1e-05 " +string.format("%0-20.6g", 1e-06) == "1e-06 " +string.format("%0-20.6g", 1e-07) == "1e-07 " +string.format("%0-20.6g", 123.456) == "123.456 " +string.format("%0-20.6g", 1234560000) == "1.23456e+09 " +string.format("%0-20.6g", 1.23456e-05) == "1.23456e-05 " +string.format("%0-20.6g", 123.456789123) == "123.457 " +string.format("%0-20.6g", 1234567891.23) == "1.23457e+09 " +string.format("%0-20.6g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%0-+g", 0) == "+0" +string.format("%0-+g", 1) == "+1" +string.format("%0-+g", -1) == "-1" +string.format("%0-+g", 2) == "+2" +string.format("%0-+g", -2) == "-2" +string.format("%0-+g", 3) == "+3" +string.format("%0-+g", -3) == "-3" +string.format("%0-+g", nan) == "+nan" +string.format("%0-+g", inf) == "+inf" +string.format("%0-+g", -inf) == "-inf" +string.format("%0-+g", 100) == "+100" +string.format("%0-+g", 10000) == "+10000" +string.format("%0-+g", 100000) == "+100000" +string.format("%0-+g", 1000000) == "+1e+06" +string.format("%0-+g", 10000000) == "+1e+07" +string.format("%0-+g", 0.01) == "+0.01" +string.format("%0-+g", 0.0001) == "+0.0001" +string.format("%0-+g", 1e-05) == "+1e-05" +string.format("%0-+g", 1e-06) == "+1e-06" +string.format("%0-+g", 1e-07) == "+1e-07" +string.format("%0-+g", 123.456) == "+123.456" +string.format("%0-+g", 1234560000) == "+1.23456e+09" +string.format("%0-+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0-+g", 123.456789123) == "+123.457" +string.format("%0-+g", 1234567891.23) == "+1.23457e+09" +string.format("%0-+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0-+.0g", 100) == "+1e+02" +string.format("%0-+.0g", 10000) == "+1e+04" +string.format("%0-+.0g", 100000) == "+1e+05" +string.format("%0-+.0g", 123.456) == "+1e+02" +string.format("%0-+.0g", 1234560000) == "+1e+09" +string.format("%0-+.0g", 1.23456e-05) == "+1e-05" +string.format("%0-+.0g", 123.456789123) == "+1e+02" +string.format("%0-+.0g", 1234567891.23) == "+1e+09" +string.format("%0-+.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+.1g", 100) == "+1e+02" +string.format("%0-+.1g", 10000) == "+1e+04" +string.format("%0-+.1g", 100000) == "+1e+05" +string.format("%0-+.1g", 123.456) == "+1e+02" +string.format("%0-+.1g", 1234560000) == "+1e+09" +string.format("%0-+.1g", 1.23456e-05) == "+1e-05" +string.format("%0-+.1g", 123.456789123) == "+1e+02" +string.format("%0-+.1g", 1234567891.23) == "+1e+09" +string.format("%0-+.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+1.0g", 100) == "+1e+02" +string.format("%0-+1.0g", 10000) == "+1e+04" +string.format("%0-+1.0g", 100000) == "+1e+05" +string.format("%0-+1.0g", 123.456) == "+1e+02" +string.format("%0-+1.0g", 1234560000) == "+1e+09" +string.format("%0-+1.0g", 1.23456e-05) == "+1e-05" +string.format("%0-+1.0g", 123.456789123) == "+1e+02" +string.format("%0-+1.0g", 1234567891.23) == "+1e+09" +string.format("%0-+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+1.1g", 100) == "+1e+02" +string.format("%0-+1.1g", 10000) == "+1e+04" +string.format("%0-+1.1g", 100000) == "+1e+05" +string.format("%0-+1.1g", 123.456) == "+1e+02" +string.format("%0-+1.1g", 1234560000) == "+1e+09" +string.format("%0-+1.1g", 1.23456e-05) == "+1e-05" +string.format("%0-+1.1g", 123.456789123) == "+1e+02" +string.format("%0-+1.1g", 1234567891.23) == "+1e+09" +string.format("%0-+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+2.0g", 100) == "+1e+02" +string.format("%0-+2.0g", 10000) == "+1e+04" +string.format("%0-+2.0g", 100000) == "+1e+05" +string.format("%0-+2.0g", 123.456) == "+1e+02" +string.format("%0-+2.0g", 1234560000) == "+1e+09" +string.format("%0-+2.0g", 1.23456e-05) == "+1e-05" +string.format("%0-+2.0g", 123.456789123) == "+1e+02" +string.format("%0-+2.0g", 1234567891.23) == "+1e+09" +string.format("%0-+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+2.1g", 100) == "+1e+02" +string.format("%0-+2.1g", 10000) == "+1e+04" +string.format("%0-+2.1g", 100000) == "+1e+05" +string.format("%0-+2.1g", 123.456) == "+1e+02" +string.format("%0-+2.1g", 1234560000) == "+1e+09" +string.format("%0-+2.1g", 1.23456e-05) == "+1e-05" +string.format("%0-+2.1g", 123.456789123) == "+1e+02" +string.format("%0-+2.1g", 1234567891.23) == "+1e+09" +string.format("%0-+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+6g", 0) == "+0 " +string.format("%0-+6g", 1) == "+1 " +string.format("%0-+6g", -1) == "-1 " +string.format("%0-+6g", 2) == "+2 " +string.format("%0-+6g", -2) == "-2 " +string.format("%0-+6g", 3) == "+3 " +string.format("%0-+6g", -3) == "-3 " +string.format("%0-+6g", nan) == "+nan " +string.format("%0-+6g", inf) == "+inf " +string.format("%0-+6g", -inf) == "-inf " +string.format("%0-+6g", 100) == "+100 " +string.format("%0-+6g", 0.01) == "+0.01 " +string.format("%0-+6.0g", 0) == "+0 " +string.format("%0-+6.0g", 1) == "+1 " +string.format("%0-+6.0g", -1) == "-1 " +string.format("%0-+6.0g", 2) == "+2 " +string.format("%0-+6.0g", -2) == "-2 " +string.format("%0-+6.0g", 3) == "+3 " +string.format("%0-+6.0g", -3) == "-3 " +string.format("%0-+6.0g", nan) == "+nan " +string.format("%0-+6.0g", inf) == "+inf " +string.format("%0-+6.0g", -inf) == "-inf " +string.format("%0-+6.0g", 100) == "+1e+02" +string.format("%0-+6.0g", 10000) == "+1e+04" +string.format("%0-+6.0g", 100000) == "+1e+05" +string.format("%0-+6.0g", 0.01) == "+0.01 " +string.format("%0-+6.0g", 123.456) == "+1e+02" +string.format("%0-+6.0g", 1234560000) == "+1e+09" +string.format("%0-+6.0g", 1.23456e-05) == "+1e-05" +string.format("%0-+6.0g", 123.456789123) == "+1e+02" +string.format("%0-+6.0g", 1234567891.23) == "+1e+09" +string.format("%0-+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+6.1g", 0) == "+0 " +string.format("%0-+6.1g", 1) == "+1 " +string.format("%0-+6.1g", -1) == "-1 " +string.format("%0-+6.1g", 2) == "+2 " +string.format("%0-+6.1g", -2) == "-2 " +string.format("%0-+6.1g", 3) == "+3 " +string.format("%0-+6.1g", -3) == "-3 " +string.format("%0-+6.1g", nan) == "+nan " +string.format("%0-+6.1g", inf) == "+inf " +string.format("%0-+6.1g", -inf) == "-inf " +string.format("%0-+6.1g", 100) == "+1e+02" +string.format("%0-+6.1g", 10000) == "+1e+04" +string.format("%0-+6.1g", 100000) == "+1e+05" +string.format("%0-+6.1g", 0.01) == "+0.01 " +string.format("%0-+6.1g", 123.456) == "+1e+02" +string.format("%0-+6.1g", 1234560000) == "+1e+09" +string.format("%0-+6.1g", 1.23456e-05) == "+1e-05" +string.format("%0-+6.1g", 123.456789123) == "+1e+02" +string.format("%0-+6.1g", 1234567891.23) == "+1e+09" +string.format("%0-+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0-+6.6g", 0) == "+0 " +string.format("%0-+6.6g", 1) == "+1 " +string.format("%0-+6.6g", -1) == "-1 " +string.format("%0-+6.6g", 2) == "+2 " +string.format("%0-+6.6g", -2) == "-2 " +string.format("%0-+6.6g", 3) == "+3 " +string.format("%0-+6.6g", -3) == "-3 " +string.format("%0-+6.6g", nan) == "+nan " +string.format("%0-+6.6g", inf) == "+inf " +string.format("%0-+6.6g", -inf) == "-inf " +string.format("%0-+6.6g", 100) == "+100 " +string.format("%0-+6.6g", 0.01) == "+0.01 " +string.format("%0-+20g", 0) == "+0 " +string.format("%0-+20g", 1) == "+1 " +string.format("%0-+20g", -1) == "-1 " +string.format("%0-+20g", 2) == "+2 " +string.format("%0-+20g", -2) == "-2 " +string.format("%0-+20g", 3) == "+3 " +string.format("%0-+20g", -3) == "-3 " +string.format("%0-+20g", nan) == "+nan " +string.format("%0-+20g", inf) == "+inf " +string.format("%0-+20g", -inf) == "-inf " +string.format("%0-+20g", 100) == "+100 " +string.format("%0-+20g", 10000) == "+10000 " +string.format("%0-+20g", 100000) == "+100000 " +string.format("%0-+20g", 1000000) == "+1e+06 " +string.format("%0-+20g", 10000000) == "+1e+07 " +string.format("%0-+20g", 0.01) == "+0.01 " +string.format("%0-+20g", 0.0001) == "+0.0001 " +string.format("%0-+20g", 1e-05) == "+1e-05 " +string.format("%0-+20g", 1e-06) == "+1e-06 " +string.format("%0-+20g", 1e-07) == "+1e-07 " +string.format("%0-+20g", 123.456) == "+123.456 " +string.format("%0-+20g", 1234560000) == "+1.23456e+09 " +string.format("%0-+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0-+20g", 123.456789123) == "+123.457 " +string.format("%0-+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%0-+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0-+20.0g", 0) == "+0 " +string.format("%0-+20.0g", 1) == "+1 " +string.format("%0-+20.0g", -1) == "-1 " +string.format("%0-+20.0g", 2) == "+2 " +string.format("%0-+20.0g", -2) == "-2 " +string.format("%0-+20.0g", 3) == "+3 " +string.format("%0-+20.0g", -3) == "-3 " +string.format("%0-+20.0g", nan) == "+nan " +string.format("%0-+20.0g", inf) == "+inf " +string.format("%0-+20.0g", -inf) == "-inf " +string.format("%0-+20.0g", 100) == "+1e+02 " +string.format("%0-+20.0g", 10000) == "+1e+04 " +string.format("%0-+20.0g", 100000) == "+1e+05 " +string.format("%0-+20.0g", 1000000) == "+1e+06 " +string.format("%0-+20.0g", 10000000) == "+1e+07 " +string.format("%0-+20.0g", 0.01) == "+0.01 " +string.format("%0-+20.0g", 0.0001) == "+0.0001 " +string.format("%0-+20.0g", 1e-05) == "+1e-05 " +string.format("%0-+20.0g", 1e-06) == "+1e-06 " +string.format("%0-+20.0g", 1e-07) == "+1e-07 " +string.format("%0-+20.0g", 123.456) == "+1e+02 " +string.format("%0-+20.0g", 1234560000) == "+1e+09 " +string.format("%0-+20.0g", 1.23456e-05) == "+1e-05 " +string.format("%0-+20.0g", 123.456789123) == "+1e+02 " +string.format("%0-+20.0g", 1234567891.23) == "+1e+09 " +string.format("%0-+20.0g", 1.23456789123e-05) == "+1e-05 " +string.format("%0-+20.1g", 0) == "+0 " +string.format("%0-+20.1g", 1) == "+1 " +string.format("%0-+20.1g", -1) == "-1 " +string.format("%0-+20.1g", 2) == "+2 " +string.format("%0-+20.1g", -2) == "-2 " +string.format("%0-+20.1g", 3) == "+3 " +string.format("%0-+20.1g", -3) == "-3 " +string.format("%0-+20.1g", nan) == "+nan " +string.format("%0-+20.1g", inf) == "+inf " +string.format("%0-+20.1g", -inf) == "-inf " +string.format("%0-+20.1g", 100) == "+1e+02 " +string.format("%0-+20.1g", 10000) == "+1e+04 " +string.format("%0-+20.1g", 100000) == "+1e+05 " +string.format("%0-+20.1g", 1000000) == "+1e+06 " +string.format("%0-+20.1g", 10000000) == "+1e+07 " +string.format("%0-+20.1g", 0.01) == "+0.01 " +string.format("%0-+20.1g", 0.0001) == "+0.0001 " +string.format("%0-+20.1g", 1e-05) == "+1e-05 " +string.format("%0-+20.1g", 1e-06) == "+1e-06 " +string.format("%0-+20.1g", 1e-07) == "+1e-07 " +string.format("%0-+20.1g", 123.456) == "+1e+02 " +string.format("%0-+20.1g", 1234560000) == "+1e+09 " +string.format("%0-+20.1g", 1.23456e-05) == "+1e-05 " +string.format("%0-+20.1g", 123.456789123) == "+1e+02 " +string.format("%0-+20.1g", 1234567891.23) == "+1e+09 " +string.format("%0-+20.1g", 1.23456789123e-05) == "+1e-05 " +string.format("%0-+20.6g", 0) == "+0 " +string.format("%0-+20.6g", 1) == "+1 " +string.format("%0-+20.6g", -1) == "-1 " +string.format("%0-+20.6g", 2) == "+2 " +string.format("%0-+20.6g", -2) == "-2 " +string.format("%0-+20.6g", 3) == "+3 " +string.format("%0-+20.6g", -3) == "-3 " +string.format("%0-+20.6g", nan) == "+nan " +string.format("%0-+20.6g", inf) == "+inf " +string.format("%0-+20.6g", -inf) == "-inf " +string.format("%0-+20.6g", 100) == "+100 " +string.format("%0-+20.6g", 10000) == "+10000 " +string.format("%0-+20.6g", 100000) == "+100000 " +string.format("%0-+20.6g", 1000000) == "+1e+06 " +string.format("%0-+20.6g", 10000000) == "+1e+07 " +string.format("%0-+20.6g", 0.01) == "+0.01 " +string.format("%0-+20.6g", 0.0001) == "+0.0001 " +string.format("%0-+20.6g", 1e-05) == "+1e-05 " +string.format("%0-+20.6g", 1e-06) == "+1e-06 " +string.format("%0-+20.6g", 1e-07) == "+1e-07 " +string.format("%0-+20.6g", 123.456) == "+123.456 " +string.format("%0-+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%0-+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0-+20.6g", 123.456789123) == "+123.457 " +string.format("%0-+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%0-+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0 g", 0) == " 0" +string.format("%0 g", 1) == " 1" +string.format("%0 g", -1) == "-1" +string.format("%0 g", 2) == " 2" +string.format("%0 g", -2) == "-2" +string.format("%0 g", 3) == " 3" +string.format("%0 g", -3) == "-3" +string.format("%0 g", nan) == " nan" +string.format("%0 g", inf) == " inf" +string.format("%0 g", -inf) == "-inf" +string.format("%0 g", 100) == " 100" +string.format("%0 g", 10000) == " 10000" +string.format("%0 g", 100000) == " 100000" +string.format("%0 g", 1000000) == " 1e+06" +string.format("%0 g", 10000000) == " 1e+07" +string.format("%0 g", 0.01) == " 0.01" +string.format("%0 g", 0.0001) == " 0.0001" +string.format("%0 g", 1e-05) == " 1e-05" +string.format("%0 g", 1e-06) == " 1e-06" +string.format("%0 g", 1e-07) == " 1e-07" +string.format("%0 g", 123.456) == " 123.456" +string.format("%0 g", 1234560000) == " 1.23456e+09" +string.format("%0 g", 1.23456e-05) == " 1.23456e-05" +string.format("%0 g", 123.456789123) == " 123.457" +string.format("%0 g", 1234567891.23) == " 1.23457e+09" +string.format("%0 g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%0 .0g", 100) == " 1e+02" +string.format("%0 .0g", 10000) == " 1e+04" +string.format("%0 .0g", 100000) == " 1e+05" +string.format("%0 .0g", 123.456) == " 1e+02" +string.format("%0 .0g", 1234560000) == " 1e+09" +string.format("%0 .0g", 1.23456e-05) == " 1e-05" +string.format("%0 .0g", 123.456789123) == " 1e+02" +string.format("%0 .0g", 1234567891.23) == " 1e+09" +string.format("%0 .0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 .1g", 100) == " 1e+02" +string.format("%0 .1g", 10000) == " 1e+04" +string.format("%0 .1g", 100000) == " 1e+05" +string.format("%0 .1g", 123.456) == " 1e+02" +string.format("%0 .1g", 1234560000) == " 1e+09" +string.format("%0 .1g", 1.23456e-05) == " 1e-05" +string.format("%0 .1g", 123.456789123) == " 1e+02" +string.format("%0 .1g", 1234567891.23) == " 1e+09" +string.format("%0 .1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 1.0g", 100) == " 1e+02" +string.format("%0 1.0g", 10000) == " 1e+04" +string.format("%0 1.0g", 100000) == " 1e+05" +string.format("%0 1.0g", 123.456) == " 1e+02" +string.format("%0 1.0g", 1234560000) == " 1e+09" +string.format("%0 1.0g", 1.23456e-05) == " 1e-05" +string.format("%0 1.0g", 123.456789123) == " 1e+02" +string.format("%0 1.0g", 1234567891.23) == " 1e+09" +string.format("%0 1.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 1.1g", 100) == " 1e+02" +string.format("%0 1.1g", 10000) == " 1e+04" +string.format("%0 1.1g", 100000) == " 1e+05" +string.format("%0 1.1g", 123.456) == " 1e+02" +string.format("%0 1.1g", 1234560000) == " 1e+09" +string.format("%0 1.1g", 1.23456e-05) == " 1e-05" +string.format("%0 1.1g", 123.456789123) == " 1e+02" +string.format("%0 1.1g", 1234567891.23) == " 1e+09" +string.format("%0 1.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 2.0g", 100) == " 1e+02" +string.format("%0 2.0g", 10000) == " 1e+04" +string.format("%0 2.0g", 100000) == " 1e+05" +string.format("%0 2.0g", 123.456) == " 1e+02" +string.format("%0 2.0g", 1234560000) == " 1e+09" +string.format("%0 2.0g", 1.23456e-05) == " 1e-05" +string.format("%0 2.0g", 123.456789123) == " 1e+02" +string.format("%0 2.0g", 1234567891.23) == " 1e+09" +string.format("%0 2.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 2.1g", 100) == " 1e+02" +string.format("%0 2.1g", 10000) == " 1e+04" +string.format("%0 2.1g", 100000) == " 1e+05" +string.format("%0 2.1g", 123.456) == " 1e+02" +string.format("%0 2.1g", 1234560000) == " 1e+09" +string.format("%0 2.1g", 1.23456e-05) == " 1e-05" +string.format("%0 2.1g", 123.456789123) == " 1e+02" +string.format("%0 2.1g", 1234567891.23) == " 1e+09" +string.format("%0 2.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 6g", 0) == " 00000" +string.format("%0 6g", 1) == " 00001" +string.format("%0 6g", -1) == "-00001" +string.format("%0 6g", 2) == " 00002" +string.format("%0 6g", -2) == "-00002" +string.format("%0 6g", 3) == " 00003" +string.format("%0 6g", -3) == "-00003" +string.format("%0 6g", nan) == " nan" +string.format("%0 6g", inf) == " inf" +string.format("%0 6g", -inf) == " -inf" +string.format("%0 6g", 100) == " 00100" +string.format("%0 6g", 0.01) == " 00.01" +string.format("%0 6.0g", 0) == " 00000" +string.format("%0 6.0g", 1) == " 00001" +string.format("%0 6.0g", -1) == "-00001" +string.format("%0 6.0g", 2) == " 00002" +string.format("%0 6.0g", -2) == "-00002" +string.format("%0 6.0g", 3) == " 00003" +string.format("%0 6.0g", -3) == "-00003" +string.format("%0 6.0g", nan) == " nan" +string.format("%0 6.0g", inf) == " inf" +string.format("%0 6.0g", -inf) == " -inf" +string.format("%0 6.0g", 100) == " 1e+02" +string.format("%0 6.0g", 10000) == " 1e+04" +string.format("%0 6.0g", 100000) == " 1e+05" +string.format("%0 6.0g", 0.01) == " 00.01" +string.format("%0 6.0g", 123.456) == " 1e+02" +string.format("%0 6.0g", 1234560000) == " 1e+09" +string.format("%0 6.0g", 1.23456e-05) == " 1e-05" +string.format("%0 6.0g", 123.456789123) == " 1e+02" +string.format("%0 6.0g", 1234567891.23) == " 1e+09" +string.format("%0 6.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 6.1g", 0) == " 00000" +string.format("%0 6.1g", 1) == " 00001" +string.format("%0 6.1g", -1) == "-00001" +string.format("%0 6.1g", 2) == " 00002" +string.format("%0 6.1g", -2) == "-00002" +string.format("%0 6.1g", 3) == " 00003" +string.format("%0 6.1g", -3) == "-00003" +string.format("%0 6.1g", nan) == " nan" +string.format("%0 6.1g", inf) == " inf" +string.format("%0 6.1g", -inf) == " -inf" +string.format("%0 6.1g", 100) == " 1e+02" +string.format("%0 6.1g", 10000) == " 1e+04" +string.format("%0 6.1g", 100000) == " 1e+05" +string.format("%0 6.1g", 0.01) == " 00.01" +string.format("%0 6.1g", 123.456) == " 1e+02" +string.format("%0 6.1g", 1234560000) == " 1e+09" +string.format("%0 6.1g", 1.23456e-05) == " 1e-05" +string.format("%0 6.1g", 123.456789123) == " 1e+02" +string.format("%0 6.1g", 1234567891.23) == " 1e+09" +string.format("%0 6.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 6.6g", 0) == " 00000" +string.format("%0 6.6g", 1) == " 00001" +string.format("%0 6.6g", -1) == "-00001" +string.format("%0 6.6g", 2) == " 00002" +string.format("%0 6.6g", -2) == "-00002" +string.format("%0 6.6g", 3) == " 00003" +string.format("%0 6.6g", -3) == "-00003" +string.format("%0 6.6g", nan) == " nan" +string.format("%0 6.6g", inf) == " inf" +string.format("%0 6.6g", -inf) == " -inf" +string.format("%0 6.6g", 100) == " 00100" +string.format("%0 6.6g", 0.01) == " 00.01" +string.format("%0 20g", 0) == " 0000000000000000000" +string.format("%0 20g", 1) == " 0000000000000000001" +string.format("%0 20g", -1) == "-0000000000000000001" +string.format("%0 20g", 2) == " 0000000000000000002" +string.format("%0 20g", -2) == "-0000000000000000002" +string.format("%0 20g", 3) == " 0000000000000000003" +string.format("%0 20g", -3) == "-0000000000000000003" +string.format("%0 20g", nan) == " nan" +string.format("%0 20g", inf) == " inf" +string.format("%0 20g", -inf) == " -inf" +string.format("%0 20g", 100) == " 0000000000000000100" +string.format("%0 20g", 10000) == " 0000000000000010000" +string.format("%0 20g", 100000) == " 0000000000000100000" +string.format("%0 20g", 1000000) == " 000000000000001e+06" +string.format("%0 20g", 10000000) == " 000000000000001e+07" +string.format("%0 20g", 0.01) == " 0000000000000000.01" +string.format("%0 20g", 0.0001) == " 00000000000000.0001" +string.format("%0 20g", 1e-05) == " 000000000000001e-05" +string.format("%0 20g", 1e-06) == " 000000000000001e-06" +string.format("%0 20g", 1e-07) == " 000000000000001e-07" +string.format("%0 20g", 123.456) == " 000000000000123.456" +string.format("%0 20g", 1234560000) == " 000000001.23456e+09" +string.format("%0 20g", 1.23456e-05) == " 000000001.23456e-05" +string.format("%0 20g", 123.456789123) == " 000000000000123.457" +string.format("%0 20g", 1234567891.23) == " 000000001.23457e+09" +string.format("%0 20g", 1.23456789123e-05) == " 000000001.23457e-05" +string.format("%0 20.0g", 0) == " 0000000000000000000" +string.format("%0 20.0g", 1) == " 0000000000000000001" +string.format("%0 20.0g", -1) == "-0000000000000000001" +string.format("%0 20.0g", 2) == " 0000000000000000002" +string.format("%0 20.0g", -2) == "-0000000000000000002" +string.format("%0 20.0g", 3) == " 0000000000000000003" +string.format("%0 20.0g", -3) == "-0000000000000000003" +string.format("%0 20.0g", nan) == " nan" +string.format("%0 20.0g", inf) == " inf" +string.format("%0 20.0g", -inf) == " -inf" +string.format("%0 20.0g", 100) == " 000000000000001e+02" +string.format("%0 20.0g", 10000) == " 000000000000001e+04" +string.format("%0 20.0g", 100000) == " 000000000000001e+05" +string.format("%0 20.0g", 1000000) == " 000000000000001e+06" +string.format("%0 20.0g", 10000000) == " 000000000000001e+07" +string.format("%0 20.0g", 0.01) == " 0000000000000000.01" +string.format("%0 20.0g", 0.0001) == " 00000000000000.0001" +string.format("%0 20.0g", 1e-05) == " 000000000000001e-05" +string.format("%0 20.0g", 1e-06) == " 000000000000001e-06" +string.format("%0 20.0g", 1e-07) == " 000000000000001e-07" +string.format("%0 20.0g", 123.456) == " 000000000000001e+02" +string.format("%0 20.0g", 1234560000) == " 000000000000001e+09" +string.format("%0 20.0g", 1.23456e-05) == " 000000000000001e-05" +string.format("%0 20.0g", 123.456789123) == " 000000000000001e+02" +string.format("%0 20.0g", 1234567891.23) == " 000000000000001e+09" +string.format("%0 20.0g", 1.23456789123e-05) == " 000000000000001e-05" +string.format("%0 20.1g", 0) == " 0000000000000000000" +string.format("%0 20.1g", 1) == " 0000000000000000001" +string.format("%0 20.1g", -1) == "-0000000000000000001" +string.format("%0 20.1g", 2) == " 0000000000000000002" +string.format("%0 20.1g", -2) == "-0000000000000000002" +string.format("%0 20.1g", 3) == " 0000000000000000003" +string.format("%0 20.1g", -3) == "-0000000000000000003" +string.format("%0 20.1g", nan) == " nan" +string.format("%0 20.1g", inf) == " inf" +string.format("%0 20.1g", -inf) == " -inf" +string.format("%0 20.1g", 100) == " 000000000000001e+02" +string.format("%0 20.1g", 10000) == " 000000000000001e+04" +string.format("%0 20.1g", 100000) == " 000000000000001e+05" +string.format("%0 20.1g", 1000000) == " 000000000000001e+06" +string.format("%0 20.1g", 10000000) == " 000000000000001e+07" +string.format("%0 20.1g", 0.01) == " 0000000000000000.01" +string.format("%0 20.1g", 0.0001) == " 00000000000000.0001" +string.format("%0 20.1g", 1e-05) == " 000000000000001e-05" +string.format("%0 20.1g", 1e-06) == " 000000000000001e-06" +string.format("%0 20.1g", 1e-07) == " 000000000000001e-07" +string.format("%0 20.1g", 123.456) == " 000000000000001e+02" +string.format("%0 20.1g", 1234560000) == " 000000000000001e+09" +string.format("%0 20.1g", 1.23456e-05) == " 000000000000001e-05" +string.format("%0 20.1g", 123.456789123) == " 000000000000001e+02" +string.format("%0 20.1g", 1234567891.23) == " 000000000000001e+09" +string.format("%0 20.1g", 1.23456789123e-05) == " 000000000000001e-05" +string.format("%0 20.6g", 0) == " 0000000000000000000" +string.format("%0 20.6g", 1) == " 0000000000000000001" +string.format("%0 20.6g", -1) == "-0000000000000000001" +string.format("%0 20.6g", 2) == " 0000000000000000002" +string.format("%0 20.6g", -2) == "-0000000000000000002" +string.format("%0 20.6g", 3) == " 0000000000000000003" +string.format("%0 20.6g", -3) == "-0000000000000000003" +string.format("%0 20.6g", nan) == " nan" +string.format("%0 20.6g", inf) == " inf" +string.format("%0 20.6g", -inf) == " -inf" +string.format("%0 20.6g", 100) == " 0000000000000000100" +string.format("%0 20.6g", 10000) == " 0000000000000010000" +string.format("%0 20.6g", 100000) == " 0000000000000100000" +string.format("%0 20.6g", 1000000) == " 000000000000001e+06" +string.format("%0 20.6g", 10000000) == " 000000000000001e+07" +string.format("%0 20.6g", 0.01) == " 0000000000000000.01" +string.format("%0 20.6g", 0.0001) == " 00000000000000.0001" +string.format("%0 20.6g", 1e-05) == " 000000000000001e-05" +string.format("%0 20.6g", 1e-06) == " 000000000000001e-06" +string.format("%0 20.6g", 1e-07) == " 000000000000001e-07" +string.format("%0 20.6g", 123.456) == " 000000000000123.456" +string.format("%0 20.6g", 1234560000) == " 000000001.23456e+09" +string.format("%0 20.6g", 1.23456e-05) == " 000000001.23456e-05" +string.format("%0 20.6g", 123.456789123) == " 000000000000123.457" +string.format("%0 20.6g", 1234567891.23) == " 000000001.23457e+09" +string.format("%0 20.6g", 1.23456789123e-05) == " 000000001.23457e-05" +string.format("%0 +g", 0) == "+0" +string.format("%0 +g", 1) == "+1" +string.format("%0 +g", -1) == "-1" +string.format("%0 +g", 2) == "+2" +string.format("%0 +g", -2) == "-2" +string.format("%0 +g", 3) == "+3" +string.format("%0 +g", -3) == "-3" +string.format("%0 +g", nan) == "+nan" +string.format("%0 +g", inf) == "+inf" +string.format("%0 +g", -inf) == "-inf" +string.format("%0 +g", 100) == "+100" +string.format("%0 +g", 10000) == "+10000" +string.format("%0 +g", 100000) == "+100000" +string.format("%0 +g", 1000000) == "+1e+06" +string.format("%0 +g", 10000000) == "+1e+07" +string.format("%0 +g", 0.01) == "+0.01" +string.format("%0 +g", 0.0001) == "+0.0001" +string.format("%0 +g", 1e-05) == "+1e-05" +string.format("%0 +g", 1e-06) == "+1e-06" +string.format("%0 +g", 1e-07) == "+1e-07" +string.format("%0 +g", 123.456) == "+123.456" +string.format("%0 +g", 1234560000) == "+1.23456e+09" +string.format("%0 +g", 1.23456e-05) == "+1.23456e-05" +string.format("%0 +g", 123.456789123) == "+123.457" +string.format("%0 +g", 1234567891.23) == "+1.23457e+09" +string.format("%0 +g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0 +.0g", 100) == "+1e+02" +string.format("%0 +.0g", 10000) == "+1e+04" +string.format("%0 +.0g", 100000) == "+1e+05" +string.format("%0 +.0g", 123.456) == "+1e+02" +string.format("%0 +.0g", 1234560000) == "+1e+09" +string.format("%0 +.0g", 1.23456e-05) == "+1e-05" +string.format("%0 +.0g", 123.456789123) == "+1e+02" +string.format("%0 +.0g", 1234567891.23) == "+1e+09" +string.format("%0 +.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +.1g", 100) == "+1e+02" +string.format("%0 +.1g", 10000) == "+1e+04" +string.format("%0 +.1g", 100000) == "+1e+05" +string.format("%0 +.1g", 123.456) == "+1e+02" +string.format("%0 +.1g", 1234560000) == "+1e+09" +string.format("%0 +.1g", 1.23456e-05) == "+1e-05" +string.format("%0 +.1g", 123.456789123) == "+1e+02" +string.format("%0 +.1g", 1234567891.23) == "+1e+09" +string.format("%0 +.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +1.0g", 100) == "+1e+02" +string.format("%0 +1.0g", 10000) == "+1e+04" +string.format("%0 +1.0g", 100000) == "+1e+05" +string.format("%0 +1.0g", 123.456) == "+1e+02" +string.format("%0 +1.0g", 1234560000) == "+1e+09" +string.format("%0 +1.0g", 1.23456e-05) == "+1e-05" +string.format("%0 +1.0g", 123.456789123) == "+1e+02" +string.format("%0 +1.0g", 1234567891.23) == "+1e+09" +string.format("%0 +1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +1.1g", 100) == "+1e+02" +string.format("%0 +1.1g", 10000) == "+1e+04" +string.format("%0 +1.1g", 100000) == "+1e+05" +string.format("%0 +1.1g", 123.456) == "+1e+02" +string.format("%0 +1.1g", 1234560000) == "+1e+09" +string.format("%0 +1.1g", 1.23456e-05) == "+1e-05" +string.format("%0 +1.1g", 123.456789123) == "+1e+02" +string.format("%0 +1.1g", 1234567891.23) == "+1e+09" +string.format("%0 +1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +2.0g", 100) == "+1e+02" +string.format("%0 +2.0g", 10000) == "+1e+04" +string.format("%0 +2.0g", 100000) == "+1e+05" +string.format("%0 +2.0g", 123.456) == "+1e+02" +string.format("%0 +2.0g", 1234560000) == "+1e+09" +string.format("%0 +2.0g", 1.23456e-05) == "+1e-05" +string.format("%0 +2.0g", 123.456789123) == "+1e+02" +string.format("%0 +2.0g", 1234567891.23) == "+1e+09" +string.format("%0 +2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +2.1g", 100) == "+1e+02" +string.format("%0 +2.1g", 10000) == "+1e+04" +string.format("%0 +2.1g", 100000) == "+1e+05" +string.format("%0 +2.1g", 123.456) == "+1e+02" +string.format("%0 +2.1g", 1234560000) == "+1e+09" +string.format("%0 +2.1g", 1.23456e-05) == "+1e-05" +string.format("%0 +2.1g", 123.456789123) == "+1e+02" +string.format("%0 +2.1g", 1234567891.23) == "+1e+09" +string.format("%0 +2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +6g", 0) == "+00000" +string.format("%0 +6g", 1) == "+00001" +string.format("%0 +6g", -1) == "-00001" +string.format("%0 +6g", 2) == "+00002" +string.format("%0 +6g", -2) == "-00002" +string.format("%0 +6g", 3) == "+00003" +string.format("%0 +6g", -3) == "-00003" +string.format("%0 +6g", nan) == " +nan" +string.format("%0 +6g", inf) == " +inf" +string.format("%0 +6g", -inf) == " -inf" +string.format("%0 +6g", 100) == "+00100" +string.format("%0 +6g", 0.01) == "+00.01" +string.format("%0 +6.0g", 0) == "+00000" +string.format("%0 +6.0g", 1) == "+00001" +string.format("%0 +6.0g", -1) == "-00001" +string.format("%0 +6.0g", 2) == "+00002" +string.format("%0 +6.0g", -2) == "-00002" +string.format("%0 +6.0g", 3) == "+00003" +string.format("%0 +6.0g", -3) == "-00003" +string.format("%0 +6.0g", nan) == " +nan" +string.format("%0 +6.0g", inf) == " +inf" +string.format("%0 +6.0g", -inf) == " -inf" +string.format("%0 +6.0g", 100) == "+1e+02" +string.format("%0 +6.0g", 10000) == "+1e+04" +string.format("%0 +6.0g", 100000) == "+1e+05" +string.format("%0 +6.0g", 0.01) == "+00.01" +string.format("%0 +6.0g", 123.456) == "+1e+02" +string.format("%0 +6.0g", 1234560000) == "+1e+09" +string.format("%0 +6.0g", 1.23456e-05) == "+1e-05" +string.format("%0 +6.0g", 123.456789123) == "+1e+02" +string.format("%0 +6.0g", 1234567891.23) == "+1e+09" +string.format("%0 +6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +6.1g", 0) == "+00000" +string.format("%0 +6.1g", 1) == "+00001" +string.format("%0 +6.1g", -1) == "-00001" +string.format("%0 +6.1g", 2) == "+00002" +string.format("%0 +6.1g", -2) == "-00002" +string.format("%0 +6.1g", 3) == "+00003" +string.format("%0 +6.1g", -3) == "-00003" +string.format("%0 +6.1g", nan) == " +nan" +string.format("%0 +6.1g", inf) == " +inf" +string.format("%0 +6.1g", -inf) == " -inf" +string.format("%0 +6.1g", 100) == "+1e+02" +string.format("%0 +6.1g", 10000) == "+1e+04" +string.format("%0 +6.1g", 100000) == "+1e+05" +string.format("%0 +6.1g", 0.01) == "+00.01" +string.format("%0 +6.1g", 123.456) == "+1e+02" +string.format("%0 +6.1g", 1234560000) == "+1e+09" +string.format("%0 +6.1g", 1.23456e-05) == "+1e-05" +string.format("%0 +6.1g", 123.456789123) == "+1e+02" +string.format("%0 +6.1g", 1234567891.23) == "+1e+09" +string.format("%0 +6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 +6.6g", 0) == "+00000" +string.format("%0 +6.6g", 1) == "+00001" +string.format("%0 +6.6g", -1) == "-00001" +string.format("%0 +6.6g", 2) == "+00002" +string.format("%0 +6.6g", -2) == "-00002" +string.format("%0 +6.6g", 3) == "+00003" +string.format("%0 +6.6g", -3) == "-00003" +string.format("%0 +6.6g", nan) == " +nan" +string.format("%0 +6.6g", inf) == " +inf" +string.format("%0 +6.6g", -inf) == " -inf" +string.format("%0 +6.6g", 100) == "+00100" +string.format("%0 +6.6g", 0.01) == "+00.01" +string.format("%0 +20g", 0) == "+0000000000000000000" +string.format("%0 +20g", 1) == "+0000000000000000001" +string.format("%0 +20g", -1) == "-0000000000000000001" +string.format("%0 +20g", 2) == "+0000000000000000002" +string.format("%0 +20g", -2) == "-0000000000000000002" +string.format("%0 +20g", 3) == "+0000000000000000003" +string.format("%0 +20g", -3) == "-0000000000000000003" +string.format("%0 +20g", nan) == " +nan" +string.format("%0 +20g", inf) == " +inf" +string.format("%0 +20g", -inf) == " -inf" +string.format("%0 +20g", 100) == "+0000000000000000100" +string.format("%0 +20g", 10000) == "+0000000000000010000" +string.format("%0 +20g", 100000) == "+0000000000000100000" +string.format("%0 +20g", 1000000) == "+000000000000001e+06" +string.format("%0 +20g", 10000000) == "+000000000000001e+07" +string.format("%0 +20g", 0.01) == "+0000000000000000.01" +string.format("%0 +20g", 0.0001) == "+00000000000000.0001" +string.format("%0 +20g", 1e-05) == "+000000000000001e-05" +string.format("%0 +20g", 1e-06) == "+000000000000001e-06" +string.format("%0 +20g", 1e-07) == "+000000000000001e-07" +string.format("%0 +20g", 123.456) == "+000000000000123.456" +string.format("%0 +20g", 1234560000) == "+000000001.23456e+09" +string.format("%0 +20g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0 +20g", 123.456789123) == "+000000000000123.457" +string.format("%0 +20g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0 +20g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0 +20.0g", 0) == "+0000000000000000000" +string.format("%0 +20.0g", 1) == "+0000000000000000001" +string.format("%0 +20.0g", -1) == "-0000000000000000001" +string.format("%0 +20.0g", 2) == "+0000000000000000002" +string.format("%0 +20.0g", -2) == "-0000000000000000002" +string.format("%0 +20.0g", 3) == "+0000000000000000003" +string.format("%0 +20.0g", -3) == "-0000000000000000003" +string.format("%0 +20.0g", nan) == " +nan" +string.format("%0 +20.0g", inf) == " +inf" +string.format("%0 +20.0g", -inf) == " -inf" +string.format("%0 +20.0g", 100) == "+000000000000001e+02" +string.format("%0 +20.0g", 10000) == "+000000000000001e+04" +string.format("%0 +20.0g", 100000) == "+000000000000001e+05" +string.format("%0 +20.0g", 1000000) == "+000000000000001e+06" +string.format("%0 +20.0g", 10000000) == "+000000000000001e+07" +string.format("%0 +20.0g", 0.01) == "+0000000000000000.01" +string.format("%0 +20.0g", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.0g", 1e-05) == "+000000000000001e-05" +string.format("%0 +20.0g", 1e-06) == "+000000000000001e-06" +string.format("%0 +20.0g", 1e-07) == "+000000000000001e-07" +string.format("%0 +20.0g", 123.456) == "+000000000000001e+02" +string.format("%0 +20.0g", 1234560000) == "+000000000000001e+09" +string.format("%0 +20.0g", 1.23456e-05) == "+000000000000001e-05" +string.format("%0 +20.0g", 123.456789123) == "+000000000000001e+02" +string.format("%0 +20.0g", 1234567891.23) == "+000000000000001e+09" +string.format("%0 +20.0g", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0 +20.1g", 0) == "+0000000000000000000" +string.format("%0 +20.1g", 1) == "+0000000000000000001" +string.format("%0 +20.1g", -1) == "-0000000000000000001" +string.format("%0 +20.1g", 2) == "+0000000000000000002" +string.format("%0 +20.1g", -2) == "-0000000000000000002" +string.format("%0 +20.1g", 3) == "+0000000000000000003" +string.format("%0 +20.1g", -3) == "-0000000000000000003" +string.format("%0 +20.1g", nan) == " +nan" +string.format("%0 +20.1g", inf) == " +inf" +string.format("%0 +20.1g", -inf) == " -inf" +string.format("%0 +20.1g", 100) == "+000000000000001e+02" +string.format("%0 +20.1g", 10000) == "+000000000000001e+04" +string.format("%0 +20.1g", 100000) == "+000000000000001e+05" +string.format("%0 +20.1g", 1000000) == "+000000000000001e+06" +string.format("%0 +20.1g", 10000000) == "+000000000000001e+07" +string.format("%0 +20.1g", 0.01) == "+0000000000000000.01" +string.format("%0 +20.1g", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.1g", 1e-05) == "+000000000000001e-05" +string.format("%0 +20.1g", 1e-06) == "+000000000000001e-06" +string.format("%0 +20.1g", 1e-07) == "+000000000000001e-07" +string.format("%0 +20.1g", 123.456) == "+000000000000001e+02" +string.format("%0 +20.1g", 1234560000) == "+000000000000001e+09" +string.format("%0 +20.1g", 1.23456e-05) == "+000000000000001e-05" +string.format("%0 +20.1g", 123.456789123) == "+000000000000001e+02" +string.format("%0 +20.1g", 1234567891.23) == "+000000000000001e+09" +string.format("%0 +20.1g", 1.23456789123e-05) == "+000000000000001e-05" +string.format("%0 +20.6g", 0) == "+0000000000000000000" +string.format("%0 +20.6g", 1) == "+0000000000000000001" +string.format("%0 +20.6g", -1) == "-0000000000000000001" +string.format("%0 +20.6g", 2) == "+0000000000000000002" +string.format("%0 +20.6g", -2) == "-0000000000000000002" +string.format("%0 +20.6g", 3) == "+0000000000000000003" +string.format("%0 +20.6g", -3) == "-0000000000000000003" +string.format("%0 +20.6g", nan) == " +nan" +string.format("%0 +20.6g", inf) == " +inf" +string.format("%0 +20.6g", -inf) == " -inf" +string.format("%0 +20.6g", 100) == "+0000000000000000100" +string.format("%0 +20.6g", 10000) == "+0000000000000010000" +string.format("%0 +20.6g", 100000) == "+0000000000000100000" +string.format("%0 +20.6g", 1000000) == "+000000000000001e+06" +string.format("%0 +20.6g", 10000000) == "+000000000000001e+07" +string.format("%0 +20.6g", 0.01) == "+0000000000000000.01" +string.format("%0 +20.6g", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.6g", 1e-05) == "+000000000000001e-05" +string.format("%0 +20.6g", 1e-06) == "+000000000000001e-06" +string.format("%0 +20.6g", 1e-07) == "+000000000000001e-07" +string.format("%0 +20.6g", 123.456) == "+000000000000123.456" +string.format("%0 +20.6g", 1234560000) == "+000000001.23456e+09" +string.format("%0 +20.6g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0 +20.6g", 123.456789123) == "+000000000000123.457" +string.format("%0 +20.6g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0 +20.6g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0 -g", 0) == " 0" +string.format("%0 -g", 1) == " 1" +string.format("%0 -g", -1) == "-1" +string.format("%0 -g", 2) == " 2" +string.format("%0 -g", -2) == "-2" +string.format("%0 -g", 3) == " 3" +string.format("%0 -g", -3) == "-3" +string.format("%0 -g", nan) == " nan" +string.format("%0 -g", inf) == " inf" +string.format("%0 -g", -inf) == "-inf" +string.format("%0 -g", 100) == " 100" +string.format("%0 -g", 10000) == " 10000" +string.format("%0 -g", 100000) == " 100000" +string.format("%0 -g", 1000000) == " 1e+06" +string.format("%0 -g", 10000000) == " 1e+07" +string.format("%0 -g", 0.01) == " 0.01" +string.format("%0 -g", 0.0001) == " 0.0001" +string.format("%0 -g", 1e-05) == " 1e-05" +string.format("%0 -g", 1e-06) == " 1e-06" +string.format("%0 -g", 1e-07) == " 1e-07" +string.format("%0 -g", 123.456) == " 123.456" +string.format("%0 -g", 1234560000) == " 1.23456e+09" +string.format("%0 -g", 1.23456e-05) == " 1.23456e-05" +string.format("%0 -g", 123.456789123) == " 123.457" +string.format("%0 -g", 1234567891.23) == " 1.23457e+09" +string.format("%0 -g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%0 -.0g", 100) == " 1e+02" +string.format("%0 -.0g", 10000) == " 1e+04" +string.format("%0 -.0g", 100000) == " 1e+05" +string.format("%0 -.0g", 123.456) == " 1e+02" +string.format("%0 -.0g", 1234560000) == " 1e+09" +string.format("%0 -.0g", 1.23456e-05) == " 1e-05" +string.format("%0 -.0g", 123.456789123) == " 1e+02" +string.format("%0 -.0g", 1234567891.23) == " 1e+09" +string.format("%0 -.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -.1g", 100) == " 1e+02" +string.format("%0 -.1g", 10000) == " 1e+04" +string.format("%0 -.1g", 100000) == " 1e+05" +string.format("%0 -.1g", 123.456) == " 1e+02" +string.format("%0 -.1g", 1234560000) == " 1e+09" +string.format("%0 -.1g", 1.23456e-05) == " 1e-05" +string.format("%0 -.1g", 123.456789123) == " 1e+02" +string.format("%0 -.1g", 1234567891.23) == " 1e+09" +string.format("%0 -.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -1.0g", 100) == " 1e+02" +string.format("%0 -1.0g", 10000) == " 1e+04" +string.format("%0 -1.0g", 100000) == " 1e+05" +string.format("%0 -1.0g", 123.456) == " 1e+02" +string.format("%0 -1.0g", 1234560000) == " 1e+09" +string.format("%0 -1.0g", 1.23456e-05) == " 1e-05" +string.format("%0 -1.0g", 123.456789123) == " 1e+02" +string.format("%0 -1.0g", 1234567891.23) == " 1e+09" +string.format("%0 -1.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -1.1g", 100) == " 1e+02" +string.format("%0 -1.1g", 10000) == " 1e+04" +string.format("%0 -1.1g", 100000) == " 1e+05" +string.format("%0 -1.1g", 123.456) == " 1e+02" +string.format("%0 -1.1g", 1234560000) == " 1e+09" +string.format("%0 -1.1g", 1.23456e-05) == " 1e-05" +string.format("%0 -1.1g", 123.456789123) == " 1e+02" +string.format("%0 -1.1g", 1234567891.23) == " 1e+09" +string.format("%0 -1.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -2.0g", 100) == " 1e+02" +string.format("%0 -2.0g", 10000) == " 1e+04" +string.format("%0 -2.0g", 100000) == " 1e+05" +string.format("%0 -2.0g", 123.456) == " 1e+02" +string.format("%0 -2.0g", 1234560000) == " 1e+09" +string.format("%0 -2.0g", 1.23456e-05) == " 1e-05" +string.format("%0 -2.0g", 123.456789123) == " 1e+02" +string.format("%0 -2.0g", 1234567891.23) == " 1e+09" +string.format("%0 -2.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -2.1g", 100) == " 1e+02" +string.format("%0 -2.1g", 10000) == " 1e+04" +string.format("%0 -2.1g", 100000) == " 1e+05" +string.format("%0 -2.1g", 123.456) == " 1e+02" +string.format("%0 -2.1g", 1234560000) == " 1e+09" +string.format("%0 -2.1g", 1.23456e-05) == " 1e-05" +string.format("%0 -2.1g", 123.456789123) == " 1e+02" +string.format("%0 -2.1g", 1234567891.23) == " 1e+09" +string.format("%0 -2.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -6g", 0) == " 0 " +string.format("%0 -6g", 1) == " 1 " +string.format("%0 -6g", -1) == "-1 " +string.format("%0 -6g", 2) == " 2 " +string.format("%0 -6g", -2) == "-2 " +string.format("%0 -6g", 3) == " 3 " +string.format("%0 -6g", -3) == "-3 " +string.format("%0 -6g", nan) == " nan " +string.format("%0 -6g", inf) == " inf " +string.format("%0 -6g", -inf) == "-inf " +string.format("%0 -6g", 100) == " 100 " +string.format("%0 -6g", 0.01) == " 0.01 " +string.format("%0 -6.0g", 0) == " 0 " +string.format("%0 -6.0g", 1) == " 1 " +string.format("%0 -6.0g", -1) == "-1 " +string.format("%0 -6.0g", 2) == " 2 " +string.format("%0 -6.0g", -2) == "-2 " +string.format("%0 -6.0g", 3) == " 3 " +string.format("%0 -6.0g", -3) == "-3 " +string.format("%0 -6.0g", nan) == " nan " +string.format("%0 -6.0g", inf) == " inf " +string.format("%0 -6.0g", -inf) == "-inf " +string.format("%0 -6.0g", 100) == " 1e+02" +string.format("%0 -6.0g", 10000) == " 1e+04" +string.format("%0 -6.0g", 100000) == " 1e+05" +string.format("%0 -6.0g", 0.01) == " 0.01 " +string.format("%0 -6.0g", 123.456) == " 1e+02" +string.format("%0 -6.0g", 1234560000) == " 1e+09" +string.format("%0 -6.0g", 1.23456e-05) == " 1e-05" +string.format("%0 -6.0g", 123.456789123) == " 1e+02" +string.format("%0 -6.0g", 1234567891.23) == " 1e+09" +string.format("%0 -6.0g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -6.1g", 0) == " 0 " +string.format("%0 -6.1g", 1) == " 1 " +string.format("%0 -6.1g", -1) == "-1 " +string.format("%0 -6.1g", 2) == " 2 " +string.format("%0 -6.1g", -2) == "-2 " +string.format("%0 -6.1g", 3) == " 3 " +string.format("%0 -6.1g", -3) == "-3 " +string.format("%0 -6.1g", nan) == " nan " +string.format("%0 -6.1g", inf) == " inf " +string.format("%0 -6.1g", -inf) == "-inf " +string.format("%0 -6.1g", 100) == " 1e+02" +string.format("%0 -6.1g", 10000) == " 1e+04" +string.format("%0 -6.1g", 100000) == " 1e+05" +string.format("%0 -6.1g", 0.01) == " 0.01 " +string.format("%0 -6.1g", 123.456) == " 1e+02" +string.format("%0 -6.1g", 1234560000) == " 1e+09" +string.format("%0 -6.1g", 1.23456e-05) == " 1e-05" +string.format("%0 -6.1g", 123.456789123) == " 1e+02" +string.format("%0 -6.1g", 1234567891.23) == " 1e+09" +string.format("%0 -6.1g", 1.23456789123e-05) == " 1e-05" +string.format("%0 -6.6g", 0) == " 0 " +string.format("%0 -6.6g", 1) == " 1 " +string.format("%0 -6.6g", -1) == "-1 " +string.format("%0 -6.6g", 2) == " 2 " +string.format("%0 -6.6g", -2) == "-2 " +string.format("%0 -6.6g", 3) == " 3 " +string.format("%0 -6.6g", -3) == "-3 " +string.format("%0 -6.6g", nan) == " nan " +string.format("%0 -6.6g", inf) == " inf " +string.format("%0 -6.6g", -inf) == "-inf " +string.format("%0 -6.6g", 100) == " 100 " +string.format("%0 -6.6g", 0.01) == " 0.01 " +string.format("%0 -20g", 0) == " 0 " +string.format("%0 -20g", 1) == " 1 " +string.format("%0 -20g", -1) == "-1 " +string.format("%0 -20g", 2) == " 2 " +string.format("%0 -20g", -2) == "-2 " +string.format("%0 -20g", 3) == " 3 " +string.format("%0 -20g", -3) == "-3 " +string.format("%0 -20g", nan) == " nan " +string.format("%0 -20g", inf) == " inf " +string.format("%0 -20g", -inf) == "-inf " +string.format("%0 -20g", 100) == " 100 " +string.format("%0 -20g", 10000) == " 10000 " +string.format("%0 -20g", 100000) == " 100000 " +string.format("%0 -20g", 1000000) == " 1e+06 " +string.format("%0 -20g", 10000000) == " 1e+07 " +string.format("%0 -20g", 0.01) == " 0.01 " +string.format("%0 -20g", 0.0001) == " 0.0001 " +string.format("%0 -20g", 1e-05) == " 1e-05 " +string.format("%0 -20g", 1e-06) == " 1e-06 " +string.format("%0 -20g", 1e-07) == " 1e-07 " +string.format("%0 -20g", 123.456) == " 123.456 " +string.format("%0 -20g", 1234560000) == " 1.23456e+09 " +string.format("%0 -20g", 1.23456e-05) == " 1.23456e-05 " +string.format("%0 -20g", 123.456789123) == " 123.457 " +string.format("%0 -20g", 1234567891.23) == " 1.23457e+09 " +string.format("%0 -20g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%0 -20.0g", 0) == " 0 " +string.format("%0 -20.0g", 1) == " 1 " +string.format("%0 -20.0g", -1) == "-1 " +string.format("%0 -20.0g", 2) == " 2 " +string.format("%0 -20.0g", -2) == "-2 " +string.format("%0 -20.0g", 3) == " 3 " +string.format("%0 -20.0g", -3) == "-3 " +string.format("%0 -20.0g", nan) == " nan " +string.format("%0 -20.0g", inf) == " inf " +string.format("%0 -20.0g", -inf) == "-inf " +string.format("%0 -20.0g", 100) == " 1e+02 " +string.format("%0 -20.0g", 10000) == " 1e+04 " +string.format("%0 -20.0g", 100000) == " 1e+05 " +string.format("%0 -20.0g", 1000000) == " 1e+06 " +string.format("%0 -20.0g", 10000000) == " 1e+07 " +string.format("%0 -20.0g", 0.01) == " 0.01 " +string.format("%0 -20.0g", 0.0001) == " 0.0001 " +string.format("%0 -20.0g", 1e-05) == " 1e-05 " +string.format("%0 -20.0g", 1e-06) == " 1e-06 " +string.format("%0 -20.0g", 1e-07) == " 1e-07 " +string.format("%0 -20.0g", 123.456) == " 1e+02 " +string.format("%0 -20.0g", 1234560000) == " 1e+09 " +string.format("%0 -20.0g", 1.23456e-05) == " 1e-05 " +string.format("%0 -20.0g", 123.456789123) == " 1e+02 " +string.format("%0 -20.0g", 1234567891.23) == " 1e+09 " +string.format("%0 -20.0g", 1.23456789123e-05) == " 1e-05 " +string.format("%0 -20.1g", 0) == " 0 " +string.format("%0 -20.1g", 1) == " 1 " +string.format("%0 -20.1g", -1) == "-1 " +string.format("%0 -20.1g", 2) == " 2 " +string.format("%0 -20.1g", -2) == "-2 " +string.format("%0 -20.1g", 3) == " 3 " +string.format("%0 -20.1g", -3) == "-3 " +string.format("%0 -20.1g", nan) == " nan " +string.format("%0 -20.1g", inf) == " inf " +string.format("%0 -20.1g", -inf) == "-inf " +string.format("%0 -20.1g", 100) == " 1e+02 " +string.format("%0 -20.1g", 10000) == " 1e+04 " +string.format("%0 -20.1g", 100000) == " 1e+05 " +string.format("%0 -20.1g", 1000000) == " 1e+06 " +string.format("%0 -20.1g", 10000000) == " 1e+07 " +string.format("%0 -20.1g", 0.01) == " 0.01 " +string.format("%0 -20.1g", 0.0001) == " 0.0001 " +string.format("%0 -20.1g", 1e-05) == " 1e-05 " +string.format("%0 -20.1g", 1e-06) == " 1e-06 " +string.format("%0 -20.1g", 1e-07) == " 1e-07 " +string.format("%0 -20.1g", 123.456) == " 1e+02 " +string.format("%0 -20.1g", 1234560000) == " 1e+09 " +string.format("%0 -20.1g", 1.23456e-05) == " 1e-05 " +string.format("%0 -20.1g", 123.456789123) == " 1e+02 " +string.format("%0 -20.1g", 1234567891.23) == " 1e+09 " +string.format("%0 -20.1g", 1.23456789123e-05) == " 1e-05 " +string.format("%0 -20.6g", 0) == " 0 " +string.format("%0 -20.6g", 1) == " 1 " +string.format("%0 -20.6g", -1) == "-1 " +string.format("%0 -20.6g", 2) == " 2 " +string.format("%0 -20.6g", -2) == "-2 " +string.format("%0 -20.6g", 3) == " 3 " +string.format("%0 -20.6g", -3) == "-3 " +string.format("%0 -20.6g", nan) == " nan " +string.format("%0 -20.6g", inf) == " inf " +string.format("%0 -20.6g", -inf) == "-inf " +string.format("%0 -20.6g", 100) == " 100 " +string.format("%0 -20.6g", 10000) == " 10000 " +string.format("%0 -20.6g", 100000) == " 100000 " +string.format("%0 -20.6g", 1000000) == " 1e+06 " +string.format("%0 -20.6g", 10000000) == " 1e+07 " +string.format("%0 -20.6g", 0.01) == " 0.01 " +string.format("%0 -20.6g", 0.0001) == " 0.0001 " +string.format("%0 -20.6g", 1e-05) == " 1e-05 " +string.format("%0 -20.6g", 1e-06) == " 1e-06 " +string.format("%0 -20.6g", 1e-07) == " 1e-07 " +string.format("%0 -20.6g", 123.456) == " 123.456 " +string.format("%0 -20.6g", 1234560000) == " 1.23456e+09 " +string.format("%0 -20.6g", 1.23456e-05) == " 1.23456e-05 " +string.format("%0 -20.6g", 123.456789123) == " 123.457 " +string.format("%0 -20.6g", 1234567891.23) == " 1.23457e+09 " +string.format("%0 -20.6g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%0 -+g", 0) == "+0" +string.format("%0 -+g", 1) == "+1" +string.format("%0 -+g", -1) == "-1" +string.format("%0 -+g", 2) == "+2" +string.format("%0 -+g", -2) == "-2" +string.format("%0 -+g", 3) == "+3" +string.format("%0 -+g", -3) == "-3" +string.format("%0 -+g", nan) == "+nan" +string.format("%0 -+g", inf) == "+inf" +string.format("%0 -+g", -inf) == "-inf" +string.format("%0 -+g", 100) == "+100" +string.format("%0 -+g", 10000) == "+10000" +string.format("%0 -+g", 100000) == "+100000" +string.format("%0 -+g", 1000000) == "+1e+06" +string.format("%0 -+g", 10000000) == "+1e+07" +string.format("%0 -+g", 0.01) == "+0.01" +string.format("%0 -+g", 0.0001) == "+0.0001" +string.format("%0 -+g", 1e-05) == "+1e-05" +string.format("%0 -+g", 1e-06) == "+1e-06" +string.format("%0 -+g", 1e-07) == "+1e-07" +string.format("%0 -+g", 123.456) == "+123.456" +string.format("%0 -+g", 1234560000) == "+1.23456e+09" +string.format("%0 -+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0 -+g", 123.456789123) == "+123.457" +string.format("%0 -+g", 1234567891.23) == "+1.23457e+09" +string.format("%0 -+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0 -+.0g", 100) == "+1e+02" +string.format("%0 -+.0g", 10000) == "+1e+04" +string.format("%0 -+.0g", 100000) == "+1e+05" +string.format("%0 -+.0g", 123.456) == "+1e+02" +string.format("%0 -+.0g", 1234560000) == "+1e+09" +string.format("%0 -+.0g", 1.23456e-05) == "+1e-05" +string.format("%0 -+.0g", 123.456789123) == "+1e+02" +string.format("%0 -+.0g", 1234567891.23) == "+1e+09" +string.format("%0 -+.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+.1g", 100) == "+1e+02" +string.format("%0 -+.1g", 10000) == "+1e+04" +string.format("%0 -+.1g", 100000) == "+1e+05" +string.format("%0 -+.1g", 123.456) == "+1e+02" +string.format("%0 -+.1g", 1234560000) == "+1e+09" +string.format("%0 -+.1g", 1.23456e-05) == "+1e-05" +string.format("%0 -+.1g", 123.456789123) == "+1e+02" +string.format("%0 -+.1g", 1234567891.23) == "+1e+09" +string.format("%0 -+.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+1.0g", 100) == "+1e+02" +string.format("%0 -+1.0g", 10000) == "+1e+04" +string.format("%0 -+1.0g", 100000) == "+1e+05" +string.format("%0 -+1.0g", 123.456) == "+1e+02" +string.format("%0 -+1.0g", 1234560000) == "+1e+09" +string.format("%0 -+1.0g", 1.23456e-05) == "+1e-05" +string.format("%0 -+1.0g", 123.456789123) == "+1e+02" +string.format("%0 -+1.0g", 1234567891.23) == "+1e+09" +string.format("%0 -+1.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+1.1g", 100) == "+1e+02" +string.format("%0 -+1.1g", 10000) == "+1e+04" +string.format("%0 -+1.1g", 100000) == "+1e+05" +string.format("%0 -+1.1g", 123.456) == "+1e+02" +string.format("%0 -+1.1g", 1234560000) == "+1e+09" +string.format("%0 -+1.1g", 1.23456e-05) == "+1e-05" +string.format("%0 -+1.1g", 123.456789123) == "+1e+02" +string.format("%0 -+1.1g", 1234567891.23) == "+1e+09" +string.format("%0 -+1.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+2.0g", 100) == "+1e+02" +string.format("%0 -+2.0g", 10000) == "+1e+04" +string.format("%0 -+2.0g", 100000) == "+1e+05" +string.format("%0 -+2.0g", 123.456) == "+1e+02" +string.format("%0 -+2.0g", 1234560000) == "+1e+09" +string.format("%0 -+2.0g", 1.23456e-05) == "+1e-05" +string.format("%0 -+2.0g", 123.456789123) == "+1e+02" +string.format("%0 -+2.0g", 1234567891.23) == "+1e+09" +string.format("%0 -+2.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+2.1g", 100) == "+1e+02" +string.format("%0 -+2.1g", 10000) == "+1e+04" +string.format("%0 -+2.1g", 100000) == "+1e+05" +string.format("%0 -+2.1g", 123.456) == "+1e+02" +string.format("%0 -+2.1g", 1234560000) == "+1e+09" +string.format("%0 -+2.1g", 1.23456e-05) == "+1e-05" +string.format("%0 -+2.1g", 123.456789123) == "+1e+02" +string.format("%0 -+2.1g", 1234567891.23) == "+1e+09" +string.format("%0 -+2.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+6g", 0) == "+0 " +string.format("%0 -+6g", 1) == "+1 " +string.format("%0 -+6g", -1) == "-1 " +string.format("%0 -+6g", 2) == "+2 " +string.format("%0 -+6g", -2) == "-2 " +string.format("%0 -+6g", 3) == "+3 " +string.format("%0 -+6g", -3) == "-3 " +string.format("%0 -+6g", nan) == "+nan " +string.format("%0 -+6g", inf) == "+inf " +string.format("%0 -+6g", -inf) == "-inf " +string.format("%0 -+6g", 100) == "+100 " +string.format("%0 -+6g", 0.01) == "+0.01 " +string.format("%0 -+6.0g", 0) == "+0 " +string.format("%0 -+6.0g", 1) == "+1 " +string.format("%0 -+6.0g", -1) == "-1 " +string.format("%0 -+6.0g", 2) == "+2 " +string.format("%0 -+6.0g", -2) == "-2 " +string.format("%0 -+6.0g", 3) == "+3 " +string.format("%0 -+6.0g", -3) == "-3 " +string.format("%0 -+6.0g", nan) == "+nan " +string.format("%0 -+6.0g", inf) == "+inf " +string.format("%0 -+6.0g", -inf) == "-inf " +string.format("%0 -+6.0g", 100) == "+1e+02" +string.format("%0 -+6.0g", 10000) == "+1e+04" +string.format("%0 -+6.0g", 100000) == "+1e+05" +string.format("%0 -+6.0g", 0.01) == "+0.01 " +string.format("%0 -+6.0g", 123.456) == "+1e+02" +string.format("%0 -+6.0g", 1234560000) == "+1e+09" +string.format("%0 -+6.0g", 1.23456e-05) == "+1e-05" +string.format("%0 -+6.0g", 123.456789123) == "+1e+02" +string.format("%0 -+6.0g", 1234567891.23) == "+1e+09" +string.format("%0 -+6.0g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+6.1g", 0) == "+0 " +string.format("%0 -+6.1g", 1) == "+1 " +string.format("%0 -+6.1g", -1) == "-1 " +string.format("%0 -+6.1g", 2) == "+2 " +string.format("%0 -+6.1g", -2) == "-2 " +string.format("%0 -+6.1g", 3) == "+3 " +string.format("%0 -+6.1g", -3) == "-3 " +string.format("%0 -+6.1g", nan) == "+nan " +string.format("%0 -+6.1g", inf) == "+inf " +string.format("%0 -+6.1g", -inf) == "-inf " +string.format("%0 -+6.1g", 100) == "+1e+02" +string.format("%0 -+6.1g", 10000) == "+1e+04" +string.format("%0 -+6.1g", 100000) == "+1e+05" +string.format("%0 -+6.1g", 0.01) == "+0.01 " +string.format("%0 -+6.1g", 123.456) == "+1e+02" +string.format("%0 -+6.1g", 1234560000) == "+1e+09" +string.format("%0 -+6.1g", 1.23456e-05) == "+1e-05" +string.format("%0 -+6.1g", 123.456789123) == "+1e+02" +string.format("%0 -+6.1g", 1234567891.23) == "+1e+09" +string.format("%0 -+6.1g", 1.23456789123e-05) == "+1e-05" +string.format("%0 -+6.6g", 0) == "+0 " +string.format("%0 -+6.6g", 1) == "+1 " +string.format("%0 -+6.6g", -1) == "-1 " +string.format("%0 -+6.6g", 2) == "+2 " +string.format("%0 -+6.6g", -2) == "-2 " +string.format("%0 -+6.6g", 3) == "+3 " +string.format("%0 -+6.6g", -3) == "-3 " +string.format("%0 -+6.6g", nan) == "+nan " +string.format("%0 -+6.6g", inf) == "+inf " +string.format("%0 -+6.6g", -inf) == "-inf " +string.format("%0 -+6.6g", 100) == "+100 " +string.format("%0 -+6.6g", 0.01) == "+0.01 " +string.format("%0 -+20g", 0) == "+0 " +string.format("%0 -+20g", 1) == "+1 " +string.format("%0 -+20g", -1) == "-1 " +string.format("%0 -+20g", 2) == "+2 " +string.format("%0 -+20g", -2) == "-2 " +string.format("%0 -+20g", 3) == "+3 " +string.format("%0 -+20g", -3) == "-3 " +string.format("%0 -+20g", nan) == "+nan " +string.format("%0 -+20g", inf) == "+inf " +string.format("%0 -+20g", -inf) == "-inf " +string.format("%0 -+20g", 100) == "+100 " +string.format("%0 -+20g", 10000) == "+10000 " +string.format("%0 -+20g", 100000) == "+100000 " +string.format("%0 -+20g", 1000000) == "+1e+06 " +string.format("%0 -+20g", 10000000) == "+1e+07 " +string.format("%0 -+20g", 0.01) == "+0.01 " +string.format("%0 -+20g", 0.0001) == "+0.0001 " +string.format("%0 -+20g", 1e-05) == "+1e-05 " +string.format("%0 -+20g", 1e-06) == "+1e-06 " +string.format("%0 -+20g", 1e-07) == "+1e-07 " +string.format("%0 -+20g", 123.456) == "+123.456 " +string.format("%0 -+20g", 1234560000) == "+1.23456e+09 " +string.format("%0 -+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0 -+20g", 123.456789123) == "+123.457 " +string.format("%0 -+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%0 -+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0 -+20.0g", 0) == "+0 " +string.format("%0 -+20.0g", 1) == "+1 " +string.format("%0 -+20.0g", -1) == "-1 " +string.format("%0 -+20.0g", 2) == "+2 " +string.format("%0 -+20.0g", -2) == "-2 " +string.format("%0 -+20.0g", 3) == "+3 " +string.format("%0 -+20.0g", -3) == "-3 " +string.format("%0 -+20.0g", nan) == "+nan " +string.format("%0 -+20.0g", inf) == "+inf " +string.format("%0 -+20.0g", -inf) == "-inf " +string.format("%0 -+20.0g", 100) == "+1e+02 " +string.format("%0 -+20.0g", 10000) == "+1e+04 " +string.format("%0 -+20.0g", 100000) == "+1e+05 " +string.format("%0 -+20.0g", 1000000) == "+1e+06 " +string.format("%0 -+20.0g", 10000000) == "+1e+07 " +string.format("%0 -+20.0g", 0.01) == "+0.01 " +string.format("%0 -+20.0g", 0.0001) == "+0.0001 " +string.format("%0 -+20.0g", 1e-05) == "+1e-05 " +string.format("%0 -+20.0g", 1e-06) == "+1e-06 " +string.format("%0 -+20.0g", 1e-07) == "+1e-07 " +string.format("%0 -+20.0g", 123.456) == "+1e+02 " +string.format("%0 -+20.0g", 1234560000) == "+1e+09 " +string.format("%0 -+20.0g", 1.23456e-05) == "+1e-05 " +string.format("%0 -+20.0g", 123.456789123) == "+1e+02 " +string.format("%0 -+20.0g", 1234567891.23) == "+1e+09 " +string.format("%0 -+20.0g", 1.23456789123e-05) == "+1e-05 " +string.format("%0 -+20.1g", 0) == "+0 " +string.format("%0 -+20.1g", 1) == "+1 " +string.format("%0 -+20.1g", -1) == "-1 " +string.format("%0 -+20.1g", 2) == "+2 " +string.format("%0 -+20.1g", -2) == "-2 " +string.format("%0 -+20.1g", 3) == "+3 " +string.format("%0 -+20.1g", -3) == "-3 " +string.format("%0 -+20.1g", nan) == "+nan " +string.format("%0 -+20.1g", inf) == "+inf " +string.format("%0 -+20.1g", -inf) == "-inf " +string.format("%0 -+20.1g", 100) == "+1e+02 " +string.format("%0 -+20.1g", 10000) == "+1e+04 " +string.format("%0 -+20.1g", 100000) == "+1e+05 " +string.format("%0 -+20.1g", 1000000) == "+1e+06 " +string.format("%0 -+20.1g", 10000000) == "+1e+07 " +string.format("%0 -+20.1g", 0.01) == "+0.01 " +string.format("%0 -+20.1g", 0.0001) == "+0.0001 " +string.format("%0 -+20.1g", 1e-05) == "+1e-05 " +string.format("%0 -+20.1g", 1e-06) == "+1e-06 " +string.format("%0 -+20.1g", 1e-07) == "+1e-07 " +string.format("%0 -+20.1g", 123.456) == "+1e+02 " +string.format("%0 -+20.1g", 1234560000) == "+1e+09 " +string.format("%0 -+20.1g", 1.23456e-05) == "+1e-05 " +string.format("%0 -+20.1g", 123.456789123) == "+1e+02 " +string.format("%0 -+20.1g", 1234567891.23) == "+1e+09 " +string.format("%0 -+20.1g", 1.23456789123e-05) == "+1e-05 " +string.format("%0 -+20.6g", 0) == "+0 " +string.format("%0 -+20.6g", 1) == "+1 " +string.format("%0 -+20.6g", -1) == "-1 " +string.format("%0 -+20.6g", 2) == "+2 " +string.format("%0 -+20.6g", -2) == "-2 " +string.format("%0 -+20.6g", 3) == "+3 " +string.format("%0 -+20.6g", -3) == "-3 " +string.format("%0 -+20.6g", nan) == "+nan " +string.format("%0 -+20.6g", inf) == "+inf " +string.format("%0 -+20.6g", -inf) == "-inf " +string.format("%0 -+20.6g", 100) == "+100 " +string.format("%0 -+20.6g", 10000) == "+10000 " +string.format("%0 -+20.6g", 100000) == "+100000 " +string.format("%0 -+20.6g", 1000000) == "+1e+06 " +string.format("%0 -+20.6g", 10000000) == "+1e+07 " +string.format("%0 -+20.6g", 0.01) == "+0.01 " +string.format("%0 -+20.6g", 0.0001) == "+0.0001 " +string.format("%0 -+20.6g", 1e-05) == "+1e-05 " +string.format("%0 -+20.6g", 1e-06) == "+1e-06 " +string.format("%0 -+20.6g", 1e-07) == "+1e-07 " +string.format("%0 -+20.6g", 123.456) == "+123.456 " +string.format("%0 -+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%0 -+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0 -+20.6g", 123.456789123) == "+123.457 " +string.format("%0 -+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%0 -+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0#g", 0) == "0.00000" +string.format("%0#g", 1) == "1.00000" +string.format("%0#g", -1) == "-1.00000" +string.format("%0#g", 2) == "2.00000" +string.format("%0#g", -2) == "-2.00000" +string.format("%0#g", 3) == "3.00000" +string.format("%0#g", -3) == "-3.00000" +string.format("%0#g", nan) == "nan" +string.format("%0#g", inf) == "inf" +string.format("%0#g", -inf) == "-inf" +string.format("%0#g", 100) == "100.000" +string.format("%0#g", 10000) == "10000.0" +string.format("%0#g", 100000) == "100000." +string.format("%0#g", 1000000) == "1.00000e+06" +string.format("%0#g", 10000000) == "1.00000e+07" +string.format("%0#g", 0.01) == "0.0100000" +string.format("%0#g", 0.0001) == "0.000100000" +string.format("%0#g", 1e-05) == "1.00000e-05" +string.format("%0#g", 1e-06) == "1.00000e-06" +string.format("%0#g", 1e-07) == "1.00000e-07" +string.format("%0#g", 123.456) == "123.456" +string.format("%0#g", 1234560000) == "1.23456e+09" +string.format("%0#g", 1.23456e-05) == "1.23456e-05" +string.format("%0#g", 123.456789123) == "123.457" +string.format("%0#g", 1234567891.23) == "1.23457e+09" +string.format("%0#g", 1.23456789123e-05) == "1.23457e-05" +string.format("%0#.0g", 0) == "0." +string.format("%0#.0g", 1) == "1." +string.format("%0#.0g", -1) == "-1." +string.format("%0#.0g", 2) == "2." +string.format("%0#.0g", -2) == "-2." +string.format("%0#.0g", 3) == "3." +string.format("%0#.0g", -3) == "-3." +string.format("%0#.0g", 100) == "1.e+02" +string.format("%0#.0g", 10000) == "1.e+04" +string.format("%0#.0g", 100000) == "1.e+05" +string.format("%0#.0g", 1000000) == "1.e+06" +string.format("%0#.0g", 10000000) == "1.e+07" +string.format("%0#.0g", 0.01) == "0.01" +string.format("%0#.0g", 0.0001) == "0.0001" +string.format("%0#.0g", 1e-05) == "1.e-05" +string.format("%0#.0g", 1e-06) == "1.e-06" +string.format("%0#.0g", 1e-07) == "1.e-07" +string.format("%0#.0g", 123.456) == "1.e+02" +string.format("%0#.0g", 1234560000) == "1.e+09" +string.format("%0#.0g", 1.23456e-05) == "1.e-05" +string.format("%0#.0g", 123.456789123) == "1.e+02" +string.format("%0#.0g", 1234567891.23) == "1.e+09" +string.format("%0#.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#.1g", 0) == "0." +string.format("%0#.1g", 1) == "1." +string.format("%0#.1g", -1) == "-1." +string.format("%0#.1g", 2) == "2." +string.format("%0#.1g", -2) == "-2." +string.format("%0#.1g", 3) == "3." +string.format("%0#.1g", -3) == "-3." +string.format("%0#.1g", 100) == "1.e+02" +string.format("%0#.1g", 10000) == "1.e+04" +string.format("%0#.1g", 100000) == "1.e+05" +string.format("%0#.1g", 1000000) == "1.e+06" +string.format("%0#.1g", 10000000) == "1.e+07" +string.format("%0#.1g", 0.01) == "0.01" +string.format("%0#.1g", 0.0001) == "0.0001" +string.format("%0#.1g", 1e-05) == "1.e-05" +string.format("%0#.1g", 1e-06) == "1.e-06" +string.format("%0#.1g", 1e-07) == "1.e-07" +string.format("%0#.1g", 123.456) == "1.e+02" +string.format("%0#.1g", 1234560000) == "1.e+09" +string.format("%0#.1g", 1.23456e-05) == "1.e-05" +string.format("%0#.1g", 123.456789123) == "1.e+02" +string.format("%0#.1g", 1234567891.23) == "1.e+09" +string.format("%0#.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#1.0g", 0) == "0." +string.format("%0#1.0g", 1) == "1." +string.format("%0#1.0g", -1) == "-1." +string.format("%0#1.0g", 2) == "2." +string.format("%0#1.0g", -2) == "-2." +string.format("%0#1.0g", 3) == "3." +string.format("%0#1.0g", -3) == "-3." +string.format("%0#1.0g", 100) == "1.e+02" +string.format("%0#1.0g", 10000) == "1.e+04" +string.format("%0#1.0g", 100000) == "1.e+05" +string.format("%0#1.0g", 1000000) == "1.e+06" +string.format("%0#1.0g", 10000000) == "1.e+07" +string.format("%0#1.0g", 0.01) == "0.01" +string.format("%0#1.0g", 0.0001) == "0.0001" +string.format("%0#1.0g", 1e-05) == "1.e-05" +string.format("%0#1.0g", 1e-06) == "1.e-06" +string.format("%0#1.0g", 1e-07) == "1.e-07" +string.format("%0#1.0g", 123.456) == "1.e+02" +string.format("%0#1.0g", 1234560000) == "1.e+09" +string.format("%0#1.0g", 1.23456e-05) == "1.e-05" +string.format("%0#1.0g", 123.456789123) == "1.e+02" +string.format("%0#1.0g", 1234567891.23) == "1.e+09" +string.format("%0#1.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#1.1g", 0) == "0." +string.format("%0#1.1g", 1) == "1." +string.format("%0#1.1g", -1) == "-1." +string.format("%0#1.1g", 2) == "2." +string.format("%0#1.1g", -2) == "-2." +string.format("%0#1.1g", 3) == "3." +string.format("%0#1.1g", -3) == "-3." +string.format("%0#1.1g", 100) == "1.e+02" +string.format("%0#1.1g", 10000) == "1.e+04" +string.format("%0#1.1g", 100000) == "1.e+05" +string.format("%0#1.1g", 1000000) == "1.e+06" +string.format("%0#1.1g", 10000000) == "1.e+07" +string.format("%0#1.1g", 0.01) == "0.01" +string.format("%0#1.1g", 0.0001) == "0.0001" +string.format("%0#1.1g", 1e-05) == "1.e-05" +string.format("%0#1.1g", 1e-06) == "1.e-06" +string.format("%0#1.1g", 1e-07) == "1.e-07" +string.format("%0#1.1g", 123.456) == "1.e+02" +string.format("%0#1.1g", 1234560000) == "1.e+09" +string.format("%0#1.1g", 1.23456e-05) == "1.e-05" +string.format("%0#1.1g", 123.456789123) == "1.e+02" +string.format("%0#1.1g", 1234567891.23) == "1.e+09" +string.format("%0#1.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#2.0g", 0) == "0." +string.format("%0#2.0g", 1) == "1." +string.format("%0#2.0g", -1) == "-1." +string.format("%0#2.0g", 2) == "2." +string.format("%0#2.0g", -2) == "-2." +string.format("%0#2.0g", 3) == "3." +string.format("%0#2.0g", -3) == "-3." +string.format("%0#2.0g", 100) == "1.e+02" +string.format("%0#2.0g", 10000) == "1.e+04" +string.format("%0#2.0g", 100000) == "1.e+05" +string.format("%0#2.0g", 1000000) == "1.e+06" +string.format("%0#2.0g", 10000000) == "1.e+07" +string.format("%0#2.0g", 0.01) == "0.01" +string.format("%0#2.0g", 0.0001) == "0.0001" +string.format("%0#2.0g", 1e-05) == "1.e-05" +string.format("%0#2.0g", 1e-06) == "1.e-06" +string.format("%0#2.0g", 1e-07) == "1.e-07" +string.format("%0#2.0g", 123.456) == "1.e+02" +string.format("%0#2.0g", 1234560000) == "1.e+09" +string.format("%0#2.0g", 1.23456e-05) == "1.e-05" +string.format("%0#2.0g", 123.456789123) == "1.e+02" +string.format("%0#2.0g", 1234567891.23) == "1.e+09" +string.format("%0#2.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#2.1g", 0) == "0." +string.format("%0#2.1g", 1) == "1." +string.format("%0#2.1g", -1) == "-1." +string.format("%0#2.1g", 2) == "2." +string.format("%0#2.1g", -2) == "-2." +string.format("%0#2.1g", 3) == "3." +string.format("%0#2.1g", -3) == "-3." +string.format("%0#2.1g", 100) == "1.e+02" +string.format("%0#2.1g", 10000) == "1.e+04" +string.format("%0#2.1g", 100000) == "1.e+05" +string.format("%0#2.1g", 1000000) == "1.e+06" +string.format("%0#2.1g", 10000000) == "1.e+07" +string.format("%0#2.1g", 0.01) == "0.01" +string.format("%0#2.1g", 0.0001) == "0.0001" +string.format("%0#2.1g", 1e-05) == "1.e-05" +string.format("%0#2.1g", 1e-06) == "1.e-06" +string.format("%0#2.1g", 1e-07) == "1.e-07" +string.format("%0#2.1g", 123.456) == "1.e+02" +string.format("%0#2.1g", 1234560000) == "1.e+09" +string.format("%0#2.1g", 1.23456e-05) == "1.e-05" +string.format("%0#2.1g", 123.456789123) == "1.e+02" +string.format("%0#2.1g", 1234567891.23) == "1.e+09" +string.format("%0#2.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#6g", nan) == " nan" +string.format("%0#6g", inf) == " inf" +string.format("%0#6g", -inf) == " -inf" +string.format("%0#6.0g", 0) == "00000." +string.format("%0#6.0g", 1) == "00001." +string.format("%0#6.0g", -1) == "-0001." +string.format("%0#6.0g", 2) == "00002." +string.format("%0#6.0g", -2) == "-0002." +string.format("%0#6.0g", 3) == "00003." +string.format("%0#6.0g", -3) == "-0003." +string.format("%0#6.0g", nan) == " nan" +string.format("%0#6.0g", inf) == " inf" +string.format("%0#6.0g", -inf) == " -inf" +string.format("%0#6.0g", 100) == "1.e+02" +string.format("%0#6.0g", 10000) == "1.e+04" +string.format("%0#6.0g", 100000) == "1.e+05" +string.format("%0#6.0g", 1000000) == "1.e+06" +string.format("%0#6.0g", 10000000) == "1.e+07" +string.format("%0#6.0g", 0.01) == "000.01" +string.format("%0#6.0g", 0.0001) == "0.0001" +string.format("%0#6.0g", 1e-05) == "1.e-05" +string.format("%0#6.0g", 1e-06) == "1.e-06" +string.format("%0#6.0g", 1e-07) == "1.e-07" +string.format("%0#6.0g", 123.456) == "1.e+02" +string.format("%0#6.0g", 1234560000) == "1.e+09" +string.format("%0#6.0g", 1.23456e-05) == "1.e-05" +string.format("%0#6.0g", 123.456789123) == "1.e+02" +string.format("%0#6.0g", 1234567891.23) == "1.e+09" +string.format("%0#6.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#6.1g", 0) == "00000." +string.format("%0#6.1g", 1) == "00001." +string.format("%0#6.1g", -1) == "-0001." +string.format("%0#6.1g", 2) == "00002." +string.format("%0#6.1g", -2) == "-0002." +string.format("%0#6.1g", 3) == "00003." +string.format("%0#6.1g", -3) == "-0003." +string.format("%0#6.1g", nan) == " nan" +string.format("%0#6.1g", inf) == " inf" +string.format("%0#6.1g", -inf) == " -inf" +string.format("%0#6.1g", 100) == "1.e+02" +string.format("%0#6.1g", 10000) == "1.e+04" +string.format("%0#6.1g", 100000) == "1.e+05" +string.format("%0#6.1g", 1000000) == "1.e+06" +string.format("%0#6.1g", 10000000) == "1.e+07" +string.format("%0#6.1g", 0.01) == "000.01" +string.format("%0#6.1g", 0.0001) == "0.0001" +string.format("%0#6.1g", 1e-05) == "1.e-05" +string.format("%0#6.1g", 1e-06) == "1.e-06" +string.format("%0#6.1g", 1e-07) == "1.e-07" +string.format("%0#6.1g", 123.456) == "1.e+02" +string.format("%0#6.1g", 1234560000) == "1.e+09" +string.format("%0#6.1g", 1.23456e-05) == "1.e-05" +string.format("%0#6.1g", 123.456789123) == "1.e+02" +string.format("%0#6.1g", 1234567891.23) == "1.e+09" +string.format("%0#6.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#6.6g", nan) == " nan" +string.format("%0#6.6g", inf) == " inf" +string.format("%0#6.6g", -inf) == " -inf" +string.format("%0#20g", 0) == "00000000000000.00000" +string.format("%0#20g", 1) == "00000000000001.00000" +string.format("%0#20g", -1) == "-0000000000001.00000" +string.format("%0#20g", 2) == "00000000000002.00000" +string.format("%0#20g", -2) == "-0000000000002.00000" +string.format("%0#20g", 3) == "00000000000003.00000" +string.format("%0#20g", -3) == "-0000000000003.00000" +string.format("%0#20g", nan) == " nan" +string.format("%0#20g", inf) == " inf" +string.format("%0#20g", -inf) == " -inf" +string.format("%0#20g", 100) == "0000000000000100.000" +string.format("%0#20g", 10000) == "000000000000010000.0" +string.format("%0#20g", 100000) == "0000000000000100000." +string.format("%0#20g", 1000000) == "0000000001.00000e+06" +string.format("%0#20g", 10000000) == "0000000001.00000e+07" +string.format("%0#20g", 0.01) == "000000000000.0100000" +string.format("%0#20g", 0.0001) == "0000000000.000100000" +string.format("%0#20g", 1e-05) == "0000000001.00000e-05" +string.format("%0#20g", 1e-06) == "0000000001.00000e-06" +string.format("%0#20g", 1e-07) == "0000000001.00000e-07" +string.format("%0#20g", 123.456) == "0000000000000123.456" +string.format("%0#20g", 1234560000) == "0000000001.23456e+09" +string.format("%0#20g", 1.23456e-05) == "0000000001.23456e-05" +string.format("%0#20g", 123.456789123) == "0000000000000123.457" +string.format("%0#20g", 1234567891.23) == "0000000001.23457e+09" +string.format("%0#20g", 1.23456789123e-05) == "0000000001.23457e-05" +string.format("%0#20.0g", 0) == "0000000000000000000." +string.format("%0#20.0g", 1) == "0000000000000000001." +string.format("%0#20.0g", -1) == "-000000000000000001." +string.format("%0#20.0g", 2) == "0000000000000000002." +string.format("%0#20.0g", -2) == "-000000000000000002." +string.format("%0#20.0g", 3) == "0000000000000000003." +string.format("%0#20.0g", -3) == "-000000000000000003." +string.format("%0#20.0g", nan) == " nan" +string.format("%0#20.0g", inf) == " inf" +string.format("%0#20.0g", -inf) == " -inf" +string.format("%0#20.0g", 100) == "000000000000001.e+02" +string.format("%0#20.0g", 10000) == "000000000000001.e+04" +string.format("%0#20.0g", 100000) == "000000000000001.e+05" +string.format("%0#20.0g", 1000000) == "000000000000001.e+06" +string.format("%0#20.0g", 10000000) == "000000000000001.e+07" +string.format("%0#20.0g", 0.01) == "00000000000000000.01" +string.format("%0#20.0g", 0.0001) == "000000000000000.0001" +string.format("%0#20.0g", 1e-05) == "000000000000001.e-05" +string.format("%0#20.0g", 1e-06) == "000000000000001.e-06" +string.format("%0#20.0g", 1e-07) == "000000000000001.e-07" +string.format("%0#20.0g", 123.456) == "000000000000001.e+02" +string.format("%0#20.0g", 1234560000) == "000000000000001.e+09" +string.format("%0#20.0g", 1.23456e-05) == "000000000000001.e-05" +string.format("%0#20.0g", 123.456789123) == "000000000000001.e+02" +string.format("%0#20.0g", 1234567891.23) == "000000000000001.e+09" +string.format("%0#20.0g", 1.23456789123e-05) == "000000000000001.e-05" +string.format("%0#20.1g", 0) == "0000000000000000000." +string.format("%0#20.1g", 1) == "0000000000000000001." +string.format("%0#20.1g", -1) == "-000000000000000001." +string.format("%0#20.1g", 2) == "0000000000000000002." +string.format("%0#20.1g", -2) == "-000000000000000002." +string.format("%0#20.1g", 3) == "0000000000000000003." +string.format("%0#20.1g", -3) == "-000000000000000003." +string.format("%0#20.1g", nan) == " nan" +string.format("%0#20.1g", inf) == " inf" +string.format("%0#20.1g", -inf) == " -inf" +string.format("%0#20.1g", 100) == "000000000000001.e+02" +string.format("%0#20.1g", 10000) == "000000000000001.e+04" +string.format("%0#20.1g", 100000) == "000000000000001.e+05" +string.format("%0#20.1g", 1000000) == "000000000000001.e+06" +string.format("%0#20.1g", 10000000) == "000000000000001.e+07" +string.format("%0#20.1g", 0.01) == "00000000000000000.01" +string.format("%0#20.1g", 0.0001) == "000000000000000.0001" +string.format("%0#20.1g", 1e-05) == "000000000000001.e-05" +string.format("%0#20.1g", 1e-06) == "000000000000001.e-06" +string.format("%0#20.1g", 1e-07) == "000000000000001.e-07" +string.format("%0#20.1g", 123.456) == "000000000000001.e+02" +string.format("%0#20.1g", 1234560000) == "000000000000001.e+09" +string.format("%0#20.1g", 1.23456e-05) == "000000000000001.e-05" +string.format("%0#20.1g", 123.456789123) == "000000000000001.e+02" +string.format("%0#20.1g", 1234567891.23) == "000000000000001.e+09" +string.format("%0#20.1g", 1.23456789123e-05) == "000000000000001.e-05" +string.format("%0#20.6g", 0) == "00000000000000.00000" +string.format("%0#20.6g", 1) == "00000000000001.00000" +string.format("%0#20.6g", -1) == "-0000000000001.00000" +string.format("%0#20.6g", 2) == "00000000000002.00000" +string.format("%0#20.6g", -2) == "-0000000000002.00000" +string.format("%0#20.6g", 3) == "00000000000003.00000" +string.format("%0#20.6g", -3) == "-0000000000003.00000" +string.format("%0#20.6g", nan) == " nan" +string.format("%0#20.6g", inf) == " inf" +string.format("%0#20.6g", -inf) == " -inf" +string.format("%0#20.6g", 100) == "0000000000000100.000" +string.format("%0#20.6g", 10000) == "000000000000010000.0" +string.format("%0#20.6g", 100000) == "0000000000000100000." +string.format("%0#20.6g", 1000000) == "0000000001.00000e+06" +string.format("%0#20.6g", 10000000) == "0000000001.00000e+07" +string.format("%0#20.6g", 0.01) == "000000000000.0100000" +string.format("%0#20.6g", 0.0001) == "0000000000.000100000" +string.format("%0#20.6g", 1e-05) == "0000000001.00000e-05" +string.format("%0#20.6g", 1e-06) == "0000000001.00000e-06" +string.format("%0#20.6g", 1e-07) == "0000000001.00000e-07" +string.format("%0#20.6g", 123.456) == "0000000000000123.456" +string.format("%0#20.6g", 1234560000) == "0000000001.23456e+09" +string.format("%0#20.6g", 1.23456e-05) == "0000000001.23456e-05" +string.format("%0#20.6g", 123.456789123) == "0000000000000123.457" +string.format("%0#20.6g", 1234567891.23) == "0000000001.23457e+09" +string.format("%0#20.6g", 1.23456789123e-05) == "0000000001.23457e-05" +string.format("%0#+g", 0) == "+0.00000" +string.format("%0#+g", 1) == "+1.00000" +string.format("%0#+g", -1) == "-1.00000" +string.format("%0#+g", 2) == "+2.00000" +string.format("%0#+g", -2) == "-2.00000" +string.format("%0#+g", 3) == "+3.00000" +string.format("%0#+g", -3) == "-3.00000" +string.format("%0#+g", nan) == "+nan" +string.format("%0#+g", inf) == "+inf" +string.format("%0#+g", -inf) == "-inf" +string.format("%0#+g", 100) == "+100.000" +string.format("%0#+g", 10000) == "+10000.0" +string.format("%0#+g", 100000) == "+100000." +string.format("%0#+g", 1000000) == "+1.00000e+06" +string.format("%0#+g", 10000000) == "+1.00000e+07" +string.format("%0#+g", 0.01) == "+0.0100000" +string.format("%0#+g", 0.0001) == "+0.000100000" +string.format("%0#+g", 1e-05) == "+1.00000e-05" +string.format("%0#+g", 1e-06) == "+1.00000e-06" +string.format("%0#+g", 1e-07) == "+1.00000e-07" +string.format("%0#+g", 123.456) == "+123.456" +string.format("%0#+g", 1234560000) == "+1.23456e+09" +string.format("%0#+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0#+g", 123.456789123) == "+123.457" +string.format("%0#+g", 1234567891.23) == "+1.23457e+09" +string.format("%0#+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0#+.0g", 0) == "+0." +string.format("%0#+.0g", 1) == "+1." +string.format("%0#+.0g", -1) == "-1." +string.format("%0#+.0g", 2) == "+2." +string.format("%0#+.0g", -2) == "-2." +string.format("%0#+.0g", 3) == "+3." +string.format("%0#+.0g", -3) == "-3." +string.format("%0#+.0g", 100) == "+1.e+02" +string.format("%0#+.0g", 10000) == "+1.e+04" +string.format("%0#+.0g", 100000) == "+1.e+05" +string.format("%0#+.0g", 1000000) == "+1.e+06" +string.format("%0#+.0g", 10000000) == "+1.e+07" +string.format("%0#+.0g", 0.01) == "+0.01" +string.format("%0#+.0g", 0.0001) == "+0.0001" +string.format("%0#+.0g", 1e-05) == "+1.e-05" +string.format("%0#+.0g", 1e-06) == "+1.e-06" +string.format("%0#+.0g", 1e-07) == "+1.e-07" +string.format("%0#+.0g", 123.456) == "+1.e+02" +string.format("%0#+.0g", 1234560000) == "+1.e+09" +string.format("%0#+.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#+.0g", 123.456789123) == "+1.e+02" +string.format("%0#+.0g", 1234567891.23) == "+1.e+09" +string.format("%0#+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+.1g", 0) == "+0." +string.format("%0#+.1g", 1) == "+1." +string.format("%0#+.1g", -1) == "-1." +string.format("%0#+.1g", 2) == "+2." +string.format("%0#+.1g", -2) == "-2." +string.format("%0#+.1g", 3) == "+3." +string.format("%0#+.1g", -3) == "-3." +string.format("%0#+.1g", 100) == "+1.e+02" +string.format("%0#+.1g", 10000) == "+1.e+04" +string.format("%0#+.1g", 100000) == "+1.e+05" +string.format("%0#+.1g", 1000000) == "+1.e+06" +string.format("%0#+.1g", 10000000) == "+1.e+07" +string.format("%0#+.1g", 0.01) == "+0.01" +string.format("%0#+.1g", 0.0001) == "+0.0001" +string.format("%0#+.1g", 1e-05) == "+1.e-05" +string.format("%0#+.1g", 1e-06) == "+1.e-06" +string.format("%0#+.1g", 1e-07) == "+1.e-07" +string.format("%0#+.1g", 123.456) == "+1.e+02" +string.format("%0#+.1g", 1234560000) == "+1.e+09" +string.format("%0#+.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#+.1g", 123.456789123) == "+1.e+02" +string.format("%0#+.1g", 1234567891.23) == "+1.e+09" +string.format("%0#+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+1.0g", 0) == "+0." +string.format("%0#+1.0g", 1) == "+1." +string.format("%0#+1.0g", -1) == "-1." +string.format("%0#+1.0g", 2) == "+2." +string.format("%0#+1.0g", -2) == "-2." +string.format("%0#+1.0g", 3) == "+3." +string.format("%0#+1.0g", -3) == "-3." +string.format("%0#+1.0g", 100) == "+1.e+02" +string.format("%0#+1.0g", 10000) == "+1.e+04" +string.format("%0#+1.0g", 100000) == "+1.e+05" +string.format("%0#+1.0g", 1000000) == "+1.e+06" +string.format("%0#+1.0g", 10000000) == "+1.e+07" +string.format("%0#+1.0g", 0.01) == "+0.01" +string.format("%0#+1.0g", 0.0001) == "+0.0001" +string.format("%0#+1.0g", 1e-05) == "+1.e-05" +string.format("%0#+1.0g", 1e-06) == "+1.e-06" +string.format("%0#+1.0g", 1e-07) == "+1.e-07" +string.format("%0#+1.0g", 123.456) == "+1.e+02" +string.format("%0#+1.0g", 1234560000) == "+1.e+09" +string.format("%0#+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#+1.0g", 123.456789123) == "+1.e+02" +string.format("%0#+1.0g", 1234567891.23) == "+1.e+09" +string.format("%0#+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+1.1g", 0) == "+0." +string.format("%0#+1.1g", 1) == "+1." +string.format("%0#+1.1g", -1) == "-1." +string.format("%0#+1.1g", 2) == "+2." +string.format("%0#+1.1g", -2) == "-2." +string.format("%0#+1.1g", 3) == "+3." +string.format("%0#+1.1g", -3) == "-3." +string.format("%0#+1.1g", 100) == "+1.e+02" +string.format("%0#+1.1g", 10000) == "+1.e+04" +string.format("%0#+1.1g", 100000) == "+1.e+05" +string.format("%0#+1.1g", 1000000) == "+1.e+06" +string.format("%0#+1.1g", 10000000) == "+1.e+07" +string.format("%0#+1.1g", 0.01) == "+0.01" +string.format("%0#+1.1g", 0.0001) == "+0.0001" +string.format("%0#+1.1g", 1e-05) == "+1.e-05" +string.format("%0#+1.1g", 1e-06) == "+1.e-06" +string.format("%0#+1.1g", 1e-07) == "+1.e-07" +string.format("%0#+1.1g", 123.456) == "+1.e+02" +string.format("%0#+1.1g", 1234560000) == "+1.e+09" +string.format("%0#+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#+1.1g", 123.456789123) == "+1.e+02" +string.format("%0#+1.1g", 1234567891.23) == "+1.e+09" +string.format("%0#+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+2.0g", 0) == "+0." +string.format("%0#+2.0g", 1) == "+1." +string.format("%0#+2.0g", -1) == "-1." +string.format("%0#+2.0g", 2) == "+2." +string.format("%0#+2.0g", -2) == "-2." +string.format("%0#+2.0g", 3) == "+3." +string.format("%0#+2.0g", -3) == "-3." +string.format("%0#+2.0g", 100) == "+1.e+02" +string.format("%0#+2.0g", 10000) == "+1.e+04" +string.format("%0#+2.0g", 100000) == "+1.e+05" +string.format("%0#+2.0g", 1000000) == "+1.e+06" +string.format("%0#+2.0g", 10000000) == "+1.e+07" +string.format("%0#+2.0g", 0.01) == "+0.01" +string.format("%0#+2.0g", 0.0001) == "+0.0001" +string.format("%0#+2.0g", 1e-05) == "+1.e-05" +string.format("%0#+2.0g", 1e-06) == "+1.e-06" +string.format("%0#+2.0g", 1e-07) == "+1.e-07" +string.format("%0#+2.0g", 123.456) == "+1.e+02" +string.format("%0#+2.0g", 1234560000) == "+1.e+09" +string.format("%0#+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#+2.0g", 123.456789123) == "+1.e+02" +string.format("%0#+2.0g", 1234567891.23) == "+1.e+09" +string.format("%0#+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+2.1g", 0) == "+0." +string.format("%0#+2.1g", 1) == "+1." +string.format("%0#+2.1g", -1) == "-1." +string.format("%0#+2.1g", 2) == "+2." +string.format("%0#+2.1g", -2) == "-2." +string.format("%0#+2.1g", 3) == "+3." +string.format("%0#+2.1g", -3) == "-3." +string.format("%0#+2.1g", 100) == "+1.e+02" +string.format("%0#+2.1g", 10000) == "+1.e+04" +string.format("%0#+2.1g", 100000) == "+1.e+05" +string.format("%0#+2.1g", 1000000) == "+1.e+06" +string.format("%0#+2.1g", 10000000) == "+1.e+07" +string.format("%0#+2.1g", 0.01) == "+0.01" +string.format("%0#+2.1g", 0.0001) == "+0.0001" +string.format("%0#+2.1g", 1e-05) == "+1.e-05" +string.format("%0#+2.1g", 1e-06) == "+1.e-06" +string.format("%0#+2.1g", 1e-07) == "+1.e-07" +string.format("%0#+2.1g", 123.456) == "+1.e+02" +string.format("%0#+2.1g", 1234560000) == "+1.e+09" +string.format("%0#+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#+2.1g", 123.456789123) == "+1.e+02" +string.format("%0#+2.1g", 1234567891.23) == "+1.e+09" +string.format("%0#+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+6g", nan) == " +nan" +string.format("%0#+6g", inf) == " +inf" +string.format("%0#+6g", -inf) == " -inf" +string.format("%0#+6.0g", 0) == "+0000." +string.format("%0#+6.0g", 1) == "+0001." +string.format("%0#+6.0g", -1) == "-0001." +string.format("%0#+6.0g", 2) == "+0002." +string.format("%0#+6.0g", -2) == "-0002." +string.format("%0#+6.0g", 3) == "+0003." +string.format("%0#+6.0g", -3) == "-0003." +string.format("%0#+6.0g", nan) == " +nan" +string.format("%0#+6.0g", inf) == " +inf" +string.format("%0#+6.0g", -inf) == " -inf" +string.format("%0#+6.0g", 100) == "+1.e+02" +string.format("%0#+6.0g", 10000) == "+1.e+04" +string.format("%0#+6.0g", 100000) == "+1.e+05" +string.format("%0#+6.0g", 1000000) == "+1.e+06" +string.format("%0#+6.0g", 10000000) == "+1.e+07" +string.format("%0#+6.0g", 0.01) == "+00.01" +string.format("%0#+6.0g", 0.0001) == "+0.0001" +string.format("%0#+6.0g", 1e-05) == "+1.e-05" +string.format("%0#+6.0g", 1e-06) == "+1.e-06" +string.format("%0#+6.0g", 1e-07) == "+1.e-07" +string.format("%0#+6.0g", 123.456) == "+1.e+02" +string.format("%0#+6.0g", 1234560000) == "+1.e+09" +string.format("%0#+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#+6.0g", 123.456789123) == "+1.e+02" +string.format("%0#+6.0g", 1234567891.23) == "+1.e+09" +string.format("%0#+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+6.1g", 0) == "+0000." +string.format("%0#+6.1g", 1) == "+0001." +string.format("%0#+6.1g", -1) == "-0001." +string.format("%0#+6.1g", 2) == "+0002." +string.format("%0#+6.1g", -2) == "-0002." +string.format("%0#+6.1g", 3) == "+0003." +string.format("%0#+6.1g", -3) == "-0003." +string.format("%0#+6.1g", nan) == " +nan" +string.format("%0#+6.1g", inf) == " +inf" +string.format("%0#+6.1g", -inf) == " -inf" +string.format("%0#+6.1g", 100) == "+1.e+02" +string.format("%0#+6.1g", 10000) == "+1.e+04" +string.format("%0#+6.1g", 100000) == "+1.e+05" +string.format("%0#+6.1g", 1000000) == "+1.e+06" +string.format("%0#+6.1g", 10000000) == "+1.e+07" +string.format("%0#+6.1g", 0.01) == "+00.01" +string.format("%0#+6.1g", 0.0001) == "+0.0001" +string.format("%0#+6.1g", 1e-05) == "+1.e-05" +string.format("%0#+6.1g", 1e-06) == "+1.e-06" +string.format("%0#+6.1g", 1e-07) == "+1.e-07" +string.format("%0#+6.1g", 123.456) == "+1.e+02" +string.format("%0#+6.1g", 1234560000) == "+1.e+09" +string.format("%0#+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#+6.1g", 123.456789123) == "+1.e+02" +string.format("%0#+6.1g", 1234567891.23) == "+1.e+09" +string.format("%0#+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#+6.6g", nan) == " +nan" +string.format("%0#+6.6g", inf) == " +inf" +string.format("%0#+6.6g", -inf) == " -inf" +string.format("%0#+20g", 0) == "+0000000000000.00000" +string.format("%0#+20g", 1) == "+0000000000001.00000" +string.format("%0#+20g", -1) == "-0000000000001.00000" +string.format("%0#+20g", 2) == "+0000000000002.00000" +string.format("%0#+20g", -2) == "-0000000000002.00000" +string.format("%0#+20g", 3) == "+0000000000003.00000" +string.format("%0#+20g", -3) == "-0000000000003.00000" +string.format("%0#+20g", nan) == " +nan" +string.format("%0#+20g", inf) == " +inf" +string.format("%0#+20g", -inf) == " -inf" +string.format("%0#+20g", 100) == "+000000000000100.000" +string.format("%0#+20g", 10000) == "+00000000000010000.0" +string.format("%0#+20g", 100000) == "+000000000000100000." +string.format("%0#+20g", 1000000) == "+000000001.00000e+06" +string.format("%0#+20g", 10000000) == "+000000001.00000e+07" +string.format("%0#+20g", 0.01) == "+00000000000.0100000" +string.format("%0#+20g", 0.0001) == "+000000000.000100000" +string.format("%0#+20g", 1e-05) == "+000000001.00000e-05" +string.format("%0#+20g", 1e-06) == "+000000001.00000e-06" +string.format("%0#+20g", 1e-07) == "+000000001.00000e-07" +string.format("%0#+20g", 123.456) == "+000000000000123.456" +string.format("%0#+20g", 1234560000) == "+000000001.23456e+09" +string.format("%0#+20g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0#+20g", 123.456789123) == "+000000000000123.457" +string.format("%0#+20g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0#+20g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0#+20.0g", 0) == "+000000000000000000." +string.format("%0#+20.0g", 1) == "+000000000000000001." +string.format("%0#+20.0g", -1) == "-000000000000000001." +string.format("%0#+20.0g", 2) == "+000000000000000002." +string.format("%0#+20.0g", -2) == "-000000000000000002." +string.format("%0#+20.0g", 3) == "+000000000000000003." +string.format("%0#+20.0g", -3) == "-000000000000000003." +string.format("%0#+20.0g", nan) == " +nan" +string.format("%0#+20.0g", inf) == " +inf" +string.format("%0#+20.0g", -inf) == " -inf" +string.format("%0#+20.0g", 100) == "+00000000000001.e+02" +string.format("%0#+20.0g", 10000) == "+00000000000001.e+04" +string.format("%0#+20.0g", 100000) == "+00000000000001.e+05" +string.format("%0#+20.0g", 1000000) == "+00000000000001.e+06" +string.format("%0#+20.0g", 10000000) == "+00000000000001.e+07" +string.format("%0#+20.0g", 0.01) == "+0000000000000000.01" +string.format("%0#+20.0g", 0.0001) == "+00000000000000.0001" +string.format("%0#+20.0g", 1e-05) == "+00000000000001.e-05" +string.format("%0#+20.0g", 1e-06) == "+00000000000001.e-06" +string.format("%0#+20.0g", 1e-07) == "+00000000000001.e-07" +string.format("%0#+20.0g", 123.456) == "+00000000000001.e+02" +string.format("%0#+20.0g", 1234560000) == "+00000000000001.e+09" +string.format("%0#+20.0g", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0#+20.0g", 123.456789123) == "+00000000000001.e+02" +string.format("%0#+20.0g", 1234567891.23) == "+00000000000001.e+09" +string.format("%0#+20.0g", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0#+20.1g", 0) == "+000000000000000000." +string.format("%0#+20.1g", 1) == "+000000000000000001." +string.format("%0#+20.1g", -1) == "-000000000000000001." +string.format("%0#+20.1g", 2) == "+000000000000000002." +string.format("%0#+20.1g", -2) == "-000000000000000002." +string.format("%0#+20.1g", 3) == "+000000000000000003." +string.format("%0#+20.1g", -3) == "-000000000000000003." +string.format("%0#+20.1g", nan) == " +nan" +string.format("%0#+20.1g", inf) == " +inf" +string.format("%0#+20.1g", -inf) == " -inf" +string.format("%0#+20.1g", 100) == "+00000000000001.e+02" +string.format("%0#+20.1g", 10000) == "+00000000000001.e+04" +string.format("%0#+20.1g", 100000) == "+00000000000001.e+05" +string.format("%0#+20.1g", 1000000) == "+00000000000001.e+06" +string.format("%0#+20.1g", 10000000) == "+00000000000001.e+07" +string.format("%0#+20.1g", 0.01) == "+0000000000000000.01" +string.format("%0#+20.1g", 0.0001) == "+00000000000000.0001" +string.format("%0#+20.1g", 1e-05) == "+00000000000001.e-05" +string.format("%0#+20.1g", 1e-06) == "+00000000000001.e-06" +string.format("%0#+20.1g", 1e-07) == "+00000000000001.e-07" +string.format("%0#+20.1g", 123.456) == "+00000000000001.e+02" +string.format("%0#+20.1g", 1234560000) == "+00000000000001.e+09" +string.format("%0#+20.1g", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0#+20.1g", 123.456789123) == "+00000000000001.e+02" +string.format("%0#+20.1g", 1234567891.23) == "+00000000000001.e+09" +string.format("%0#+20.1g", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0#+20.6g", 0) == "+0000000000000.00000" +string.format("%0#+20.6g", 1) == "+0000000000001.00000" +string.format("%0#+20.6g", -1) == "-0000000000001.00000" +string.format("%0#+20.6g", 2) == "+0000000000002.00000" +string.format("%0#+20.6g", -2) == "-0000000000002.00000" +string.format("%0#+20.6g", 3) == "+0000000000003.00000" +string.format("%0#+20.6g", -3) == "-0000000000003.00000" +string.format("%0#+20.6g", nan) == " +nan" +string.format("%0#+20.6g", inf) == " +inf" +string.format("%0#+20.6g", -inf) == " -inf" +string.format("%0#+20.6g", 100) == "+000000000000100.000" +string.format("%0#+20.6g", 10000) == "+00000000000010000.0" +string.format("%0#+20.6g", 100000) == "+000000000000100000." +string.format("%0#+20.6g", 1000000) == "+000000001.00000e+06" +string.format("%0#+20.6g", 10000000) == "+000000001.00000e+07" +string.format("%0#+20.6g", 0.01) == "+00000000000.0100000" +string.format("%0#+20.6g", 0.0001) == "+000000000.000100000" +string.format("%0#+20.6g", 1e-05) == "+000000001.00000e-05" +string.format("%0#+20.6g", 1e-06) == "+000000001.00000e-06" +string.format("%0#+20.6g", 1e-07) == "+000000001.00000e-07" +string.format("%0#+20.6g", 123.456) == "+000000000000123.456" +string.format("%0#+20.6g", 1234560000) == "+000000001.23456e+09" +string.format("%0#+20.6g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0#+20.6g", 123.456789123) == "+000000000000123.457" +string.format("%0#+20.6g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0#+20.6g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0#-g", 0) == "0.00000" +string.format("%0#-g", 1) == "1.00000" +string.format("%0#-g", -1) == "-1.00000" +string.format("%0#-g", 2) == "2.00000" +string.format("%0#-g", -2) == "-2.00000" +string.format("%0#-g", 3) == "3.00000" +string.format("%0#-g", -3) == "-3.00000" +string.format("%0#-g", nan) == "nan" +string.format("%0#-g", inf) == "inf" +string.format("%0#-g", -inf) == "-inf" +string.format("%0#-g", 100) == "100.000" +string.format("%0#-g", 10000) == "10000.0" +string.format("%0#-g", 100000) == "100000." +string.format("%0#-g", 1000000) == "1.00000e+06" +string.format("%0#-g", 10000000) == "1.00000e+07" +string.format("%0#-g", 0.01) == "0.0100000" +string.format("%0#-g", 0.0001) == "0.000100000" +string.format("%0#-g", 1e-05) == "1.00000e-05" +string.format("%0#-g", 1e-06) == "1.00000e-06" +string.format("%0#-g", 1e-07) == "1.00000e-07" +string.format("%0#-g", 123.456) == "123.456" +string.format("%0#-g", 1234560000) == "1.23456e+09" +string.format("%0#-g", 1.23456e-05) == "1.23456e-05" +string.format("%0#-g", 123.456789123) == "123.457" +string.format("%0#-g", 1234567891.23) == "1.23457e+09" +string.format("%0#-g", 1.23456789123e-05) == "1.23457e-05" +string.format("%0#-.0g", 0) == "0." +string.format("%0#-.0g", 1) == "1." +string.format("%0#-.0g", -1) == "-1." +string.format("%0#-.0g", 2) == "2." +string.format("%0#-.0g", -2) == "-2." +string.format("%0#-.0g", 3) == "3." +string.format("%0#-.0g", -3) == "-3." +string.format("%0#-.0g", 100) == "1.e+02" +string.format("%0#-.0g", 10000) == "1.e+04" +string.format("%0#-.0g", 100000) == "1.e+05" +string.format("%0#-.0g", 1000000) == "1.e+06" +string.format("%0#-.0g", 10000000) == "1.e+07" +string.format("%0#-.0g", 0.01) == "0.01" +string.format("%0#-.0g", 0.0001) == "0.0001" +string.format("%0#-.0g", 1e-05) == "1.e-05" +string.format("%0#-.0g", 1e-06) == "1.e-06" +string.format("%0#-.0g", 1e-07) == "1.e-07" +string.format("%0#-.0g", 123.456) == "1.e+02" +string.format("%0#-.0g", 1234560000) == "1.e+09" +string.format("%0#-.0g", 1.23456e-05) == "1.e-05" +string.format("%0#-.0g", 123.456789123) == "1.e+02" +string.format("%0#-.0g", 1234567891.23) == "1.e+09" +string.format("%0#-.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-.1g", 0) == "0." +string.format("%0#-.1g", 1) == "1." +string.format("%0#-.1g", -1) == "-1." +string.format("%0#-.1g", 2) == "2." +string.format("%0#-.1g", -2) == "-2." +string.format("%0#-.1g", 3) == "3." +string.format("%0#-.1g", -3) == "-3." +string.format("%0#-.1g", 100) == "1.e+02" +string.format("%0#-.1g", 10000) == "1.e+04" +string.format("%0#-.1g", 100000) == "1.e+05" +string.format("%0#-.1g", 1000000) == "1.e+06" +string.format("%0#-.1g", 10000000) == "1.e+07" +string.format("%0#-.1g", 0.01) == "0.01" +string.format("%0#-.1g", 0.0001) == "0.0001" +string.format("%0#-.1g", 1e-05) == "1.e-05" +string.format("%0#-.1g", 1e-06) == "1.e-06" +string.format("%0#-.1g", 1e-07) == "1.e-07" +string.format("%0#-.1g", 123.456) == "1.e+02" +string.format("%0#-.1g", 1234560000) == "1.e+09" +string.format("%0#-.1g", 1.23456e-05) == "1.e-05" +string.format("%0#-.1g", 123.456789123) == "1.e+02" +string.format("%0#-.1g", 1234567891.23) == "1.e+09" +string.format("%0#-.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-1.0g", 0) == "0." +string.format("%0#-1.0g", 1) == "1." +string.format("%0#-1.0g", -1) == "-1." +string.format("%0#-1.0g", 2) == "2." +string.format("%0#-1.0g", -2) == "-2." +string.format("%0#-1.0g", 3) == "3." +string.format("%0#-1.0g", -3) == "-3." +string.format("%0#-1.0g", 100) == "1.e+02" +string.format("%0#-1.0g", 10000) == "1.e+04" +string.format("%0#-1.0g", 100000) == "1.e+05" +string.format("%0#-1.0g", 1000000) == "1.e+06" +string.format("%0#-1.0g", 10000000) == "1.e+07" +string.format("%0#-1.0g", 0.01) == "0.01" +string.format("%0#-1.0g", 0.0001) == "0.0001" +string.format("%0#-1.0g", 1e-05) == "1.e-05" +string.format("%0#-1.0g", 1e-06) == "1.e-06" +string.format("%0#-1.0g", 1e-07) == "1.e-07" +string.format("%0#-1.0g", 123.456) == "1.e+02" +string.format("%0#-1.0g", 1234560000) == "1.e+09" +string.format("%0#-1.0g", 1.23456e-05) == "1.e-05" +string.format("%0#-1.0g", 123.456789123) == "1.e+02" +string.format("%0#-1.0g", 1234567891.23) == "1.e+09" +string.format("%0#-1.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-1.1g", 0) == "0." +string.format("%0#-1.1g", 1) == "1." +string.format("%0#-1.1g", -1) == "-1." +string.format("%0#-1.1g", 2) == "2." +string.format("%0#-1.1g", -2) == "-2." +string.format("%0#-1.1g", 3) == "3." +string.format("%0#-1.1g", -3) == "-3." +string.format("%0#-1.1g", 100) == "1.e+02" +string.format("%0#-1.1g", 10000) == "1.e+04" +string.format("%0#-1.1g", 100000) == "1.e+05" +string.format("%0#-1.1g", 1000000) == "1.e+06" +string.format("%0#-1.1g", 10000000) == "1.e+07" +string.format("%0#-1.1g", 0.01) == "0.01" +string.format("%0#-1.1g", 0.0001) == "0.0001" +string.format("%0#-1.1g", 1e-05) == "1.e-05" +string.format("%0#-1.1g", 1e-06) == "1.e-06" +string.format("%0#-1.1g", 1e-07) == "1.e-07" +string.format("%0#-1.1g", 123.456) == "1.e+02" +string.format("%0#-1.1g", 1234560000) == "1.e+09" +string.format("%0#-1.1g", 1.23456e-05) == "1.e-05" +string.format("%0#-1.1g", 123.456789123) == "1.e+02" +string.format("%0#-1.1g", 1234567891.23) == "1.e+09" +string.format("%0#-1.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-2.0g", 0) == "0." +string.format("%0#-2.0g", 1) == "1." +string.format("%0#-2.0g", -1) == "-1." +string.format("%0#-2.0g", 2) == "2." +string.format("%0#-2.0g", -2) == "-2." +string.format("%0#-2.0g", 3) == "3." +string.format("%0#-2.0g", -3) == "-3." +string.format("%0#-2.0g", 100) == "1.e+02" +string.format("%0#-2.0g", 10000) == "1.e+04" +string.format("%0#-2.0g", 100000) == "1.e+05" +string.format("%0#-2.0g", 1000000) == "1.e+06" +string.format("%0#-2.0g", 10000000) == "1.e+07" +string.format("%0#-2.0g", 0.01) == "0.01" +string.format("%0#-2.0g", 0.0001) == "0.0001" +string.format("%0#-2.0g", 1e-05) == "1.e-05" +string.format("%0#-2.0g", 1e-06) == "1.e-06" +string.format("%0#-2.0g", 1e-07) == "1.e-07" +string.format("%0#-2.0g", 123.456) == "1.e+02" +string.format("%0#-2.0g", 1234560000) == "1.e+09" +string.format("%0#-2.0g", 1.23456e-05) == "1.e-05" +string.format("%0#-2.0g", 123.456789123) == "1.e+02" +string.format("%0#-2.0g", 1234567891.23) == "1.e+09" +string.format("%0#-2.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-2.1g", 0) == "0." +string.format("%0#-2.1g", 1) == "1." +string.format("%0#-2.1g", -1) == "-1." +string.format("%0#-2.1g", 2) == "2." +string.format("%0#-2.1g", -2) == "-2." +string.format("%0#-2.1g", 3) == "3." +string.format("%0#-2.1g", -3) == "-3." +string.format("%0#-2.1g", 100) == "1.e+02" +string.format("%0#-2.1g", 10000) == "1.e+04" +string.format("%0#-2.1g", 100000) == "1.e+05" +string.format("%0#-2.1g", 1000000) == "1.e+06" +string.format("%0#-2.1g", 10000000) == "1.e+07" +string.format("%0#-2.1g", 0.01) == "0.01" +string.format("%0#-2.1g", 0.0001) == "0.0001" +string.format("%0#-2.1g", 1e-05) == "1.e-05" +string.format("%0#-2.1g", 1e-06) == "1.e-06" +string.format("%0#-2.1g", 1e-07) == "1.e-07" +string.format("%0#-2.1g", 123.456) == "1.e+02" +string.format("%0#-2.1g", 1234560000) == "1.e+09" +string.format("%0#-2.1g", 1.23456e-05) == "1.e-05" +string.format("%0#-2.1g", 123.456789123) == "1.e+02" +string.format("%0#-2.1g", 1234567891.23) == "1.e+09" +string.format("%0#-2.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-6g", nan) == "nan " +string.format("%0#-6g", inf) == "inf " +string.format("%0#-6g", -inf) == "-inf " +string.format("%0#-6.0g", 0) == "0. " +string.format("%0#-6.0g", 1) == "1. " +string.format("%0#-6.0g", -1) == "-1. " +string.format("%0#-6.0g", 2) == "2. " +string.format("%0#-6.0g", -2) == "-2. " +string.format("%0#-6.0g", 3) == "3. " +string.format("%0#-6.0g", -3) == "-3. " +string.format("%0#-6.0g", nan) == "nan " +string.format("%0#-6.0g", inf) == "inf " +string.format("%0#-6.0g", -inf) == "-inf " +string.format("%0#-6.0g", 100) == "1.e+02" +string.format("%0#-6.0g", 10000) == "1.e+04" +string.format("%0#-6.0g", 100000) == "1.e+05" +string.format("%0#-6.0g", 1000000) == "1.e+06" +string.format("%0#-6.0g", 10000000) == "1.e+07" +string.format("%0#-6.0g", 0.01) == "0.01 " +string.format("%0#-6.0g", 0.0001) == "0.0001" +string.format("%0#-6.0g", 1e-05) == "1.e-05" +string.format("%0#-6.0g", 1e-06) == "1.e-06" +string.format("%0#-6.0g", 1e-07) == "1.e-07" +string.format("%0#-6.0g", 123.456) == "1.e+02" +string.format("%0#-6.0g", 1234560000) == "1.e+09" +string.format("%0#-6.0g", 1.23456e-05) == "1.e-05" +string.format("%0#-6.0g", 123.456789123) == "1.e+02" +string.format("%0#-6.0g", 1234567891.23) == "1.e+09" +string.format("%0#-6.0g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-6.1g", 0) == "0. " +string.format("%0#-6.1g", 1) == "1. " +string.format("%0#-6.1g", -1) == "-1. " +string.format("%0#-6.1g", 2) == "2. " +string.format("%0#-6.1g", -2) == "-2. " +string.format("%0#-6.1g", 3) == "3. " +string.format("%0#-6.1g", -3) == "-3. " +string.format("%0#-6.1g", nan) == "nan " +string.format("%0#-6.1g", inf) == "inf " +string.format("%0#-6.1g", -inf) == "-inf " +string.format("%0#-6.1g", 100) == "1.e+02" +string.format("%0#-6.1g", 10000) == "1.e+04" +string.format("%0#-6.1g", 100000) == "1.e+05" +string.format("%0#-6.1g", 1000000) == "1.e+06" +string.format("%0#-6.1g", 10000000) == "1.e+07" +string.format("%0#-6.1g", 0.01) == "0.01 " +string.format("%0#-6.1g", 0.0001) == "0.0001" +string.format("%0#-6.1g", 1e-05) == "1.e-05" +string.format("%0#-6.1g", 1e-06) == "1.e-06" +string.format("%0#-6.1g", 1e-07) == "1.e-07" +string.format("%0#-6.1g", 123.456) == "1.e+02" +string.format("%0#-6.1g", 1234560000) == "1.e+09" +string.format("%0#-6.1g", 1.23456e-05) == "1.e-05" +string.format("%0#-6.1g", 123.456789123) == "1.e+02" +string.format("%0#-6.1g", 1234567891.23) == "1.e+09" +string.format("%0#-6.1g", 1.23456789123e-05) == "1.e-05" +string.format("%0#-6.6g", nan) == "nan " +string.format("%0#-6.6g", inf) == "inf " +string.format("%0#-6.6g", -inf) == "-inf " +string.format("%0#-20g", 0) == "0.00000 " +string.format("%0#-20g", 1) == "1.00000 " +string.format("%0#-20g", -1) == "-1.00000 " +string.format("%0#-20g", 2) == "2.00000 " +string.format("%0#-20g", -2) == "-2.00000 " +string.format("%0#-20g", 3) == "3.00000 " +string.format("%0#-20g", -3) == "-3.00000 " +string.format("%0#-20g", nan) == "nan " +string.format("%0#-20g", inf) == "inf " +string.format("%0#-20g", -inf) == "-inf " +string.format("%0#-20g", 100) == "100.000 " +string.format("%0#-20g", 10000) == "10000.0 " +string.format("%0#-20g", 100000) == "100000. " +string.format("%0#-20g", 1000000) == "1.00000e+06 " +string.format("%0#-20g", 10000000) == "1.00000e+07 " +string.format("%0#-20g", 0.01) == "0.0100000 " +string.format("%0#-20g", 0.0001) == "0.000100000 " +string.format("%0#-20g", 1e-05) == "1.00000e-05 " +string.format("%0#-20g", 1e-06) == "1.00000e-06 " +string.format("%0#-20g", 1e-07) == "1.00000e-07 " +string.format("%0#-20g", 123.456) == "123.456 " +string.format("%0#-20g", 1234560000) == "1.23456e+09 " +string.format("%0#-20g", 1.23456e-05) == "1.23456e-05 " +string.format("%0#-20g", 123.456789123) == "123.457 " +string.format("%0#-20g", 1234567891.23) == "1.23457e+09 " +string.format("%0#-20g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%0#-20.0g", 0) == "0. " +string.format("%0#-20.0g", 1) == "1. " +string.format("%0#-20.0g", -1) == "-1. " +string.format("%0#-20.0g", 2) == "2. " +string.format("%0#-20.0g", -2) == "-2. " +string.format("%0#-20.0g", 3) == "3. " +string.format("%0#-20.0g", -3) == "-3. " +string.format("%0#-20.0g", nan) == "nan " +string.format("%0#-20.0g", inf) == "inf " +string.format("%0#-20.0g", -inf) == "-inf " +string.format("%0#-20.0g", 100) == "1.e+02 " +string.format("%0#-20.0g", 10000) == "1.e+04 " +string.format("%0#-20.0g", 100000) == "1.e+05 " +string.format("%0#-20.0g", 1000000) == "1.e+06 " +string.format("%0#-20.0g", 10000000) == "1.e+07 " +string.format("%0#-20.0g", 0.01) == "0.01 " +string.format("%0#-20.0g", 0.0001) == "0.0001 " +string.format("%0#-20.0g", 1e-05) == "1.e-05 " +string.format("%0#-20.0g", 1e-06) == "1.e-06 " +string.format("%0#-20.0g", 1e-07) == "1.e-07 " +string.format("%0#-20.0g", 123.456) == "1.e+02 " +string.format("%0#-20.0g", 1234560000) == "1.e+09 " +string.format("%0#-20.0g", 1.23456e-05) == "1.e-05 " +string.format("%0#-20.0g", 123.456789123) == "1.e+02 " +string.format("%0#-20.0g", 1234567891.23) == "1.e+09 " +string.format("%0#-20.0g", 1.23456789123e-05) == "1.e-05 " +string.format("%0#-20.1g", 0) == "0. " +string.format("%0#-20.1g", 1) == "1. " +string.format("%0#-20.1g", -1) == "-1. " +string.format("%0#-20.1g", 2) == "2. " +string.format("%0#-20.1g", -2) == "-2. " +string.format("%0#-20.1g", 3) == "3. " +string.format("%0#-20.1g", -3) == "-3. " +string.format("%0#-20.1g", nan) == "nan " +string.format("%0#-20.1g", inf) == "inf " +string.format("%0#-20.1g", -inf) == "-inf " +string.format("%0#-20.1g", 100) == "1.e+02 " +string.format("%0#-20.1g", 10000) == "1.e+04 " +string.format("%0#-20.1g", 100000) == "1.e+05 " +string.format("%0#-20.1g", 1000000) == "1.e+06 " +string.format("%0#-20.1g", 10000000) == "1.e+07 " +string.format("%0#-20.1g", 0.01) == "0.01 " +string.format("%0#-20.1g", 0.0001) == "0.0001 " +string.format("%0#-20.1g", 1e-05) == "1.e-05 " +string.format("%0#-20.1g", 1e-06) == "1.e-06 " +string.format("%0#-20.1g", 1e-07) == "1.e-07 " +string.format("%0#-20.1g", 123.456) == "1.e+02 " +string.format("%0#-20.1g", 1234560000) == "1.e+09 " +string.format("%0#-20.1g", 1.23456e-05) == "1.e-05 " +string.format("%0#-20.1g", 123.456789123) == "1.e+02 " +string.format("%0#-20.1g", 1234567891.23) == "1.e+09 " +string.format("%0#-20.1g", 1.23456789123e-05) == "1.e-05 " +string.format("%0#-20.6g", 0) == "0.00000 " +string.format("%0#-20.6g", 1) == "1.00000 " +string.format("%0#-20.6g", -1) == "-1.00000 " +string.format("%0#-20.6g", 2) == "2.00000 " +string.format("%0#-20.6g", -2) == "-2.00000 " +string.format("%0#-20.6g", 3) == "3.00000 " +string.format("%0#-20.6g", -3) == "-3.00000 " +string.format("%0#-20.6g", nan) == "nan " +string.format("%0#-20.6g", inf) == "inf " +string.format("%0#-20.6g", -inf) == "-inf " +string.format("%0#-20.6g", 100) == "100.000 " +string.format("%0#-20.6g", 10000) == "10000.0 " +string.format("%0#-20.6g", 100000) == "100000. " +string.format("%0#-20.6g", 1000000) == "1.00000e+06 " +string.format("%0#-20.6g", 10000000) == "1.00000e+07 " +string.format("%0#-20.6g", 0.01) == "0.0100000 " +string.format("%0#-20.6g", 0.0001) == "0.000100000 " +string.format("%0#-20.6g", 1e-05) == "1.00000e-05 " +string.format("%0#-20.6g", 1e-06) == "1.00000e-06 " +string.format("%0#-20.6g", 1e-07) == "1.00000e-07 " +string.format("%0#-20.6g", 123.456) == "123.456 " +string.format("%0#-20.6g", 1234560000) == "1.23456e+09 " +string.format("%0#-20.6g", 1.23456e-05) == "1.23456e-05 " +string.format("%0#-20.6g", 123.456789123) == "123.457 " +string.format("%0#-20.6g", 1234567891.23) == "1.23457e+09 " +string.format("%0#-20.6g", 1.23456789123e-05) == "1.23457e-05 " +string.format("%0#-+g", 0) == "+0.00000" +string.format("%0#-+g", 1) == "+1.00000" +string.format("%0#-+g", -1) == "-1.00000" +string.format("%0#-+g", 2) == "+2.00000" +string.format("%0#-+g", -2) == "-2.00000" +string.format("%0#-+g", 3) == "+3.00000" +string.format("%0#-+g", -3) == "-3.00000" +string.format("%0#-+g", nan) == "+nan" +string.format("%0#-+g", inf) == "+inf" +string.format("%0#-+g", -inf) == "-inf" +string.format("%0#-+g", 100) == "+100.000" +string.format("%0#-+g", 10000) == "+10000.0" +string.format("%0#-+g", 100000) == "+100000." +string.format("%0#-+g", 1000000) == "+1.00000e+06" +string.format("%0#-+g", 10000000) == "+1.00000e+07" +string.format("%0#-+g", 0.01) == "+0.0100000" +string.format("%0#-+g", 0.0001) == "+0.000100000" +string.format("%0#-+g", 1e-05) == "+1.00000e-05" +string.format("%0#-+g", 1e-06) == "+1.00000e-06" +string.format("%0#-+g", 1e-07) == "+1.00000e-07" +string.format("%0#-+g", 123.456) == "+123.456" +string.format("%0#-+g", 1234560000) == "+1.23456e+09" +string.format("%0#-+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0#-+g", 123.456789123) == "+123.457" +string.format("%0#-+g", 1234567891.23) == "+1.23457e+09" +string.format("%0#-+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0#-+.0g", 0) == "+0." +string.format("%0#-+.0g", 1) == "+1." +string.format("%0#-+.0g", -1) == "-1." +string.format("%0#-+.0g", 2) == "+2." +string.format("%0#-+.0g", -2) == "-2." +string.format("%0#-+.0g", 3) == "+3." +string.format("%0#-+.0g", -3) == "-3." +string.format("%0#-+.0g", 100) == "+1.e+02" +string.format("%0#-+.0g", 10000) == "+1.e+04" +string.format("%0#-+.0g", 100000) == "+1.e+05" +string.format("%0#-+.0g", 1000000) == "+1.e+06" +string.format("%0#-+.0g", 10000000) == "+1.e+07" +string.format("%0#-+.0g", 0.01) == "+0.01" +string.format("%0#-+.0g", 0.0001) == "+0.0001" +string.format("%0#-+.0g", 1e-05) == "+1.e-05" +string.format("%0#-+.0g", 1e-06) == "+1.e-06" +string.format("%0#-+.0g", 1e-07) == "+1.e-07" +string.format("%0#-+.0g", 123.456) == "+1.e+02" +string.format("%0#-+.0g", 1234560000) == "+1.e+09" +string.format("%0#-+.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+.0g", 123.456789123) == "+1.e+02" +string.format("%0#-+.0g", 1234567891.23) == "+1.e+09" +string.format("%0#-+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+.1g", 0) == "+0." +string.format("%0#-+.1g", 1) == "+1." +string.format("%0#-+.1g", -1) == "-1." +string.format("%0#-+.1g", 2) == "+2." +string.format("%0#-+.1g", -2) == "-2." +string.format("%0#-+.1g", 3) == "+3." +string.format("%0#-+.1g", -3) == "-3." +string.format("%0#-+.1g", 100) == "+1.e+02" +string.format("%0#-+.1g", 10000) == "+1.e+04" +string.format("%0#-+.1g", 100000) == "+1.e+05" +string.format("%0#-+.1g", 1000000) == "+1.e+06" +string.format("%0#-+.1g", 10000000) == "+1.e+07" +string.format("%0#-+.1g", 0.01) == "+0.01" +string.format("%0#-+.1g", 0.0001) == "+0.0001" +string.format("%0#-+.1g", 1e-05) == "+1.e-05" +string.format("%0#-+.1g", 1e-06) == "+1.e-06" +string.format("%0#-+.1g", 1e-07) == "+1.e-07" +string.format("%0#-+.1g", 123.456) == "+1.e+02" +string.format("%0#-+.1g", 1234560000) == "+1.e+09" +string.format("%0#-+.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+.1g", 123.456789123) == "+1.e+02" +string.format("%0#-+.1g", 1234567891.23) == "+1.e+09" +string.format("%0#-+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+1.0g", 0) == "+0." +string.format("%0#-+1.0g", 1) == "+1." +string.format("%0#-+1.0g", -1) == "-1." +string.format("%0#-+1.0g", 2) == "+2." +string.format("%0#-+1.0g", -2) == "-2." +string.format("%0#-+1.0g", 3) == "+3." +string.format("%0#-+1.0g", -3) == "-3." +string.format("%0#-+1.0g", 100) == "+1.e+02" +string.format("%0#-+1.0g", 10000) == "+1.e+04" +string.format("%0#-+1.0g", 100000) == "+1.e+05" +string.format("%0#-+1.0g", 1000000) == "+1.e+06" +string.format("%0#-+1.0g", 10000000) == "+1.e+07" +string.format("%0#-+1.0g", 0.01) == "+0.01" +string.format("%0#-+1.0g", 0.0001) == "+0.0001" +string.format("%0#-+1.0g", 1e-05) == "+1.e-05" +string.format("%0#-+1.0g", 1e-06) == "+1.e-06" +string.format("%0#-+1.0g", 1e-07) == "+1.e-07" +string.format("%0#-+1.0g", 123.456) == "+1.e+02" +string.format("%0#-+1.0g", 1234560000) == "+1.e+09" +string.format("%0#-+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+1.0g", 123.456789123) == "+1.e+02" +string.format("%0#-+1.0g", 1234567891.23) == "+1.e+09" +string.format("%0#-+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+1.1g", 0) == "+0." +string.format("%0#-+1.1g", 1) == "+1." +string.format("%0#-+1.1g", -1) == "-1." +string.format("%0#-+1.1g", 2) == "+2." +string.format("%0#-+1.1g", -2) == "-2." +string.format("%0#-+1.1g", 3) == "+3." +string.format("%0#-+1.1g", -3) == "-3." +string.format("%0#-+1.1g", 100) == "+1.e+02" +string.format("%0#-+1.1g", 10000) == "+1.e+04" +string.format("%0#-+1.1g", 100000) == "+1.e+05" +string.format("%0#-+1.1g", 1000000) == "+1.e+06" +string.format("%0#-+1.1g", 10000000) == "+1.e+07" +string.format("%0#-+1.1g", 0.01) == "+0.01" +string.format("%0#-+1.1g", 0.0001) == "+0.0001" +string.format("%0#-+1.1g", 1e-05) == "+1.e-05" +string.format("%0#-+1.1g", 1e-06) == "+1.e-06" +string.format("%0#-+1.1g", 1e-07) == "+1.e-07" +string.format("%0#-+1.1g", 123.456) == "+1.e+02" +string.format("%0#-+1.1g", 1234560000) == "+1.e+09" +string.format("%0#-+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+1.1g", 123.456789123) == "+1.e+02" +string.format("%0#-+1.1g", 1234567891.23) == "+1.e+09" +string.format("%0#-+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+2.0g", 0) == "+0." +string.format("%0#-+2.0g", 1) == "+1." +string.format("%0#-+2.0g", -1) == "-1." +string.format("%0#-+2.0g", 2) == "+2." +string.format("%0#-+2.0g", -2) == "-2." +string.format("%0#-+2.0g", 3) == "+3." +string.format("%0#-+2.0g", -3) == "-3." +string.format("%0#-+2.0g", 100) == "+1.e+02" +string.format("%0#-+2.0g", 10000) == "+1.e+04" +string.format("%0#-+2.0g", 100000) == "+1.e+05" +string.format("%0#-+2.0g", 1000000) == "+1.e+06" +string.format("%0#-+2.0g", 10000000) == "+1.e+07" +string.format("%0#-+2.0g", 0.01) == "+0.01" +string.format("%0#-+2.0g", 0.0001) == "+0.0001" +string.format("%0#-+2.0g", 1e-05) == "+1.e-05" +string.format("%0#-+2.0g", 1e-06) == "+1.e-06" +string.format("%0#-+2.0g", 1e-07) == "+1.e-07" +string.format("%0#-+2.0g", 123.456) == "+1.e+02" +string.format("%0#-+2.0g", 1234560000) == "+1.e+09" +string.format("%0#-+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+2.0g", 123.456789123) == "+1.e+02" +string.format("%0#-+2.0g", 1234567891.23) == "+1.e+09" +string.format("%0#-+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+2.1g", 0) == "+0." +string.format("%0#-+2.1g", 1) == "+1." +string.format("%0#-+2.1g", -1) == "-1." +string.format("%0#-+2.1g", 2) == "+2." +string.format("%0#-+2.1g", -2) == "-2." +string.format("%0#-+2.1g", 3) == "+3." +string.format("%0#-+2.1g", -3) == "-3." +string.format("%0#-+2.1g", 100) == "+1.e+02" +string.format("%0#-+2.1g", 10000) == "+1.e+04" +string.format("%0#-+2.1g", 100000) == "+1.e+05" +string.format("%0#-+2.1g", 1000000) == "+1.e+06" +string.format("%0#-+2.1g", 10000000) == "+1.e+07" +string.format("%0#-+2.1g", 0.01) == "+0.01" +string.format("%0#-+2.1g", 0.0001) == "+0.0001" +string.format("%0#-+2.1g", 1e-05) == "+1.e-05" +string.format("%0#-+2.1g", 1e-06) == "+1.e-06" +string.format("%0#-+2.1g", 1e-07) == "+1.e-07" +string.format("%0#-+2.1g", 123.456) == "+1.e+02" +string.format("%0#-+2.1g", 1234560000) == "+1.e+09" +string.format("%0#-+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+2.1g", 123.456789123) == "+1.e+02" +string.format("%0#-+2.1g", 1234567891.23) == "+1.e+09" +string.format("%0#-+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+6g", nan) == "+nan " +string.format("%0#-+6g", inf) == "+inf " +string.format("%0#-+6g", -inf) == "-inf " +string.format("%0#-+6.0g", 0) == "+0. " +string.format("%0#-+6.0g", 1) == "+1. " +string.format("%0#-+6.0g", -1) == "-1. " +string.format("%0#-+6.0g", 2) == "+2. " +string.format("%0#-+6.0g", -2) == "-2. " +string.format("%0#-+6.0g", 3) == "+3. " +string.format("%0#-+6.0g", -3) == "-3. " +string.format("%0#-+6.0g", nan) == "+nan " +string.format("%0#-+6.0g", inf) == "+inf " +string.format("%0#-+6.0g", -inf) == "-inf " +string.format("%0#-+6.0g", 100) == "+1.e+02" +string.format("%0#-+6.0g", 10000) == "+1.e+04" +string.format("%0#-+6.0g", 100000) == "+1.e+05" +string.format("%0#-+6.0g", 1000000) == "+1.e+06" +string.format("%0#-+6.0g", 10000000) == "+1.e+07" +string.format("%0#-+6.0g", 0.01) == "+0.01 " +string.format("%0#-+6.0g", 0.0001) == "+0.0001" +string.format("%0#-+6.0g", 1e-05) == "+1.e-05" +string.format("%0#-+6.0g", 1e-06) == "+1.e-06" +string.format("%0#-+6.0g", 1e-07) == "+1.e-07" +string.format("%0#-+6.0g", 123.456) == "+1.e+02" +string.format("%0#-+6.0g", 1234560000) == "+1.e+09" +string.format("%0#-+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+6.0g", 123.456789123) == "+1.e+02" +string.format("%0#-+6.0g", 1234567891.23) == "+1.e+09" +string.format("%0#-+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+6.1g", 0) == "+0. " +string.format("%0#-+6.1g", 1) == "+1. " +string.format("%0#-+6.1g", -1) == "-1. " +string.format("%0#-+6.1g", 2) == "+2. " +string.format("%0#-+6.1g", -2) == "-2. " +string.format("%0#-+6.1g", 3) == "+3. " +string.format("%0#-+6.1g", -3) == "-3. " +string.format("%0#-+6.1g", nan) == "+nan " +string.format("%0#-+6.1g", inf) == "+inf " +string.format("%0#-+6.1g", -inf) == "-inf " +string.format("%0#-+6.1g", 100) == "+1.e+02" +string.format("%0#-+6.1g", 10000) == "+1.e+04" +string.format("%0#-+6.1g", 100000) == "+1.e+05" +string.format("%0#-+6.1g", 1000000) == "+1.e+06" +string.format("%0#-+6.1g", 10000000) == "+1.e+07" +string.format("%0#-+6.1g", 0.01) == "+0.01 " +string.format("%0#-+6.1g", 0.0001) == "+0.0001" +string.format("%0#-+6.1g", 1e-05) == "+1.e-05" +string.format("%0#-+6.1g", 1e-06) == "+1.e-06" +string.format("%0#-+6.1g", 1e-07) == "+1.e-07" +string.format("%0#-+6.1g", 123.456) == "+1.e+02" +string.format("%0#-+6.1g", 1234560000) == "+1.e+09" +string.format("%0#-+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%0#-+6.1g", 123.456789123) == "+1.e+02" +string.format("%0#-+6.1g", 1234567891.23) == "+1.e+09" +string.format("%0#-+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0#-+6.6g", nan) == "+nan " +string.format("%0#-+6.6g", inf) == "+inf " +string.format("%0#-+6.6g", -inf) == "-inf " +string.format("%0#-+20g", 0) == "+0.00000 " +string.format("%0#-+20g", 1) == "+1.00000 " +string.format("%0#-+20g", -1) == "-1.00000 " +string.format("%0#-+20g", 2) == "+2.00000 " +string.format("%0#-+20g", -2) == "-2.00000 " +string.format("%0#-+20g", 3) == "+3.00000 " +string.format("%0#-+20g", -3) == "-3.00000 " +string.format("%0#-+20g", nan) == "+nan " +string.format("%0#-+20g", inf) == "+inf " +string.format("%0#-+20g", -inf) == "-inf " +string.format("%0#-+20g", 100) == "+100.000 " +string.format("%0#-+20g", 10000) == "+10000.0 " +string.format("%0#-+20g", 100000) == "+100000. " +string.format("%0#-+20g", 1000000) == "+1.00000e+06 " +string.format("%0#-+20g", 10000000) == "+1.00000e+07 " +string.format("%0#-+20g", 0.01) == "+0.0100000 " +string.format("%0#-+20g", 0.0001) == "+0.000100000 " +string.format("%0#-+20g", 1e-05) == "+1.00000e-05 " +string.format("%0#-+20g", 1e-06) == "+1.00000e-06 " +string.format("%0#-+20g", 1e-07) == "+1.00000e-07 " +string.format("%0#-+20g", 123.456) == "+123.456 " +string.format("%0#-+20g", 1234560000) == "+1.23456e+09 " +string.format("%0#-+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0#-+20g", 123.456789123) == "+123.457 " +string.format("%0#-+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%0#-+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0#-+20.0g", 0) == "+0. " +string.format("%0#-+20.0g", 1) == "+1. " +string.format("%0#-+20.0g", -1) == "-1. " +string.format("%0#-+20.0g", 2) == "+2. " +string.format("%0#-+20.0g", -2) == "-2. " +string.format("%0#-+20.0g", 3) == "+3. " +string.format("%0#-+20.0g", -3) == "-3. " +string.format("%0#-+20.0g", nan) == "+nan " +string.format("%0#-+20.0g", inf) == "+inf " +string.format("%0#-+20.0g", -inf) == "-inf " +string.format("%0#-+20.0g", 100) == "+1.e+02 " +string.format("%0#-+20.0g", 10000) == "+1.e+04 " +string.format("%0#-+20.0g", 100000) == "+1.e+05 " +string.format("%0#-+20.0g", 1000000) == "+1.e+06 " +string.format("%0#-+20.0g", 10000000) == "+1.e+07 " +string.format("%0#-+20.0g", 0.01) == "+0.01 " +string.format("%0#-+20.0g", 0.0001) == "+0.0001 " +string.format("%0#-+20.0g", 1e-05) == "+1.e-05 " +string.format("%0#-+20.0g", 1e-06) == "+1.e-06 " +string.format("%0#-+20.0g", 1e-07) == "+1.e-07 " +string.format("%0#-+20.0g", 123.456) == "+1.e+02 " +string.format("%0#-+20.0g", 1234560000) == "+1.e+09 " +string.format("%0#-+20.0g", 1.23456e-05) == "+1.e-05 " +string.format("%0#-+20.0g", 123.456789123) == "+1.e+02 " +string.format("%0#-+20.0g", 1234567891.23) == "+1.e+09 " +string.format("%0#-+20.0g", 1.23456789123e-05) == "+1.e-05 " +string.format("%0#-+20.1g", 0) == "+0. " +string.format("%0#-+20.1g", 1) == "+1. " +string.format("%0#-+20.1g", -1) == "-1. " +string.format("%0#-+20.1g", 2) == "+2. " +string.format("%0#-+20.1g", -2) == "-2. " +string.format("%0#-+20.1g", 3) == "+3. " +string.format("%0#-+20.1g", -3) == "-3. " +string.format("%0#-+20.1g", nan) == "+nan " +string.format("%0#-+20.1g", inf) == "+inf " +string.format("%0#-+20.1g", -inf) == "-inf " +string.format("%0#-+20.1g", 100) == "+1.e+02 " +string.format("%0#-+20.1g", 10000) == "+1.e+04 " +string.format("%0#-+20.1g", 100000) == "+1.e+05 " +string.format("%0#-+20.1g", 1000000) == "+1.e+06 " +string.format("%0#-+20.1g", 10000000) == "+1.e+07 " +string.format("%0#-+20.1g", 0.01) == "+0.01 " +string.format("%0#-+20.1g", 0.0001) == "+0.0001 " +string.format("%0#-+20.1g", 1e-05) == "+1.e-05 " +string.format("%0#-+20.1g", 1e-06) == "+1.e-06 " +string.format("%0#-+20.1g", 1e-07) == "+1.e-07 " +string.format("%0#-+20.1g", 123.456) == "+1.e+02 " +string.format("%0#-+20.1g", 1234560000) == "+1.e+09 " +string.format("%0#-+20.1g", 1.23456e-05) == "+1.e-05 " +string.format("%0#-+20.1g", 123.456789123) == "+1.e+02 " +string.format("%0#-+20.1g", 1234567891.23) == "+1.e+09 " +string.format("%0#-+20.1g", 1.23456789123e-05) == "+1.e-05 " +string.format("%0#-+20.6g", 0) == "+0.00000 " +string.format("%0#-+20.6g", 1) == "+1.00000 " +string.format("%0#-+20.6g", -1) == "-1.00000 " +string.format("%0#-+20.6g", 2) == "+2.00000 " +string.format("%0#-+20.6g", -2) == "-2.00000 " +string.format("%0#-+20.6g", 3) == "+3.00000 " +string.format("%0#-+20.6g", -3) == "-3.00000 " +string.format("%0#-+20.6g", nan) == "+nan " +string.format("%0#-+20.6g", inf) == "+inf " +string.format("%0#-+20.6g", -inf) == "-inf " +string.format("%0#-+20.6g", 100) == "+100.000 " +string.format("%0#-+20.6g", 10000) == "+10000.0 " +string.format("%0#-+20.6g", 100000) == "+100000. " +string.format("%0#-+20.6g", 1000000) == "+1.00000e+06 " +string.format("%0#-+20.6g", 10000000) == "+1.00000e+07 " +string.format("%0#-+20.6g", 0.01) == "+0.0100000 " +string.format("%0#-+20.6g", 0.0001) == "+0.000100000 " +string.format("%0#-+20.6g", 1e-05) == "+1.00000e-05 " +string.format("%0#-+20.6g", 1e-06) == "+1.00000e-06 " +string.format("%0#-+20.6g", 1e-07) == "+1.00000e-07 " +string.format("%0#-+20.6g", 123.456) == "+123.456 " +string.format("%0#-+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%0#-+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0#-+20.6g", 123.456789123) == "+123.457 " +string.format("%0#-+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%0#-+20.6g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0# g", 0) == " 0.00000" +string.format("%0# g", 1) == " 1.00000" +string.format("%0# g", -1) == "-1.00000" +string.format("%0# g", 2) == " 2.00000" +string.format("%0# g", -2) == "-2.00000" +string.format("%0# g", 3) == " 3.00000" +string.format("%0# g", -3) == "-3.00000" +string.format("%0# g", nan) == " nan" +string.format("%0# g", inf) == " inf" +string.format("%0# g", -inf) == "-inf" +string.format("%0# g", 100) == " 100.000" +string.format("%0# g", 10000) == " 10000.0" +string.format("%0# g", 100000) == " 100000." +string.format("%0# g", 1000000) == " 1.00000e+06" +string.format("%0# g", 10000000) == " 1.00000e+07" +string.format("%0# g", 0.01) == " 0.0100000" +string.format("%0# g", 0.0001) == " 0.000100000" +string.format("%0# g", 1e-05) == " 1.00000e-05" +string.format("%0# g", 1e-06) == " 1.00000e-06" +string.format("%0# g", 1e-07) == " 1.00000e-07" +string.format("%0# g", 123.456) == " 123.456" +string.format("%0# g", 1234560000) == " 1.23456e+09" +string.format("%0# g", 1.23456e-05) == " 1.23456e-05" +string.format("%0# g", 123.456789123) == " 123.457" +string.format("%0# g", 1234567891.23) == " 1.23457e+09" +string.format("%0# g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%0# .0g", 0) == " 0." +string.format("%0# .0g", 1) == " 1." +string.format("%0# .0g", -1) == "-1." +string.format("%0# .0g", 2) == " 2." +string.format("%0# .0g", -2) == "-2." +string.format("%0# .0g", 3) == " 3." +string.format("%0# .0g", -3) == "-3." +string.format("%0# .0g", 100) == " 1.e+02" +string.format("%0# .0g", 10000) == " 1.e+04" +string.format("%0# .0g", 100000) == " 1.e+05" +string.format("%0# .0g", 1000000) == " 1.e+06" +string.format("%0# .0g", 10000000) == " 1.e+07" +string.format("%0# .0g", 0.01) == " 0.01" +string.format("%0# .0g", 0.0001) == " 0.0001" +string.format("%0# .0g", 1e-05) == " 1.e-05" +string.format("%0# .0g", 1e-06) == " 1.e-06" +string.format("%0# .0g", 1e-07) == " 1.e-07" +string.format("%0# .0g", 123.456) == " 1.e+02" +string.format("%0# .0g", 1234560000) == " 1.e+09" +string.format("%0# .0g", 1.23456e-05) == " 1.e-05" +string.format("%0# .0g", 123.456789123) == " 1.e+02" +string.format("%0# .0g", 1234567891.23) == " 1.e+09" +string.format("%0# .0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# .1g", 0) == " 0." +string.format("%0# .1g", 1) == " 1." +string.format("%0# .1g", -1) == "-1." +string.format("%0# .1g", 2) == " 2." +string.format("%0# .1g", -2) == "-2." +string.format("%0# .1g", 3) == " 3." +string.format("%0# .1g", -3) == "-3." +string.format("%0# .1g", 100) == " 1.e+02" +string.format("%0# .1g", 10000) == " 1.e+04" +string.format("%0# .1g", 100000) == " 1.e+05" +string.format("%0# .1g", 1000000) == " 1.e+06" +string.format("%0# .1g", 10000000) == " 1.e+07" +string.format("%0# .1g", 0.01) == " 0.01" +string.format("%0# .1g", 0.0001) == " 0.0001" +string.format("%0# .1g", 1e-05) == " 1.e-05" +string.format("%0# .1g", 1e-06) == " 1.e-06" +string.format("%0# .1g", 1e-07) == " 1.e-07" +string.format("%0# .1g", 123.456) == " 1.e+02" +string.format("%0# .1g", 1234560000) == " 1.e+09" +string.format("%0# .1g", 1.23456e-05) == " 1.e-05" +string.format("%0# .1g", 123.456789123) == " 1.e+02" +string.format("%0# .1g", 1234567891.23) == " 1.e+09" +string.format("%0# .1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 1.0g", 0) == " 0." +string.format("%0# 1.0g", 1) == " 1." +string.format("%0# 1.0g", -1) == "-1." +string.format("%0# 1.0g", 2) == " 2." +string.format("%0# 1.0g", -2) == "-2." +string.format("%0# 1.0g", 3) == " 3." +string.format("%0# 1.0g", -3) == "-3." +string.format("%0# 1.0g", 100) == " 1.e+02" +string.format("%0# 1.0g", 10000) == " 1.e+04" +string.format("%0# 1.0g", 100000) == " 1.e+05" +string.format("%0# 1.0g", 1000000) == " 1.e+06" +string.format("%0# 1.0g", 10000000) == " 1.e+07" +string.format("%0# 1.0g", 0.01) == " 0.01" +string.format("%0# 1.0g", 0.0001) == " 0.0001" +string.format("%0# 1.0g", 1e-05) == " 1.e-05" +string.format("%0# 1.0g", 1e-06) == " 1.e-06" +string.format("%0# 1.0g", 1e-07) == " 1.e-07" +string.format("%0# 1.0g", 123.456) == " 1.e+02" +string.format("%0# 1.0g", 1234560000) == " 1.e+09" +string.format("%0# 1.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# 1.0g", 123.456789123) == " 1.e+02" +string.format("%0# 1.0g", 1234567891.23) == " 1.e+09" +string.format("%0# 1.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 1.1g", 0) == " 0." +string.format("%0# 1.1g", 1) == " 1." +string.format("%0# 1.1g", -1) == "-1." +string.format("%0# 1.1g", 2) == " 2." +string.format("%0# 1.1g", -2) == "-2." +string.format("%0# 1.1g", 3) == " 3." +string.format("%0# 1.1g", -3) == "-3." +string.format("%0# 1.1g", 100) == " 1.e+02" +string.format("%0# 1.1g", 10000) == " 1.e+04" +string.format("%0# 1.1g", 100000) == " 1.e+05" +string.format("%0# 1.1g", 1000000) == " 1.e+06" +string.format("%0# 1.1g", 10000000) == " 1.e+07" +string.format("%0# 1.1g", 0.01) == " 0.01" +string.format("%0# 1.1g", 0.0001) == " 0.0001" +string.format("%0# 1.1g", 1e-05) == " 1.e-05" +string.format("%0# 1.1g", 1e-06) == " 1.e-06" +string.format("%0# 1.1g", 1e-07) == " 1.e-07" +string.format("%0# 1.1g", 123.456) == " 1.e+02" +string.format("%0# 1.1g", 1234560000) == " 1.e+09" +string.format("%0# 1.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# 1.1g", 123.456789123) == " 1.e+02" +string.format("%0# 1.1g", 1234567891.23) == " 1.e+09" +string.format("%0# 1.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 2.0g", 0) == " 0." +string.format("%0# 2.0g", 1) == " 1." +string.format("%0# 2.0g", -1) == "-1." +string.format("%0# 2.0g", 2) == " 2." +string.format("%0# 2.0g", -2) == "-2." +string.format("%0# 2.0g", 3) == " 3." +string.format("%0# 2.0g", -3) == "-3." +string.format("%0# 2.0g", 100) == " 1.e+02" +string.format("%0# 2.0g", 10000) == " 1.e+04" +string.format("%0# 2.0g", 100000) == " 1.e+05" +string.format("%0# 2.0g", 1000000) == " 1.e+06" +string.format("%0# 2.0g", 10000000) == " 1.e+07" +string.format("%0# 2.0g", 0.01) == " 0.01" +string.format("%0# 2.0g", 0.0001) == " 0.0001" +string.format("%0# 2.0g", 1e-05) == " 1.e-05" +string.format("%0# 2.0g", 1e-06) == " 1.e-06" +string.format("%0# 2.0g", 1e-07) == " 1.e-07" +string.format("%0# 2.0g", 123.456) == " 1.e+02" +string.format("%0# 2.0g", 1234560000) == " 1.e+09" +string.format("%0# 2.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# 2.0g", 123.456789123) == " 1.e+02" +string.format("%0# 2.0g", 1234567891.23) == " 1.e+09" +string.format("%0# 2.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 2.1g", 0) == " 0." +string.format("%0# 2.1g", 1) == " 1." +string.format("%0# 2.1g", -1) == "-1." +string.format("%0# 2.1g", 2) == " 2." +string.format("%0# 2.1g", -2) == "-2." +string.format("%0# 2.1g", 3) == " 3." +string.format("%0# 2.1g", -3) == "-3." +string.format("%0# 2.1g", 100) == " 1.e+02" +string.format("%0# 2.1g", 10000) == " 1.e+04" +string.format("%0# 2.1g", 100000) == " 1.e+05" +string.format("%0# 2.1g", 1000000) == " 1.e+06" +string.format("%0# 2.1g", 10000000) == " 1.e+07" +string.format("%0# 2.1g", 0.01) == " 0.01" +string.format("%0# 2.1g", 0.0001) == " 0.0001" +string.format("%0# 2.1g", 1e-05) == " 1.e-05" +string.format("%0# 2.1g", 1e-06) == " 1.e-06" +string.format("%0# 2.1g", 1e-07) == " 1.e-07" +string.format("%0# 2.1g", 123.456) == " 1.e+02" +string.format("%0# 2.1g", 1234560000) == " 1.e+09" +string.format("%0# 2.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# 2.1g", 123.456789123) == " 1.e+02" +string.format("%0# 2.1g", 1234567891.23) == " 1.e+09" +string.format("%0# 2.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 6g", nan) == " nan" +string.format("%0# 6g", inf) == " inf" +string.format("%0# 6g", -inf) == " -inf" +string.format("%0# 6.0g", 0) == " 0000." +string.format("%0# 6.0g", 1) == " 0001." +string.format("%0# 6.0g", -1) == "-0001." +string.format("%0# 6.0g", 2) == " 0002." +string.format("%0# 6.0g", -2) == "-0002." +string.format("%0# 6.0g", 3) == " 0003." +string.format("%0# 6.0g", -3) == "-0003." +string.format("%0# 6.0g", nan) == " nan" +string.format("%0# 6.0g", inf) == " inf" +string.format("%0# 6.0g", -inf) == " -inf" +string.format("%0# 6.0g", 100) == " 1.e+02" +string.format("%0# 6.0g", 10000) == " 1.e+04" +string.format("%0# 6.0g", 100000) == " 1.e+05" +string.format("%0# 6.0g", 1000000) == " 1.e+06" +string.format("%0# 6.0g", 10000000) == " 1.e+07" +string.format("%0# 6.0g", 0.01) == " 00.01" +string.format("%0# 6.0g", 0.0001) == " 0.0001" +string.format("%0# 6.0g", 1e-05) == " 1.e-05" +string.format("%0# 6.0g", 1e-06) == " 1.e-06" +string.format("%0# 6.0g", 1e-07) == " 1.e-07" +string.format("%0# 6.0g", 123.456) == " 1.e+02" +string.format("%0# 6.0g", 1234560000) == " 1.e+09" +string.format("%0# 6.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# 6.0g", 123.456789123) == " 1.e+02" +string.format("%0# 6.0g", 1234567891.23) == " 1.e+09" +string.format("%0# 6.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 6.1g", 0) == " 0000." +string.format("%0# 6.1g", 1) == " 0001." +string.format("%0# 6.1g", -1) == "-0001." +string.format("%0# 6.1g", 2) == " 0002." +string.format("%0# 6.1g", -2) == "-0002." +string.format("%0# 6.1g", 3) == " 0003." +string.format("%0# 6.1g", -3) == "-0003." +string.format("%0# 6.1g", nan) == " nan" +string.format("%0# 6.1g", inf) == " inf" +string.format("%0# 6.1g", -inf) == " -inf" +string.format("%0# 6.1g", 100) == " 1.e+02" +string.format("%0# 6.1g", 10000) == " 1.e+04" +string.format("%0# 6.1g", 100000) == " 1.e+05" +string.format("%0# 6.1g", 1000000) == " 1.e+06" +string.format("%0# 6.1g", 10000000) == " 1.e+07" +string.format("%0# 6.1g", 0.01) == " 00.01" +string.format("%0# 6.1g", 0.0001) == " 0.0001" +string.format("%0# 6.1g", 1e-05) == " 1.e-05" +string.format("%0# 6.1g", 1e-06) == " 1.e-06" +string.format("%0# 6.1g", 1e-07) == " 1.e-07" +string.format("%0# 6.1g", 123.456) == " 1.e+02" +string.format("%0# 6.1g", 1234560000) == " 1.e+09" +string.format("%0# 6.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# 6.1g", 123.456789123) == " 1.e+02" +string.format("%0# 6.1g", 1234567891.23) == " 1.e+09" +string.format("%0# 6.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# 6.6g", nan) == " nan" +string.format("%0# 6.6g", inf) == " inf" +string.format("%0# 6.6g", -inf) == " -inf" +string.format("%0# 20g", 0) == " 0000000000000.00000" +string.format("%0# 20g", 1) == " 0000000000001.00000" +string.format("%0# 20g", -1) == "-0000000000001.00000" +string.format("%0# 20g", 2) == " 0000000000002.00000" +string.format("%0# 20g", -2) == "-0000000000002.00000" +string.format("%0# 20g", 3) == " 0000000000003.00000" +string.format("%0# 20g", -3) == "-0000000000003.00000" +string.format("%0# 20g", nan) == " nan" +string.format("%0# 20g", inf) == " inf" +string.format("%0# 20g", -inf) == " -inf" +string.format("%0# 20g", 100) == " 000000000000100.000" +string.format("%0# 20g", 10000) == " 00000000000010000.0" +string.format("%0# 20g", 100000) == " 000000000000100000." +string.format("%0# 20g", 1000000) == " 000000001.00000e+06" +string.format("%0# 20g", 10000000) == " 000000001.00000e+07" +string.format("%0# 20g", 0.01) == " 00000000000.0100000" +string.format("%0# 20g", 0.0001) == " 000000000.000100000" +string.format("%0# 20g", 1e-05) == " 000000001.00000e-05" +string.format("%0# 20g", 1e-06) == " 000000001.00000e-06" +string.format("%0# 20g", 1e-07) == " 000000001.00000e-07" +string.format("%0# 20g", 123.456) == " 000000000000123.456" +string.format("%0# 20g", 1234560000) == " 000000001.23456e+09" +string.format("%0# 20g", 1.23456e-05) == " 000000001.23456e-05" +string.format("%0# 20g", 123.456789123) == " 000000000000123.457" +string.format("%0# 20g", 1234567891.23) == " 000000001.23457e+09" +string.format("%0# 20g", 1.23456789123e-05) == " 000000001.23457e-05" +string.format("%0# 20.0g", 0) == " 000000000000000000." +string.format("%0# 20.0g", 1) == " 000000000000000001." +string.format("%0# 20.0g", -1) == "-000000000000000001." +string.format("%0# 20.0g", 2) == " 000000000000000002." +string.format("%0# 20.0g", -2) == "-000000000000000002." +string.format("%0# 20.0g", 3) == " 000000000000000003." +string.format("%0# 20.0g", -3) == "-000000000000000003." +string.format("%0# 20.0g", nan) == " nan" +string.format("%0# 20.0g", inf) == " inf" +string.format("%0# 20.0g", -inf) == " -inf" +string.format("%0# 20.0g", 100) == " 00000000000001.e+02" +string.format("%0# 20.0g", 10000) == " 00000000000001.e+04" +string.format("%0# 20.0g", 100000) == " 00000000000001.e+05" +string.format("%0# 20.0g", 1000000) == " 00000000000001.e+06" +string.format("%0# 20.0g", 10000000) == " 00000000000001.e+07" +string.format("%0# 20.0g", 0.01) == " 0000000000000000.01" +string.format("%0# 20.0g", 0.0001) == " 00000000000000.0001" +string.format("%0# 20.0g", 1e-05) == " 00000000000001.e-05" +string.format("%0# 20.0g", 1e-06) == " 00000000000001.e-06" +string.format("%0# 20.0g", 1e-07) == " 00000000000001.e-07" +string.format("%0# 20.0g", 123.456) == " 00000000000001.e+02" +string.format("%0# 20.0g", 1234560000) == " 00000000000001.e+09" +string.format("%0# 20.0g", 1.23456e-05) == " 00000000000001.e-05" +string.format("%0# 20.0g", 123.456789123) == " 00000000000001.e+02" +string.format("%0# 20.0g", 1234567891.23) == " 00000000000001.e+09" +string.format("%0# 20.0g", 1.23456789123e-05) == " 00000000000001.e-05" +string.format("%0# 20.1g", 0) == " 000000000000000000." +string.format("%0# 20.1g", 1) == " 000000000000000001." +string.format("%0# 20.1g", -1) == "-000000000000000001." +string.format("%0# 20.1g", 2) == " 000000000000000002." +string.format("%0# 20.1g", -2) == "-000000000000000002." +string.format("%0# 20.1g", 3) == " 000000000000000003." +string.format("%0# 20.1g", -3) == "-000000000000000003." +string.format("%0# 20.1g", nan) == " nan" +string.format("%0# 20.1g", inf) == " inf" +string.format("%0# 20.1g", -inf) == " -inf" +string.format("%0# 20.1g", 100) == " 00000000000001.e+02" +string.format("%0# 20.1g", 10000) == " 00000000000001.e+04" +string.format("%0# 20.1g", 100000) == " 00000000000001.e+05" +string.format("%0# 20.1g", 1000000) == " 00000000000001.e+06" +string.format("%0# 20.1g", 10000000) == " 00000000000001.e+07" +string.format("%0# 20.1g", 0.01) == " 0000000000000000.01" +string.format("%0# 20.1g", 0.0001) == " 00000000000000.0001" +string.format("%0# 20.1g", 1e-05) == " 00000000000001.e-05" +string.format("%0# 20.1g", 1e-06) == " 00000000000001.e-06" +string.format("%0# 20.1g", 1e-07) == " 00000000000001.e-07" +string.format("%0# 20.1g", 123.456) == " 00000000000001.e+02" +string.format("%0# 20.1g", 1234560000) == " 00000000000001.e+09" +string.format("%0# 20.1g", 1.23456e-05) == " 00000000000001.e-05" +string.format("%0# 20.1g", 123.456789123) == " 00000000000001.e+02" +string.format("%0# 20.1g", 1234567891.23) == " 00000000000001.e+09" +string.format("%0# 20.1g", 1.23456789123e-05) == " 00000000000001.e-05" +string.format("%0# 20.6g", 0) == " 0000000000000.00000" +string.format("%0# 20.6g", 1) == " 0000000000001.00000" +string.format("%0# 20.6g", -1) == "-0000000000001.00000" +string.format("%0# 20.6g", 2) == " 0000000000002.00000" +string.format("%0# 20.6g", -2) == "-0000000000002.00000" +string.format("%0# 20.6g", 3) == " 0000000000003.00000" +string.format("%0# 20.6g", -3) == "-0000000000003.00000" +string.format("%0# 20.6g", nan) == " nan" +string.format("%0# 20.6g", inf) == " inf" +string.format("%0# 20.6g", -inf) == " -inf" +string.format("%0# 20.6g", 100) == " 000000000000100.000" +string.format("%0# 20.6g", 10000) == " 00000000000010000.0" +string.format("%0# 20.6g", 100000) == " 000000000000100000." +string.format("%0# 20.6g", 1000000) == " 000000001.00000e+06" +string.format("%0# 20.6g", 10000000) == " 000000001.00000e+07" +string.format("%0# 20.6g", 0.01) == " 00000000000.0100000" +string.format("%0# 20.6g", 0.0001) == " 000000000.000100000" +string.format("%0# 20.6g", 1e-05) == " 000000001.00000e-05" +string.format("%0# 20.6g", 1e-06) == " 000000001.00000e-06" +string.format("%0# 20.6g", 1e-07) == " 000000001.00000e-07" +string.format("%0# 20.6g", 123.456) == " 000000000000123.456" +string.format("%0# 20.6g", 1234560000) == " 000000001.23456e+09" +string.format("%0# 20.6g", 1.23456e-05) == " 000000001.23456e-05" +string.format("%0# 20.6g", 123.456789123) == " 000000000000123.457" +string.format("%0# 20.6g", 1234567891.23) == " 000000001.23457e+09" +string.format("%0# 20.6g", 1.23456789123e-05) == " 000000001.23457e-05" +string.format("%0# +g", 0) == "+0.00000" +string.format("%0# +g", 1) == "+1.00000" +string.format("%0# +g", -1) == "-1.00000" +string.format("%0# +g", 2) == "+2.00000" +string.format("%0# +g", -2) == "-2.00000" +string.format("%0# +g", 3) == "+3.00000" +string.format("%0# +g", -3) == "-3.00000" +string.format("%0# +g", nan) == "+nan" +string.format("%0# +g", inf) == "+inf" +string.format("%0# +g", -inf) == "-inf" +string.format("%0# +g", 100) == "+100.000" +string.format("%0# +g", 10000) == "+10000.0" +string.format("%0# +g", 100000) == "+100000." +string.format("%0# +g", 1000000) == "+1.00000e+06" +string.format("%0# +g", 10000000) == "+1.00000e+07" +string.format("%0# +g", 0.01) == "+0.0100000" +string.format("%0# +g", 0.0001) == "+0.000100000" +string.format("%0# +g", 1e-05) == "+1.00000e-05" +string.format("%0# +g", 1e-06) == "+1.00000e-06" +string.format("%0# +g", 1e-07) == "+1.00000e-07" +string.format("%0# +g", 123.456) == "+123.456" +string.format("%0# +g", 1234560000) == "+1.23456e+09" +string.format("%0# +g", 1.23456e-05) == "+1.23456e-05" +string.format("%0# +g", 123.456789123) == "+123.457" +string.format("%0# +g", 1234567891.23) == "+1.23457e+09" +string.format("%0# +g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0# +.0g", 0) == "+0." +string.format("%0# +.0g", 1) == "+1." +string.format("%0# +.0g", -1) == "-1." +string.format("%0# +.0g", 2) == "+2." +string.format("%0# +.0g", -2) == "-2." +string.format("%0# +.0g", 3) == "+3." +string.format("%0# +.0g", -3) == "-3." +string.format("%0# +.0g", 100) == "+1.e+02" +string.format("%0# +.0g", 10000) == "+1.e+04" +string.format("%0# +.0g", 100000) == "+1.e+05" +string.format("%0# +.0g", 1000000) == "+1.e+06" +string.format("%0# +.0g", 10000000) == "+1.e+07" +string.format("%0# +.0g", 0.01) == "+0.01" +string.format("%0# +.0g", 0.0001) == "+0.0001" +string.format("%0# +.0g", 1e-05) == "+1.e-05" +string.format("%0# +.0g", 1e-06) == "+1.e-06" +string.format("%0# +.0g", 1e-07) == "+1.e-07" +string.format("%0# +.0g", 123.456) == "+1.e+02" +string.format("%0# +.0g", 1234560000) == "+1.e+09" +string.format("%0# +.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# +.0g", 123.456789123) == "+1.e+02" +string.format("%0# +.0g", 1234567891.23) == "+1.e+09" +string.format("%0# +.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +.1g", 0) == "+0." +string.format("%0# +.1g", 1) == "+1." +string.format("%0# +.1g", -1) == "-1." +string.format("%0# +.1g", 2) == "+2." +string.format("%0# +.1g", -2) == "-2." +string.format("%0# +.1g", 3) == "+3." +string.format("%0# +.1g", -3) == "-3." +string.format("%0# +.1g", 100) == "+1.e+02" +string.format("%0# +.1g", 10000) == "+1.e+04" +string.format("%0# +.1g", 100000) == "+1.e+05" +string.format("%0# +.1g", 1000000) == "+1.e+06" +string.format("%0# +.1g", 10000000) == "+1.e+07" +string.format("%0# +.1g", 0.01) == "+0.01" +string.format("%0# +.1g", 0.0001) == "+0.0001" +string.format("%0# +.1g", 1e-05) == "+1.e-05" +string.format("%0# +.1g", 1e-06) == "+1.e-06" +string.format("%0# +.1g", 1e-07) == "+1.e-07" +string.format("%0# +.1g", 123.456) == "+1.e+02" +string.format("%0# +.1g", 1234560000) == "+1.e+09" +string.format("%0# +.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# +.1g", 123.456789123) == "+1.e+02" +string.format("%0# +.1g", 1234567891.23) == "+1.e+09" +string.format("%0# +.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +1.0g", 0) == "+0." +string.format("%0# +1.0g", 1) == "+1." +string.format("%0# +1.0g", -1) == "-1." +string.format("%0# +1.0g", 2) == "+2." +string.format("%0# +1.0g", -2) == "-2." +string.format("%0# +1.0g", 3) == "+3." +string.format("%0# +1.0g", -3) == "-3." +string.format("%0# +1.0g", 100) == "+1.e+02" +string.format("%0# +1.0g", 10000) == "+1.e+04" +string.format("%0# +1.0g", 100000) == "+1.e+05" +string.format("%0# +1.0g", 1000000) == "+1.e+06" +string.format("%0# +1.0g", 10000000) == "+1.e+07" +string.format("%0# +1.0g", 0.01) == "+0.01" +string.format("%0# +1.0g", 0.0001) == "+0.0001" +string.format("%0# +1.0g", 1e-05) == "+1.e-05" +string.format("%0# +1.0g", 1e-06) == "+1.e-06" +string.format("%0# +1.0g", 1e-07) == "+1.e-07" +string.format("%0# +1.0g", 123.456) == "+1.e+02" +string.format("%0# +1.0g", 1234560000) == "+1.e+09" +string.format("%0# +1.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# +1.0g", 123.456789123) == "+1.e+02" +string.format("%0# +1.0g", 1234567891.23) == "+1.e+09" +string.format("%0# +1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +1.1g", 0) == "+0." +string.format("%0# +1.1g", 1) == "+1." +string.format("%0# +1.1g", -1) == "-1." +string.format("%0# +1.1g", 2) == "+2." +string.format("%0# +1.1g", -2) == "-2." +string.format("%0# +1.1g", 3) == "+3." +string.format("%0# +1.1g", -3) == "-3." +string.format("%0# +1.1g", 100) == "+1.e+02" +string.format("%0# +1.1g", 10000) == "+1.e+04" +string.format("%0# +1.1g", 100000) == "+1.e+05" +string.format("%0# +1.1g", 1000000) == "+1.e+06" +string.format("%0# +1.1g", 10000000) == "+1.e+07" +string.format("%0# +1.1g", 0.01) == "+0.01" +string.format("%0# +1.1g", 0.0001) == "+0.0001" +string.format("%0# +1.1g", 1e-05) == "+1.e-05" +string.format("%0# +1.1g", 1e-06) == "+1.e-06" +string.format("%0# +1.1g", 1e-07) == "+1.e-07" +string.format("%0# +1.1g", 123.456) == "+1.e+02" +string.format("%0# +1.1g", 1234560000) == "+1.e+09" +string.format("%0# +1.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# +1.1g", 123.456789123) == "+1.e+02" +string.format("%0# +1.1g", 1234567891.23) == "+1.e+09" +string.format("%0# +1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +2.0g", 0) == "+0." +string.format("%0# +2.0g", 1) == "+1." +string.format("%0# +2.0g", -1) == "-1." +string.format("%0# +2.0g", 2) == "+2." +string.format("%0# +2.0g", -2) == "-2." +string.format("%0# +2.0g", 3) == "+3." +string.format("%0# +2.0g", -3) == "-3." +string.format("%0# +2.0g", 100) == "+1.e+02" +string.format("%0# +2.0g", 10000) == "+1.e+04" +string.format("%0# +2.0g", 100000) == "+1.e+05" +string.format("%0# +2.0g", 1000000) == "+1.e+06" +string.format("%0# +2.0g", 10000000) == "+1.e+07" +string.format("%0# +2.0g", 0.01) == "+0.01" +string.format("%0# +2.0g", 0.0001) == "+0.0001" +string.format("%0# +2.0g", 1e-05) == "+1.e-05" +string.format("%0# +2.0g", 1e-06) == "+1.e-06" +string.format("%0# +2.0g", 1e-07) == "+1.e-07" +string.format("%0# +2.0g", 123.456) == "+1.e+02" +string.format("%0# +2.0g", 1234560000) == "+1.e+09" +string.format("%0# +2.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# +2.0g", 123.456789123) == "+1.e+02" +string.format("%0# +2.0g", 1234567891.23) == "+1.e+09" +string.format("%0# +2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +2.1g", 0) == "+0." +string.format("%0# +2.1g", 1) == "+1." +string.format("%0# +2.1g", -1) == "-1." +string.format("%0# +2.1g", 2) == "+2." +string.format("%0# +2.1g", -2) == "-2." +string.format("%0# +2.1g", 3) == "+3." +string.format("%0# +2.1g", -3) == "-3." +string.format("%0# +2.1g", 100) == "+1.e+02" +string.format("%0# +2.1g", 10000) == "+1.e+04" +string.format("%0# +2.1g", 100000) == "+1.e+05" +string.format("%0# +2.1g", 1000000) == "+1.e+06" +string.format("%0# +2.1g", 10000000) == "+1.e+07" +string.format("%0# +2.1g", 0.01) == "+0.01" +string.format("%0# +2.1g", 0.0001) == "+0.0001" +string.format("%0# +2.1g", 1e-05) == "+1.e-05" +string.format("%0# +2.1g", 1e-06) == "+1.e-06" +string.format("%0# +2.1g", 1e-07) == "+1.e-07" +string.format("%0# +2.1g", 123.456) == "+1.e+02" +string.format("%0# +2.1g", 1234560000) == "+1.e+09" +string.format("%0# +2.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# +2.1g", 123.456789123) == "+1.e+02" +string.format("%0# +2.1g", 1234567891.23) == "+1.e+09" +string.format("%0# +2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +6g", nan) == " +nan" +string.format("%0# +6g", inf) == " +inf" +string.format("%0# +6g", -inf) == " -inf" +string.format("%0# +6.0g", 0) == "+0000." +string.format("%0# +6.0g", 1) == "+0001." +string.format("%0# +6.0g", -1) == "-0001." +string.format("%0# +6.0g", 2) == "+0002." +string.format("%0# +6.0g", -2) == "-0002." +string.format("%0# +6.0g", 3) == "+0003." +string.format("%0# +6.0g", -3) == "-0003." +string.format("%0# +6.0g", nan) == " +nan" +string.format("%0# +6.0g", inf) == " +inf" +string.format("%0# +6.0g", -inf) == " -inf" +string.format("%0# +6.0g", 100) == "+1.e+02" +string.format("%0# +6.0g", 10000) == "+1.e+04" +string.format("%0# +6.0g", 100000) == "+1.e+05" +string.format("%0# +6.0g", 1000000) == "+1.e+06" +string.format("%0# +6.0g", 10000000) == "+1.e+07" +string.format("%0# +6.0g", 0.01) == "+00.01" +string.format("%0# +6.0g", 0.0001) == "+0.0001" +string.format("%0# +6.0g", 1e-05) == "+1.e-05" +string.format("%0# +6.0g", 1e-06) == "+1.e-06" +string.format("%0# +6.0g", 1e-07) == "+1.e-07" +string.format("%0# +6.0g", 123.456) == "+1.e+02" +string.format("%0# +6.0g", 1234560000) == "+1.e+09" +string.format("%0# +6.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# +6.0g", 123.456789123) == "+1.e+02" +string.format("%0# +6.0g", 1234567891.23) == "+1.e+09" +string.format("%0# +6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +6.1g", 0) == "+0000." +string.format("%0# +6.1g", 1) == "+0001." +string.format("%0# +6.1g", -1) == "-0001." +string.format("%0# +6.1g", 2) == "+0002." +string.format("%0# +6.1g", -2) == "-0002." +string.format("%0# +6.1g", 3) == "+0003." +string.format("%0# +6.1g", -3) == "-0003." +string.format("%0# +6.1g", nan) == " +nan" +string.format("%0# +6.1g", inf) == " +inf" +string.format("%0# +6.1g", -inf) == " -inf" +string.format("%0# +6.1g", 100) == "+1.e+02" +string.format("%0# +6.1g", 10000) == "+1.e+04" +string.format("%0# +6.1g", 100000) == "+1.e+05" +string.format("%0# +6.1g", 1000000) == "+1.e+06" +string.format("%0# +6.1g", 10000000) == "+1.e+07" +string.format("%0# +6.1g", 0.01) == "+00.01" +string.format("%0# +6.1g", 0.0001) == "+0.0001" +string.format("%0# +6.1g", 1e-05) == "+1.e-05" +string.format("%0# +6.1g", 1e-06) == "+1.e-06" +string.format("%0# +6.1g", 1e-07) == "+1.e-07" +string.format("%0# +6.1g", 123.456) == "+1.e+02" +string.format("%0# +6.1g", 1234560000) == "+1.e+09" +string.format("%0# +6.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# +6.1g", 123.456789123) == "+1.e+02" +string.format("%0# +6.1g", 1234567891.23) == "+1.e+09" +string.format("%0# +6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# +6.6g", nan) == " +nan" +string.format("%0# +6.6g", inf) == " +inf" +string.format("%0# +6.6g", -inf) == " -inf" +string.format("%0# +20g", 0) == "+0000000000000.00000" +string.format("%0# +20g", 1) == "+0000000000001.00000" +string.format("%0# +20g", -1) == "-0000000000001.00000" +string.format("%0# +20g", 2) == "+0000000000002.00000" +string.format("%0# +20g", -2) == "-0000000000002.00000" +string.format("%0# +20g", 3) == "+0000000000003.00000" +string.format("%0# +20g", -3) == "-0000000000003.00000" +string.format("%0# +20g", nan) == " +nan" +string.format("%0# +20g", inf) == " +inf" +string.format("%0# +20g", -inf) == " -inf" +string.format("%0# +20g", 100) == "+000000000000100.000" +string.format("%0# +20g", 10000) == "+00000000000010000.0" +string.format("%0# +20g", 100000) == "+000000000000100000." +string.format("%0# +20g", 1000000) == "+000000001.00000e+06" +string.format("%0# +20g", 10000000) == "+000000001.00000e+07" +string.format("%0# +20g", 0.01) == "+00000000000.0100000" +string.format("%0# +20g", 0.0001) == "+000000000.000100000" +string.format("%0# +20g", 1e-05) == "+000000001.00000e-05" +string.format("%0# +20g", 1e-06) == "+000000001.00000e-06" +string.format("%0# +20g", 1e-07) == "+000000001.00000e-07" +string.format("%0# +20g", 123.456) == "+000000000000123.456" +string.format("%0# +20g", 1234560000) == "+000000001.23456e+09" +string.format("%0# +20g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0# +20g", 123.456789123) == "+000000000000123.457" +string.format("%0# +20g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0# +20g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0# +20.0g", 0) == "+000000000000000000." +string.format("%0# +20.0g", 1) == "+000000000000000001." +string.format("%0# +20.0g", -1) == "-000000000000000001." +string.format("%0# +20.0g", 2) == "+000000000000000002." +string.format("%0# +20.0g", -2) == "-000000000000000002." +string.format("%0# +20.0g", 3) == "+000000000000000003." +string.format("%0# +20.0g", -3) == "-000000000000000003." +string.format("%0# +20.0g", nan) == " +nan" +string.format("%0# +20.0g", inf) == " +inf" +string.format("%0# +20.0g", -inf) == " -inf" +string.format("%0# +20.0g", 100) == "+00000000000001.e+02" +string.format("%0# +20.0g", 10000) == "+00000000000001.e+04" +string.format("%0# +20.0g", 100000) == "+00000000000001.e+05" +string.format("%0# +20.0g", 1000000) == "+00000000000001.e+06" +string.format("%0# +20.0g", 10000000) == "+00000000000001.e+07" +string.format("%0# +20.0g", 0.01) == "+0000000000000000.01" +string.format("%0# +20.0g", 0.0001) == "+00000000000000.0001" +string.format("%0# +20.0g", 1e-05) == "+00000000000001.e-05" +string.format("%0# +20.0g", 1e-06) == "+00000000000001.e-06" +string.format("%0# +20.0g", 1e-07) == "+00000000000001.e-07" +string.format("%0# +20.0g", 123.456) == "+00000000000001.e+02" +string.format("%0# +20.0g", 1234560000) == "+00000000000001.e+09" +string.format("%0# +20.0g", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0# +20.0g", 123.456789123) == "+00000000000001.e+02" +string.format("%0# +20.0g", 1234567891.23) == "+00000000000001.e+09" +string.format("%0# +20.0g", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0# +20.1g", 0) == "+000000000000000000." +string.format("%0# +20.1g", 1) == "+000000000000000001." +string.format("%0# +20.1g", -1) == "-000000000000000001." +string.format("%0# +20.1g", 2) == "+000000000000000002." +string.format("%0# +20.1g", -2) == "-000000000000000002." +string.format("%0# +20.1g", 3) == "+000000000000000003." +string.format("%0# +20.1g", -3) == "-000000000000000003." +string.format("%0# +20.1g", nan) == " +nan" +string.format("%0# +20.1g", inf) == " +inf" +string.format("%0# +20.1g", -inf) == " -inf" +string.format("%0# +20.1g", 100) == "+00000000000001.e+02" +string.format("%0# +20.1g", 10000) == "+00000000000001.e+04" +string.format("%0# +20.1g", 100000) == "+00000000000001.e+05" +string.format("%0# +20.1g", 1000000) == "+00000000000001.e+06" +string.format("%0# +20.1g", 10000000) == "+00000000000001.e+07" +string.format("%0# +20.1g", 0.01) == "+0000000000000000.01" +string.format("%0# +20.1g", 0.0001) == "+00000000000000.0001" +string.format("%0# +20.1g", 1e-05) == "+00000000000001.e-05" +string.format("%0# +20.1g", 1e-06) == "+00000000000001.e-06" +string.format("%0# +20.1g", 1e-07) == "+00000000000001.e-07" +string.format("%0# +20.1g", 123.456) == "+00000000000001.e+02" +string.format("%0# +20.1g", 1234560000) == "+00000000000001.e+09" +string.format("%0# +20.1g", 1.23456e-05) == "+00000000000001.e-05" +string.format("%0# +20.1g", 123.456789123) == "+00000000000001.e+02" +string.format("%0# +20.1g", 1234567891.23) == "+00000000000001.e+09" +string.format("%0# +20.1g", 1.23456789123e-05) == "+00000000000001.e-05" +string.format("%0# +20.6g", 0) == "+0000000000000.00000" +string.format("%0# +20.6g", 1) == "+0000000000001.00000" +string.format("%0# +20.6g", -1) == "-0000000000001.00000" +string.format("%0# +20.6g", 2) == "+0000000000002.00000" +string.format("%0# +20.6g", -2) == "-0000000000002.00000" +string.format("%0# +20.6g", 3) == "+0000000000003.00000" +string.format("%0# +20.6g", -3) == "-0000000000003.00000" +string.format("%0# +20.6g", nan) == " +nan" +string.format("%0# +20.6g", inf) == " +inf" +string.format("%0# +20.6g", -inf) == " -inf" +string.format("%0# +20.6g", 100) == "+000000000000100.000" +string.format("%0# +20.6g", 10000) == "+00000000000010000.0" +string.format("%0# +20.6g", 100000) == "+000000000000100000." +string.format("%0# +20.6g", 1000000) == "+000000001.00000e+06" +string.format("%0# +20.6g", 10000000) == "+000000001.00000e+07" +string.format("%0# +20.6g", 0.01) == "+00000000000.0100000" +string.format("%0# +20.6g", 0.0001) == "+000000000.000100000" +string.format("%0# +20.6g", 1e-05) == "+000000001.00000e-05" +string.format("%0# +20.6g", 1e-06) == "+000000001.00000e-06" +string.format("%0# +20.6g", 1e-07) == "+000000001.00000e-07" +string.format("%0# +20.6g", 123.456) == "+000000000000123.456" +string.format("%0# +20.6g", 1234560000) == "+000000001.23456e+09" +string.format("%0# +20.6g", 1.23456e-05) == "+000000001.23456e-05" +string.format("%0# +20.6g", 123.456789123) == "+000000000000123.457" +string.format("%0# +20.6g", 1234567891.23) == "+000000001.23457e+09" +string.format("%0# +20.6g", 1.23456789123e-05) == "+000000001.23457e-05" +string.format("%0# -g", 0) == " 0.00000" +string.format("%0# -g", 1) == " 1.00000" +string.format("%0# -g", -1) == "-1.00000" +string.format("%0# -g", 2) == " 2.00000" +string.format("%0# -g", -2) == "-2.00000" +string.format("%0# -g", 3) == " 3.00000" +string.format("%0# -g", -3) == "-3.00000" +string.format("%0# -g", nan) == " nan" +string.format("%0# -g", inf) == " inf" +string.format("%0# -g", -inf) == "-inf" +string.format("%0# -g", 100) == " 100.000" +string.format("%0# -g", 10000) == " 10000.0" +string.format("%0# -g", 100000) == " 100000." +string.format("%0# -g", 1000000) == " 1.00000e+06" +string.format("%0# -g", 10000000) == " 1.00000e+07" +string.format("%0# -g", 0.01) == " 0.0100000" +string.format("%0# -g", 0.0001) == " 0.000100000" +string.format("%0# -g", 1e-05) == " 1.00000e-05" +string.format("%0# -g", 1e-06) == " 1.00000e-06" +string.format("%0# -g", 1e-07) == " 1.00000e-07" +string.format("%0# -g", 123.456) == " 123.456" +string.format("%0# -g", 1234560000) == " 1.23456e+09" +string.format("%0# -g", 1.23456e-05) == " 1.23456e-05" +string.format("%0# -g", 123.456789123) == " 123.457" +string.format("%0# -g", 1234567891.23) == " 1.23457e+09" +string.format("%0# -g", 1.23456789123e-05) == " 1.23457e-05" +string.format("%0# -.0g", 0) == " 0." +string.format("%0# -.0g", 1) == " 1." +string.format("%0# -.0g", -1) == "-1." +string.format("%0# -.0g", 2) == " 2." +string.format("%0# -.0g", -2) == "-2." +string.format("%0# -.0g", 3) == " 3." +string.format("%0# -.0g", -3) == "-3." +string.format("%0# -.0g", 100) == " 1.e+02" +string.format("%0# -.0g", 10000) == " 1.e+04" +string.format("%0# -.0g", 100000) == " 1.e+05" +string.format("%0# -.0g", 1000000) == " 1.e+06" +string.format("%0# -.0g", 10000000) == " 1.e+07" +string.format("%0# -.0g", 0.01) == " 0.01" +string.format("%0# -.0g", 0.0001) == " 0.0001" +string.format("%0# -.0g", 1e-05) == " 1.e-05" +string.format("%0# -.0g", 1e-06) == " 1.e-06" +string.format("%0# -.0g", 1e-07) == " 1.e-07" +string.format("%0# -.0g", 123.456) == " 1.e+02" +string.format("%0# -.0g", 1234560000) == " 1.e+09" +string.format("%0# -.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# -.0g", 123.456789123) == " 1.e+02" +string.format("%0# -.0g", 1234567891.23) == " 1.e+09" +string.format("%0# -.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -.1g", 0) == " 0." +string.format("%0# -.1g", 1) == " 1." +string.format("%0# -.1g", -1) == "-1." +string.format("%0# -.1g", 2) == " 2." +string.format("%0# -.1g", -2) == "-2." +string.format("%0# -.1g", 3) == " 3." +string.format("%0# -.1g", -3) == "-3." +string.format("%0# -.1g", 100) == " 1.e+02" +string.format("%0# -.1g", 10000) == " 1.e+04" +string.format("%0# -.1g", 100000) == " 1.e+05" +string.format("%0# -.1g", 1000000) == " 1.e+06" +string.format("%0# -.1g", 10000000) == " 1.e+07" +string.format("%0# -.1g", 0.01) == " 0.01" +string.format("%0# -.1g", 0.0001) == " 0.0001" +string.format("%0# -.1g", 1e-05) == " 1.e-05" +string.format("%0# -.1g", 1e-06) == " 1.e-06" +string.format("%0# -.1g", 1e-07) == " 1.e-07" +string.format("%0# -.1g", 123.456) == " 1.e+02" +string.format("%0# -.1g", 1234560000) == " 1.e+09" +string.format("%0# -.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# -.1g", 123.456789123) == " 1.e+02" +string.format("%0# -.1g", 1234567891.23) == " 1.e+09" +string.format("%0# -.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -1.0g", 0) == " 0." +string.format("%0# -1.0g", 1) == " 1." +string.format("%0# -1.0g", -1) == "-1." +string.format("%0# -1.0g", 2) == " 2." +string.format("%0# -1.0g", -2) == "-2." +string.format("%0# -1.0g", 3) == " 3." +string.format("%0# -1.0g", -3) == "-3." +string.format("%0# -1.0g", 100) == " 1.e+02" +string.format("%0# -1.0g", 10000) == " 1.e+04" +string.format("%0# -1.0g", 100000) == " 1.e+05" +string.format("%0# -1.0g", 1000000) == " 1.e+06" +string.format("%0# -1.0g", 10000000) == " 1.e+07" +string.format("%0# -1.0g", 0.01) == " 0.01" +string.format("%0# -1.0g", 0.0001) == " 0.0001" +string.format("%0# -1.0g", 1e-05) == " 1.e-05" +string.format("%0# -1.0g", 1e-06) == " 1.e-06" +string.format("%0# -1.0g", 1e-07) == " 1.e-07" +string.format("%0# -1.0g", 123.456) == " 1.e+02" +string.format("%0# -1.0g", 1234560000) == " 1.e+09" +string.format("%0# -1.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# -1.0g", 123.456789123) == " 1.e+02" +string.format("%0# -1.0g", 1234567891.23) == " 1.e+09" +string.format("%0# -1.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -1.1g", 0) == " 0." +string.format("%0# -1.1g", 1) == " 1." +string.format("%0# -1.1g", -1) == "-1." +string.format("%0# -1.1g", 2) == " 2." +string.format("%0# -1.1g", -2) == "-2." +string.format("%0# -1.1g", 3) == " 3." +string.format("%0# -1.1g", -3) == "-3." +string.format("%0# -1.1g", 100) == " 1.e+02" +string.format("%0# -1.1g", 10000) == " 1.e+04" +string.format("%0# -1.1g", 100000) == " 1.e+05" +string.format("%0# -1.1g", 1000000) == " 1.e+06" +string.format("%0# -1.1g", 10000000) == " 1.e+07" +string.format("%0# -1.1g", 0.01) == " 0.01" +string.format("%0# -1.1g", 0.0001) == " 0.0001" +string.format("%0# -1.1g", 1e-05) == " 1.e-05" +string.format("%0# -1.1g", 1e-06) == " 1.e-06" +string.format("%0# -1.1g", 1e-07) == " 1.e-07" +string.format("%0# -1.1g", 123.456) == " 1.e+02" +string.format("%0# -1.1g", 1234560000) == " 1.e+09" +string.format("%0# -1.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# -1.1g", 123.456789123) == " 1.e+02" +string.format("%0# -1.1g", 1234567891.23) == " 1.e+09" +string.format("%0# -1.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -2.0g", 0) == " 0." +string.format("%0# -2.0g", 1) == " 1." +string.format("%0# -2.0g", -1) == "-1." +string.format("%0# -2.0g", 2) == " 2." +string.format("%0# -2.0g", -2) == "-2." +string.format("%0# -2.0g", 3) == " 3." +string.format("%0# -2.0g", -3) == "-3." +string.format("%0# -2.0g", 100) == " 1.e+02" +string.format("%0# -2.0g", 10000) == " 1.e+04" +string.format("%0# -2.0g", 100000) == " 1.e+05" +string.format("%0# -2.0g", 1000000) == " 1.e+06" +string.format("%0# -2.0g", 10000000) == " 1.e+07" +string.format("%0# -2.0g", 0.01) == " 0.01" +string.format("%0# -2.0g", 0.0001) == " 0.0001" +string.format("%0# -2.0g", 1e-05) == " 1.e-05" +string.format("%0# -2.0g", 1e-06) == " 1.e-06" +string.format("%0# -2.0g", 1e-07) == " 1.e-07" +string.format("%0# -2.0g", 123.456) == " 1.e+02" +string.format("%0# -2.0g", 1234560000) == " 1.e+09" +string.format("%0# -2.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# -2.0g", 123.456789123) == " 1.e+02" +string.format("%0# -2.0g", 1234567891.23) == " 1.e+09" +string.format("%0# -2.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -2.1g", 0) == " 0." +string.format("%0# -2.1g", 1) == " 1." +string.format("%0# -2.1g", -1) == "-1." +string.format("%0# -2.1g", 2) == " 2." +string.format("%0# -2.1g", -2) == "-2." +string.format("%0# -2.1g", 3) == " 3." +string.format("%0# -2.1g", -3) == "-3." +string.format("%0# -2.1g", 100) == " 1.e+02" +string.format("%0# -2.1g", 10000) == " 1.e+04" +string.format("%0# -2.1g", 100000) == " 1.e+05" +string.format("%0# -2.1g", 1000000) == " 1.e+06" +string.format("%0# -2.1g", 10000000) == " 1.e+07" +string.format("%0# -2.1g", 0.01) == " 0.01" +string.format("%0# -2.1g", 0.0001) == " 0.0001" +string.format("%0# -2.1g", 1e-05) == " 1.e-05" +string.format("%0# -2.1g", 1e-06) == " 1.e-06" +string.format("%0# -2.1g", 1e-07) == " 1.e-07" +string.format("%0# -2.1g", 123.456) == " 1.e+02" +string.format("%0# -2.1g", 1234560000) == " 1.e+09" +string.format("%0# -2.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# -2.1g", 123.456789123) == " 1.e+02" +string.format("%0# -2.1g", 1234567891.23) == " 1.e+09" +string.format("%0# -2.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -6g", nan) == " nan " +string.format("%0# -6g", inf) == " inf " +string.format("%0# -6g", -inf) == "-inf " +string.format("%0# -6.0g", 0) == " 0. " +string.format("%0# -6.0g", 1) == " 1. " +string.format("%0# -6.0g", -1) == "-1. " +string.format("%0# -6.0g", 2) == " 2. " +string.format("%0# -6.0g", -2) == "-2. " +string.format("%0# -6.0g", 3) == " 3. " +string.format("%0# -6.0g", -3) == "-3. " +string.format("%0# -6.0g", nan) == " nan " +string.format("%0# -6.0g", inf) == " inf " +string.format("%0# -6.0g", -inf) == "-inf " +string.format("%0# -6.0g", 100) == " 1.e+02" +string.format("%0# -6.0g", 10000) == " 1.e+04" +string.format("%0# -6.0g", 100000) == " 1.e+05" +string.format("%0# -6.0g", 1000000) == " 1.e+06" +string.format("%0# -6.0g", 10000000) == " 1.e+07" +string.format("%0# -6.0g", 0.01) == " 0.01 " +string.format("%0# -6.0g", 0.0001) == " 0.0001" +string.format("%0# -6.0g", 1e-05) == " 1.e-05" +string.format("%0# -6.0g", 1e-06) == " 1.e-06" +string.format("%0# -6.0g", 1e-07) == " 1.e-07" +string.format("%0# -6.0g", 123.456) == " 1.e+02" +string.format("%0# -6.0g", 1234560000) == " 1.e+09" +string.format("%0# -6.0g", 1.23456e-05) == " 1.e-05" +string.format("%0# -6.0g", 123.456789123) == " 1.e+02" +string.format("%0# -6.0g", 1234567891.23) == " 1.e+09" +string.format("%0# -6.0g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -6.1g", 0) == " 0. " +string.format("%0# -6.1g", 1) == " 1. " +string.format("%0# -6.1g", -1) == "-1. " +string.format("%0# -6.1g", 2) == " 2. " +string.format("%0# -6.1g", -2) == "-2. " +string.format("%0# -6.1g", 3) == " 3. " +string.format("%0# -6.1g", -3) == "-3. " +string.format("%0# -6.1g", nan) == " nan " +string.format("%0# -6.1g", inf) == " inf " +string.format("%0# -6.1g", -inf) == "-inf " +string.format("%0# -6.1g", 100) == " 1.e+02" +string.format("%0# -6.1g", 10000) == " 1.e+04" +string.format("%0# -6.1g", 100000) == " 1.e+05" +string.format("%0# -6.1g", 1000000) == " 1.e+06" +string.format("%0# -6.1g", 10000000) == " 1.e+07" +string.format("%0# -6.1g", 0.01) == " 0.01 " +string.format("%0# -6.1g", 0.0001) == " 0.0001" +string.format("%0# -6.1g", 1e-05) == " 1.e-05" +string.format("%0# -6.1g", 1e-06) == " 1.e-06" +string.format("%0# -6.1g", 1e-07) == " 1.e-07" +string.format("%0# -6.1g", 123.456) == " 1.e+02" +string.format("%0# -6.1g", 1234560000) == " 1.e+09" +string.format("%0# -6.1g", 1.23456e-05) == " 1.e-05" +string.format("%0# -6.1g", 123.456789123) == " 1.e+02" +string.format("%0# -6.1g", 1234567891.23) == " 1.e+09" +string.format("%0# -6.1g", 1.23456789123e-05) == " 1.e-05" +string.format("%0# -6.6g", nan) == " nan " +string.format("%0# -6.6g", inf) == " inf " +string.format("%0# -6.6g", -inf) == "-inf " +string.format("%0# -20g", 0) == " 0.00000 " +string.format("%0# -20g", 1) == " 1.00000 " +string.format("%0# -20g", -1) == "-1.00000 " +string.format("%0# -20g", 2) == " 2.00000 " +string.format("%0# -20g", -2) == "-2.00000 " +string.format("%0# -20g", 3) == " 3.00000 " +string.format("%0# -20g", -3) == "-3.00000 " +string.format("%0# -20g", nan) == " nan " +string.format("%0# -20g", inf) == " inf " +string.format("%0# -20g", -inf) == "-inf " +string.format("%0# -20g", 100) == " 100.000 " +string.format("%0# -20g", 10000) == " 10000.0 " +string.format("%0# -20g", 100000) == " 100000. " +string.format("%0# -20g", 1000000) == " 1.00000e+06 " +string.format("%0# -20g", 10000000) == " 1.00000e+07 " +string.format("%0# -20g", 0.01) == " 0.0100000 " +string.format("%0# -20g", 0.0001) == " 0.000100000 " +string.format("%0# -20g", 1e-05) == " 1.00000e-05 " +string.format("%0# -20g", 1e-06) == " 1.00000e-06 " +string.format("%0# -20g", 1e-07) == " 1.00000e-07 " +string.format("%0# -20g", 123.456) == " 123.456 " +string.format("%0# -20g", 1234560000) == " 1.23456e+09 " +string.format("%0# -20g", 1.23456e-05) == " 1.23456e-05 " +string.format("%0# -20g", 123.456789123) == " 123.457 " +string.format("%0# -20g", 1234567891.23) == " 1.23457e+09 " +string.format("%0# -20g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%0# -20.0g", 0) == " 0. " +string.format("%0# -20.0g", 1) == " 1. " +string.format("%0# -20.0g", -1) == "-1. " +string.format("%0# -20.0g", 2) == " 2. " +string.format("%0# -20.0g", -2) == "-2. " +string.format("%0# -20.0g", 3) == " 3. " +string.format("%0# -20.0g", -3) == "-3. " +string.format("%0# -20.0g", nan) == " nan " +string.format("%0# -20.0g", inf) == " inf " +string.format("%0# -20.0g", -inf) == "-inf " +string.format("%0# -20.0g", 100) == " 1.e+02 " +string.format("%0# -20.0g", 10000) == " 1.e+04 " +string.format("%0# -20.0g", 100000) == " 1.e+05 " +string.format("%0# -20.0g", 1000000) == " 1.e+06 " +string.format("%0# -20.0g", 10000000) == " 1.e+07 " +string.format("%0# -20.0g", 0.01) == " 0.01 " +string.format("%0# -20.0g", 0.0001) == " 0.0001 " +string.format("%0# -20.0g", 1e-05) == " 1.e-05 " +string.format("%0# -20.0g", 1e-06) == " 1.e-06 " +string.format("%0# -20.0g", 1e-07) == " 1.e-07 " +string.format("%0# -20.0g", 123.456) == " 1.e+02 " +string.format("%0# -20.0g", 1234560000) == " 1.e+09 " +string.format("%0# -20.0g", 1.23456e-05) == " 1.e-05 " +string.format("%0# -20.0g", 123.456789123) == " 1.e+02 " +string.format("%0# -20.0g", 1234567891.23) == " 1.e+09 " +string.format("%0# -20.0g", 1.23456789123e-05) == " 1.e-05 " +string.format("%0# -20.1g", 0) == " 0. " +string.format("%0# -20.1g", 1) == " 1. " +string.format("%0# -20.1g", -1) == "-1. " +string.format("%0# -20.1g", 2) == " 2. " +string.format("%0# -20.1g", -2) == "-2. " +string.format("%0# -20.1g", 3) == " 3. " +string.format("%0# -20.1g", -3) == "-3. " +string.format("%0# -20.1g", nan) == " nan " +string.format("%0# -20.1g", inf) == " inf " +string.format("%0# -20.1g", -inf) == "-inf " +string.format("%0# -20.1g", 100) == " 1.e+02 " +string.format("%0# -20.1g", 10000) == " 1.e+04 " +string.format("%0# -20.1g", 100000) == " 1.e+05 " +string.format("%0# -20.1g", 1000000) == " 1.e+06 " +string.format("%0# -20.1g", 10000000) == " 1.e+07 " +string.format("%0# -20.1g", 0.01) == " 0.01 " +string.format("%0# -20.1g", 0.0001) == " 0.0001 " +string.format("%0# -20.1g", 1e-05) == " 1.e-05 " +string.format("%0# -20.1g", 1e-06) == " 1.e-06 " +string.format("%0# -20.1g", 1e-07) == " 1.e-07 " +string.format("%0# -20.1g", 123.456) == " 1.e+02 " +string.format("%0# -20.1g", 1234560000) == " 1.e+09 " +string.format("%0# -20.1g", 1.23456e-05) == " 1.e-05 " +string.format("%0# -20.1g", 123.456789123) == " 1.e+02 " +string.format("%0# -20.1g", 1234567891.23) == " 1.e+09 " +string.format("%0# -20.1g", 1.23456789123e-05) == " 1.e-05 " +string.format("%0# -20.6g", 0) == " 0.00000 " +string.format("%0# -20.6g", 1) == " 1.00000 " +string.format("%0# -20.6g", -1) == "-1.00000 " +string.format("%0# -20.6g", 2) == " 2.00000 " +string.format("%0# -20.6g", -2) == "-2.00000 " +string.format("%0# -20.6g", 3) == " 3.00000 " +string.format("%0# -20.6g", -3) == "-3.00000 " +string.format("%0# -20.6g", nan) == " nan " +string.format("%0# -20.6g", inf) == " inf " +string.format("%0# -20.6g", -inf) == "-inf " +string.format("%0# -20.6g", 100) == " 100.000 " +string.format("%0# -20.6g", 10000) == " 10000.0 " +string.format("%0# -20.6g", 100000) == " 100000. " +string.format("%0# -20.6g", 1000000) == " 1.00000e+06 " +string.format("%0# -20.6g", 10000000) == " 1.00000e+07 " +string.format("%0# -20.6g", 0.01) == " 0.0100000 " +string.format("%0# -20.6g", 0.0001) == " 0.000100000 " +string.format("%0# -20.6g", 1e-05) == " 1.00000e-05 " +string.format("%0# -20.6g", 1e-06) == " 1.00000e-06 " +string.format("%0# -20.6g", 1e-07) == " 1.00000e-07 " +string.format("%0# -20.6g", 123.456) == " 123.456 " +string.format("%0# -20.6g", 1234560000) == " 1.23456e+09 " +string.format("%0# -20.6g", 1.23456e-05) == " 1.23456e-05 " +string.format("%0# -20.6g", 123.456789123) == " 123.457 " +string.format("%0# -20.6g", 1234567891.23) == " 1.23457e+09 " +string.format("%0# -20.6g", 1.23456789123e-05) == " 1.23457e-05 " +string.format("%0# -+g", 0) == "+0.00000" +string.format("%0# -+g", 1) == "+1.00000" +string.format("%0# -+g", -1) == "-1.00000" +string.format("%0# -+g", 2) == "+2.00000" +string.format("%0# -+g", -2) == "-2.00000" +string.format("%0# -+g", 3) == "+3.00000" +string.format("%0# -+g", -3) == "-3.00000" +string.format("%0# -+g", nan) == "+nan" +string.format("%0# -+g", inf) == "+inf" +string.format("%0# -+g", -inf) == "-inf" +string.format("%0# -+g", 100) == "+100.000" +string.format("%0# -+g", 10000) == "+10000.0" +string.format("%0# -+g", 100000) == "+100000." +string.format("%0# -+g", 1000000) == "+1.00000e+06" +string.format("%0# -+g", 10000000) == "+1.00000e+07" +string.format("%0# -+g", 0.01) == "+0.0100000" +string.format("%0# -+g", 0.0001) == "+0.000100000" +string.format("%0# -+g", 1e-05) == "+1.00000e-05" +string.format("%0# -+g", 1e-06) == "+1.00000e-06" +string.format("%0# -+g", 1e-07) == "+1.00000e-07" +string.format("%0# -+g", 123.456) == "+123.456" +string.format("%0# -+g", 1234560000) == "+1.23456e+09" +string.format("%0# -+g", 1.23456e-05) == "+1.23456e-05" +string.format("%0# -+g", 123.456789123) == "+123.457" +string.format("%0# -+g", 1234567891.23) == "+1.23457e+09" +string.format("%0# -+g", 1.23456789123e-05) == "+1.23457e-05" +string.format("%0# -+.0g", 0) == "+0." +string.format("%0# -+.0g", 1) == "+1." +string.format("%0# -+.0g", -1) == "-1." +string.format("%0# -+.0g", 2) == "+2." +string.format("%0# -+.0g", -2) == "-2." +string.format("%0# -+.0g", 3) == "+3." +string.format("%0# -+.0g", -3) == "-3." +string.format("%0# -+.0g", 100) == "+1.e+02" +string.format("%0# -+.0g", 10000) == "+1.e+04" +string.format("%0# -+.0g", 100000) == "+1.e+05" +string.format("%0# -+.0g", 1000000) == "+1.e+06" +string.format("%0# -+.0g", 10000000) == "+1.e+07" +string.format("%0# -+.0g", 0.01) == "+0.01" +string.format("%0# -+.0g", 0.0001) == "+0.0001" +string.format("%0# -+.0g", 1e-05) == "+1.e-05" +string.format("%0# -+.0g", 1e-06) == "+1.e-06" +string.format("%0# -+.0g", 1e-07) == "+1.e-07" +string.format("%0# -+.0g", 123.456) == "+1.e+02" +string.format("%0# -+.0g", 1234560000) == "+1.e+09" +string.format("%0# -+.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+.0g", 123.456789123) == "+1.e+02" +string.format("%0# -+.0g", 1234567891.23) == "+1.e+09" +string.format("%0# -+.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+.1g", 0) == "+0." +string.format("%0# -+.1g", 1) == "+1." +string.format("%0# -+.1g", -1) == "-1." +string.format("%0# -+.1g", 2) == "+2." +string.format("%0# -+.1g", -2) == "-2." +string.format("%0# -+.1g", 3) == "+3." +string.format("%0# -+.1g", -3) == "-3." +string.format("%0# -+.1g", 100) == "+1.e+02" +string.format("%0# -+.1g", 10000) == "+1.e+04" +string.format("%0# -+.1g", 100000) == "+1.e+05" +string.format("%0# -+.1g", 1000000) == "+1.e+06" +string.format("%0# -+.1g", 10000000) == "+1.e+07" +string.format("%0# -+.1g", 0.01) == "+0.01" +string.format("%0# -+.1g", 0.0001) == "+0.0001" +string.format("%0# -+.1g", 1e-05) == "+1.e-05" +string.format("%0# -+.1g", 1e-06) == "+1.e-06" +string.format("%0# -+.1g", 1e-07) == "+1.e-07" +string.format("%0# -+.1g", 123.456) == "+1.e+02" +string.format("%0# -+.1g", 1234560000) == "+1.e+09" +string.format("%0# -+.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+.1g", 123.456789123) == "+1.e+02" +string.format("%0# -+.1g", 1234567891.23) == "+1.e+09" +string.format("%0# -+.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+1.0g", 0) == "+0." +string.format("%0# -+1.0g", 1) == "+1." +string.format("%0# -+1.0g", -1) == "-1." +string.format("%0# -+1.0g", 2) == "+2." +string.format("%0# -+1.0g", -2) == "-2." +string.format("%0# -+1.0g", 3) == "+3." +string.format("%0# -+1.0g", -3) == "-3." +string.format("%0# -+1.0g", 100) == "+1.e+02" +string.format("%0# -+1.0g", 10000) == "+1.e+04" +string.format("%0# -+1.0g", 100000) == "+1.e+05" +string.format("%0# -+1.0g", 1000000) == "+1.e+06" +string.format("%0# -+1.0g", 10000000) == "+1.e+07" +string.format("%0# -+1.0g", 0.01) == "+0.01" +string.format("%0# -+1.0g", 0.0001) == "+0.0001" +string.format("%0# -+1.0g", 1e-05) == "+1.e-05" +string.format("%0# -+1.0g", 1e-06) == "+1.e-06" +string.format("%0# -+1.0g", 1e-07) == "+1.e-07" +string.format("%0# -+1.0g", 123.456) == "+1.e+02" +string.format("%0# -+1.0g", 1234560000) == "+1.e+09" +string.format("%0# -+1.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+1.0g", 123.456789123) == "+1.e+02" +string.format("%0# -+1.0g", 1234567891.23) == "+1.e+09" +string.format("%0# -+1.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+1.1g", 0) == "+0." +string.format("%0# -+1.1g", 1) == "+1." +string.format("%0# -+1.1g", -1) == "-1." +string.format("%0# -+1.1g", 2) == "+2." +string.format("%0# -+1.1g", -2) == "-2." +string.format("%0# -+1.1g", 3) == "+3." +string.format("%0# -+1.1g", -3) == "-3." +string.format("%0# -+1.1g", 100) == "+1.e+02" +string.format("%0# -+1.1g", 10000) == "+1.e+04" +string.format("%0# -+1.1g", 100000) == "+1.e+05" +string.format("%0# -+1.1g", 1000000) == "+1.e+06" +string.format("%0# -+1.1g", 10000000) == "+1.e+07" +string.format("%0# -+1.1g", 0.01) == "+0.01" +string.format("%0# -+1.1g", 0.0001) == "+0.0001" +string.format("%0# -+1.1g", 1e-05) == "+1.e-05" +string.format("%0# -+1.1g", 1e-06) == "+1.e-06" +string.format("%0# -+1.1g", 1e-07) == "+1.e-07" +string.format("%0# -+1.1g", 123.456) == "+1.e+02" +string.format("%0# -+1.1g", 1234560000) == "+1.e+09" +string.format("%0# -+1.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+1.1g", 123.456789123) == "+1.e+02" +string.format("%0# -+1.1g", 1234567891.23) == "+1.e+09" +string.format("%0# -+1.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+2.0g", 0) == "+0." +string.format("%0# -+2.0g", 1) == "+1." +string.format("%0# -+2.0g", -1) == "-1." +string.format("%0# -+2.0g", 2) == "+2." +string.format("%0# -+2.0g", -2) == "-2." +string.format("%0# -+2.0g", 3) == "+3." +string.format("%0# -+2.0g", -3) == "-3." +string.format("%0# -+2.0g", 100) == "+1.e+02" +string.format("%0# -+2.0g", 10000) == "+1.e+04" +string.format("%0# -+2.0g", 100000) == "+1.e+05" +string.format("%0# -+2.0g", 1000000) == "+1.e+06" +string.format("%0# -+2.0g", 10000000) == "+1.e+07" +string.format("%0# -+2.0g", 0.01) == "+0.01" +string.format("%0# -+2.0g", 0.0001) == "+0.0001" +string.format("%0# -+2.0g", 1e-05) == "+1.e-05" +string.format("%0# -+2.0g", 1e-06) == "+1.e-06" +string.format("%0# -+2.0g", 1e-07) == "+1.e-07" +string.format("%0# -+2.0g", 123.456) == "+1.e+02" +string.format("%0# -+2.0g", 1234560000) == "+1.e+09" +string.format("%0# -+2.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+2.0g", 123.456789123) == "+1.e+02" +string.format("%0# -+2.0g", 1234567891.23) == "+1.e+09" +string.format("%0# -+2.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+2.1g", 0) == "+0." +string.format("%0# -+2.1g", 1) == "+1." +string.format("%0# -+2.1g", -1) == "-1." +string.format("%0# -+2.1g", 2) == "+2." +string.format("%0# -+2.1g", -2) == "-2." +string.format("%0# -+2.1g", 3) == "+3." +string.format("%0# -+2.1g", -3) == "-3." +string.format("%0# -+2.1g", 100) == "+1.e+02" +string.format("%0# -+2.1g", 10000) == "+1.e+04" +string.format("%0# -+2.1g", 100000) == "+1.e+05" +string.format("%0# -+2.1g", 1000000) == "+1.e+06" +string.format("%0# -+2.1g", 10000000) == "+1.e+07" +string.format("%0# -+2.1g", 0.01) == "+0.01" +string.format("%0# -+2.1g", 0.0001) == "+0.0001" +string.format("%0# -+2.1g", 1e-05) == "+1.e-05" +string.format("%0# -+2.1g", 1e-06) == "+1.e-06" +string.format("%0# -+2.1g", 1e-07) == "+1.e-07" +string.format("%0# -+2.1g", 123.456) == "+1.e+02" +string.format("%0# -+2.1g", 1234560000) == "+1.e+09" +string.format("%0# -+2.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+2.1g", 123.456789123) == "+1.e+02" +string.format("%0# -+2.1g", 1234567891.23) == "+1.e+09" +string.format("%0# -+2.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+6g", nan) == "+nan " +string.format("%0# -+6g", inf) == "+inf " +string.format("%0# -+6g", -inf) == "-inf " +string.format("%0# -+6.0g", 0) == "+0. " +string.format("%0# -+6.0g", 1) == "+1. " +string.format("%0# -+6.0g", -1) == "-1. " +string.format("%0# -+6.0g", 2) == "+2. " +string.format("%0# -+6.0g", -2) == "-2. " +string.format("%0# -+6.0g", 3) == "+3. " +string.format("%0# -+6.0g", -3) == "-3. " +string.format("%0# -+6.0g", nan) == "+nan " +string.format("%0# -+6.0g", inf) == "+inf " +string.format("%0# -+6.0g", -inf) == "-inf " +string.format("%0# -+6.0g", 100) == "+1.e+02" +string.format("%0# -+6.0g", 10000) == "+1.e+04" +string.format("%0# -+6.0g", 100000) == "+1.e+05" +string.format("%0# -+6.0g", 1000000) == "+1.e+06" +string.format("%0# -+6.0g", 10000000) == "+1.e+07" +string.format("%0# -+6.0g", 0.01) == "+0.01 " +string.format("%0# -+6.0g", 0.0001) == "+0.0001" +string.format("%0# -+6.0g", 1e-05) == "+1.e-05" +string.format("%0# -+6.0g", 1e-06) == "+1.e-06" +string.format("%0# -+6.0g", 1e-07) == "+1.e-07" +string.format("%0# -+6.0g", 123.456) == "+1.e+02" +string.format("%0# -+6.0g", 1234560000) == "+1.e+09" +string.format("%0# -+6.0g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+6.0g", 123.456789123) == "+1.e+02" +string.format("%0# -+6.0g", 1234567891.23) == "+1.e+09" +string.format("%0# -+6.0g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+6.1g", 0) == "+0. " +string.format("%0# -+6.1g", 1) == "+1. " +string.format("%0# -+6.1g", -1) == "-1. " +string.format("%0# -+6.1g", 2) == "+2. " +string.format("%0# -+6.1g", -2) == "-2. " +string.format("%0# -+6.1g", 3) == "+3. " +string.format("%0# -+6.1g", -3) == "-3. " +string.format("%0# -+6.1g", nan) == "+nan " +string.format("%0# -+6.1g", inf) == "+inf " +string.format("%0# -+6.1g", -inf) == "-inf " +string.format("%0# -+6.1g", 100) == "+1.e+02" +string.format("%0# -+6.1g", 10000) == "+1.e+04" +string.format("%0# -+6.1g", 100000) == "+1.e+05" +string.format("%0# -+6.1g", 1000000) == "+1.e+06" +string.format("%0# -+6.1g", 10000000) == "+1.e+07" +string.format("%0# -+6.1g", 0.01) == "+0.01 " +string.format("%0# -+6.1g", 0.0001) == "+0.0001" +string.format("%0# -+6.1g", 1e-05) == "+1.e-05" +string.format("%0# -+6.1g", 1e-06) == "+1.e-06" +string.format("%0# -+6.1g", 1e-07) == "+1.e-07" +string.format("%0# -+6.1g", 123.456) == "+1.e+02" +string.format("%0# -+6.1g", 1234560000) == "+1.e+09" +string.format("%0# -+6.1g", 1.23456e-05) == "+1.e-05" +string.format("%0# -+6.1g", 123.456789123) == "+1.e+02" +string.format("%0# -+6.1g", 1234567891.23) == "+1.e+09" +string.format("%0# -+6.1g", 1.23456789123e-05) == "+1.e-05" +string.format("%0# -+6.6g", nan) == "+nan " +string.format("%0# -+6.6g", inf) == "+inf " +string.format("%0# -+6.6g", -inf) == "-inf " +string.format("%0# -+20g", 0) == "+0.00000 " +string.format("%0# -+20g", 1) == "+1.00000 " +string.format("%0# -+20g", -1) == "-1.00000 " +string.format("%0# -+20g", 2) == "+2.00000 " +string.format("%0# -+20g", -2) == "-2.00000 " +string.format("%0# -+20g", 3) == "+3.00000 " +string.format("%0# -+20g", -3) == "-3.00000 " +string.format("%0# -+20g", nan) == "+nan " +string.format("%0# -+20g", inf) == "+inf " +string.format("%0# -+20g", -inf) == "-inf " +string.format("%0# -+20g", 100) == "+100.000 " +string.format("%0# -+20g", 10000) == "+10000.0 " +string.format("%0# -+20g", 100000) == "+100000. " +string.format("%0# -+20g", 1000000) == "+1.00000e+06 " +string.format("%0# -+20g", 10000000) == "+1.00000e+07 " +string.format("%0# -+20g", 0.01) == "+0.0100000 " +string.format("%0# -+20g", 0.0001) == "+0.000100000 " +string.format("%0# -+20g", 1e-05) == "+1.00000e-05 " +string.format("%0# -+20g", 1e-06) == "+1.00000e-06 " +string.format("%0# -+20g", 1e-07) == "+1.00000e-07 " +string.format("%0# -+20g", 123.456) == "+123.456 " +string.format("%0# -+20g", 1234560000) == "+1.23456e+09 " +string.format("%0# -+20g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0# -+20g", 123.456789123) == "+123.457 " +string.format("%0# -+20g", 1234567891.23) == "+1.23457e+09 " +string.format("%0# -+20g", 1.23456789123e-05) == "+1.23457e-05 " +string.format("%0# -+20.0g", 0) == "+0. " +string.format("%0# -+20.0g", 1) == "+1. " +string.format("%0# -+20.0g", -1) == "-1. " +string.format("%0# -+20.0g", 2) == "+2. " +string.format("%0# -+20.0g", -2) == "-2. " +string.format("%0# -+20.0g", 3) == "+3. " +string.format("%0# -+20.0g", -3) == "-3. " +string.format("%0# -+20.0g", nan) == "+nan " +string.format("%0# -+20.0g", inf) == "+inf " +string.format("%0# -+20.0g", -inf) == "-inf " +string.format("%0# -+20.0g", 100) == "+1.e+02 " +string.format("%0# -+20.0g", 10000) == "+1.e+04 " +string.format("%0# -+20.0g", 100000) == "+1.e+05 " +string.format("%0# -+20.0g", 1000000) == "+1.e+06 " +string.format("%0# -+20.0g", 10000000) == "+1.e+07 " +string.format("%0# -+20.0g", 0.01) == "+0.01 " +string.format("%0# -+20.0g", 0.0001) == "+0.0001 " +string.format("%0# -+20.0g", 1e-05) == "+1.e-05 " +string.format("%0# -+20.0g", 1e-06) == "+1.e-06 " +string.format("%0# -+20.0g", 1e-07) == "+1.e-07 " +string.format("%0# -+20.0g", 123.456) == "+1.e+02 " +string.format("%0# -+20.0g", 1234560000) == "+1.e+09 " +string.format("%0# -+20.0g", 1.23456e-05) == "+1.e-05 " +string.format("%0# -+20.0g", 123.456789123) == "+1.e+02 " +string.format("%0# -+20.0g", 1234567891.23) == "+1.e+09 " +string.format("%0# -+20.0g", 1.23456789123e-05) == "+1.e-05 " +string.format("%0# -+20.1g", 0) == "+0. " +string.format("%0# -+20.1g", 1) == "+1. " +string.format("%0# -+20.1g", -1) == "-1. " +string.format("%0# -+20.1g", 2) == "+2. " +string.format("%0# -+20.1g", -2) == "-2. " +string.format("%0# -+20.1g", 3) == "+3. " +string.format("%0# -+20.1g", -3) == "-3. " +string.format("%0# -+20.1g", nan) == "+nan " +string.format("%0# -+20.1g", inf) == "+inf " +string.format("%0# -+20.1g", -inf) == "-inf " +string.format("%0# -+20.1g", 100) == "+1.e+02 " +string.format("%0# -+20.1g", 10000) == "+1.e+04 " +string.format("%0# -+20.1g", 100000) == "+1.e+05 " +string.format("%0# -+20.1g", 1000000) == "+1.e+06 " +string.format("%0# -+20.1g", 10000000) == "+1.e+07 " +string.format("%0# -+20.1g", 0.01) == "+0.01 " +string.format("%0# -+20.1g", 0.0001) == "+0.0001 " +string.format("%0# -+20.1g", 1e-05) == "+1.e-05 " +string.format("%0# -+20.1g", 1e-06) == "+1.e-06 " +string.format("%0# -+20.1g", 1e-07) == "+1.e-07 " +string.format("%0# -+20.1g", 123.456) == "+1.e+02 " +string.format("%0# -+20.1g", 1234560000) == "+1.e+09 " +string.format("%0# -+20.1g", 1.23456e-05) == "+1.e-05 " +string.format("%0# -+20.1g", 123.456789123) == "+1.e+02 " +string.format("%0# -+20.1g", 1234567891.23) == "+1.e+09 " +string.format("%0# -+20.1g", 1.23456789123e-05) == "+1.e-05 " +string.format("%0# -+20.6g", 0) == "+0.00000 " +string.format("%0# -+20.6g", 1) == "+1.00000 " +string.format("%0# -+20.6g", -1) == "-1.00000 " +string.format("%0# -+20.6g", 2) == "+2.00000 " +string.format("%0# -+20.6g", -2) == "-2.00000 " +string.format("%0# -+20.6g", 3) == "+3.00000 " +string.format("%0# -+20.6g", -3) == "-3.00000 " +string.format("%0# -+20.6g", nan) == "+nan " +string.format("%0# -+20.6g", inf) == "+inf " +string.format("%0# -+20.6g", -inf) == "-inf " +string.format("%0# -+20.6g", 100) == "+100.000 " +string.format("%0# -+20.6g", 10000) == "+10000.0 " +string.format("%0# -+20.6g", 100000) == "+100000. " +string.format("%0# -+20.6g", 1000000) == "+1.00000e+06 " +string.format("%0# -+20.6g", 10000000) == "+1.00000e+07 " +string.format("%0# -+20.6g", 0.01) == "+0.0100000 " +string.format("%0# -+20.6g", 0.0001) == "+0.000100000 " +string.format("%0# -+20.6g", 1e-05) == "+1.00000e-05 " +string.format("%0# -+20.6g", 1e-06) == "+1.00000e-06 " +string.format("%0# -+20.6g", 1e-07) == "+1.00000e-07 " +string.format("%0# -+20.6g", 123.456) == "+123.456 " +string.format("%0# -+20.6g", 1234560000) == "+1.23456e+09 " +string.format("%0# -+20.6g", 1.23456e-05) == "+1.23456e-05 " +string.format("%0# -+20.6g", 123.456789123) == "+123.457 " +string.format("%0# -+20.6g", 1234567891.23) == "+1.23457e+09 " +string.format("%0# -+20.6g", 1.23456789123e-05) == "+1.23457e-05 " += G = +string.format("%G", 0) == "0" +string.format("%G", 1) == "1" +string.format("%G", -1) == "-1" +string.format("%G", 2) == "2" +string.format("%G", -2) == "-2" +string.format("%G", 3) == "3" +string.format("%G", -3) == "-3" +string.format("%G", nan) == "NAN" +string.format("%G", inf) == "INF" +string.format("%G", -inf) == "-INF" +string.format("%G", 100) == "100" +string.format("%G", 10000) == "10000" +string.format("%G", 100000) == "100000" +string.format("%G", 1000000) == "1E+06" +string.format("%G", 10000000) == "1E+07" +string.format("%G", 0.01) == "0.01" +string.format("%G", 0.0001) == "0.0001" +string.format("%G", 1e-05) == "1E-05" +string.format("%G", 1e-06) == "1E-06" +string.format("%G", 1e-07) == "1E-07" +string.format("%G", 123.456) == "123.456" +string.format("%G", 1234560000) == "1.23456E+09" +string.format("%G", 1.23456e-05) == "1.23456E-05" +string.format("%G", 123.456789123) == "123.457" +string.format("%G", 1234567891.23) == "1.23457E+09" +string.format("%G", 1.23456789123e-05) == "1.23457E-05" +string.format("%.0G", 100) == "1E+02" +string.format("%.0G", 10000) == "1E+04" +string.format("%.0G", 100000) == "1E+05" +string.format("%.0G", 123.456) == "1E+02" +string.format("%.0G", 1234560000) == "1E+09" +string.format("%.0G", 1.23456e-05) == "1E-05" +string.format("%.0G", 123.456789123) == "1E+02" +string.format("%.0G", 1234567891.23) == "1E+09" +string.format("%.0G", 1.23456789123e-05) == "1E-05" +string.format("%.1G", 100) == "1E+02" +string.format("%.1G", 10000) == "1E+04" +string.format("%.1G", 100000) == "1E+05" +string.format("%.1G", 123.456) == "1E+02" +string.format("%.1G", 1234560000) == "1E+09" +string.format("%.1G", 1.23456e-05) == "1E-05" +string.format("%.1G", 123.456789123) == "1E+02" +string.format("%.1G", 1234567891.23) == "1E+09" +string.format("%.1G", 1.23456789123e-05) == "1E-05" +string.format("%1.0G", 100) == "1E+02" +string.format("%1.0G", 10000) == "1E+04" +string.format("%1.0G", 100000) == "1E+05" +string.format("%1.0G", 123.456) == "1E+02" +string.format("%1.0G", 1234560000) == "1E+09" +string.format("%1.0G", 1.23456e-05) == "1E-05" +string.format("%1.0G", 123.456789123) == "1E+02" +string.format("%1.0G", 1234567891.23) == "1E+09" +string.format("%1.0G", 1.23456789123e-05) == "1E-05" +string.format("%1.1G", 100) == "1E+02" +string.format("%1.1G", 10000) == "1E+04" +string.format("%1.1G", 100000) == "1E+05" +string.format("%1.1G", 123.456) == "1E+02" +string.format("%1.1G", 1234560000) == "1E+09" +string.format("%1.1G", 1.23456e-05) == "1E-05" +string.format("%1.1G", 123.456789123) == "1E+02" +string.format("%1.1G", 1234567891.23) == "1E+09" +string.format("%1.1G", 1.23456789123e-05) == "1E-05" +string.format("%2G", 0) == " 0" +string.format("%2G", 1) == " 1" +string.format("%2G", 2) == " 2" +string.format("%2G", 3) == " 3" +string.format("%2.0G", 0) == " 0" +string.format("%2.0G", 1) == " 1" +string.format("%2.0G", 2) == " 2" +string.format("%2.0G", 3) == " 3" +string.format("%2.0G", 100) == "1E+02" +string.format("%2.0G", 10000) == "1E+04" +string.format("%2.0G", 100000) == "1E+05" +string.format("%2.0G", 123.456) == "1E+02" +string.format("%2.0G", 1234560000) == "1E+09" +string.format("%2.0G", 1.23456e-05) == "1E-05" +string.format("%2.0G", 123.456789123) == "1E+02" +string.format("%2.0G", 1234567891.23) == "1E+09" +string.format("%2.0G", 1.23456789123e-05) == "1E-05" +string.format("%2.1G", 0) == " 0" +string.format("%2.1G", 1) == " 1" +string.format("%2.1G", 2) == " 2" +string.format("%2.1G", 3) == " 3" +string.format("%2.1G", 100) == "1E+02" +string.format("%2.1G", 10000) == "1E+04" +string.format("%2.1G", 100000) == "1E+05" +string.format("%2.1G", 123.456) == "1E+02" +string.format("%2.1G", 1234560000) == "1E+09" +string.format("%2.1G", 1.23456e-05) == "1E-05" +string.format("%2.1G", 123.456789123) == "1E+02" +string.format("%2.1G", 1234567891.23) == "1E+09" +string.format("%2.1G", 1.23456789123e-05) == "1E-05" +string.format("%2.6G", 0) == " 0" +string.format("%2.6G", 1) == " 1" +string.format("%2.6G", 2) == " 2" +string.format("%2.6G", 3) == " 3" +string.format("%6G", 0) == " 0" +string.format("%6G", 1) == " 1" +string.format("%6G", -1) == " -1" +string.format("%6G", 2) == " 2" +string.format("%6G", -2) == " -2" +string.format("%6G", 3) == " 3" +string.format("%6G", -3) == " -3" +string.format("%6G", nan) == " NAN" +string.format("%6G", inf) == " INF" +string.format("%6G", -inf) == " -INF" +string.format("%6G", 100) == " 100" +string.format("%6G", 10000) == " 10000" +string.format("%6G", 1000000) == " 1E+06" +string.format("%6G", 10000000) == " 1E+07" +string.format("%6G", 0.01) == " 0.01" +string.format("%6G", 1e-05) == " 1E-05" +string.format("%6G", 1e-06) == " 1E-06" +string.format("%6G", 1e-07) == " 1E-07" +string.format("%6.0G", 0) == " 0" +string.format("%6.0G", 1) == " 1" +string.format("%6.0G", -1) == " -1" +string.format("%6.0G", 2) == " 2" +string.format("%6.0G", -2) == " -2" +string.format("%6.0G", 3) == " 3" +string.format("%6.0G", -3) == " -3" +string.format("%6.0G", nan) == " NAN" +string.format("%6.0G", inf) == " INF" +string.format("%6.0G", -inf) == " -INF" +string.format("%6.0G", 100) == " 1E+02" +string.format("%6.0G", 10000) == " 1E+04" +string.format("%6.0G", 100000) == " 1E+05" +string.format("%6.0G", 1000000) == " 1E+06" +string.format("%6.0G", 10000000) == " 1E+07" +string.format("%6.0G", 0.01) == " 0.01" +string.format("%6.0G", 1e-05) == " 1E-05" +string.format("%6.0G", 1e-06) == " 1E-06" +string.format("%6.0G", 1e-07) == " 1E-07" +string.format("%6.0G", 123.456) == " 1E+02" +string.format("%6.0G", 1234560000) == " 1E+09" +string.format("%6.0G", 1.23456e-05) == " 1E-05" +string.format("%6.0G", 123.456789123) == " 1E+02" +string.format("%6.0G", 1234567891.23) == " 1E+09" +string.format("%6.0G", 1.23456789123e-05) == " 1E-05" +string.format("%6.1G", 0) == " 0" +string.format("%6.1G", 1) == " 1" +string.format("%6.1G", -1) == " -1" +string.format("%6.1G", 2) == " 2" +string.format("%6.1G", -2) == " -2" +string.format("%6.1G", 3) == " 3" +string.format("%6.1G", -3) == " -3" +string.format("%6.1G", nan) == " NAN" +string.format("%6.1G", inf) == " INF" +string.format("%6.1G", -inf) == " -INF" +string.format("%6.1G", 100) == " 1E+02" +string.format("%6.1G", 10000) == " 1E+04" +string.format("%6.1G", 100000) == " 1E+05" +string.format("%6.1G", 1000000) == " 1E+06" +string.format("%6.1G", 10000000) == " 1E+07" +string.format("%6.1G", 0.01) == " 0.01" +string.format("%6.1G", 1e-05) == " 1E-05" +string.format("%6.1G", 1e-06) == " 1E-06" +string.format("%6.1G", 1e-07) == " 1E-07" +string.format("%6.1G", 123.456) == " 1E+02" +string.format("%6.1G", 1234560000) == " 1E+09" +string.format("%6.1G", 1.23456e-05) == " 1E-05" +string.format("%6.1G", 123.456789123) == " 1E+02" +string.format("%6.1G", 1234567891.23) == " 1E+09" +string.format("%6.1G", 1.23456789123e-05) == " 1E-05" +string.format("%6.6G", 0) == " 0" +string.format("%6.6G", 1) == " 1" +string.format("%6.6G", -1) == " -1" +string.format("%6.6G", 2) == " 2" +string.format("%6.6G", -2) == " -2" +string.format("%6.6G", 3) == " 3" +string.format("%6.6G", -3) == " -3" +string.format("%6.6G", nan) == " NAN" +string.format("%6.6G", inf) == " INF" +string.format("%6.6G", -inf) == " -INF" +string.format("%6.6G", 100) == " 100" +string.format("%6.6G", 10000) == " 10000" +string.format("%6.6G", 1000000) == " 1E+06" +string.format("%6.6G", 10000000) == " 1E+07" +string.format("%6.6G", 0.01) == " 0.01" +string.format("%6.6G", 1e-05) == " 1E-05" +string.format("%6.6G", 1e-06) == " 1E-06" +string.format("%6.6G", 1e-07) == " 1E-07" +string.format("%20G", 0) == " 0" +string.format("%20G", 1) == " 1" +string.format("%20G", -1) == " -1" +string.format("%20G", 2) == " 2" +string.format("%20G", -2) == " -2" +string.format("%20G", 3) == " 3" +string.format("%20G", -3) == " -3" +string.format("%20G", nan) == " NAN" +string.format("%20G", inf) == " INF" +string.format("%20G", -inf) == " -INF" +string.format("%20G", 100) == " 100" +string.format("%20G", 10000) == " 10000" +string.format("%20G", 100000) == " 100000" +string.format("%20G", 1000000) == " 1E+06" +string.format("%20G", 10000000) == " 1E+07" +string.format("%20G", 0.01) == " 0.01" +string.format("%20G", 0.0001) == " 0.0001" +string.format("%20G", 1e-05) == " 1E-05" +string.format("%20G", 1e-06) == " 1E-06" +string.format("%20G", 1e-07) == " 1E-07" +string.format("%20G", 123.456) == " 123.456" +string.format("%20G", 1234560000) == " 1.23456E+09" +string.format("%20G", 1.23456e-05) == " 1.23456E-05" +string.format("%20G", 123.456789123) == " 123.457" +string.format("%20G", 1234567891.23) == " 1.23457E+09" +string.format("%20G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%20.0G", 0) == " 0" +string.format("%20.0G", 1) == " 1" +string.format("%20.0G", -1) == " -1" +string.format("%20.0G", 2) == " 2" +string.format("%20.0G", -2) == " -2" +string.format("%20.0G", 3) == " 3" +string.format("%20.0G", -3) == " -3" +string.format("%20.0G", nan) == " NAN" +string.format("%20.0G", inf) == " INF" +string.format("%20.0G", -inf) == " -INF" +string.format("%20.0G", 100) == " 1E+02" +string.format("%20.0G", 10000) == " 1E+04" +string.format("%20.0G", 100000) == " 1E+05" +string.format("%20.0G", 1000000) == " 1E+06" +string.format("%20.0G", 10000000) == " 1E+07" +string.format("%20.0G", 0.01) == " 0.01" +string.format("%20.0G", 0.0001) == " 0.0001" +string.format("%20.0G", 1e-05) == " 1E-05" +string.format("%20.0G", 1e-06) == " 1E-06" +string.format("%20.0G", 1e-07) == " 1E-07" +string.format("%20.0G", 123.456) == " 1E+02" +string.format("%20.0G", 1234560000) == " 1E+09" +string.format("%20.0G", 1.23456e-05) == " 1E-05" +string.format("%20.0G", 123.456789123) == " 1E+02" +string.format("%20.0G", 1234567891.23) == " 1E+09" +string.format("%20.0G", 1.23456789123e-05) == " 1E-05" +string.format("%20.1G", 0) == " 0" +string.format("%20.1G", 1) == " 1" +string.format("%20.1G", -1) == " -1" +string.format("%20.1G", 2) == " 2" +string.format("%20.1G", -2) == " -2" +string.format("%20.1G", 3) == " 3" +string.format("%20.1G", -3) == " -3" +string.format("%20.1G", nan) == " NAN" +string.format("%20.1G", inf) == " INF" +string.format("%20.1G", -inf) == " -INF" +string.format("%20.1G", 100) == " 1E+02" +string.format("%20.1G", 10000) == " 1E+04" +string.format("%20.1G", 100000) == " 1E+05" +string.format("%20.1G", 1000000) == " 1E+06" +string.format("%20.1G", 10000000) == " 1E+07" +string.format("%20.1G", 0.01) == " 0.01" +string.format("%20.1G", 0.0001) == " 0.0001" +string.format("%20.1G", 1e-05) == " 1E-05" +string.format("%20.1G", 1e-06) == " 1E-06" +string.format("%20.1G", 1e-07) == " 1E-07" +string.format("%20.1G", 123.456) == " 1E+02" +string.format("%20.1G", 1234560000) == " 1E+09" +string.format("%20.1G", 1.23456e-05) == " 1E-05" +string.format("%20.1G", 123.456789123) == " 1E+02" +string.format("%20.1G", 1234567891.23) == " 1E+09" +string.format("%20.1G", 1.23456789123e-05) == " 1E-05" +string.format("%20.6G", 0) == " 0" +string.format("%20.6G", 1) == " 1" +string.format("%20.6G", -1) == " -1" +string.format("%20.6G", 2) == " 2" +string.format("%20.6G", -2) == " -2" +string.format("%20.6G", 3) == " 3" +string.format("%20.6G", -3) == " -3" +string.format("%20.6G", nan) == " NAN" +string.format("%20.6G", inf) == " INF" +string.format("%20.6G", -inf) == " -INF" +string.format("%20.6G", 100) == " 100" +string.format("%20.6G", 10000) == " 10000" +string.format("%20.6G", 100000) == " 100000" +string.format("%20.6G", 1000000) == " 1E+06" +string.format("%20.6G", 10000000) == " 1E+07" +string.format("%20.6G", 0.01) == " 0.01" +string.format("%20.6G", 0.0001) == " 0.0001" +string.format("%20.6G", 1e-05) == " 1E-05" +string.format("%20.6G", 1e-06) == " 1E-06" +string.format("%20.6G", 1e-07) == " 1E-07" +string.format("%20.6G", 123.456) == " 123.456" +string.format("%20.6G", 1234560000) == " 1.23456E+09" +string.format("%20.6G", 1.23456e-05) == " 1.23456E-05" +string.format("%20.6G", 123.456789123) == " 123.457" +string.format("%20.6G", 1234567891.23) == " 1.23457E+09" +string.format("%20.6G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%+G", 0) == "+0" +string.format("%+G", 1) == "+1" +string.format("%+G", -1) == "-1" +string.format("%+G", 2) == "+2" +string.format("%+G", -2) == "-2" +string.format("%+G", 3) == "+3" +string.format("%+G", -3) == "-3" +string.format("%+G", nan) == "+NAN" +string.format("%+G", inf) == "+INF" +string.format("%+G", -inf) == "-INF" +string.format("%+G", 100) == "+100" +string.format("%+G", 10000) == "+10000" +string.format("%+G", 100000) == "+100000" +string.format("%+G", 1000000) == "+1E+06" +string.format("%+G", 10000000) == "+1E+07" +string.format("%+G", 0.01) == "+0.01" +string.format("%+G", 0.0001) == "+0.0001" +string.format("%+G", 1e-05) == "+1E-05" +string.format("%+G", 1e-06) == "+1E-06" +string.format("%+G", 1e-07) == "+1E-07" +string.format("%+G", 123.456) == "+123.456" +string.format("%+G", 1234560000) == "+1.23456E+09" +string.format("%+G", 1.23456e-05) == "+1.23456E-05" +string.format("%+G", 123.456789123) == "+123.457" +string.format("%+G", 1234567891.23) == "+1.23457E+09" +string.format("%+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%+.0G", 100) == "+1E+02" +string.format("%+.0G", 10000) == "+1E+04" +string.format("%+.0G", 100000) == "+1E+05" +string.format("%+.0G", 123.456) == "+1E+02" +string.format("%+.0G", 1234560000) == "+1E+09" +string.format("%+.0G", 1.23456e-05) == "+1E-05" +string.format("%+.0G", 123.456789123) == "+1E+02" +string.format("%+.0G", 1234567891.23) == "+1E+09" +string.format("%+.0G", 1.23456789123e-05) == "+1E-05" +string.format("%+.1G", 100) == "+1E+02" +string.format("%+.1G", 10000) == "+1E+04" +string.format("%+.1G", 100000) == "+1E+05" +string.format("%+.1G", 123.456) == "+1E+02" +string.format("%+.1G", 1234560000) == "+1E+09" +string.format("%+.1G", 1.23456e-05) == "+1E-05" +string.format("%+.1G", 123.456789123) == "+1E+02" +string.format("%+.1G", 1234567891.23) == "+1E+09" +string.format("%+.1G", 1.23456789123e-05) == "+1E-05" +string.format("%+1.0G", 100) == "+1E+02" +string.format("%+1.0G", 10000) == "+1E+04" +string.format("%+1.0G", 100000) == "+1E+05" +string.format("%+1.0G", 123.456) == "+1E+02" +string.format("%+1.0G", 1234560000) == "+1E+09" +string.format("%+1.0G", 1.23456e-05) == "+1E-05" +string.format("%+1.0G", 123.456789123) == "+1E+02" +string.format("%+1.0G", 1234567891.23) == "+1E+09" +string.format("%+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%+1.1G", 100) == "+1E+02" +string.format("%+1.1G", 10000) == "+1E+04" +string.format("%+1.1G", 100000) == "+1E+05" +string.format("%+1.1G", 123.456) == "+1E+02" +string.format("%+1.1G", 1234560000) == "+1E+09" +string.format("%+1.1G", 1.23456e-05) == "+1E-05" +string.format("%+1.1G", 123.456789123) == "+1E+02" +string.format("%+1.1G", 1234567891.23) == "+1E+09" +string.format("%+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%+2.0G", 100) == "+1E+02" +string.format("%+2.0G", 10000) == "+1E+04" +string.format("%+2.0G", 100000) == "+1E+05" +string.format("%+2.0G", 123.456) == "+1E+02" +string.format("%+2.0G", 1234560000) == "+1E+09" +string.format("%+2.0G", 1.23456e-05) == "+1E-05" +string.format("%+2.0G", 123.456789123) == "+1E+02" +string.format("%+2.0G", 1234567891.23) == "+1E+09" +string.format("%+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%+2.1G", 100) == "+1E+02" +string.format("%+2.1G", 10000) == "+1E+04" +string.format("%+2.1G", 100000) == "+1E+05" +string.format("%+2.1G", 123.456) == "+1E+02" +string.format("%+2.1G", 1234560000) == "+1E+09" +string.format("%+2.1G", 1.23456e-05) == "+1E-05" +string.format("%+2.1G", 123.456789123) == "+1E+02" +string.format("%+2.1G", 1234567891.23) == "+1E+09" +string.format("%+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%+6G", 0) == " +0" +string.format("%+6G", 1) == " +1" +string.format("%+6G", -1) == " -1" +string.format("%+6G", 2) == " +2" +string.format("%+6G", -2) == " -2" +string.format("%+6G", 3) == " +3" +string.format("%+6G", -3) == " -3" +string.format("%+6G", nan) == " +NAN" +string.format("%+6G", inf) == " +INF" +string.format("%+6G", -inf) == " -INF" +string.format("%+6G", 100) == " +100" +string.format("%+6G", 0.01) == " +0.01" +string.format("%+6.0G", 0) == " +0" +string.format("%+6.0G", 1) == " +1" +string.format("%+6.0G", -1) == " -1" +string.format("%+6.0G", 2) == " +2" +string.format("%+6.0G", -2) == " -2" +string.format("%+6.0G", 3) == " +3" +string.format("%+6.0G", -3) == " -3" +string.format("%+6.0G", nan) == " +NAN" +string.format("%+6.0G", inf) == " +INF" +string.format("%+6.0G", -inf) == " -INF" +string.format("%+6.0G", 100) == "+1E+02" +string.format("%+6.0G", 10000) == "+1E+04" +string.format("%+6.0G", 100000) == "+1E+05" +string.format("%+6.0G", 0.01) == " +0.01" +string.format("%+6.0G", 123.456) == "+1E+02" +string.format("%+6.0G", 1234560000) == "+1E+09" +string.format("%+6.0G", 1.23456e-05) == "+1E-05" +string.format("%+6.0G", 123.456789123) == "+1E+02" +string.format("%+6.0G", 1234567891.23) == "+1E+09" +string.format("%+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%+6.1G", 0) == " +0" +string.format("%+6.1G", 1) == " +1" +string.format("%+6.1G", -1) == " -1" +string.format("%+6.1G", 2) == " +2" +string.format("%+6.1G", -2) == " -2" +string.format("%+6.1G", 3) == " +3" +string.format("%+6.1G", -3) == " -3" +string.format("%+6.1G", nan) == " +NAN" +string.format("%+6.1G", inf) == " +INF" +string.format("%+6.1G", -inf) == " -INF" +string.format("%+6.1G", 100) == "+1E+02" +string.format("%+6.1G", 10000) == "+1E+04" +string.format("%+6.1G", 100000) == "+1E+05" +string.format("%+6.1G", 0.01) == " +0.01" +string.format("%+6.1G", 123.456) == "+1E+02" +string.format("%+6.1G", 1234560000) == "+1E+09" +string.format("%+6.1G", 1.23456e-05) == "+1E-05" +string.format("%+6.1G", 123.456789123) == "+1E+02" +string.format("%+6.1G", 1234567891.23) == "+1E+09" +string.format("%+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%+6.6G", 0) == " +0" +string.format("%+6.6G", 1) == " +1" +string.format("%+6.6G", -1) == " -1" +string.format("%+6.6G", 2) == " +2" +string.format("%+6.6G", -2) == " -2" +string.format("%+6.6G", 3) == " +3" +string.format("%+6.6G", -3) == " -3" +string.format("%+6.6G", nan) == " +NAN" +string.format("%+6.6G", inf) == " +INF" +string.format("%+6.6G", -inf) == " -INF" +string.format("%+6.6G", 100) == " +100" +string.format("%+6.6G", 0.01) == " +0.01" +string.format("%+20G", 0) == " +0" +string.format("%+20G", 1) == " +1" +string.format("%+20G", -1) == " -1" +string.format("%+20G", 2) == " +2" +string.format("%+20G", -2) == " -2" +string.format("%+20G", 3) == " +3" +string.format("%+20G", -3) == " -3" +string.format("%+20G", nan) == " +NAN" +string.format("%+20G", inf) == " +INF" +string.format("%+20G", -inf) == " -INF" +string.format("%+20G", 100) == " +100" +string.format("%+20G", 10000) == " +10000" +string.format("%+20G", 100000) == " +100000" +string.format("%+20G", 1000000) == " +1E+06" +string.format("%+20G", 10000000) == " +1E+07" +string.format("%+20G", 0.01) == " +0.01" +string.format("%+20G", 0.0001) == " +0.0001" +string.format("%+20G", 1e-05) == " +1E-05" +string.format("%+20G", 1e-06) == " +1E-06" +string.format("%+20G", 1e-07) == " +1E-07" +string.format("%+20G", 123.456) == " +123.456" +string.format("%+20G", 1234560000) == " +1.23456E+09" +string.format("%+20G", 1.23456e-05) == " +1.23456E-05" +string.format("%+20G", 123.456789123) == " +123.457" +string.format("%+20G", 1234567891.23) == " +1.23457E+09" +string.format("%+20G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%+20.0G", 0) == " +0" +string.format("%+20.0G", 1) == " +1" +string.format("%+20.0G", -1) == " -1" +string.format("%+20.0G", 2) == " +2" +string.format("%+20.0G", -2) == " -2" +string.format("%+20.0G", 3) == " +3" +string.format("%+20.0G", -3) == " -3" +string.format("%+20.0G", nan) == " +NAN" +string.format("%+20.0G", inf) == " +INF" +string.format("%+20.0G", -inf) == " -INF" +string.format("%+20.0G", 100) == " +1E+02" +string.format("%+20.0G", 10000) == " +1E+04" +string.format("%+20.0G", 100000) == " +1E+05" +string.format("%+20.0G", 1000000) == " +1E+06" +string.format("%+20.0G", 10000000) == " +1E+07" +string.format("%+20.0G", 0.01) == " +0.01" +string.format("%+20.0G", 0.0001) == " +0.0001" +string.format("%+20.0G", 1e-05) == " +1E-05" +string.format("%+20.0G", 1e-06) == " +1E-06" +string.format("%+20.0G", 1e-07) == " +1E-07" +string.format("%+20.0G", 123.456) == " +1E+02" +string.format("%+20.0G", 1234560000) == " +1E+09" +string.format("%+20.0G", 1.23456e-05) == " +1E-05" +string.format("%+20.0G", 123.456789123) == " +1E+02" +string.format("%+20.0G", 1234567891.23) == " +1E+09" +string.format("%+20.0G", 1.23456789123e-05) == " +1E-05" +string.format("%+20.1G", 0) == " +0" +string.format("%+20.1G", 1) == " +1" +string.format("%+20.1G", -1) == " -1" +string.format("%+20.1G", 2) == " +2" +string.format("%+20.1G", -2) == " -2" +string.format("%+20.1G", 3) == " +3" +string.format("%+20.1G", -3) == " -3" +string.format("%+20.1G", nan) == " +NAN" +string.format("%+20.1G", inf) == " +INF" +string.format("%+20.1G", -inf) == " -INF" +string.format("%+20.1G", 100) == " +1E+02" +string.format("%+20.1G", 10000) == " +1E+04" +string.format("%+20.1G", 100000) == " +1E+05" +string.format("%+20.1G", 1000000) == " +1E+06" +string.format("%+20.1G", 10000000) == " +1E+07" +string.format("%+20.1G", 0.01) == " +0.01" +string.format("%+20.1G", 0.0001) == " +0.0001" +string.format("%+20.1G", 1e-05) == " +1E-05" +string.format("%+20.1G", 1e-06) == " +1E-06" +string.format("%+20.1G", 1e-07) == " +1E-07" +string.format("%+20.1G", 123.456) == " +1E+02" +string.format("%+20.1G", 1234560000) == " +1E+09" +string.format("%+20.1G", 1.23456e-05) == " +1E-05" +string.format("%+20.1G", 123.456789123) == " +1E+02" +string.format("%+20.1G", 1234567891.23) == " +1E+09" +string.format("%+20.1G", 1.23456789123e-05) == " +1E-05" +string.format("%+20.6G", 0) == " +0" +string.format("%+20.6G", 1) == " +1" +string.format("%+20.6G", -1) == " -1" +string.format("%+20.6G", 2) == " +2" +string.format("%+20.6G", -2) == " -2" +string.format("%+20.6G", 3) == " +3" +string.format("%+20.6G", -3) == " -3" +string.format("%+20.6G", nan) == " +NAN" +string.format("%+20.6G", inf) == " +INF" +string.format("%+20.6G", -inf) == " -INF" +string.format("%+20.6G", 100) == " +100" +string.format("%+20.6G", 10000) == " +10000" +string.format("%+20.6G", 100000) == " +100000" +string.format("%+20.6G", 1000000) == " +1E+06" +string.format("%+20.6G", 10000000) == " +1E+07" +string.format("%+20.6G", 0.01) == " +0.01" +string.format("%+20.6G", 0.0001) == " +0.0001" +string.format("%+20.6G", 1e-05) == " +1E-05" +string.format("%+20.6G", 1e-06) == " +1E-06" +string.format("%+20.6G", 1e-07) == " +1E-07" +string.format("%+20.6G", 123.456) == " +123.456" +string.format("%+20.6G", 1234560000) == " +1.23456E+09" +string.format("%+20.6G", 1.23456e-05) == " +1.23456E-05" +string.format("%+20.6G", 123.456789123) == " +123.457" +string.format("%+20.6G", 1234567891.23) == " +1.23457E+09" +string.format("%+20.6G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%-G", 0) == "0" +string.format("%-G", 1) == "1" +string.format("%-G", -1) == "-1" +string.format("%-G", 2) == "2" +string.format("%-G", -2) == "-2" +string.format("%-G", 3) == "3" +string.format("%-G", -3) == "-3" +string.format("%-G", nan) == "NAN" +string.format("%-G", inf) == "INF" +string.format("%-G", -inf) == "-INF" +string.format("%-G", 100) == "100" +string.format("%-G", 10000) == "10000" +string.format("%-G", 100000) == "100000" +string.format("%-G", 1000000) == "1E+06" +string.format("%-G", 10000000) == "1E+07" +string.format("%-G", 0.01) == "0.01" +string.format("%-G", 0.0001) == "0.0001" +string.format("%-G", 1e-05) == "1E-05" +string.format("%-G", 1e-06) == "1E-06" +string.format("%-G", 1e-07) == "1E-07" +string.format("%-G", 123.456) == "123.456" +string.format("%-G", 1234560000) == "1.23456E+09" +string.format("%-G", 1.23456e-05) == "1.23456E-05" +string.format("%-G", 123.456789123) == "123.457" +string.format("%-G", 1234567891.23) == "1.23457E+09" +string.format("%-G", 1.23456789123e-05) == "1.23457E-05" +string.format("%-.0G", 100) == "1E+02" +string.format("%-.0G", 10000) == "1E+04" +string.format("%-.0G", 100000) == "1E+05" +string.format("%-.0G", 123.456) == "1E+02" +string.format("%-.0G", 1234560000) == "1E+09" +string.format("%-.0G", 1.23456e-05) == "1E-05" +string.format("%-.0G", 123.456789123) == "1E+02" +string.format("%-.0G", 1234567891.23) == "1E+09" +string.format("%-.0G", 1.23456789123e-05) == "1E-05" +string.format("%-.1G", 100) == "1E+02" +string.format("%-.1G", 10000) == "1E+04" +string.format("%-.1G", 100000) == "1E+05" +string.format("%-.1G", 123.456) == "1E+02" +string.format("%-.1G", 1234560000) == "1E+09" +string.format("%-.1G", 1.23456e-05) == "1E-05" +string.format("%-.1G", 123.456789123) == "1E+02" +string.format("%-.1G", 1234567891.23) == "1E+09" +string.format("%-.1G", 1.23456789123e-05) == "1E-05" +string.format("%-1.0G", 100) == "1E+02" +string.format("%-1.0G", 10000) == "1E+04" +string.format("%-1.0G", 100000) == "1E+05" +string.format("%-1.0G", 123.456) == "1E+02" +string.format("%-1.0G", 1234560000) == "1E+09" +string.format("%-1.0G", 1.23456e-05) == "1E-05" +string.format("%-1.0G", 123.456789123) == "1E+02" +string.format("%-1.0G", 1234567891.23) == "1E+09" +string.format("%-1.0G", 1.23456789123e-05) == "1E-05" +string.format("%-1.1G", 100) == "1E+02" +string.format("%-1.1G", 10000) == "1E+04" +string.format("%-1.1G", 100000) == "1E+05" +string.format("%-1.1G", 123.456) == "1E+02" +string.format("%-1.1G", 1234560000) == "1E+09" +string.format("%-1.1G", 1.23456e-05) == "1E-05" +string.format("%-1.1G", 123.456789123) == "1E+02" +string.format("%-1.1G", 1234567891.23) == "1E+09" +string.format("%-1.1G", 1.23456789123e-05) == "1E-05" +string.format("%-2G", 0) == "0 " +string.format("%-2G", 1) == "1 " +string.format("%-2G", 2) == "2 " +string.format("%-2G", 3) == "3 " +string.format("%-2.0G", 0) == "0 " +string.format("%-2.0G", 1) == "1 " +string.format("%-2.0G", 2) == "2 " +string.format("%-2.0G", 3) == "3 " +string.format("%-2.0G", 100) == "1E+02" +string.format("%-2.0G", 10000) == "1E+04" +string.format("%-2.0G", 100000) == "1E+05" +string.format("%-2.0G", 123.456) == "1E+02" +string.format("%-2.0G", 1234560000) == "1E+09" +string.format("%-2.0G", 1.23456e-05) == "1E-05" +string.format("%-2.0G", 123.456789123) == "1E+02" +string.format("%-2.0G", 1234567891.23) == "1E+09" +string.format("%-2.0G", 1.23456789123e-05) == "1E-05" +string.format("%-2.1G", 0) == "0 " +string.format("%-2.1G", 1) == "1 " +string.format("%-2.1G", 2) == "2 " +string.format("%-2.1G", 3) == "3 " +string.format("%-2.1G", 100) == "1E+02" +string.format("%-2.1G", 10000) == "1E+04" +string.format("%-2.1G", 100000) == "1E+05" +string.format("%-2.1G", 123.456) == "1E+02" +string.format("%-2.1G", 1234560000) == "1E+09" +string.format("%-2.1G", 1.23456e-05) == "1E-05" +string.format("%-2.1G", 123.456789123) == "1E+02" +string.format("%-2.1G", 1234567891.23) == "1E+09" +string.format("%-2.1G", 1.23456789123e-05) == "1E-05" +string.format("%-2.6G", 0) == "0 " +string.format("%-2.6G", 1) == "1 " +string.format("%-2.6G", 2) == "2 " +string.format("%-2.6G", 3) == "3 " +string.format("%-6G", 0) == "0 " +string.format("%-6G", 1) == "1 " +string.format("%-6G", -1) == "-1 " +string.format("%-6G", 2) == "2 " +string.format("%-6G", -2) == "-2 " +string.format("%-6G", 3) == "3 " +string.format("%-6G", -3) == "-3 " +string.format("%-6G", nan) == "NAN " +string.format("%-6G", inf) == "INF " +string.format("%-6G", -inf) == "-INF " +string.format("%-6G", 100) == "100 " +string.format("%-6G", 10000) == "10000 " +string.format("%-6G", 1000000) == "1E+06 " +string.format("%-6G", 10000000) == "1E+07 " +string.format("%-6G", 0.01) == "0.01 " +string.format("%-6G", 1e-05) == "1E-05 " +string.format("%-6G", 1e-06) == "1E-06 " +string.format("%-6G", 1e-07) == "1E-07 " +string.format("%-6.0G", 0) == "0 " +string.format("%-6.0G", 1) == "1 " +string.format("%-6.0G", -1) == "-1 " +string.format("%-6.0G", 2) == "2 " +string.format("%-6.0G", -2) == "-2 " +string.format("%-6.0G", 3) == "3 " +string.format("%-6.0G", -3) == "-3 " +string.format("%-6.0G", nan) == "NAN " +string.format("%-6.0G", inf) == "INF " +string.format("%-6.0G", -inf) == "-INF " +string.format("%-6.0G", 100) == "1E+02 " +string.format("%-6.0G", 10000) == "1E+04 " +string.format("%-6.0G", 100000) == "1E+05 " +string.format("%-6.0G", 1000000) == "1E+06 " +string.format("%-6.0G", 10000000) == "1E+07 " +string.format("%-6.0G", 0.01) == "0.01 " +string.format("%-6.0G", 1e-05) == "1E-05 " +string.format("%-6.0G", 1e-06) == "1E-06 " +string.format("%-6.0G", 1e-07) == "1E-07 " +string.format("%-6.0G", 123.456) == "1E+02 " +string.format("%-6.0G", 1234560000) == "1E+09 " +string.format("%-6.0G", 1.23456e-05) == "1E-05 " +string.format("%-6.0G", 123.456789123) == "1E+02 " +string.format("%-6.0G", 1234567891.23) == "1E+09 " +string.format("%-6.0G", 1.23456789123e-05) == "1E-05 " +string.format("%-6.1G", 0) == "0 " +string.format("%-6.1G", 1) == "1 " +string.format("%-6.1G", -1) == "-1 " +string.format("%-6.1G", 2) == "2 " +string.format("%-6.1G", -2) == "-2 " +string.format("%-6.1G", 3) == "3 " +string.format("%-6.1G", -3) == "-3 " +string.format("%-6.1G", nan) == "NAN " +string.format("%-6.1G", inf) == "INF " +string.format("%-6.1G", -inf) == "-INF " +string.format("%-6.1G", 100) == "1E+02 " +string.format("%-6.1G", 10000) == "1E+04 " +string.format("%-6.1G", 100000) == "1E+05 " +string.format("%-6.1G", 1000000) == "1E+06 " +string.format("%-6.1G", 10000000) == "1E+07 " +string.format("%-6.1G", 0.01) == "0.01 " +string.format("%-6.1G", 1e-05) == "1E-05 " +string.format("%-6.1G", 1e-06) == "1E-06 " +string.format("%-6.1G", 1e-07) == "1E-07 " +string.format("%-6.1G", 123.456) == "1E+02 " +string.format("%-6.1G", 1234560000) == "1E+09 " +string.format("%-6.1G", 1.23456e-05) == "1E-05 " +string.format("%-6.1G", 123.456789123) == "1E+02 " +string.format("%-6.1G", 1234567891.23) == "1E+09 " +string.format("%-6.1G", 1.23456789123e-05) == "1E-05 " +string.format("%-6.6G", 0) == "0 " +string.format("%-6.6G", 1) == "1 " +string.format("%-6.6G", -1) == "-1 " +string.format("%-6.6G", 2) == "2 " +string.format("%-6.6G", -2) == "-2 " +string.format("%-6.6G", 3) == "3 " +string.format("%-6.6G", -3) == "-3 " +string.format("%-6.6G", nan) == "NAN " +string.format("%-6.6G", inf) == "INF " +string.format("%-6.6G", -inf) == "-INF " +string.format("%-6.6G", 100) == "100 " +string.format("%-6.6G", 10000) == "10000 " +string.format("%-6.6G", 1000000) == "1E+06 " +string.format("%-6.6G", 10000000) == "1E+07 " +string.format("%-6.6G", 0.01) == "0.01 " +string.format("%-6.6G", 1e-05) == "1E-05 " +string.format("%-6.6G", 1e-06) == "1E-06 " +string.format("%-6.6G", 1e-07) == "1E-07 " +string.format("%-20G", 0) == "0 " +string.format("%-20G", 1) == "1 " +string.format("%-20G", -1) == "-1 " +string.format("%-20G", 2) == "2 " +string.format("%-20G", -2) == "-2 " +string.format("%-20G", 3) == "3 " +string.format("%-20G", -3) == "-3 " +string.format("%-20G", nan) == "NAN " +string.format("%-20G", inf) == "INF " +string.format("%-20G", -inf) == "-INF " +string.format("%-20G", 100) == "100 " +string.format("%-20G", 10000) == "10000 " +string.format("%-20G", 100000) == "100000 " +string.format("%-20G", 1000000) == "1E+06 " +string.format("%-20G", 10000000) == "1E+07 " +string.format("%-20G", 0.01) == "0.01 " +string.format("%-20G", 0.0001) == "0.0001 " +string.format("%-20G", 1e-05) == "1E-05 " +string.format("%-20G", 1e-06) == "1E-06 " +string.format("%-20G", 1e-07) == "1E-07 " +string.format("%-20G", 123.456) == "123.456 " +string.format("%-20G", 1234560000) == "1.23456E+09 " +string.format("%-20G", 1.23456e-05) == "1.23456E-05 " +string.format("%-20G", 123.456789123) == "123.457 " +string.format("%-20G", 1234567891.23) == "1.23457E+09 " +string.format("%-20G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%-20.0G", 0) == "0 " +string.format("%-20.0G", 1) == "1 " +string.format("%-20.0G", -1) == "-1 " +string.format("%-20.0G", 2) == "2 " +string.format("%-20.0G", -2) == "-2 " +string.format("%-20.0G", 3) == "3 " +string.format("%-20.0G", -3) == "-3 " +string.format("%-20.0G", nan) == "NAN " +string.format("%-20.0G", inf) == "INF " +string.format("%-20.0G", -inf) == "-INF " +string.format("%-20.0G", 100) == "1E+02 " +string.format("%-20.0G", 10000) == "1E+04 " +string.format("%-20.0G", 100000) == "1E+05 " +string.format("%-20.0G", 1000000) == "1E+06 " +string.format("%-20.0G", 10000000) == "1E+07 " +string.format("%-20.0G", 0.01) == "0.01 " +string.format("%-20.0G", 0.0001) == "0.0001 " +string.format("%-20.0G", 1e-05) == "1E-05 " +string.format("%-20.0G", 1e-06) == "1E-06 " +string.format("%-20.0G", 1e-07) == "1E-07 " +string.format("%-20.0G", 123.456) == "1E+02 " +string.format("%-20.0G", 1234560000) == "1E+09 " +string.format("%-20.0G", 1.23456e-05) == "1E-05 " +string.format("%-20.0G", 123.456789123) == "1E+02 " +string.format("%-20.0G", 1234567891.23) == "1E+09 " +string.format("%-20.0G", 1.23456789123e-05) == "1E-05 " +string.format("%-20.1G", 0) == "0 " +string.format("%-20.1G", 1) == "1 " +string.format("%-20.1G", -1) == "-1 " +string.format("%-20.1G", 2) == "2 " +string.format("%-20.1G", -2) == "-2 " +string.format("%-20.1G", 3) == "3 " +string.format("%-20.1G", -3) == "-3 " +string.format("%-20.1G", nan) == "NAN " +string.format("%-20.1G", inf) == "INF " +string.format("%-20.1G", -inf) == "-INF " +string.format("%-20.1G", 100) == "1E+02 " +string.format("%-20.1G", 10000) == "1E+04 " +string.format("%-20.1G", 100000) == "1E+05 " +string.format("%-20.1G", 1000000) == "1E+06 " +string.format("%-20.1G", 10000000) == "1E+07 " +string.format("%-20.1G", 0.01) == "0.01 " +string.format("%-20.1G", 0.0001) == "0.0001 " +string.format("%-20.1G", 1e-05) == "1E-05 " +string.format("%-20.1G", 1e-06) == "1E-06 " +string.format("%-20.1G", 1e-07) == "1E-07 " +string.format("%-20.1G", 123.456) == "1E+02 " +string.format("%-20.1G", 1234560000) == "1E+09 " +string.format("%-20.1G", 1.23456e-05) == "1E-05 " +string.format("%-20.1G", 123.456789123) == "1E+02 " +string.format("%-20.1G", 1234567891.23) == "1E+09 " +string.format("%-20.1G", 1.23456789123e-05) == "1E-05 " +string.format("%-20.6G", 0) == "0 " +string.format("%-20.6G", 1) == "1 " +string.format("%-20.6G", -1) == "-1 " +string.format("%-20.6G", 2) == "2 " +string.format("%-20.6G", -2) == "-2 " +string.format("%-20.6G", 3) == "3 " +string.format("%-20.6G", -3) == "-3 " +string.format("%-20.6G", nan) == "NAN " +string.format("%-20.6G", inf) == "INF " +string.format("%-20.6G", -inf) == "-INF " +string.format("%-20.6G", 100) == "100 " +string.format("%-20.6G", 10000) == "10000 " +string.format("%-20.6G", 100000) == "100000 " +string.format("%-20.6G", 1000000) == "1E+06 " +string.format("%-20.6G", 10000000) == "1E+07 " +string.format("%-20.6G", 0.01) == "0.01 " +string.format("%-20.6G", 0.0001) == "0.0001 " +string.format("%-20.6G", 1e-05) == "1E-05 " +string.format("%-20.6G", 1e-06) == "1E-06 " +string.format("%-20.6G", 1e-07) == "1E-07 " +string.format("%-20.6G", 123.456) == "123.456 " +string.format("%-20.6G", 1234560000) == "1.23456E+09 " +string.format("%-20.6G", 1.23456e-05) == "1.23456E-05 " +string.format("%-20.6G", 123.456789123) == "123.457 " +string.format("%-20.6G", 1234567891.23) == "1.23457E+09 " +string.format("%-20.6G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%-+G", 0) == "+0" +string.format("%-+G", 1) == "+1" +string.format("%-+G", -1) == "-1" +string.format("%-+G", 2) == "+2" +string.format("%-+G", -2) == "-2" +string.format("%-+G", 3) == "+3" +string.format("%-+G", -3) == "-3" +string.format("%-+G", nan) == "+NAN" +string.format("%-+G", inf) == "+INF" +string.format("%-+G", -inf) == "-INF" +string.format("%-+G", 100) == "+100" +string.format("%-+G", 10000) == "+10000" +string.format("%-+G", 100000) == "+100000" +string.format("%-+G", 1000000) == "+1E+06" +string.format("%-+G", 10000000) == "+1E+07" +string.format("%-+G", 0.01) == "+0.01" +string.format("%-+G", 0.0001) == "+0.0001" +string.format("%-+G", 1e-05) == "+1E-05" +string.format("%-+G", 1e-06) == "+1E-06" +string.format("%-+G", 1e-07) == "+1E-07" +string.format("%-+G", 123.456) == "+123.456" +string.format("%-+G", 1234560000) == "+1.23456E+09" +string.format("%-+G", 1.23456e-05) == "+1.23456E-05" +string.format("%-+G", 123.456789123) == "+123.457" +string.format("%-+G", 1234567891.23) == "+1.23457E+09" +string.format("%-+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%-+.0G", 100) == "+1E+02" +string.format("%-+.0G", 10000) == "+1E+04" +string.format("%-+.0G", 100000) == "+1E+05" +string.format("%-+.0G", 123.456) == "+1E+02" +string.format("%-+.0G", 1234560000) == "+1E+09" +string.format("%-+.0G", 1.23456e-05) == "+1E-05" +string.format("%-+.0G", 123.456789123) == "+1E+02" +string.format("%-+.0G", 1234567891.23) == "+1E+09" +string.format("%-+.0G", 1.23456789123e-05) == "+1E-05" +string.format("%-+.1G", 100) == "+1E+02" +string.format("%-+.1G", 10000) == "+1E+04" +string.format("%-+.1G", 100000) == "+1E+05" +string.format("%-+.1G", 123.456) == "+1E+02" +string.format("%-+.1G", 1234560000) == "+1E+09" +string.format("%-+.1G", 1.23456e-05) == "+1E-05" +string.format("%-+.1G", 123.456789123) == "+1E+02" +string.format("%-+.1G", 1234567891.23) == "+1E+09" +string.format("%-+.1G", 1.23456789123e-05) == "+1E-05" +string.format("%-+1.0G", 100) == "+1E+02" +string.format("%-+1.0G", 10000) == "+1E+04" +string.format("%-+1.0G", 100000) == "+1E+05" +string.format("%-+1.0G", 123.456) == "+1E+02" +string.format("%-+1.0G", 1234560000) == "+1E+09" +string.format("%-+1.0G", 1.23456e-05) == "+1E-05" +string.format("%-+1.0G", 123.456789123) == "+1E+02" +string.format("%-+1.0G", 1234567891.23) == "+1E+09" +string.format("%-+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%-+1.1G", 100) == "+1E+02" +string.format("%-+1.1G", 10000) == "+1E+04" +string.format("%-+1.1G", 100000) == "+1E+05" +string.format("%-+1.1G", 123.456) == "+1E+02" +string.format("%-+1.1G", 1234560000) == "+1E+09" +string.format("%-+1.1G", 1.23456e-05) == "+1E-05" +string.format("%-+1.1G", 123.456789123) == "+1E+02" +string.format("%-+1.1G", 1234567891.23) == "+1E+09" +string.format("%-+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%-+2.0G", 100) == "+1E+02" +string.format("%-+2.0G", 10000) == "+1E+04" +string.format("%-+2.0G", 100000) == "+1E+05" +string.format("%-+2.0G", 123.456) == "+1E+02" +string.format("%-+2.0G", 1234560000) == "+1E+09" +string.format("%-+2.0G", 1.23456e-05) == "+1E-05" +string.format("%-+2.0G", 123.456789123) == "+1E+02" +string.format("%-+2.0G", 1234567891.23) == "+1E+09" +string.format("%-+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%-+2.1G", 100) == "+1E+02" +string.format("%-+2.1G", 10000) == "+1E+04" +string.format("%-+2.1G", 100000) == "+1E+05" +string.format("%-+2.1G", 123.456) == "+1E+02" +string.format("%-+2.1G", 1234560000) == "+1E+09" +string.format("%-+2.1G", 1.23456e-05) == "+1E-05" +string.format("%-+2.1G", 123.456789123) == "+1E+02" +string.format("%-+2.1G", 1234567891.23) == "+1E+09" +string.format("%-+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%-+6G", 0) == "+0 " +string.format("%-+6G", 1) == "+1 " +string.format("%-+6G", -1) == "-1 " +string.format("%-+6G", 2) == "+2 " +string.format("%-+6G", -2) == "-2 " +string.format("%-+6G", 3) == "+3 " +string.format("%-+6G", -3) == "-3 " +string.format("%-+6G", nan) == "+NAN " +string.format("%-+6G", inf) == "+INF " +string.format("%-+6G", -inf) == "-INF " +string.format("%-+6G", 100) == "+100 " +string.format("%-+6G", 0.01) == "+0.01 " +string.format("%-+6.0G", 0) == "+0 " +string.format("%-+6.0G", 1) == "+1 " +string.format("%-+6.0G", -1) == "-1 " +string.format("%-+6.0G", 2) == "+2 " +string.format("%-+6.0G", -2) == "-2 " +string.format("%-+6.0G", 3) == "+3 " +string.format("%-+6.0G", -3) == "-3 " +string.format("%-+6.0G", nan) == "+NAN " +string.format("%-+6.0G", inf) == "+INF " +string.format("%-+6.0G", -inf) == "-INF " +string.format("%-+6.0G", 100) == "+1E+02" +string.format("%-+6.0G", 10000) == "+1E+04" +string.format("%-+6.0G", 100000) == "+1E+05" +string.format("%-+6.0G", 0.01) == "+0.01 " +string.format("%-+6.0G", 123.456) == "+1E+02" +string.format("%-+6.0G", 1234560000) == "+1E+09" +string.format("%-+6.0G", 1.23456e-05) == "+1E-05" +string.format("%-+6.0G", 123.456789123) == "+1E+02" +string.format("%-+6.0G", 1234567891.23) == "+1E+09" +string.format("%-+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%-+6.1G", 0) == "+0 " +string.format("%-+6.1G", 1) == "+1 " +string.format("%-+6.1G", -1) == "-1 " +string.format("%-+6.1G", 2) == "+2 " +string.format("%-+6.1G", -2) == "-2 " +string.format("%-+6.1G", 3) == "+3 " +string.format("%-+6.1G", -3) == "-3 " +string.format("%-+6.1G", nan) == "+NAN " +string.format("%-+6.1G", inf) == "+INF " +string.format("%-+6.1G", -inf) == "-INF " +string.format("%-+6.1G", 100) == "+1E+02" +string.format("%-+6.1G", 10000) == "+1E+04" +string.format("%-+6.1G", 100000) == "+1E+05" +string.format("%-+6.1G", 0.01) == "+0.01 " +string.format("%-+6.1G", 123.456) == "+1E+02" +string.format("%-+6.1G", 1234560000) == "+1E+09" +string.format("%-+6.1G", 1.23456e-05) == "+1E-05" +string.format("%-+6.1G", 123.456789123) == "+1E+02" +string.format("%-+6.1G", 1234567891.23) == "+1E+09" +string.format("%-+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%-+6.6G", 0) == "+0 " +string.format("%-+6.6G", 1) == "+1 " +string.format("%-+6.6G", -1) == "-1 " +string.format("%-+6.6G", 2) == "+2 " +string.format("%-+6.6G", -2) == "-2 " +string.format("%-+6.6G", 3) == "+3 " +string.format("%-+6.6G", -3) == "-3 " +string.format("%-+6.6G", nan) == "+NAN " +string.format("%-+6.6G", inf) == "+INF " +string.format("%-+6.6G", -inf) == "-INF " +string.format("%-+6.6G", 100) == "+100 " +string.format("%-+6.6G", 0.01) == "+0.01 " +string.format("%-+20G", 0) == "+0 " +string.format("%-+20G", 1) == "+1 " +string.format("%-+20G", -1) == "-1 " +string.format("%-+20G", 2) == "+2 " +string.format("%-+20G", -2) == "-2 " +string.format("%-+20G", 3) == "+3 " +string.format("%-+20G", -3) == "-3 " +string.format("%-+20G", nan) == "+NAN " +string.format("%-+20G", inf) == "+INF " +string.format("%-+20G", -inf) == "-INF " +string.format("%-+20G", 100) == "+100 " +string.format("%-+20G", 10000) == "+10000 " +string.format("%-+20G", 100000) == "+100000 " +string.format("%-+20G", 1000000) == "+1E+06 " +string.format("%-+20G", 10000000) == "+1E+07 " +string.format("%-+20G", 0.01) == "+0.01 " +string.format("%-+20G", 0.0001) == "+0.0001 " +string.format("%-+20G", 1e-05) == "+1E-05 " +string.format("%-+20G", 1e-06) == "+1E-06 " +string.format("%-+20G", 1e-07) == "+1E-07 " +string.format("%-+20G", 123.456) == "+123.456 " +string.format("%-+20G", 1234560000) == "+1.23456E+09 " +string.format("%-+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%-+20G", 123.456789123) == "+123.457 " +string.format("%-+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%-+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%-+20.0G", 0) == "+0 " +string.format("%-+20.0G", 1) == "+1 " +string.format("%-+20.0G", -1) == "-1 " +string.format("%-+20.0G", 2) == "+2 " +string.format("%-+20.0G", -2) == "-2 " +string.format("%-+20.0G", 3) == "+3 " +string.format("%-+20.0G", -3) == "-3 " +string.format("%-+20.0G", nan) == "+NAN " +string.format("%-+20.0G", inf) == "+INF " +string.format("%-+20.0G", -inf) == "-INF " +string.format("%-+20.0G", 100) == "+1E+02 " +string.format("%-+20.0G", 10000) == "+1E+04 " +string.format("%-+20.0G", 100000) == "+1E+05 " +string.format("%-+20.0G", 1000000) == "+1E+06 " +string.format("%-+20.0G", 10000000) == "+1E+07 " +string.format("%-+20.0G", 0.01) == "+0.01 " +string.format("%-+20.0G", 0.0001) == "+0.0001 " +string.format("%-+20.0G", 1e-05) == "+1E-05 " +string.format("%-+20.0G", 1e-06) == "+1E-06 " +string.format("%-+20.0G", 1e-07) == "+1E-07 " +string.format("%-+20.0G", 123.456) == "+1E+02 " +string.format("%-+20.0G", 1234560000) == "+1E+09 " +string.format("%-+20.0G", 1.23456e-05) == "+1E-05 " +string.format("%-+20.0G", 123.456789123) == "+1E+02 " +string.format("%-+20.0G", 1234567891.23) == "+1E+09 " +string.format("%-+20.0G", 1.23456789123e-05) == "+1E-05 " +string.format("%-+20.1G", 0) == "+0 " +string.format("%-+20.1G", 1) == "+1 " +string.format("%-+20.1G", -1) == "-1 " +string.format("%-+20.1G", 2) == "+2 " +string.format("%-+20.1G", -2) == "-2 " +string.format("%-+20.1G", 3) == "+3 " +string.format("%-+20.1G", -3) == "-3 " +string.format("%-+20.1G", nan) == "+NAN " +string.format("%-+20.1G", inf) == "+INF " +string.format("%-+20.1G", -inf) == "-INF " +string.format("%-+20.1G", 100) == "+1E+02 " +string.format("%-+20.1G", 10000) == "+1E+04 " +string.format("%-+20.1G", 100000) == "+1E+05 " +string.format("%-+20.1G", 1000000) == "+1E+06 " +string.format("%-+20.1G", 10000000) == "+1E+07 " +string.format("%-+20.1G", 0.01) == "+0.01 " +string.format("%-+20.1G", 0.0001) == "+0.0001 " +string.format("%-+20.1G", 1e-05) == "+1E-05 " +string.format("%-+20.1G", 1e-06) == "+1E-06 " +string.format("%-+20.1G", 1e-07) == "+1E-07 " +string.format("%-+20.1G", 123.456) == "+1E+02 " +string.format("%-+20.1G", 1234560000) == "+1E+09 " +string.format("%-+20.1G", 1.23456e-05) == "+1E-05 " +string.format("%-+20.1G", 123.456789123) == "+1E+02 " +string.format("%-+20.1G", 1234567891.23) == "+1E+09 " +string.format("%-+20.1G", 1.23456789123e-05) == "+1E-05 " +string.format("%-+20.6G", 0) == "+0 " +string.format("%-+20.6G", 1) == "+1 " +string.format("%-+20.6G", -1) == "-1 " +string.format("%-+20.6G", 2) == "+2 " +string.format("%-+20.6G", -2) == "-2 " +string.format("%-+20.6G", 3) == "+3 " +string.format("%-+20.6G", -3) == "-3 " +string.format("%-+20.6G", nan) == "+NAN " +string.format("%-+20.6G", inf) == "+INF " +string.format("%-+20.6G", -inf) == "-INF " +string.format("%-+20.6G", 100) == "+100 " +string.format("%-+20.6G", 10000) == "+10000 " +string.format("%-+20.6G", 100000) == "+100000 " +string.format("%-+20.6G", 1000000) == "+1E+06 " +string.format("%-+20.6G", 10000000) == "+1E+07 " +string.format("%-+20.6G", 0.01) == "+0.01 " +string.format("%-+20.6G", 0.0001) == "+0.0001 " +string.format("%-+20.6G", 1e-05) == "+1E-05 " +string.format("%-+20.6G", 1e-06) == "+1E-06 " +string.format("%-+20.6G", 1e-07) == "+1E-07 " +string.format("%-+20.6G", 123.456) == "+123.456 " +string.format("%-+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%-+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%-+20.6G", 123.456789123) == "+123.457 " +string.format("%-+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%-+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("% G", 0) == " 0" +string.format("% G", 1) == " 1" +string.format("% G", -1) == "-1" +string.format("% G", 2) == " 2" +string.format("% G", -2) == "-2" +string.format("% G", 3) == " 3" +string.format("% G", -3) == "-3" +string.format("% G", nan) == " NAN" +string.format("% G", inf) == " INF" +string.format("% G", -inf) == "-INF" +string.format("% G", 100) == " 100" +string.format("% G", 10000) == " 10000" +string.format("% G", 100000) == " 100000" +string.format("% G", 1000000) == " 1E+06" +string.format("% G", 10000000) == " 1E+07" +string.format("% G", 0.01) == " 0.01" +string.format("% G", 0.0001) == " 0.0001" +string.format("% G", 1e-05) == " 1E-05" +string.format("% G", 1e-06) == " 1E-06" +string.format("% G", 1e-07) == " 1E-07" +string.format("% G", 123.456) == " 123.456" +string.format("% G", 1234560000) == " 1.23456E+09" +string.format("% G", 1.23456e-05) == " 1.23456E-05" +string.format("% G", 123.456789123) == " 123.457" +string.format("% G", 1234567891.23) == " 1.23457E+09" +string.format("% G", 1.23456789123e-05) == " 1.23457E-05" +string.format("% .0G", 100) == " 1E+02" +string.format("% .0G", 10000) == " 1E+04" +string.format("% .0G", 100000) == " 1E+05" +string.format("% .0G", 123.456) == " 1E+02" +string.format("% .0G", 1234560000) == " 1E+09" +string.format("% .0G", 1.23456e-05) == " 1E-05" +string.format("% .0G", 123.456789123) == " 1E+02" +string.format("% .0G", 1234567891.23) == " 1E+09" +string.format("% .0G", 1.23456789123e-05) == " 1E-05" +string.format("% .1G", 100) == " 1E+02" +string.format("% .1G", 10000) == " 1E+04" +string.format("% .1G", 100000) == " 1E+05" +string.format("% .1G", 123.456) == " 1E+02" +string.format("% .1G", 1234560000) == " 1E+09" +string.format("% .1G", 1.23456e-05) == " 1E-05" +string.format("% .1G", 123.456789123) == " 1E+02" +string.format("% .1G", 1234567891.23) == " 1E+09" +string.format("% .1G", 1.23456789123e-05) == " 1E-05" +string.format("% 1.0G", 100) == " 1E+02" +string.format("% 1.0G", 10000) == " 1E+04" +string.format("% 1.0G", 100000) == " 1E+05" +string.format("% 1.0G", 123.456) == " 1E+02" +string.format("% 1.0G", 1234560000) == " 1E+09" +string.format("% 1.0G", 1.23456e-05) == " 1E-05" +string.format("% 1.0G", 123.456789123) == " 1E+02" +string.format("% 1.0G", 1234567891.23) == " 1E+09" +string.format("% 1.0G", 1.23456789123e-05) == " 1E-05" +string.format("% 1.1G", 100) == " 1E+02" +string.format("% 1.1G", 10000) == " 1E+04" +string.format("% 1.1G", 100000) == " 1E+05" +string.format("% 1.1G", 123.456) == " 1E+02" +string.format("% 1.1G", 1234560000) == " 1E+09" +string.format("% 1.1G", 1.23456e-05) == " 1E-05" +string.format("% 1.1G", 123.456789123) == " 1E+02" +string.format("% 1.1G", 1234567891.23) == " 1E+09" +string.format("% 1.1G", 1.23456789123e-05) == " 1E-05" +string.format("% 2.0G", 100) == " 1E+02" +string.format("% 2.0G", 10000) == " 1E+04" +string.format("% 2.0G", 100000) == " 1E+05" +string.format("% 2.0G", 123.456) == " 1E+02" +string.format("% 2.0G", 1234560000) == " 1E+09" +string.format("% 2.0G", 1.23456e-05) == " 1E-05" +string.format("% 2.0G", 123.456789123) == " 1E+02" +string.format("% 2.0G", 1234567891.23) == " 1E+09" +string.format("% 2.0G", 1.23456789123e-05) == " 1E-05" +string.format("% 2.1G", 100) == " 1E+02" +string.format("% 2.1G", 10000) == " 1E+04" +string.format("% 2.1G", 100000) == " 1E+05" +string.format("% 2.1G", 123.456) == " 1E+02" +string.format("% 2.1G", 1234560000) == " 1E+09" +string.format("% 2.1G", 1.23456e-05) == " 1E-05" +string.format("% 2.1G", 123.456789123) == " 1E+02" +string.format("% 2.1G", 1234567891.23) == " 1E+09" +string.format("% 2.1G", 1.23456789123e-05) == " 1E-05" +string.format("% 6G", 0) == " 0" +string.format("% 6G", 1) == " 1" +string.format("% 6G", -1) == " -1" +string.format("% 6G", 2) == " 2" +string.format("% 6G", -2) == " -2" +string.format("% 6G", 3) == " 3" +string.format("% 6G", -3) == " -3" +string.format("% 6G", nan) == " NAN" +string.format("% 6G", inf) == " INF" +string.format("% 6G", -inf) == " -INF" +string.format("% 6G", 100) == " 100" +string.format("% 6G", 0.01) == " 0.01" +string.format("% 6.0G", 0) == " 0" +string.format("% 6.0G", 1) == " 1" +string.format("% 6.0G", -1) == " -1" +string.format("% 6.0G", 2) == " 2" +string.format("% 6.0G", -2) == " -2" +string.format("% 6.0G", 3) == " 3" +string.format("% 6.0G", -3) == " -3" +string.format("% 6.0G", nan) == " NAN" +string.format("% 6.0G", inf) == " INF" +string.format("% 6.0G", -inf) == " -INF" +string.format("% 6.0G", 100) == " 1E+02" +string.format("% 6.0G", 10000) == " 1E+04" +string.format("% 6.0G", 100000) == " 1E+05" +string.format("% 6.0G", 0.01) == " 0.01" +string.format("% 6.0G", 123.456) == " 1E+02" +string.format("% 6.0G", 1234560000) == " 1E+09" +string.format("% 6.0G", 1.23456e-05) == " 1E-05" +string.format("% 6.0G", 123.456789123) == " 1E+02" +string.format("% 6.0G", 1234567891.23) == " 1E+09" +string.format("% 6.0G", 1.23456789123e-05) == " 1E-05" +string.format("% 6.1G", 0) == " 0" +string.format("% 6.1G", 1) == " 1" +string.format("% 6.1G", -1) == " -1" +string.format("% 6.1G", 2) == " 2" +string.format("% 6.1G", -2) == " -2" +string.format("% 6.1G", 3) == " 3" +string.format("% 6.1G", -3) == " -3" +string.format("% 6.1G", nan) == " NAN" +string.format("% 6.1G", inf) == " INF" +string.format("% 6.1G", -inf) == " -INF" +string.format("% 6.1G", 100) == " 1E+02" +string.format("% 6.1G", 10000) == " 1E+04" +string.format("% 6.1G", 100000) == " 1E+05" +string.format("% 6.1G", 0.01) == " 0.01" +string.format("% 6.1G", 123.456) == " 1E+02" +string.format("% 6.1G", 1234560000) == " 1E+09" +string.format("% 6.1G", 1.23456e-05) == " 1E-05" +string.format("% 6.1G", 123.456789123) == " 1E+02" +string.format("% 6.1G", 1234567891.23) == " 1E+09" +string.format("% 6.1G", 1.23456789123e-05) == " 1E-05" +string.format("% 6.6G", 0) == " 0" +string.format("% 6.6G", 1) == " 1" +string.format("% 6.6G", -1) == " -1" +string.format("% 6.6G", 2) == " 2" +string.format("% 6.6G", -2) == " -2" +string.format("% 6.6G", 3) == " 3" +string.format("% 6.6G", -3) == " -3" +string.format("% 6.6G", nan) == " NAN" +string.format("% 6.6G", inf) == " INF" +string.format("% 6.6G", -inf) == " -INF" +string.format("% 6.6G", 100) == " 100" +string.format("% 6.6G", 0.01) == " 0.01" +string.format("% 20G", 0) == " 0" +string.format("% 20G", 1) == " 1" +string.format("% 20G", -1) == " -1" +string.format("% 20G", 2) == " 2" +string.format("% 20G", -2) == " -2" +string.format("% 20G", 3) == " 3" +string.format("% 20G", -3) == " -3" +string.format("% 20G", nan) == " NAN" +string.format("% 20G", inf) == " INF" +string.format("% 20G", -inf) == " -INF" +string.format("% 20G", 100) == " 100" +string.format("% 20G", 10000) == " 10000" +string.format("% 20G", 100000) == " 100000" +string.format("% 20G", 1000000) == " 1E+06" +string.format("% 20G", 10000000) == " 1E+07" +string.format("% 20G", 0.01) == " 0.01" +string.format("% 20G", 0.0001) == " 0.0001" +string.format("% 20G", 1e-05) == " 1E-05" +string.format("% 20G", 1e-06) == " 1E-06" +string.format("% 20G", 1e-07) == " 1E-07" +string.format("% 20G", 123.456) == " 123.456" +string.format("% 20G", 1234560000) == " 1.23456E+09" +string.format("% 20G", 1.23456e-05) == " 1.23456E-05" +string.format("% 20G", 123.456789123) == " 123.457" +string.format("% 20G", 1234567891.23) == " 1.23457E+09" +string.format("% 20G", 1.23456789123e-05) == " 1.23457E-05" +string.format("% 20.0G", 0) == " 0" +string.format("% 20.0G", 1) == " 1" +string.format("% 20.0G", -1) == " -1" +string.format("% 20.0G", 2) == " 2" +string.format("% 20.0G", -2) == " -2" +string.format("% 20.0G", 3) == " 3" +string.format("% 20.0G", -3) == " -3" +string.format("% 20.0G", nan) == " NAN" +string.format("% 20.0G", inf) == " INF" +string.format("% 20.0G", -inf) == " -INF" +string.format("% 20.0G", 100) == " 1E+02" +string.format("% 20.0G", 10000) == " 1E+04" +string.format("% 20.0G", 100000) == " 1E+05" +string.format("% 20.0G", 1000000) == " 1E+06" +string.format("% 20.0G", 10000000) == " 1E+07" +string.format("% 20.0G", 0.01) == " 0.01" +string.format("% 20.0G", 0.0001) == " 0.0001" +string.format("% 20.0G", 1e-05) == " 1E-05" +string.format("% 20.0G", 1e-06) == " 1E-06" +string.format("% 20.0G", 1e-07) == " 1E-07" +string.format("% 20.0G", 123.456) == " 1E+02" +string.format("% 20.0G", 1234560000) == " 1E+09" +string.format("% 20.0G", 1.23456e-05) == " 1E-05" +string.format("% 20.0G", 123.456789123) == " 1E+02" +string.format("% 20.0G", 1234567891.23) == " 1E+09" +string.format("% 20.0G", 1.23456789123e-05) == " 1E-05" +string.format("% 20.1G", 0) == " 0" +string.format("% 20.1G", 1) == " 1" +string.format("% 20.1G", -1) == " -1" +string.format("% 20.1G", 2) == " 2" +string.format("% 20.1G", -2) == " -2" +string.format("% 20.1G", 3) == " 3" +string.format("% 20.1G", -3) == " -3" +string.format("% 20.1G", nan) == " NAN" +string.format("% 20.1G", inf) == " INF" +string.format("% 20.1G", -inf) == " -INF" +string.format("% 20.1G", 100) == " 1E+02" +string.format("% 20.1G", 10000) == " 1E+04" +string.format("% 20.1G", 100000) == " 1E+05" +string.format("% 20.1G", 1000000) == " 1E+06" +string.format("% 20.1G", 10000000) == " 1E+07" +string.format("% 20.1G", 0.01) == " 0.01" +string.format("% 20.1G", 0.0001) == " 0.0001" +string.format("% 20.1G", 1e-05) == " 1E-05" +string.format("% 20.1G", 1e-06) == " 1E-06" +string.format("% 20.1G", 1e-07) == " 1E-07" +string.format("% 20.1G", 123.456) == " 1E+02" +string.format("% 20.1G", 1234560000) == " 1E+09" +string.format("% 20.1G", 1.23456e-05) == " 1E-05" +string.format("% 20.1G", 123.456789123) == " 1E+02" +string.format("% 20.1G", 1234567891.23) == " 1E+09" +string.format("% 20.1G", 1.23456789123e-05) == " 1E-05" +string.format("% 20.6G", 0) == " 0" +string.format("% 20.6G", 1) == " 1" +string.format("% 20.6G", -1) == " -1" +string.format("% 20.6G", 2) == " 2" +string.format("% 20.6G", -2) == " -2" +string.format("% 20.6G", 3) == " 3" +string.format("% 20.6G", -3) == " -3" +string.format("% 20.6G", nan) == " NAN" +string.format("% 20.6G", inf) == " INF" +string.format("% 20.6G", -inf) == " -INF" +string.format("% 20.6G", 100) == " 100" +string.format("% 20.6G", 10000) == " 10000" +string.format("% 20.6G", 100000) == " 100000" +string.format("% 20.6G", 1000000) == " 1E+06" +string.format("% 20.6G", 10000000) == " 1E+07" +string.format("% 20.6G", 0.01) == " 0.01" +string.format("% 20.6G", 0.0001) == " 0.0001" +string.format("% 20.6G", 1e-05) == " 1E-05" +string.format("% 20.6G", 1e-06) == " 1E-06" +string.format("% 20.6G", 1e-07) == " 1E-07" +string.format("% 20.6G", 123.456) == " 123.456" +string.format("% 20.6G", 1234560000) == " 1.23456E+09" +string.format("% 20.6G", 1.23456e-05) == " 1.23456E-05" +string.format("% 20.6G", 123.456789123) == " 123.457" +string.format("% 20.6G", 1234567891.23) == " 1.23457E+09" +string.format("% 20.6G", 1.23456789123e-05) == " 1.23457E-05" +string.format("% +G", 0) == "+0" +string.format("% +G", 1) == "+1" +string.format("% +G", -1) == "-1" +string.format("% +G", 2) == "+2" +string.format("% +G", -2) == "-2" +string.format("% +G", 3) == "+3" +string.format("% +G", -3) == "-3" +string.format("% +G", nan) == "+NAN" +string.format("% +G", inf) == "+INF" +string.format("% +G", -inf) == "-INF" +string.format("% +G", 100) == "+100" +string.format("% +G", 10000) == "+10000" +string.format("% +G", 100000) == "+100000" +string.format("% +G", 1000000) == "+1E+06" +string.format("% +G", 10000000) == "+1E+07" +string.format("% +G", 0.01) == "+0.01" +string.format("% +G", 0.0001) == "+0.0001" +string.format("% +G", 1e-05) == "+1E-05" +string.format("% +G", 1e-06) == "+1E-06" +string.format("% +G", 1e-07) == "+1E-07" +string.format("% +G", 123.456) == "+123.456" +string.format("% +G", 1234560000) == "+1.23456E+09" +string.format("% +G", 1.23456e-05) == "+1.23456E-05" +string.format("% +G", 123.456789123) == "+123.457" +string.format("% +G", 1234567891.23) == "+1.23457E+09" +string.format("% +G", 1.23456789123e-05) == "+1.23457E-05" +string.format("% +.0G", 100) == "+1E+02" +string.format("% +.0G", 10000) == "+1E+04" +string.format("% +.0G", 100000) == "+1E+05" +string.format("% +.0G", 123.456) == "+1E+02" +string.format("% +.0G", 1234560000) == "+1E+09" +string.format("% +.0G", 1.23456e-05) == "+1E-05" +string.format("% +.0G", 123.456789123) == "+1E+02" +string.format("% +.0G", 1234567891.23) == "+1E+09" +string.format("% +.0G", 1.23456789123e-05) == "+1E-05" +string.format("% +.1G", 100) == "+1E+02" +string.format("% +.1G", 10000) == "+1E+04" +string.format("% +.1G", 100000) == "+1E+05" +string.format("% +.1G", 123.456) == "+1E+02" +string.format("% +.1G", 1234560000) == "+1E+09" +string.format("% +.1G", 1.23456e-05) == "+1E-05" +string.format("% +.1G", 123.456789123) == "+1E+02" +string.format("% +.1G", 1234567891.23) == "+1E+09" +string.format("% +.1G", 1.23456789123e-05) == "+1E-05" +string.format("% +1.0G", 100) == "+1E+02" +string.format("% +1.0G", 10000) == "+1E+04" +string.format("% +1.0G", 100000) == "+1E+05" +string.format("% +1.0G", 123.456) == "+1E+02" +string.format("% +1.0G", 1234560000) == "+1E+09" +string.format("% +1.0G", 1.23456e-05) == "+1E-05" +string.format("% +1.0G", 123.456789123) == "+1E+02" +string.format("% +1.0G", 1234567891.23) == "+1E+09" +string.format("% +1.0G", 1.23456789123e-05) == "+1E-05" +string.format("% +1.1G", 100) == "+1E+02" +string.format("% +1.1G", 10000) == "+1E+04" +string.format("% +1.1G", 100000) == "+1E+05" +string.format("% +1.1G", 123.456) == "+1E+02" +string.format("% +1.1G", 1234560000) == "+1E+09" +string.format("% +1.1G", 1.23456e-05) == "+1E-05" +string.format("% +1.1G", 123.456789123) == "+1E+02" +string.format("% +1.1G", 1234567891.23) == "+1E+09" +string.format("% +1.1G", 1.23456789123e-05) == "+1E-05" +string.format("% +2.0G", 100) == "+1E+02" +string.format("% +2.0G", 10000) == "+1E+04" +string.format("% +2.0G", 100000) == "+1E+05" +string.format("% +2.0G", 123.456) == "+1E+02" +string.format("% +2.0G", 1234560000) == "+1E+09" +string.format("% +2.0G", 1.23456e-05) == "+1E-05" +string.format("% +2.0G", 123.456789123) == "+1E+02" +string.format("% +2.0G", 1234567891.23) == "+1E+09" +string.format("% +2.0G", 1.23456789123e-05) == "+1E-05" +string.format("% +2.1G", 100) == "+1E+02" +string.format("% +2.1G", 10000) == "+1E+04" +string.format("% +2.1G", 100000) == "+1E+05" +string.format("% +2.1G", 123.456) == "+1E+02" +string.format("% +2.1G", 1234560000) == "+1E+09" +string.format("% +2.1G", 1.23456e-05) == "+1E-05" +string.format("% +2.1G", 123.456789123) == "+1E+02" +string.format("% +2.1G", 1234567891.23) == "+1E+09" +string.format("% +2.1G", 1.23456789123e-05) == "+1E-05" +string.format("% +6G", 0) == " +0" +string.format("% +6G", 1) == " +1" +string.format("% +6G", -1) == " -1" +string.format("% +6G", 2) == " +2" +string.format("% +6G", -2) == " -2" +string.format("% +6G", 3) == " +3" +string.format("% +6G", -3) == " -3" +string.format("% +6G", nan) == " +NAN" +string.format("% +6G", inf) == " +INF" +string.format("% +6G", -inf) == " -INF" +string.format("% +6G", 100) == " +100" +string.format("% +6G", 0.01) == " +0.01" +string.format("% +6.0G", 0) == " +0" +string.format("% +6.0G", 1) == " +1" +string.format("% +6.0G", -1) == " -1" +string.format("% +6.0G", 2) == " +2" +string.format("% +6.0G", -2) == " -2" +string.format("% +6.0G", 3) == " +3" +string.format("% +6.0G", -3) == " -3" +string.format("% +6.0G", nan) == " +NAN" +string.format("% +6.0G", inf) == " +INF" +string.format("% +6.0G", -inf) == " -INF" +string.format("% +6.0G", 100) == "+1E+02" +string.format("% +6.0G", 10000) == "+1E+04" +string.format("% +6.0G", 100000) == "+1E+05" +string.format("% +6.0G", 0.01) == " +0.01" +string.format("% +6.0G", 123.456) == "+1E+02" +string.format("% +6.0G", 1234560000) == "+1E+09" +string.format("% +6.0G", 1.23456e-05) == "+1E-05" +string.format("% +6.0G", 123.456789123) == "+1E+02" +string.format("% +6.0G", 1234567891.23) == "+1E+09" +string.format("% +6.0G", 1.23456789123e-05) == "+1E-05" +string.format("% +6.1G", 0) == " +0" +string.format("% +6.1G", 1) == " +1" +string.format("% +6.1G", -1) == " -1" +string.format("% +6.1G", 2) == " +2" +string.format("% +6.1G", -2) == " -2" +string.format("% +6.1G", 3) == " +3" +string.format("% +6.1G", -3) == " -3" +string.format("% +6.1G", nan) == " +NAN" +string.format("% +6.1G", inf) == " +INF" +string.format("% +6.1G", -inf) == " -INF" +string.format("% +6.1G", 100) == "+1E+02" +string.format("% +6.1G", 10000) == "+1E+04" +string.format("% +6.1G", 100000) == "+1E+05" +string.format("% +6.1G", 0.01) == " +0.01" +string.format("% +6.1G", 123.456) == "+1E+02" +string.format("% +6.1G", 1234560000) == "+1E+09" +string.format("% +6.1G", 1.23456e-05) == "+1E-05" +string.format("% +6.1G", 123.456789123) == "+1E+02" +string.format("% +6.1G", 1234567891.23) == "+1E+09" +string.format("% +6.1G", 1.23456789123e-05) == "+1E-05" +string.format("% +6.6G", 0) == " +0" +string.format("% +6.6G", 1) == " +1" +string.format("% +6.6G", -1) == " -1" +string.format("% +6.6G", 2) == " +2" +string.format("% +6.6G", -2) == " -2" +string.format("% +6.6G", 3) == " +3" +string.format("% +6.6G", -3) == " -3" +string.format("% +6.6G", nan) == " +NAN" +string.format("% +6.6G", inf) == " +INF" +string.format("% +6.6G", -inf) == " -INF" +string.format("% +6.6G", 100) == " +100" +string.format("% +6.6G", 0.01) == " +0.01" +string.format("% +20G", 0) == " +0" +string.format("% +20G", 1) == " +1" +string.format("% +20G", -1) == " -1" +string.format("% +20G", 2) == " +2" +string.format("% +20G", -2) == " -2" +string.format("% +20G", 3) == " +3" +string.format("% +20G", -3) == " -3" +string.format("% +20G", nan) == " +NAN" +string.format("% +20G", inf) == " +INF" +string.format("% +20G", -inf) == " -INF" +string.format("% +20G", 100) == " +100" +string.format("% +20G", 10000) == " +10000" +string.format("% +20G", 100000) == " +100000" +string.format("% +20G", 1000000) == " +1E+06" +string.format("% +20G", 10000000) == " +1E+07" +string.format("% +20G", 0.01) == " +0.01" +string.format("% +20G", 0.0001) == " +0.0001" +string.format("% +20G", 1e-05) == " +1E-05" +string.format("% +20G", 1e-06) == " +1E-06" +string.format("% +20G", 1e-07) == " +1E-07" +string.format("% +20G", 123.456) == " +123.456" +string.format("% +20G", 1234560000) == " +1.23456E+09" +string.format("% +20G", 1.23456e-05) == " +1.23456E-05" +string.format("% +20G", 123.456789123) == " +123.457" +string.format("% +20G", 1234567891.23) == " +1.23457E+09" +string.format("% +20G", 1.23456789123e-05) == " +1.23457E-05" +string.format("% +20.0G", 0) == " +0" +string.format("% +20.0G", 1) == " +1" +string.format("% +20.0G", -1) == " -1" +string.format("% +20.0G", 2) == " +2" +string.format("% +20.0G", -2) == " -2" +string.format("% +20.0G", 3) == " +3" +string.format("% +20.0G", -3) == " -3" +string.format("% +20.0G", nan) == " +NAN" +string.format("% +20.0G", inf) == " +INF" +string.format("% +20.0G", -inf) == " -INF" +string.format("% +20.0G", 100) == " +1E+02" +string.format("% +20.0G", 10000) == " +1E+04" +string.format("% +20.0G", 100000) == " +1E+05" +string.format("% +20.0G", 1000000) == " +1E+06" +string.format("% +20.0G", 10000000) == " +1E+07" +string.format("% +20.0G", 0.01) == " +0.01" +string.format("% +20.0G", 0.0001) == " +0.0001" +string.format("% +20.0G", 1e-05) == " +1E-05" +string.format("% +20.0G", 1e-06) == " +1E-06" +string.format("% +20.0G", 1e-07) == " +1E-07" +string.format("% +20.0G", 123.456) == " +1E+02" +string.format("% +20.0G", 1234560000) == " +1E+09" +string.format("% +20.0G", 1.23456e-05) == " +1E-05" +string.format("% +20.0G", 123.456789123) == " +1E+02" +string.format("% +20.0G", 1234567891.23) == " +1E+09" +string.format("% +20.0G", 1.23456789123e-05) == " +1E-05" +string.format("% +20.1G", 0) == " +0" +string.format("% +20.1G", 1) == " +1" +string.format("% +20.1G", -1) == " -1" +string.format("% +20.1G", 2) == " +2" +string.format("% +20.1G", -2) == " -2" +string.format("% +20.1G", 3) == " +3" +string.format("% +20.1G", -3) == " -3" +string.format("% +20.1G", nan) == " +NAN" +string.format("% +20.1G", inf) == " +INF" +string.format("% +20.1G", -inf) == " -INF" +string.format("% +20.1G", 100) == " +1E+02" +string.format("% +20.1G", 10000) == " +1E+04" +string.format("% +20.1G", 100000) == " +1E+05" +string.format("% +20.1G", 1000000) == " +1E+06" +string.format("% +20.1G", 10000000) == " +1E+07" +string.format("% +20.1G", 0.01) == " +0.01" +string.format("% +20.1G", 0.0001) == " +0.0001" +string.format("% +20.1G", 1e-05) == " +1E-05" +string.format("% +20.1G", 1e-06) == " +1E-06" +string.format("% +20.1G", 1e-07) == " +1E-07" +string.format("% +20.1G", 123.456) == " +1E+02" +string.format("% +20.1G", 1234560000) == " +1E+09" +string.format("% +20.1G", 1.23456e-05) == " +1E-05" +string.format("% +20.1G", 123.456789123) == " +1E+02" +string.format("% +20.1G", 1234567891.23) == " +1E+09" +string.format("% +20.1G", 1.23456789123e-05) == " +1E-05" +string.format("% +20.6G", 0) == " +0" +string.format("% +20.6G", 1) == " +1" +string.format("% +20.6G", -1) == " -1" +string.format("% +20.6G", 2) == " +2" +string.format("% +20.6G", -2) == " -2" +string.format("% +20.6G", 3) == " +3" +string.format("% +20.6G", -3) == " -3" +string.format("% +20.6G", nan) == " +NAN" +string.format("% +20.6G", inf) == " +INF" +string.format("% +20.6G", -inf) == " -INF" +string.format("% +20.6G", 100) == " +100" +string.format("% +20.6G", 10000) == " +10000" +string.format("% +20.6G", 100000) == " +100000" +string.format("% +20.6G", 1000000) == " +1E+06" +string.format("% +20.6G", 10000000) == " +1E+07" +string.format("% +20.6G", 0.01) == " +0.01" +string.format("% +20.6G", 0.0001) == " +0.0001" +string.format("% +20.6G", 1e-05) == " +1E-05" +string.format("% +20.6G", 1e-06) == " +1E-06" +string.format("% +20.6G", 1e-07) == " +1E-07" +string.format("% +20.6G", 123.456) == " +123.456" +string.format("% +20.6G", 1234560000) == " +1.23456E+09" +string.format("% +20.6G", 1.23456e-05) == " +1.23456E-05" +string.format("% +20.6G", 123.456789123) == " +123.457" +string.format("% +20.6G", 1234567891.23) == " +1.23457E+09" +string.format("% +20.6G", 1.23456789123e-05) == " +1.23457E-05" +string.format("% -G", 0) == " 0" +string.format("% -G", 1) == " 1" +string.format("% -G", -1) == "-1" +string.format("% -G", 2) == " 2" +string.format("% -G", -2) == "-2" +string.format("% -G", 3) == " 3" +string.format("% -G", -3) == "-3" +string.format("% -G", nan) == " NAN" +string.format("% -G", inf) == " INF" +string.format("% -G", -inf) == "-INF" +string.format("% -G", 100) == " 100" +string.format("% -G", 10000) == " 10000" +string.format("% -G", 100000) == " 100000" +string.format("% -G", 1000000) == " 1E+06" +string.format("% -G", 10000000) == " 1E+07" +string.format("% -G", 0.01) == " 0.01" +string.format("% -G", 0.0001) == " 0.0001" +string.format("% -G", 1e-05) == " 1E-05" +string.format("% -G", 1e-06) == " 1E-06" +string.format("% -G", 1e-07) == " 1E-07" +string.format("% -G", 123.456) == " 123.456" +string.format("% -G", 1234560000) == " 1.23456E+09" +string.format("% -G", 1.23456e-05) == " 1.23456E-05" +string.format("% -G", 123.456789123) == " 123.457" +string.format("% -G", 1234567891.23) == " 1.23457E+09" +string.format("% -G", 1.23456789123e-05) == " 1.23457E-05" +string.format("% -.0G", 100) == " 1E+02" +string.format("% -.0G", 10000) == " 1E+04" +string.format("% -.0G", 100000) == " 1E+05" +string.format("% -.0G", 123.456) == " 1E+02" +string.format("% -.0G", 1234560000) == " 1E+09" +string.format("% -.0G", 1.23456e-05) == " 1E-05" +string.format("% -.0G", 123.456789123) == " 1E+02" +string.format("% -.0G", 1234567891.23) == " 1E+09" +string.format("% -.0G", 1.23456789123e-05) == " 1E-05" +string.format("% -.1G", 100) == " 1E+02" +string.format("% -.1G", 10000) == " 1E+04" +string.format("% -.1G", 100000) == " 1E+05" +string.format("% -.1G", 123.456) == " 1E+02" +string.format("% -.1G", 1234560000) == " 1E+09" +string.format("% -.1G", 1.23456e-05) == " 1E-05" +string.format("% -.1G", 123.456789123) == " 1E+02" +string.format("% -.1G", 1234567891.23) == " 1E+09" +string.format("% -.1G", 1.23456789123e-05) == " 1E-05" +string.format("% -1.0G", 100) == " 1E+02" +string.format("% -1.0G", 10000) == " 1E+04" +string.format("% -1.0G", 100000) == " 1E+05" +string.format("% -1.0G", 123.456) == " 1E+02" +string.format("% -1.0G", 1234560000) == " 1E+09" +string.format("% -1.0G", 1.23456e-05) == " 1E-05" +string.format("% -1.0G", 123.456789123) == " 1E+02" +string.format("% -1.0G", 1234567891.23) == " 1E+09" +string.format("% -1.0G", 1.23456789123e-05) == " 1E-05" +string.format("% -1.1G", 100) == " 1E+02" +string.format("% -1.1G", 10000) == " 1E+04" +string.format("% -1.1G", 100000) == " 1E+05" +string.format("% -1.1G", 123.456) == " 1E+02" +string.format("% -1.1G", 1234560000) == " 1E+09" +string.format("% -1.1G", 1.23456e-05) == " 1E-05" +string.format("% -1.1G", 123.456789123) == " 1E+02" +string.format("% -1.1G", 1234567891.23) == " 1E+09" +string.format("% -1.1G", 1.23456789123e-05) == " 1E-05" +string.format("% -2.0G", 100) == " 1E+02" +string.format("% -2.0G", 10000) == " 1E+04" +string.format("% -2.0G", 100000) == " 1E+05" +string.format("% -2.0G", 123.456) == " 1E+02" +string.format("% -2.0G", 1234560000) == " 1E+09" +string.format("% -2.0G", 1.23456e-05) == " 1E-05" +string.format("% -2.0G", 123.456789123) == " 1E+02" +string.format("% -2.0G", 1234567891.23) == " 1E+09" +string.format("% -2.0G", 1.23456789123e-05) == " 1E-05" +string.format("% -2.1G", 100) == " 1E+02" +string.format("% -2.1G", 10000) == " 1E+04" +string.format("% -2.1G", 100000) == " 1E+05" +string.format("% -2.1G", 123.456) == " 1E+02" +string.format("% -2.1G", 1234560000) == " 1E+09" +string.format("% -2.1G", 1.23456e-05) == " 1E-05" +string.format("% -2.1G", 123.456789123) == " 1E+02" +string.format("% -2.1G", 1234567891.23) == " 1E+09" +string.format("% -2.1G", 1.23456789123e-05) == " 1E-05" +string.format("% -6G", 0) == " 0 " +string.format("% -6G", 1) == " 1 " +string.format("% -6G", -1) == "-1 " +string.format("% -6G", 2) == " 2 " +string.format("% -6G", -2) == "-2 " +string.format("% -6G", 3) == " 3 " +string.format("% -6G", -3) == "-3 " +string.format("% -6G", nan) == " NAN " +string.format("% -6G", inf) == " INF " +string.format("% -6G", -inf) == "-INF " +string.format("% -6G", 100) == " 100 " +string.format("% -6G", 0.01) == " 0.01 " +string.format("% -6.0G", 0) == " 0 " +string.format("% -6.0G", 1) == " 1 " +string.format("% -6.0G", -1) == "-1 " +string.format("% -6.0G", 2) == " 2 " +string.format("% -6.0G", -2) == "-2 " +string.format("% -6.0G", 3) == " 3 " +string.format("% -6.0G", -3) == "-3 " +string.format("% -6.0G", nan) == " NAN " +string.format("% -6.0G", inf) == " INF " +string.format("% -6.0G", -inf) == "-INF " +string.format("% -6.0G", 100) == " 1E+02" +string.format("% -6.0G", 10000) == " 1E+04" +string.format("% -6.0G", 100000) == " 1E+05" +string.format("% -6.0G", 0.01) == " 0.01 " +string.format("% -6.0G", 123.456) == " 1E+02" +string.format("% -6.0G", 1234560000) == " 1E+09" +string.format("% -6.0G", 1.23456e-05) == " 1E-05" +string.format("% -6.0G", 123.456789123) == " 1E+02" +string.format("% -6.0G", 1234567891.23) == " 1E+09" +string.format("% -6.0G", 1.23456789123e-05) == " 1E-05" +string.format("% -6.1G", 0) == " 0 " +string.format("% -6.1G", 1) == " 1 " +string.format("% -6.1G", -1) == "-1 " +string.format("% -6.1G", 2) == " 2 " +string.format("% -6.1G", -2) == "-2 " +string.format("% -6.1G", 3) == " 3 " +string.format("% -6.1G", -3) == "-3 " +string.format("% -6.1G", nan) == " NAN " +string.format("% -6.1G", inf) == " INF " +string.format("% -6.1G", -inf) == "-INF " +string.format("% -6.1G", 100) == " 1E+02" +string.format("% -6.1G", 10000) == " 1E+04" +string.format("% -6.1G", 100000) == " 1E+05" +string.format("% -6.1G", 0.01) == " 0.01 " +string.format("% -6.1G", 123.456) == " 1E+02" +string.format("% -6.1G", 1234560000) == " 1E+09" +string.format("% -6.1G", 1.23456e-05) == " 1E-05" +string.format("% -6.1G", 123.456789123) == " 1E+02" +string.format("% -6.1G", 1234567891.23) == " 1E+09" +string.format("% -6.1G", 1.23456789123e-05) == " 1E-05" +string.format("% -6.6G", 0) == " 0 " +string.format("% -6.6G", 1) == " 1 " +string.format("% -6.6G", -1) == "-1 " +string.format("% -6.6G", 2) == " 2 " +string.format("% -6.6G", -2) == "-2 " +string.format("% -6.6G", 3) == " 3 " +string.format("% -6.6G", -3) == "-3 " +string.format("% -6.6G", nan) == " NAN " +string.format("% -6.6G", inf) == " INF " +string.format("% -6.6G", -inf) == "-INF " +string.format("% -6.6G", 100) == " 100 " +string.format("% -6.6G", 0.01) == " 0.01 " +string.format("% -20G", 0) == " 0 " +string.format("% -20G", 1) == " 1 " +string.format("% -20G", -1) == "-1 " +string.format("% -20G", 2) == " 2 " +string.format("% -20G", -2) == "-2 " +string.format("% -20G", 3) == " 3 " +string.format("% -20G", -3) == "-3 " +string.format("% -20G", nan) == " NAN " +string.format("% -20G", inf) == " INF " +string.format("% -20G", -inf) == "-INF " +string.format("% -20G", 100) == " 100 " +string.format("% -20G", 10000) == " 10000 " +string.format("% -20G", 100000) == " 100000 " +string.format("% -20G", 1000000) == " 1E+06 " +string.format("% -20G", 10000000) == " 1E+07 " +string.format("% -20G", 0.01) == " 0.01 " +string.format("% -20G", 0.0001) == " 0.0001 " +string.format("% -20G", 1e-05) == " 1E-05 " +string.format("% -20G", 1e-06) == " 1E-06 " +string.format("% -20G", 1e-07) == " 1E-07 " +string.format("% -20G", 123.456) == " 123.456 " +string.format("% -20G", 1234560000) == " 1.23456E+09 " +string.format("% -20G", 1.23456e-05) == " 1.23456E-05 " +string.format("% -20G", 123.456789123) == " 123.457 " +string.format("% -20G", 1234567891.23) == " 1.23457E+09 " +string.format("% -20G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("% -20.0G", 0) == " 0 " +string.format("% -20.0G", 1) == " 1 " +string.format("% -20.0G", -1) == "-1 " +string.format("% -20.0G", 2) == " 2 " +string.format("% -20.0G", -2) == "-2 " +string.format("% -20.0G", 3) == " 3 " +string.format("% -20.0G", -3) == "-3 " +string.format("% -20.0G", nan) == " NAN " +string.format("% -20.0G", inf) == " INF " +string.format("% -20.0G", -inf) == "-INF " +string.format("% -20.0G", 100) == " 1E+02 " +string.format("% -20.0G", 10000) == " 1E+04 " +string.format("% -20.0G", 100000) == " 1E+05 " +string.format("% -20.0G", 1000000) == " 1E+06 " +string.format("% -20.0G", 10000000) == " 1E+07 " +string.format("% -20.0G", 0.01) == " 0.01 " +string.format("% -20.0G", 0.0001) == " 0.0001 " +string.format("% -20.0G", 1e-05) == " 1E-05 " +string.format("% -20.0G", 1e-06) == " 1E-06 " +string.format("% -20.0G", 1e-07) == " 1E-07 " +string.format("% -20.0G", 123.456) == " 1E+02 " +string.format("% -20.0G", 1234560000) == " 1E+09 " +string.format("% -20.0G", 1.23456e-05) == " 1E-05 " +string.format("% -20.0G", 123.456789123) == " 1E+02 " +string.format("% -20.0G", 1234567891.23) == " 1E+09 " +string.format("% -20.0G", 1.23456789123e-05) == " 1E-05 " +string.format("% -20.1G", 0) == " 0 " +string.format("% -20.1G", 1) == " 1 " +string.format("% -20.1G", -1) == "-1 " +string.format("% -20.1G", 2) == " 2 " +string.format("% -20.1G", -2) == "-2 " +string.format("% -20.1G", 3) == " 3 " +string.format("% -20.1G", -3) == "-3 " +string.format("% -20.1G", nan) == " NAN " +string.format("% -20.1G", inf) == " INF " +string.format("% -20.1G", -inf) == "-INF " +string.format("% -20.1G", 100) == " 1E+02 " +string.format("% -20.1G", 10000) == " 1E+04 " +string.format("% -20.1G", 100000) == " 1E+05 " +string.format("% -20.1G", 1000000) == " 1E+06 " +string.format("% -20.1G", 10000000) == " 1E+07 " +string.format("% -20.1G", 0.01) == " 0.01 " +string.format("% -20.1G", 0.0001) == " 0.0001 " +string.format("% -20.1G", 1e-05) == " 1E-05 " +string.format("% -20.1G", 1e-06) == " 1E-06 " +string.format("% -20.1G", 1e-07) == " 1E-07 " +string.format("% -20.1G", 123.456) == " 1E+02 " +string.format("% -20.1G", 1234560000) == " 1E+09 " +string.format("% -20.1G", 1.23456e-05) == " 1E-05 " +string.format("% -20.1G", 123.456789123) == " 1E+02 " +string.format("% -20.1G", 1234567891.23) == " 1E+09 " +string.format("% -20.1G", 1.23456789123e-05) == " 1E-05 " +string.format("% -20.6G", 0) == " 0 " +string.format("% -20.6G", 1) == " 1 " +string.format("% -20.6G", -1) == "-1 " +string.format("% -20.6G", 2) == " 2 " +string.format("% -20.6G", -2) == "-2 " +string.format("% -20.6G", 3) == " 3 " +string.format("% -20.6G", -3) == "-3 " +string.format("% -20.6G", nan) == " NAN " +string.format("% -20.6G", inf) == " INF " +string.format("% -20.6G", -inf) == "-INF " +string.format("% -20.6G", 100) == " 100 " +string.format("% -20.6G", 10000) == " 10000 " +string.format("% -20.6G", 100000) == " 100000 " +string.format("% -20.6G", 1000000) == " 1E+06 " +string.format("% -20.6G", 10000000) == " 1E+07 " +string.format("% -20.6G", 0.01) == " 0.01 " +string.format("% -20.6G", 0.0001) == " 0.0001 " +string.format("% -20.6G", 1e-05) == " 1E-05 " +string.format("% -20.6G", 1e-06) == " 1E-06 " +string.format("% -20.6G", 1e-07) == " 1E-07 " +string.format("% -20.6G", 123.456) == " 123.456 " +string.format("% -20.6G", 1234560000) == " 1.23456E+09 " +string.format("% -20.6G", 1.23456e-05) == " 1.23456E-05 " +string.format("% -20.6G", 123.456789123) == " 123.457 " +string.format("% -20.6G", 1234567891.23) == " 1.23457E+09 " +string.format("% -20.6G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("% -+G", 0) == "+0" +string.format("% -+G", 1) == "+1" +string.format("% -+G", -1) == "-1" +string.format("% -+G", 2) == "+2" +string.format("% -+G", -2) == "-2" +string.format("% -+G", 3) == "+3" +string.format("% -+G", -3) == "-3" +string.format("% -+G", nan) == "+NAN" +string.format("% -+G", inf) == "+INF" +string.format("% -+G", -inf) == "-INF" +string.format("% -+G", 100) == "+100" +string.format("% -+G", 10000) == "+10000" +string.format("% -+G", 100000) == "+100000" +string.format("% -+G", 1000000) == "+1E+06" +string.format("% -+G", 10000000) == "+1E+07" +string.format("% -+G", 0.01) == "+0.01" +string.format("% -+G", 0.0001) == "+0.0001" +string.format("% -+G", 1e-05) == "+1E-05" +string.format("% -+G", 1e-06) == "+1E-06" +string.format("% -+G", 1e-07) == "+1E-07" +string.format("% -+G", 123.456) == "+123.456" +string.format("% -+G", 1234560000) == "+1.23456E+09" +string.format("% -+G", 1.23456e-05) == "+1.23456E-05" +string.format("% -+G", 123.456789123) == "+123.457" +string.format("% -+G", 1234567891.23) == "+1.23457E+09" +string.format("% -+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("% -+.0G", 100) == "+1E+02" +string.format("% -+.0G", 10000) == "+1E+04" +string.format("% -+.0G", 100000) == "+1E+05" +string.format("% -+.0G", 123.456) == "+1E+02" +string.format("% -+.0G", 1234560000) == "+1E+09" +string.format("% -+.0G", 1.23456e-05) == "+1E-05" +string.format("% -+.0G", 123.456789123) == "+1E+02" +string.format("% -+.0G", 1234567891.23) == "+1E+09" +string.format("% -+.0G", 1.23456789123e-05) == "+1E-05" +string.format("% -+.1G", 100) == "+1E+02" +string.format("% -+.1G", 10000) == "+1E+04" +string.format("% -+.1G", 100000) == "+1E+05" +string.format("% -+.1G", 123.456) == "+1E+02" +string.format("% -+.1G", 1234560000) == "+1E+09" +string.format("% -+.1G", 1.23456e-05) == "+1E-05" +string.format("% -+.1G", 123.456789123) == "+1E+02" +string.format("% -+.1G", 1234567891.23) == "+1E+09" +string.format("% -+.1G", 1.23456789123e-05) == "+1E-05" +string.format("% -+1.0G", 100) == "+1E+02" +string.format("% -+1.0G", 10000) == "+1E+04" +string.format("% -+1.0G", 100000) == "+1E+05" +string.format("% -+1.0G", 123.456) == "+1E+02" +string.format("% -+1.0G", 1234560000) == "+1E+09" +string.format("% -+1.0G", 1.23456e-05) == "+1E-05" +string.format("% -+1.0G", 123.456789123) == "+1E+02" +string.format("% -+1.0G", 1234567891.23) == "+1E+09" +string.format("% -+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("% -+1.1G", 100) == "+1E+02" +string.format("% -+1.1G", 10000) == "+1E+04" +string.format("% -+1.1G", 100000) == "+1E+05" +string.format("% -+1.1G", 123.456) == "+1E+02" +string.format("% -+1.1G", 1234560000) == "+1E+09" +string.format("% -+1.1G", 1.23456e-05) == "+1E-05" +string.format("% -+1.1G", 123.456789123) == "+1E+02" +string.format("% -+1.1G", 1234567891.23) == "+1E+09" +string.format("% -+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("% -+2.0G", 100) == "+1E+02" +string.format("% -+2.0G", 10000) == "+1E+04" +string.format("% -+2.0G", 100000) == "+1E+05" +string.format("% -+2.0G", 123.456) == "+1E+02" +string.format("% -+2.0G", 1234560000) == "+1E+09" +string.format("% -+2.0G", 1.23456e-05) == "+1E-05" +string.format("% -+2.0G", 123.456789123) == "+1E+02" +string.format("% -+2.0G", 1234567891.23) == "+1E+09" +string.format("% -+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("% -+2.1G", 100) == "+1E+02" +string.format("% -+2.1G", 10000) == "+1E+04" +string.format("% -+2.1G", 100000) == "+1E+05" +string.format("% -+2.1G", 123.456) == "+1E+02" +string.format("% -+2.1G", 1234560000) == "+1E+09" +string.format("% -+2.1G", 1.23456e-05) == "+1E-05" +string.format("% -+2.1G", 123.456789123) == "+1E+02" +string.format("% -+2.1G", 1234567891.23) == "+1E+09" +string.format("% -+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("% -+6G", 0) == "+0 " +string.format("% -+6G", 1) == "+1 " +string.format("% -+6G", -1) == "-1 " +string.format("% -+6G", 2) == "+2 " +string.format("% -+6G", -2) == "-2 " +string.format("% -+6G", 3) == "+3 " +string.format("% -+6G", -3) == "-3 " +string.format("% -+6G", nan) == "+NAN " +string.format("% -+6G", inf) == "+INF " +string.format("% -+6G", -inf) == "-INF " +string.format("% -+6G", 100) == "+100 " +string.format("% -+6G", 0.01) == "+0.01 " +string.format("% -+6.0G", 0) == "+0 " +string.format("% -+6.0G", 1) == "+1 " +string.format("% -+6.0G", -1) == "-1 " +string.format("% -+6.0G", 2) == "+2 " +string.format("% -+6.0G", -2) == "-2 " +string.format("% -+6.0G", 3) == "+3 " +string.format("% -+6.0G", -3) == "-3 " +string.format("% -+6.0G", nan) == "+NAN " +string.format("% -+6.0G", inf) == "+INF " +string.format("% -+6.0G", -inf) == "-INF " +string.format("% -+6.0G", 100) == "+1E+02" +string.format("% -+6.0G", 10000) == "+1E+04" +string.format("% -+6.0G", 100000) == "+1E+05" +string.format("% -+6.0G", 0.01) == "+0.01 " +string.format("% -+6.0G", 123.456) == "+1E+02" +string.format("% -+6.0G", 1234560000) == "+1E+09" +string.format("% -+6.0G", 1.23456e-05) == "+1E-05" +string.format("% -+6.0G", 123.456789123) == "+1E+02" +string.format("% -+6.0G", 1234567891.23) == "+1E+09" +string.format("% -+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("% -+6.1G", 0) == "+0 " +string.format("% -+6.1G", 1) == "+1 " +string.format("% -+6.1G", -1) == "-1 " +string.format("% -+6.1G", 2) == "+2 " +string.format("% -+6.1G", -2) == "-2 " +string.format("% -+6.1G", 3) == "+3 " +string.format("% -+6.1G", -3) == "-3 " +string.format("% -+6.1G", nan) == "+NAN " +string.format("% -+6.1G", inf) == "+INF " +string.format("% -+6.1G", -inf) == "-INF " +string.format("% -+6.1G", 100) == "+1E+02" +string.format("% -+6.1G", 10000) == "+1E+04" +string.format("% -+6.1G", 100000) == "+1E+05" +string.format("% -+6.1G", 0.01) == "+0.01 " +string.format("% -+6.1G", 123.456) == "+1E+02" +string.format("% -+6.1G", 1234560000) == "+1E+09" +string.format("% -+6.1G", 1.23456e-05) == "+1E-05" +string.format("% -+6.1G", 123.456789123) == "+1E+02" +string.format("% -+6.1G", 1234567891.23) == "+1E+09" +string.format("% -+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("% -+6.6G", 0) == "+0 " +string.format("% -+6.6G", 1) == "+1 " +string.format("% -+6.6G", -1) == "-1 " +string.format("% -+6.6G", 2) == "+2 " +string.format("% -+6.6G", -2) == "-2 " +string.format("% -+6.6G", 3) == "+3 " +string.format("% -+6.6G", -3) == "-3 " +string.format("% -+6.6G", nan) == "+NAN " +string.format("% -+6.6G", inf) == "+INF " +string.format("% -+6.6G", -inf) == "-INF " +string.format("% -+6.6G", 100) == "+100 " +string.format("% -+6.6G", 0.01) == "+0.01 " +string.format("% -+20G", 0) == "+0 " +string.format("% -+20G", 1) == "+1 " +string.format("% -+20G", -1) == "-1 " +string.format("% -+20G", 2) == "+2 " +string.format("% -+20G", -2) == "-2 " +string.format("% -+20G", 3) == "+3 " +string.format("% -+20G", -3) == "-3 " +string.format("% -+20G", nan) == "+NAN " +string.format("% -+20G", inf) == "+INF " +string.format("% -+20G", -inf) == "-INF " +string.format("% -+20G", 100) == "+100 " +string.format("% -+20G", 10000) == "+10000 " +string.format("% -+20G", 100000) == "+100000 " +string.format("% -+20G", 1000000) == "+1E+06 " +string.format("% -+20G", 10000000) == "+1E+07 " +string.format("% -+20G", 0.01) == "+0.01 " +string.format("% -+20G", 0.0001) == "+0.0001 " +string.format("% -+20G", 1e-05) == "+1E-05 " +string.format("% -+20G", 1e-06) == "+1E-06 " +string.format("% -+20G", 1e-07) == "+1E-07 " +string.format("% -+20G", 123.456) == "+123.456 " +string.format("% -+20G", 1234560000) == "+1.23456E+09 " +string.format("% -+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("% -+20G", 123.456789123) == "+123.457 " +string.format("% -+20G", 1234567891.23) == "+1.23457E+09 " +string.format("% -+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("% -+20.0G", 0) == "+0 " +string.format("% -+20.0G", 1) == "+1 " +string.format("% -+20.0G", -1) == "-1 " +string.format("% -+20.0G", 2) == "+2 " +string.format("% -+20.0G", -2) == "-2 " +string.format("% -+20.0G", 3) == "+3 " +string.format("% -+20.0G", -3) == "-3 " +string.format("% -+20.0G", nan) == "+NAN " +string.format("% -+20.0G", inf) == "+INF " +string.format("% -+20.0G", -inf) == "-INF " +string.format("% -+20.0G", 100) == "+1E+02 " +string.format("% -+20.0G", 10000) == "+1E+04 " +string.format("% -+20.0G", 100000) == "+1E+05 " +string.format("% -+20.0G", 1000000) == "+1E+06 " +string.format("% -+20.0G", 10000000) == "+1E+07 " +string.format("% -+20.0G", 0.01) == "+0.01 " +string.format("% -+20.0G", 0.0001) == "+0.0001 " +string.format("% -+20.0G", 1e-05) == "+1E-05 " +string.format("% -+20.0G", 1e-06) == "+1E-06 " +string.format("% -+20.0G", 1e-07) == "+1E-07 " +string.format("% -+20.0G", 123.456) == "+1E+02 " +string.format("% -+20.0G", 1234560000) == "+1E+09 " +string.format("% -+20.0G", 1.23456e-05) == "+1E-05 " +string.format("% -+20.0G", 123.456789123) == "+1E+02 " +string.format("% -+20.0G", 1234567891.23) == "+1E+09 " +string.format("% -+20.0G", 1.23456789123e-05) == "+1E-05 " +string.format("% -+20.1G", 0) == "+0 " +string.format("% -+20.1G", 1) == "+1 " +string.format("% -+20.1G", -1) == "-1 " +string.format("% -+20.1G", 2) == "+2 " +string.format("% -+20.1G", -2) == "-2 " +string.format("% -+20.1G", 3) == "+3 " +string.format("% -+20.1G", -3) == "-3 " +string.format("% -+20.1G", nan) == "+NAN " +string.format("% -+20.1G", inf) == "+INF " +string.format("% -+20.1G", -inf) == "-INF " +string.format("% -+20.1G", 100) == "+1E+02 " +string.format("% -+20.1G", 10000) == "+1E+04 " +string.format("% -+20.1G", 100000) == "+1E+05 " +string.format("% -+20.1G", 1000000) == "+1E+06 " +string.format("% -+20.1G", 10000000) == "+1E+07 " +string.format("% -+20.1G", 0.01) == "+0.01 " +string.format("% -+20.1G", 0.0001) == "+0.0001 " +string.format("% -+20.1G", 1e-05) == "+1E-05 " +string.format("% -+20.1G", 1e-06) == "+1E-06 " +string.format("% -+20.1G", 1e-07) == "+1E-07 " +string.format("% -+20.1G", 123.456) == "+1E+02 " +string.format("% -+20.1G", 1234560000) == "+1E+09 " +string.format("% -+20.1G", 1.23456e-05) == "+1E-05 " +string.format("% -+20.1G", 123.456789123) == "+1E+02 " +string.format("% -+20.1G", 1234567891.23) == "+1E+09 " +string.format("% -+20.1G", 1.23456789123e-05) == "+1E-05 " +string.format("% -+20.6G", 0) == "+0 " +string.format("% -+20.6G", 1) == "+1 " +string.format("% -+20.6G", -1) == "-1 " +string.format("% -+20.6G", 2) == "+2 " +string.format("% -+20.6G", -2) == "-2 " +string.format("% -+20.6G", 3) == "+3 " +string.format("% -+20.6G", -3) == "-3 " +string.format("% -+20.6G", nan) == "+NAN " +string.format("% -+20.6G", inf) == "+INF " +string.format("% -+20.6G", -inf) == "-INF " +string.format("% -+20.6G", 100) == "+100 " +string.format("% -+20.6G", 10000) == "+10000 " +string.format("% -+20.6G", 100000) == "+100000 " +string.format("% -+20.6G", 1000000) == "+1E+06 " +string.format("% -+20.6G", 10000000) == "+1E+07 " +string.format("% -+20.6G", 0.01) == "+0.01 " +string.format("% -+20.6G", 0.0001) == "+0.0001 " +string.format("% -+20.6G", 1e-05) == "+1E-05 " +string.format("% -+20.6G", 1e-06) == "+1E-06 " +string.format("% -+20.6G", 1e-07) == "+1E-07 " +string.format("% -+20.6G", 123.456) == "+123.456 " +string.format("% -+20.6G", 1234560000) == "+1.23456E+09 " +string.format("% -+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("% -+20.6G", 123.456789123) == "+123.457 " +string.format("% -+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("% -+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%#G", 0) == "0.00000" +string.format("%#G", 1) == "1.00000" +string.format("%#G", -1) == "-1.00000" +string.format("%#G", 2) == "2.00000" +string.format("%#G", -2) == "-2.00000" +string.format("%#G", 3) == "3.00000" +string.format("%#G", -3) == "-3.00000" +string.format("%#G", nan) == "NAN" +string.format("%#G", inf) == "INF" +string.format("%#G", -inf) == "-INF" +string.format("%#G", 100) == "100.000" +string.format("%#G", 10000) == "10000.0" +string.format("%#G", 100000) == "100000." +string.format("%#G", 1000000) == "1.00000E+06" +string.format("%#G", 10000000) == "1.00000E+07" +string.format("%#G", 0.01) == "0.0100000" +string.format("%#G", 0.0001) == "0.000100000" +string.format("%#G", 1e-05) == "1.00000E-05" +string.format("%#G", 1e-06) == "1.00000E-06" +string.format("%#G", 1e-07) == "1.00000E-07" +string.format("%#G", 123.456) == "123.456" +string.format("%#G", 1234560000) == "1.23456E+09" +string.format("%#G", 1.23456e-05) == "1.23456E-05" +string.format("%#G", 123.456789123) == "123.457" +string.format("%#G", 1234567891.23) == "1.23457E+09" +string.format("%#G", 1.23456789123e-05) == "1.23457E-05" +string.format("%#.0G", 0) == "0." +string.format("%#.0G", 1) == "1." +string.format("%#.0G", -1) == "-1." +string.format("%#.0G", 2) == "2." +string.format("%#.0G", -2) == "-2." +string.format("%#.0G", 3) == "3." +string.format("%#.0G", -3) == "-3." +string.format("%#.0G", 100) == "1.E+02" +string.format("%#.0G", 10000) == "1.E+04" +string.format("%#.0G", 100000) == "1.E+05" +string.format("%#.0G", 1000000) == "1.E+06" +string.format("%#.0G", 10000000) == "1.E+07" +string.format("%#.0G", 0.01) == "0.01" +string.format("%#.0G", 0.0001) == "0.0001" +string.format("%#.0G", 1e-05) == "1.E-05" +string.format("%#.0G", 1e-06) == "1.E-06" +string.format("%#.0G", 1e-07) == "1.E-07" +string.format("%#.0G", 123.456) == "1.E+02" +string.format("%#.0G", 1234560000) == "1.E+09" +string.format("%#.0G", 1.23456e-05) == "1.E-05" +string.format("%#.0G", 123.456789123) == "1.E+02" +string.format("%#.0G", 1234567891.23) == "1.E+09" +string.format("%#.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#.1G", 0) == "0." +string.format("%#.1G", 1) == "1." +string.format("%#.1G", -1) == "-1." +string.format("%#.1G", 2) == "2." +string.format("%#.1G", -2) == "-2." +string.format("%#.1G", 3) == "3." +string.format("%#.1G", -3) == "-3." +string.format("%#.1G", 100) == "1.E+02" +string.format("%#.1G", 10000) == "1.E+04" +string.format("%#.1G", 100000) == "1.E+05" +string.format("%#.1G", 1000000) == "1.E+06" +string.format("%#.1G", 10000000) == "1.E+07" +string.format("%#.1G", 0.01) == "0.01" +string.format("%#.1G", 0.0001) == "0.0001" +string.format("%#.1G", 1e-05) == "1.E-05" +string.format("%#.1G", 1e-06) == "1.E-06" +string.format("%#.1G", 1e-07) == "1.E-07" +string.format("%#.1G", 123.456) == "1.E+02" +string.format("%#.1G", 1234560000) == "1.E+09" +string.format("%#.1G", 1.23456e-05) == "1.E-05" +string.format("%#.1G", 123.456789123) == "1.E+02" +string.format("%#.1G", 1234567891.23) == "1.E+09" +string.format("%#.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#1.0G", 0) == "0." +string.format("%#1.0G", 1) == "1." +string.format("%#1.0G", -1) == "-1." +string.format("%#1.0G", 2) == "2." +string.format("%#1.0G", -2) == "-2." +string.format("%#1.0G", 3) == "3." +string.format("%#1.0G", -3) == "-3." +string.format("%#1.0G", 100) == "1.E+02" +string.format("%#1.0G", 10000) == "1.E+04" +string.format("%#1.0G", 100000) == "1.E+05" +string.format("%#1.0G", 1000000) == "1.E+06" +string.format("%#1.0G", 10000000) == "1.E+07" +string.format("%#1.0G", 0.01) == "0.01" +string.format("%#1.0G", 0.0001) == "0.0001" +string.format("%#1.0G", 1e-05) == "1.E-05" +string.format("%#1.0G", 1e-06) == "1.E-06" +string.format("%#1.0G", 1e-07) == "1.E-07" +string.format("%#1.0G", 123.456) == "1.E+02" +string.format("%#1.0G", 1234560000) == "1.E+09" +string.format("%#1.0G", 1.23456e-05) == "1.E-05" +string.format("%#1.0G", 123.456789123) == "1.E+02" +string.format("%#1.0G", 1234567891.23) == "1.E+09" +string.format("%#1.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#1.1G", 0) == "0." +string.format("%#1.1G", 1) == "1." +string.format("%#1.1G", -1) == "-1." +string.format("%#1.1G", 2) == "2." +string.format("%#1.1G", -2) == "-2." +string.format("%#1.1G", 3) == "3." +string.format("%#1.1G", -3) == "-3." +string.format("%#1.1G", 100) == "1.E+02" +string.format("%#1.1G", 10000) == "1.E+04" +string.format("%#1.1G", 100000) == "1.E+05" +string.format("%#1.1G", 1000000) == "1.E+06" +string.format("%#1.1G", 10000000) == "1.E+07" +string.format("%#1.1G", 0.01) == "0.01" +string.format("%#1.1G", 0.0001) == "0.0001" +string.format("%#1.1G", 1e-05) == "1.E-05" +string.format("%#1.1G", 1e-06) == "1.E-06" +string.format("%#1.1G", 1e-07) == "1.E-07" +string.format("%#1.1G", 123.456) == "1.E+02" +string.format("%#1.1G", 1234560000) == "1.E+09" +string.format("%#1.1G", 1.23456e-05) == "1.E-05" +string.format("%#1.1G", 123.456789123) == "1.E+02" +string.format("%#1.1G", 1234567891.23) == "1.E+09" +string.format("%#1.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#2.0G", 0) == "0." +string.format("%#2.0G", 1) == "1." +string.format("%#2.0G", -1) == "-1." +string.format("%#2.0G", 2) == "2." +string.format("%#2.0G", -2) == "-2." +string.format("%#2.0G", 3) == "3." +string.format("%#2.0G", -3) == "-3." +string.format("%#2.0G", 100) == "1.E+02" +string.format("%#2.0G", 10000) == "1.E+04" +string.format("%#2.0G", 100000) == "1.E+05" +string.format("%#2.0G", 1000000) == "1.E+06" +string.format("%#2.0G", 10000000) == "1.E+07" +string.format("%#2.0G", 0.01) == "0.01" +string.format("%#2.0G", 0.0001) == "0.0001" +string.format("%#2.0G", 1e-05) == "1.E-05" +string.format("%#2.0G", 1e-06) == "1.E-06" +string.format("%#2.0G", 1e-07) == "1.E-07" +string.format("%#2.0G", 123.456) == "1.E+02" +string.format("%#2.0G", 1234560000) == "1.E+09" +string.format("%#2.0G", 1.23456e-05) == "1.E-05" +string.format("%#2.0G", 123.456789123) == "1.E+02" +string.format("%#2.0G", 1234567891.23) == "1.E+09" +string.format("%#2.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#2.1G", 0) == "0." +string.format("%#2.1G", 1) == "1." +string.format("%#2.1G", -1) == "-1." +string.format("%#2.1G", 2) == "2." +string.format("%#2.1G", -2) == "-2." +string.format("%#2.1G", 3) == "3." +string.format("%#2.1G", -3) == "-3." +string.format("%#2.1G", 100) == "1.E+02" +string.format("%#2.1G", 10000) == "1.E+04" +string.format("%#2.1G", 100000) == "1.E+05" +string.format("%#2.1G", 1000000) == "1.E+06" +string.format("%#2.1G", 10000000) == "1.E+07" +string.format("%#2.1G", 0.01) == "0.01" +string.format("%#2.1G", 0.0001) == "0.0001" +string.format("%#2.1G", 1e-05) == "1.E-05" +string.format("%#2.1G", 1e-06) == "1.E-06" +string.format("%#2.1G", 1e-07) == "1.E-07" +string.format("%#2.1G", 123.456) == "1.E+02" +string.format("%#2.1G", 1234560000) == "1.E+09" +string.format("%#2.1G", 1.23456e-05) == "1.E-05" +string.format("%#2.1G", 123.456789123) == "1.E+02" +string.format("%#2.1G", 1234567891.23) == "1.E+09" +string.format("%#2.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#6G", nan) == " NAN" +string.format("%#6G", inf) == " INF" +string.format("%#6G", -inf) == " -INF" +string.format("%#6.0G", 0) == " 0." +string.format("%#6.0G", 1) == " 1." +string.format("%#6.0G", -1) == " -1." +string.format("%#6.0G", 2) == " 2." +string.format("%#6.0G", -2) == " -2." +string.format("%#6.0G", 3) == " 3." +string.format("%#6.0G", -3) == " -3." +string.format("%#6.0G", nan) == " NAN" +string.format("%#6.0G", inf) == " INF" +string.format("%#6.0G", -inf) == " -INF" +string.format("%#6.0G", 100) == "1.E+02" +string.format("%#6.0G", 10000) == "1.E+04" +string.format("%#6.0G", 100000) == "1.E+05" +string.format("%#6.0G", 1000000) == "1.E+06" +string.format("%#6.0G", 10000000) == "1.E+07" +string.format("%#6.0G", 0.01) == " 0.01" +string.format("%#6.0G", 0.0001) == "0.0001" +string.format("%#6.0G", 1e-05) == "1.E-05" +string.format("%#6.0G", 1e-06) == "1.E-06" +string.format("%#6.0G", 1e-07) == "1.E-07" +string.format("%#6.0G", 123.456) == "1.E+02" +string.format("%#6.0G", 1234560000) == "1.E+09" +string.format("%#6.0G", 1.23456e-05) == "1.E-05" +string.format("%#6.0G", 123.456789123) == "1.E+02" +string.format("%#6.0G", 1234567891.23) == "1.E+09" +string.format("%#6.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#6.1G", 0) == " 0." +string.format("%#6.1G", 1) == " 1." +string.format("%#6.1G", -1) == " -1." +string.format("%#6.1G", 2) == " 2." +string.format("%#6.1G", -2) == " -2." +string.format("%#6.1G", 3) == " 3." +string.format("%#6.1G", -3) == " -3." +string.format("%#6.1G", nan) == " NAN" +string.format("%#6.1G", inf) == " INF" +string.format("%#6.1G", -inf) == " -INF" +string.format("%#6.1G", 100) == "1.E+02" +string.format("%#6.1G", 10000) == "1.E+04" +string.format("%#6.1G", 100000) == "1.E+05" +string.format("%#6.1G", 1000000) == "1.E+06" +string.format("%#6.1G", 10000000) == "1.E+07" +string.format("%#6.1G", 0.01) == " 0.01" +string.format("%#6.1G", 0.0001) == "0.0001" +string.format("%#6.1G", 1e-05) == "1.E-05" +string.format("%#6.1G", 1e-06) == "1.E-06" +string.format("%#6.1G", 1e-07) == "1.E-07" +string.format("%#6.1G", 123.456) == "1.E+02" +string.format("%#6.1G", 1234560000) == "1.E+09" +string.format("%#6.1G", 1.23456e-05) == "1.E-05" +string.format("%#6.1G", 123.456789123) == "1.E+02" +string.format("%#6.1G", 1234567891.23) == "1.E+09" +string.format("%#6.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#6.6G", nan) == " NAN" +string.format("%#6.6G", inf) == " INF" +string.format("%#6.6G", -inf) == " -INF" +string.format("%#20G", 0) == " 0.00000" +string.format("%#20G", 1) == " 1.00000" +string.format("%#20G", -1) == " -1.00000" +string.format("%#20G", 2) == " 2.00000" +string.format("%#20G", -2) == " -2.00000" +string.format("%#20G", 3) == " 3.00000" +string.format("%#20G", -3) == " -3.00000" +string.format("%#20G", nan) == " NAN" +string.format("%#20G", inf) == " INF" +string.format("%#20G", -inf) == " -INF" +string.format("%#20G", 100) == " 100.000" +string.format("%#20G", 10000) == " 10000.0" +string.format("%#20G", 100000) == " 100000." +string.format("%#20G", 1000000) == " 1.00000E+06" +string.format("%#20G", 10000000) == " 1.00000E+07" +string.format("%#20G", 0.01) == " 0.0100000" +string.format("%#20G", 0.0001) == " 0.000100000" +string.format("%#20G", 1e-05) == " 1.00000E-05" +string.format("%#20G", 1e-06) == " 1.00000E-06" +string.format("%#20G", 1e-07) == " 1.00000E-07" +string.format("%#20G", 123.456) == " 123.456" +string.format("%#20G", 1234560000) == " 1.23456E+09" +string.format("%#20G", 1.23456e-05) == " 1.23456E-05" +string.format("%#20G", 123.456789123) == " 123.457" +string.format("%#20G", 1234567891.23) == " 1.23457E+09" +string.format("%#20G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%#20.0G", 0) == " 0." +string.format("%#20.0G", 1) == " 1." +string.format("%#20.0G", -1) == " -1." +string.format("%#20.0G", 2) == " 2." +string.format("%#20.0G", -2) == " -2." +string.format("%#20.0G", 3) == " 3." +string.format("%#20.0G", -3) == " -3." +string.format("%#20.0G", nan) == " NAN" +string.format("%#20.0G", inf) == " INF" +string.format("%#20.0G", -inf) == " -INF" +string.format("%#20.0G", 100) == " 1.E+02" +string.format("%#20.0G", 10000) == " 1.E+04" +string.format("%#20.0G", 100000) == " 1.E+05" +string.format("%#20.0G", 1000000) == " 1.E+06" +string.format("%#20.0G", 10000000) == " 1.E+07" +string.format("%#20.0G", 0.01) == " 0.01" +string.format("%#20.0G", 0.0001) == " 0.0001" +string.format("%#20.0G", 1e-05) == " 1.E-05" +string.format("%#20.0G", 1e-06) == " 1.E-06" +string.format("%#20.0G", 1e-07) == " 1.E-07" +string.format("%#20.0G", 123.456) == " 1.E+02" +string.format("%#20.0G", 1234560000) == " 1.E+09" +string.format("%#20.0G", 1.23456e-05) == " 1.E-05" +string.format("%#20.0G", 123.456789123) == " 1.E+02" +string.format("%#20.0G", 1234567891.23) == " 1.E+09" +string.format("%#20.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%#20.1G", 0) == " 0." +string.format("%#20.1G", 1) == " 1." +string.format("%#20.1G", -1) == " -1." +string.format("%#20.1G", 2) == " 2." +string.format("%#20.1G", -2) == " -2." +string.format("%#20.1G", 3) == " 3." +string.format("%#20.1G", -3) == " -3." +string.format("%#20.1G", nan) == " NAN" +string.format("%#20.1G", inf) == " INF" +string.format("%#20.1G", -inf) == " -INF" +string.format("%#20.1G", 100) == " 1.E+02" +string.format("%#20.1G", 10000) == " 1.E+04" +string.format("%#20.1G", 100000) == " 1.E+05" +string.format("%#20.1G", 1000000) == " 1.E+06" +string.format("%#20.1G", 10000000) == " 1.E+07" +string.format("%#20.1G", 0.01) == " 0.01" +string.format("%#20.1G", 0.0001) == " 0.0001" +string.format("%#20.1G", 1e-05) == " 1.E-05" +string.format("%#20.1G", 1e-06) == " 1.E-06" +string.format("%#20.1G", 1e-07) == " 1.E-07" +string.format("%#20.1G", 123.456) == " 1.E+02" +string.format("%#20.1G", 1234560000) == " 1.E+09" +string.format("%#20.1G", 1.23456e-05) == " 1.E-05" +string.format("%#20.1G", 123.456789123) == " 1.E+02" +string.format("%#20.1G", 1234567891.23) == " 1.E+09" +string.format("%#20.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%#20.6G", 0) == " 0.00000" +string.format("%#20.6G", 1) == " 1.00000" +string.format("%#20.6G", -1) == " -1.00000" +string.format("%#20.6G", 2) == " 2.00000" +string.format("%#20.6G", -2) == " -2.00000" +string.format("%#20.6G", 3) == " 3.00000" +string.format("%#20.6G", -3) == " -3.00000" +string.format("%#20.6G", nan) == " NAN" +string.format("%#20.6G", inf) == " INF" +string.format("%#20.6G", -inf) == " -INF" +string.format("%#20.6G", 100) == " 100.000" +string.format("%#20.6G", 10000) == " 10000.0" +string.format("%#20.6G", 100000) == " 100000." +string.format("%#20.6G", 1000000) == " 1.00000E+06" +string.format("%#20.6G", 10000000) == " 1.00000E+07" +string.format("%#20.6G", 0.01) == " 0.0100000" +string.format("%#20.6G", 0.0001) == " 0.000100000" +string.format("%#20.6G", 1e-05) == " 1.00000E-05" +string.format("%#20.6G", 1e-06) == " 1.00000E-06" +string.format("%#20.6G", 1e-07) == " 1.00000E-07" +string.format("%#20.6G", 123.456) == " 123.456" +string.format("%#20.6G", 1234560000) == " 1.23456E+09" +string.format("%#20.6G", 1.23456e-05) == " 1.23456E-05" +string.format("%#20.6G", 123.456789123) == " 123.457" +string.format("%#20.6G", 1234567891.23) == " 1.23457E+09" +string.format("%#20.6G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%#+G", 0) == "+0.00000" +string.format("%#+G", 1) == "+1.00000" +string.format("%#+G", -1) == "-1.00000" +string.format("%#+G", 2) == "+2.00000" +string.format("%#+G", -2) == "-2.00000" +string.format("%#+G", 3) == "+3.00000" +string.format("%#+G", -3) == "-3.00000" +string.format("%#+G", nan) == "+NAN" +string.format("%#+G", inf) == "+INF" +string.format("%#+G", -inf) == "-INF" +string.format("%#+G", 100) == "+100.000" +string.format("%#+G", 10000) == "+10000.0" +string.format("%#+G", 100000) == "+100000." +string.format("%#+G", 1000000) == "+1.00000E+06" +string.format("%#+G", 10000000) == "+1.00000E+07" +string.format("%#+G", 0.01) == "+0.0100000" +string.format("%#+G", 0.0001) == "+0.000100000" +string.format("%#+G", 1e-05) == "+1.00000E-05" +string.format("%#+G", 1e-06) == "+1.00000E-06" +string.format("%#+G", 1e-07) == "+1.00000E-07" +string.format("%#+G", 123.456) == "+123.456" +string.format("%#+G", 1234560000) == "+1.23456E+09" +string.format("%#+G", 1.23456e-05) == "+1.23456E-05" +string.format("%#+G", 123.456789123) == "+123.457" +string.format("%#+G", 1234567891.23) == "+1.23457E+09" +string.format("%#+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%#+.0G", 0) == "+0." +string.format("%#+.0G", 1) == "+1." +string.format("%#+.0G", -1) == "-1." +string.format("%#+.0G", 2) == "+2." +string.format("%#+.0G", -2) == "-2." +string.format("%#+.0G", 3) == "+3." +string.format("%#+.0G", -3) == "-3." +string.format("%#+.0G", 100) == "+1.E+02" +string.format("%#+.0G", 10000) == "+1.E+04" +string.format("%#+.0G", 100000) == "+1.E+05" +string.format("%#+.0G", 1000000) == "+1.E+06" +string.format("%#+.0G", 10000000) == "+1.E+07" +string.format("%#+.0G", 0.01) == "+0.01" +string.format("%#+.0G", 0.0001) == "+0.0001" +string.format("%#+.0G", 1e-05) == "+1.E-05" +string.format("%#+.0G", 1e-06) == "+1.E-06" +string.format("%#+.0G", 1e-07) == "+1.E-07" +string.format("%#+.0G", 123.456) == "+1.E+02" +string.format("%#+.0G", 1234560000) == "+1.E+09" +string.format("%#+.0G", 1.23456e-05) == "+1.E-05" +string.format("%#+.0G", 123.456789123) == "+1.E+02" +string.format("%#+.0G", 1234567891.23) == "+1.E+09" +string.format("%#+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+.1G", 0) == "+0." +string.format("%#+.1G", 1) == "+1." +string.format("%#+.1G", -1) == "-1." +string.format("%#+.1G", 2) == "+2." +string.format("%#+.1G", -2) == "-2." +string.format("%#+.1G", 3) == "+3." +string.format("%#+.1G", -3) == "-3." +string.format("%#+.1G", 100) == "+1.E+02" +string.format("%#+.1G", 10000) == "+1.E+04" +string.format("%#+.1G", 100000) == "+1.E+05" +string.format("%#+.1G", 1000000) == "+1.E+06" +string.format("%#+.1G", 10000000) == "+1.E+07" +string.format("%#+.1G", 0.01) == "+0.01" +string.format("%#+.1G", 0.0001) == "+0.0001" +string.format("%#+.1G", 1e-05) == "+1.E-05" +string.format("%#+.1G", 1e-06) == "+1.E-06" +string.format("%#+.1G", 1e-07) == "+1.E-07" +string.format("%#+.1G", 123.456) == "+1.E+02" +string.format("%#+.1G", 1234560000) == "+1.E+09" +string.format("%#+.1G", 1.23456e-05) == "+1.E-05" +string.format("%#+.1G", 123.456789123) == "+1.E+02" +string.format("%#+.1G", 1234567891.23) == "+1.E+09" +string.format("%#+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+1.0G", 0) == "+0." +string.format("%#+1.0G", 1) == "+1." +string.format("%#+1.0G", -1) == "-1." +string.format("%#+1.0G", 2) == "+2." +string.format("%#+1.0G", -2) == "-2." +string.format("%#+1.0G", 3) == "+3." +string.format("%#+1.0G", -3) == "-3." +string.format("%#+1.0G", 100) == "+1.E+02" +string.format("%#+1.0G", 10000) == "+1.E+04" +string.format("%#+1.0G", 100000) == "+1.E+05" +string.format("%#+1.0G", 1000000) == "+1.E+06" +string.format("%#+1.0G", 10000000) == "+1.E+07" +string.format("%#+1.0G", 0.01) == "+0.01" +string.format("%#+1.0G", 0.0001) == "+0.0001" +string.format("%#+1.0G", 1e-05) == "+1.E-05" +string.format("%#+1.0G", 1e-06) == "+1.E-06" +string.format("%#+1.0G", 1e-07) == "+1.E-07" +string.format("%#+1.0G", 123.456) == "+1.E+02" +string.format("%#+1.0G", 1234560000) == "+1.E+09" +string.format("%#+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%#+1.0G", 123.456789123) == "+1.E+02" +string.format("%#+1.0G", 1234567891.23) == "+1.E+09" +string.format("%#+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+1.1G", 0) == "+0." +string.format("%#+1.1G", 1) == "+1." +string.format("%#+1.1G", -1) == "-1." +string.format("%#+1.1G", 2) == "+2." +string.format("%#+1.1G", -2) == "-2." +string.format("%#+1.1G", 3) == "+3." +string.format("%#+1.1G", -3) == "-3." +string.format("%#+1.1G", 100) == "+1.E+02" +string.format("%#+1.1G", 10000) == "+1.E+04" +string.format("%#+1.1G", 100000) == "+1.E+05" +string.format("%#+1.1G", 1000000) == "+1.E+06" +string.format("%#+1.1G", 10000000) == "+1.E+07" +string.format("%#+1.1G", 0.01) == "+0.01" +string.format("%#+1.1G", 0.0001) == "+0.0001" +string.format("%#+1.1G", 1e-05) == "+1.E-05" +string.format("%#+1.1G", 1e-06) == "+1.E-06" +string.format("%#+1.1G", 1e-07) == "+1.E-07" +string.format("%#+1.1G", 123.456) == "+1.E+02" +string.format("%#+1.1G", 1234560000) == "+1.E+09" +string.format("%#+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%#+1.1G", 123.456789123) == "+1.E+02" +string.format("%#+1.1G", 1234567891.23) == "+1.E+09" +string.format("%#+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+2.0G", 0) == "+0." +string.format("%#+2.0G", 1) == "+1." +string.format("%#+2.0G", -1) == "-1." +string.format("%#+2.0G", 2) == "+2." +string.format("%#+2.0G", -2) == "-2." +string.format("%#+2.0G", 3) == "+3." +string.format("%#+2.0G", -3) == "-3." +string.format("%#+2.0G", 100) == "+1.E+02" +string.format("%#+2.0G", 10000) == "+1.E+04" +string.format("%#+2.0G", 100000) == "+1.E+05" +string.format("%#+2.0G", 1000000) == "+1.E+06" +string.format("%#+2.0G", 10000000) == "+1.E+07" +string.format("%#+2.0G", 0.01) == "+0.01" +string.format("%#+2.0G", 0.0001) == "+0.0001" +string.format("%#+2.0G", 1e-05) == "+1.E-05" +string.format("%#+2.0G", 1e-06) == "+1.E-06" +string.format("%#+2.0G", 1e-07) == "+1.E-07" +string.format("%#+2.0G", 123.456) == "+1.E+02" +string.format("%#+2.0G", 1234560000) == "+1.E+09" +string.format("%#+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%#+2.0G", 123.456789123) == "+1.E+02" +string.format("%#+2.0G", 1234567891.23) == "+1.E+09" +string.format("%#+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+2.1G", 0) == "+0." +string.format("%#+2.1G", 1) == "+1." +string.format("%#+2.1G", -1) == "-1." +string.format("%#+2.1G", 2) == "+2." +string.format("%#+2.1G", -2) == "-2." +string.format("%#+2.1G", 3) == "+3." +string.format("%#+2.1G", -3) == "-3." +string.format("%#+2.1G", 100) == "+1.E+02" +string.format("%#+2.1G", 10000) == "+1.E+04" +string.format("%#+2.1G", 100000) == "+1.E+05" +string.format("%#+2.1G", 1000000) == "+1.E+06" +string.format("%#+2.1G", 10000000) == "+1.E+07" +string.format("%#+2.1G", 0.01) == "+0.01" +string.format("%#+2.1G", 0.0001) == "+0.0001" +string.format("%#+2.1G", 1e-05) == "+1.E-05" +string.format("%#+2.1G", 1e-06) == "+1.E-06" +string.format("%#+2.1G", 1e-07) == "+1.E-07" +string.format("%#+2.1G", 123.456) == "+1.E+02" +string.format("%#+2.1G", 1234560000) == "+1.E+09" +string.format("%#+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%#+2.1G", 123.456789123) == "+1.E+02" +string.format("%#+2.1G", 1234567891.23) == "+1.E+09" +string.format("%#+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+6G", nan) == " +NAN" +string.format("%#+6G", inf) == " +INF" +string.format("%#+6G", -inf) == " -INF" +string.format("%#+6.0G", 0) == " +0." +string.format("%#+6.0G", 1) == " +1." +string.format("%#+6.0G", -1) == " -1." +string.format("%#+6.0G", 2) == " +2." +string.format("%#+6.0G", -2) == " -2." +string.format("%#+6.0G", 3) == " +3." +string.format("%#+6.0G", -3) == " -3." +string.format("%#+6.0G", nan) == " +NAN" +string.format("%#+6.0G", inf) == " +INF" +string.format("%#+6.0G", -inf) == " -INF" +string.format("%#+6.0G", 100) == "+1.E+02" +string.format("%#+6.0G", 10000) == "+1.E+04" +string.format("%#+6.0G", 100000) == "+1.E+05" +string.format("%#+6.0G", 1000000) == "+1.E+06" +string.format("%#+6.0G", 10000000) == "+1.E+07" +string.format("%#+6.0G", 0.01) == " +0.01" +string.format("%#+6.0G", 0.0001) == "+0.0001" +string.format("%#+6.0G", 1e-05) == "+1.E-05" +string.format("%#+6.0G", 1e-06) == "+1.E-06" +string.format("%#+6.0G", 1e-07) == "+1.E-07" +string.format("%#+6.0G", 123.456) == "+1.E+02" +string.format("%#+6.0G", 1234560000) == "+1.E+09" +string.format("%#+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%#+6.0G", 123.456789123) == "+1.E+02" +string.format("%#+6.0G", 1234567891.23) == "+1.E+09" +string.format("%#+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+6.1G", 0) == " +0." +string.format("%#+6.1G", 1) == " +1." +string.format("%#+6.1G", -1) == " -1." +string.format("%#+6.1G", 2) == " +2." +string.format("%#+6.1G", -2) == " -2." +string.format("%#+6.1G", 3) == " +3." +string.format("%#+6.1G", -3) == " -3." +string.format("%#+6.1G", nan) == " +NAN" +string.format("%#+6.1G", inf) == " +INF" +string.format("%#+6.1G", -inf) == " -INF" +string.format("%#+6.1G", 100) == "+1.E+02" +string.format("%#+6.1G", 10000) == "+1.E+04" +string.format("%#+6.1G", 100000) == "+1.E+05" +string.format("%#+6.1G", 1000000) == "+1.E+06" +string.format("%#+6.1G", 10000000) == "+1.E+07" +string.format("%#+6.1G", 0.01) == " +0.01" +string.format("%#+6.1G", 0.0001) == "+0.0001" +string.format("%#+6.1G", 1e-05) == "+1.E-05" +string.format("%#+6.1G", 1e-06) == "+1.E-06" +string.format("%#+6.1G", 1e-07) == "+1.E-07" +string.format("%#+6.1G", 123.456) == "+1.E+02" +string.format("%#+6.1G", 1234560000) == "+1.E+09" +string.format("%#+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%#+6.1G", 123.456789123) == "+1.E+02" +string.format("%#+6.1G", 1234567891.23) == "+1.E+09" +string.format("%#+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#+6.6G", nan) == " +NAN" +string.format("%#+6.6G", inf) == " +INF" +string.format("%#+6.6G", -inf) == " -INF" +string.format("%#+20G", 0) == " +0.00000" +string.format("%#+20G", 1) == " +1.00000" +string.format("%#+20G", -1) == " -1.00000" +string.format("%#+20G", 2) == " +2.00000" +string.format("%#+20G", -2) == " -2.00000" +string.format("%#+20G", 3) == " +3.00000" +string.format("%#+20G", -3) == " -3.00000" +string.format("%#+20G", nan) == " +NAN" +string.format("%#+20G", inf) == " +INF" +string.format("%#+20G", -inf) == " -INF" +string.format("%#+20G", 100) == " +100.000" +string.format("%#+20G", 10000) == " +10000.0" +string.format("%#+20G", 100000) == " +100000." +string.format("%#+20G", 1000000) == " +1.00000E+06" +string.format("%#+20G", 10000000) == " +1.00000E+07" +string.format("%#+20G", 0.01) == " +0.0100000" +string.format("%#+20G", 0.0001) == " +0.000100000" +string.format("%#+20G", 1e-05) == " +1.00000E-05" +string.format("%#+20G", 1e-06) == " +1.00000E-06" +string.format("%#+20G", 1e-07) == " +1.00000E-07" +string.format("%#+20G", 123.456) == " +123.456" +string.format("%#+20G", 1234560000) == " +1.23456E+09" +string.format("%#+20G", 1.23456e-05) == " +1.23456E-05" +string.format("%#+20G", 123.456789123) == " +123.457" +string.format("%#+20G", 1234567891.23) == " +1.23457E+09" +string.format("%#+20G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%#+20.0G", 0) == " +0." +string.format("%#+20.0G", 1) == " +1." +string.format("%#+20.0G", -1) == " -1." +string.format("%#+20.0G", 2) == " +2." +string.format("%#+20.0G", -2) == " -2." +string.format("%#+20.0G", 3) == " +3." +string.format("%#+20.0G", -3) == " -3." +string.format("%#+20.0G", nan) == " +NAN" +string.format("%#+20.0G", inf) == " +INF" +string.format("%#+20.0G", -inf) == " -INF" +string.format("%#+20.0G", 100) == " +1.E+02" +string.format("%#+20.0G", 10000) == " +1.E+04" +string.format("%#+20.0G", 100000) == " +1.E+05" +string.format("%#+20.0G", 1000000) == " +1.E+06" +string.format("%#+20.0G", 10000000) == " +1.E+07" +string.format("%#+20.0G", 0.01) == " +0.01" +string.format("%#+20.0G", 0.0001) == " +0.0001" +string.format("%#+20.0G", 1e-05) == " +1.E-05" +string.format("%#+20.0G", 1e-06) == " +1.E-06" +string.format("%#+20.0G", 1e-07) == " +1.E-07" +string.format("%#+20.0G", 123.456) == " +1.E+02" +string.format("%#+20.0G", 1234560000) == " +1.E+09" +string.format("%#+20.0G", 1.23456e-05) == " +1.E-05" +string.format("%#+20.0G", 123.456789123) == " +1.E+02" +string.format("%#+20.0G", 1234567891.23) == " +1.E+09" +string.format("%#+20.0G", 1.23456789123e-05) == " +1.E-05" +string.format("%#+20.1G", 0) == " +0." +string.format("%#+20.1G", 1) == " +1." +string.format("%#+20.1G", -1) == " -1." +string.format("%#+20.1G", 2) == " +2." +string.format("%#+20.1G", -2) == " -2." +string.format("%#+20.1G", 3) == " +3." +string.format("%#+20.1G", -3) == " -3." +string.format("%#+20.1G", nan) == " +NAN" +string.format("%#+20.1G", inf) == " +INF" +string.format("%#+20.1G", -inf) == " -INF" +string.format("%#+20.1G", 100) == " +1.E+02" +string.format("%#+20.1G", 10000) == " +1.E+04" +string.format("%#+20.1G", 100000) == " +1.E+05" +string.format("%#+20.1G", 1000000) == " +1.E+06" +string.format("%#+20.1G", 10000000) == " +1.E+07" +string.format("%#+20.1G", 0.01) == " +0.01" +string.format("%#+20.1G", 0.0001) == " +0.0001" +string.format("%#+20.1G", 1e-05) == " +1.E-05" +string.format("%#+20.1G", 1e-06) == " +1.E-06" +string.format("%#+20.1G", 1e-07) == " +1.E-07" +string.format("%#+20.1G", 123.456) == " +1.E+02" +string.format("%#+20.1G", 1234560000) == " +1.E+09" +string.format("%#+20.1G", 1.23456e-05) == " +1.E-05" +string.format("%#+20.1G", 123.456789123) == " +1.E+02" +string.format("%#+20.1G", 1234567891.23) == " +1.E+09" +string.format("%#+20.1G", 1.23456789123e-05) == " +1.E-05" +string.format("%#+20.6G", 0) == " +0.00000" +string.format("%#+20.6G", 1) == " +1.00000" +string.format("%#+20.6G", -1) == " -1.00000" +string.format("%#+20.6G", 2) == " +2.00000" +string.format("%#+20.6G", -2) == " -2.00000" +string.format("%#+20.6G", 3) == " +3.00000" +string.format("%#+20.6G", -3) == " -3.00000" +string.format("%#+20.6G", nan) == " +NAN" +string.format("%#+20.6G", inf) == " +INF" +string.format("%#+20.6G", -inf) == " -INF" +string.format("%#+20.6G", 100) == " +100.000" +string.format("%#+20.6G", 10000) == " +10000.0" +string.format("%#+20.6G", 100000) == " +100000." +string.format("%#+20.6G", 1000000) == " +1.00000E+06" +string.format("%#+20.6G", 10000000) == " +1.00000E+07" +string.format("%#+20.6G", 0.01) == " +0.0100000" +string.format("%#+20.6G", 0.0001) == " +0.000100000" +string.format("%#+20.6G", 1e-05) == " +1.00000E-05" +string.format("%#+20.6G", 1e-06) == " +1.00000E-06" +string.format("%#+20.6G", 1e-07) == " +1.00000E-07" +string.format("%#+20.6G", 123.456) == " +123.456" +string.format("%#+20.6G", 1234560000) == " +1.23456E+09" +string.format("%#+20.6G", 1.23456e-05) == " +1.23456E-05" +string.format("%#+20.6G", 123.456789123) == " +123.457" +string.format("%#+20.6G", 1234567891.23) == " +1.23457E+09" +string.format("%#+20.6G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%#-G", 0) == "0.00000" +string.format("%#-G", 1) == "1.00000" +string.format("%#-G", -1) == "-1.00000" +string.format("%#-G", 2) == "2.00000" +string.format("%#-G", -2) == "-2.00000" +string.format("%#-G", 3) == "3.00000" +string.format("%#-G", -3) == "-3.00000" +string.format("%#-G", nan) == "NAN" +string.format("%#-G", inf) == "INF" +string.format("%#-G", -inf) == "-INF" +string.format("%#-G", 100) == "100.000" +string.format("%#-G", 10000) == "10000.0" +string.format("%#-G", 100000) == "100000." +string.format("%#-G", 1000000) == "1.00000E+06" +string.format("%#-G", 10000000) == "1.00000E+07" +string.format("%#-G", 0.01) == "0.0100000" +string.format("%#-G", 0.0001) == "0.000100000" +string.format("%#-G", 1e-05) == "1.00000E-05" +string.format("%#-G", 1e-06) == "1.00000E-06" +string.format("%#-G", 1e-07) == "1.00000E-07" +string.format("%#-G", 123.456) == "123.456" +string.format("%#-G", 1234560000) == "1.23456E+09" +string.format("%#-G", 1.23456e-05) == "1.23456E-05" +string.format("%#-G", 123.456789123) == "123.457" +string.format("%#-G", 1234567891.23) == "1.23457E+09" +string.format("%#-G", 1.23456789123e-05) == "1.23457E-05" +string.format("%#-.0G", 0) == "0." +string.format("%#-.0G", 1) == "1." +string.format("%#-.0G", -1) == "-1." +string.format("%#-.0G", 2) == "2." +string.format("%#-.0G", -2) == "-2." +string.format("%#-.0G", 3) == "3." +string.format("%#-.0G", -3) == "-3." +string.format("%#-.0G", 100) == "1.E+02" +string.format("%#-.0G", 10000) == "1.E+04" +string.format("%#-.0G", 100000) == "1.E+05" +string.format("%#-.0G", 1000000) == "1.E+06" +string.format("%#-.0G", 10000000) == "1.E+07" +string.format("%#-.0G", 0.01) == "0.01" +string.format("%#-.0G", 0.0001) == "0.0001" +string.format("%#-.0G", 1e-05) == "1.E-05" +string.format("%#-.0G", 1e-06) == "1.E-06" +string.format("%#-.0G", 1e-07) == "1.E-07" +string.format("%#-.0G", 123.456) == "1.E+02" +string.format("%#-.0G", 1234560000) == "1.E+09" +string.format("%#-.0G", 1.23456e-05) == "1.E-05" +string.format("%#-.0G", 123.456789123) == "1.E+02" +string.format("%#-.0G", 1234567891.23) == "1.E+09" +string.format("%#-.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#-.1G", 0) == "0." +string.format("%#-.1G", 1) == "1." +string.format("%#-.1G", -1) == "-1." +string.format("%#-.1G", 2) == "2." +string.format("%#-.1G", -2) == "-2." +string.format("%#-.1G", 3) == "3." +string.format("%#-.1G", -3) == "-3." +string.format("%#-.1G", 100) == "1.E+02" +string.format("%#-.1G", 10000) == "1.E+04" +string.format("%#-.1G", 100000) == "1.E+05" +string.format("%#-.1G", 1000000) == "1.E+06" +string.format("%#-.1G", 10000000) == "1.E+07" +string.format("%#-.1G", 0.01) == "0.01" +string.format("%#-.1G", 0.0001) == "0.0001" +string.format("%#-.1G", 1e-05) == "1.E-05" +string.format("%#-.1G", 1e-06) == "1.E-06" +string.format("%#-.1G", 1e-07) == "1.E-07" +string.format("%#-.1G", 123.456) == "1.E+02" +string.format("%#-.1G", 1234560000) == "1.E+09" +string.format("%#-.1G", 1.23456e-05) == "1.E-05" +string.format("%#-.1G", 123.456789123) == "1.E+02" +string.format("%#-.1G", 1234567891.23) == "1.E+09" +string.format("%#-.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#-1.0G", 0) == "0." +string.format("%#-1.0G", 1) == "1." +string.format("%#-1.0G", -1) == "-1." +string.format("%#-1.0G", 2) == "2." +string.format("%#-1.0G", -2) == "-2." +string.format("%#-1.0G", 3) == "3." +string.format("%#-1.0G", -3) == "-3." +string.format("%#-1.0G", 100) == "1.E+02" +string.format("%#-1.0G", 10000) == "1.E+04" +string.format("%#-1.0G", 100000) == "1.E+05" +string.format("%#-1.0G", 1000000) == "1.E+06" +string.format("%#-1.0G", 10000000) == "1.E+07" +string.format("%#-1.0G", 0.01) == "0.01" +string.format("%#-1.0G", 0.0001) == "0.0001" +string.format("%#-1.0G", 1e-05) == "1.E-05" +string.format("%#-1.0G", 1e-06) == "1.E-06" +string.format("%#-1.0G", 1e-07) == "1.E-07" +string.format("%#-1.0G", 123.456) == "1.E+02" +string.format("%#-1.0G", 1234560000) == "1.E+09" +string.format("%#-1.0G", 1.23456e-05) == "1.E-05" +string.format("%#-1.0G", 123.456789123) == "1.E+02" +string.format("%#-1.0G", 1234567891.23) == "1.E+09" +string.format("%#-1.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#-1.1G", 0) == "0." +string.format("%#-1.1G", 1) == "1." +string.format("%#-1.1G", -1) == "-1." +string.format("%#-1.1G", 2) == "2." +string.format("%#-1.1G", -2) == "-2." +string.format("%#-1.1G", 3) == "3." +string.format("%#-1.1G", -3) == "-3." +string.format("%#-1.1G", 100) == "1.E+02" +string.format("%#-1.1G", 10000) == "1.E+04" +string.format("%#-1.1G", 100000) == "1.E+05" +string.format("%#-1.1G", 1000000) == "1.E+06" +string.format("%#-1.1G", 10000000) == "1.E+07" +string.format("%#-1.1G", 0.01) == "0.01" +string.format("%#-1.1G", 0.0001) == "0.0001" +string.format("%#-1.1G", 1e-05) == "1.E-05" +string.format("%#-1.1G", 1e-06) == "1.E-06" +string.format("%#-1.1G", 1e-07) == "1.E-07" +string.format("%#-1.1G", 123.456) == "1.E+02" +string.format("%#-1.1G", 1234560000) == "1.E+09" +string.format("%#-1.1G", 1.23456e-05) == "1.E-05" +string.format("%#-1.1G", 123.456789123) == "1.E+02" +string.format("%#-1.1G", 1234567891.23) == "1.E+09" +string.format("%#-1.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#-2.0G", 0) == "0." +string.format("%#-2.0G", 1) == "1." +string.format("%#-2.0G", -1) == "-1." +string.format("%#-2.0G", 2) == "2." +string.format("%#-2.0G", -2) == "-2." +string.format("%#-2.0G", 3) == "3." +string.format("%#-2.0G", -3) == "-3." +string.format("%#-2.0G", 100) == "1.E+02" +string.format("%#-2.0G", 10000) == "1.E+04" +string.format("%#-2.0G", 100000) == "1.E+05" +string.format("%#-2.0G", 1000000) == "1.E+06" +string.format("%#-2.0G", 10000000) == "1.E+07" +string.format("%#-2.0G", 0.01) == "0.01" +string.format("%#-2.0G", 0.0001) == "0.0001" +string.format("%#-2.0G", 1e-05) == "1.E-05" +string.format("%#-2.0G", 1e-06) == "1.E-06" +string.format("%#-2.0G", 1e-07) == "1.E-07" +string.format("%#-2.0G", 123.456) == "1.E+02" +string.format("%#-2.0G", 1234560000) == "1.E+09" +string.format("%#-2.0G", 1.23456e-05) == "1.E-05" +string.format("%#-2.0G", 123.456789123) == "1.E+02" +string.format("%#-2.0G", 1234567891.23) == "1.E+09" +string.format("%#-2.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#-2.1G", 0) == "0." +string.format("%#-2.1G", 1) == "1." +string.format("%#-2.1G", -1) == "-1." +string.format("%#-2.1G", 2) == "2." +string.format("%#-2.1G", -2) == "-2." +string.format("%#-2.1G", 3) == "3." +string.format("%#-2.1G", -3) == "-3." +string.format("%#-2.1G", 100) == "1.E+02" +string.format("%#-2.1G", 10000) == "1.E+04" +string.format("%#-2.1G", 100000) == "1.E+05" +string.format("%#-2.1G", 1000000) == "1.E+06" +string.format("%#-2.1G", 10000000) == "1.E+07" +string.format("%#-2.1G", 0.01) == "0.01" +string.format("%#-2.1G", 0.0001) == "0.0001" +string.format("%#-2.1G", 1e-05) == "1.E-05" +string.format("%#-2.1G", 1e-06) == "1.E-06" +string.format("%#-2.1G", 1e-07) == "1.E-07" +string.format("%#-2.1G", 123.456) == "1.E+02" +string.format("%#-2.1G", 1234560000) == "1.E+09" +string.format("%#-2.1G", 1.23456e-05) == "1.E-05" +string.format("%#-2.1G", 123.456789123) == "1.E+02" +string.format("%#-2.1G", 1234567891.23) == "1.E+09" +string.format("%#-2.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#-6G", nan) == "NAN " +string.format("%#-6G", inf) == "INF " +string.format("%#-6G", -inf) == "-INF " +string.format("%#-6.0G", 0) == "0. " +string.format("%#-6.0G", 1) == "1. " +string.format("%#-6.0G", -1) == "-1. " +string.format("%#-6.0G", 2) == "2. " +string.format("%#-6.0G", -2) == "-2. " +string.format("%#-6.0G", 3) == "3. " +string.format("%#-6.0G", -3) == "-3. " +string.format("%#-6.0G", nan) == "NAN " +string.format("%#-6.0G", inf) == "INF " +string.format("%#-6.0G", -inf) == "-INF " +string.format("%#-6.0G", 100) == "1.E+02" +string.format("%#-6.0G", 10000) == "1.E+04" +string.format("%#-6.0G", 100000) == "1.E+05" +string.format("%#-6.0G", 1000000) == "1.E+06" +string.format("%#-6.0G", 10000000) == "1.E+07" +string.format("%#-6.0G", 0.01) == "0.01 " +string.format("%#-6.0G", 0.0001) == "0.0001" +string.format("%#-6.0G", 1e-05) == "1.E-05" +string.format("%#-6.0G", 1e-06) == "1.E-06" +string.format("%#-6.0G", 1e-07) == "1.E-07" +string.format("%#-6.0G", 123.456) == "1.E+02" +string.format("%#-6.0G", 1234560000) == "1.E+09" +string.format("%#-6.0G", 1.23456e-05) == "1.E-05" +string.format("%#-6.0G", 123.456789123) == "1.E+02" +string.format("%#-6.0G", 1234567891.23) == "1.E+09" +string.format("%#-6.0G", 1.23456789123e-05) == "1.E-05" +string.format("%#-6.1G", 0) == "0. " +string.format("%#-6.1G", 1) == "1. " +string.format("%#-6.1G", -1) == "-1. " +string.format("%#-6.1G", 2) == "2. " +string.format("%#-6.1G", -2) == "-2. " +string.format("%#-6.1G", 3) == "3. " +string.format("%#-6.1G", -3) == "-3. " +string.format("%#-6.1G", nan) == "NAN " +string.format("%#-6.1G", inf) == "INF " +string.format("%#-6.1G", -inf) == "-INF " +string.format("%#-6.1G", 100) == "1.E+02" +string.format("%#-6.1G", 10000) == "1.E+04" +string.format("%#-6.1G", 100000) == "1.E+05" +string.format("%#-6.1G", 1000000) == "1.E+06" +string.format("%#-6.1G", 10000000) == "1.E+07" +string.format("%#-6.1G", 0.01) == "0.01 " +string.format("%#-6.1G", 0.0001) == "0.0001" +string.format("%#-6.1G", 1e-05) == "1.E-05" +string.format("%#-6.1G", 1e-06) == "1.E-06" +string.format("%#-6.1G", 1e-07) == "1.E-07" +string.format("%#-6.1G", 123.456) == "1.E+02" +string.format("%#-6.1G", 1234560000) == "1.E+09" +string.format("%#-6.1G", 1.23456e-05) == "1.E-05" +string.format("%#-6.1G", 123.456789123) == "1.E+02" +string.format("%#-6.1G", 1234567891.23) == "1.E+09" +string.format("%#-6.1G", 1.23456789123e-05) == "1.E-05" +string.format("%#-6.6G", nan) == "NAN " +string.format("%#-6.6G", inf) == "INF " +string.format("%#-6.6G", -inf) == "-INF " +string.format("%#-20G", 0) == "0.00000 " +string.format("%#-20G", 1) == "1.00000 " +string.format("%#-20G", -1) == "-1.00000 " +string.format("%#-20G", 2) == "2.00000 " +string.format("%#-20G", -2) == "-2.00000 " +string.format("%#-20G", 3) == "3.00000 " +string.format("%#-20G", -3) == "-3.00000 " +string.format("%#-20G", nan) == "NAN " +string.format("%#-20G", inf) == "INF " +string.format("%#-20G", -inf) == "-INF " +string.format("%#-20G", 100) == "100.000 " +string.format("%#-20G", 10000) == "10000.0 " +string.format("%#-20G", 100000) == "100000. " +string.format("%#-20G", 1000000) == "1.00000E+06 " +string.format("%#-20G", 10000000) == "1.00000E+07 " +string.format("%#-20G", 0.01) == "0.0100000 " +string.format("%#-20G", 0.0001) == "0.000100000 " +string.format("%#-20G", 1e-05) == "1.00000E-05 " +string.format("%#-20G", 1e-06) == "1.00000E-06 " +string.format("%#-20G", 1e-07) == "1.00000E-07 " +string.format("%#-20G", 123.456) == "123.456 " +string.format("%#-20G", 1234560000) == "1.23456E+09 " +string.format("%#-20G", 1.23456e-05) == "1.23456E-05 " +string.format("%#-20G", 123.456789123) == "123.457 " +string.format("%#-20G", 1234567891.23) == "1.23457E+09 " +string.format("%#-20G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%#-20.0G", 0) == "0. " +string.format("%#-20.0G", 1) == "1. " +string.format("%#-20.0G", -1) == "-1. " +string.format("%#-20.0G", 2) == "2. " +string.format("%#-20.0G", -2) == "-2. " +string.format("%#-20.0G", 3) == "3. " +string.format("%#-20.0G", -3) == "-3. " +string.format("%#-20.0G", nan) == "NAN " +string.format("%#-20.0G", inf) == "INF " +string.format("%#-20.0G", -inf) == "-INF " +string.format("%#-20.0G", 100) == "1.E+02 " +string.format("%#-20.0G", 10000) == "1.E+04 " +string.format("%#-20.0G", 100000) == "1.E+05 " +string.format("%#-20.0G", 1000000) == "1.E+06 " +string.format("%#-20.0G", 10000000) == "1.E+07 " +string.format("%#-20.0G", 0.01) == "0.01 " +string.format("%#-20.0G", 0.0001) == "0.0001 " +string.format("%#-20.0G", 1e-05) == "1.E-05 " +string.format("%#-20.0G", 1e-06) == "1.E-06 " +string.format("%#-20.0G", 1e-07) == "1.E-07 " +string.format("%#-20.0G", 123.456) == "1.E+02 " +string.format("%#-20.0G", 1234560000) == "1.E+09 " +string.format("%#-20.0G", 1.23456e-05) == "1.E-05 " +string.format("%#-20.0G", 123.456789123) == "1.E+02 " +string.format("%#-20.0G", 1234567891.23) == "1.E+09 " +string.format("%#-20.0G", 1.23456789123e-05) == "1.E-05 " +string.format("%#-20.1G", 0) == "0. " +string.format("%#-20.1G", 1) == "1. " +string.format("%#-20.1G", -1) == "-1. " +string.format("%#-20.1G", 2) == "2. " +string.format("%#-20.1G", -2) == "-2. " +string.format("%#-20.1G", 3) == "3. " +string.format("%#-20.1G", -3) == "-3. " +string.format("%#-20.1G", nan) == "NAN " +string.format("%#-20.1G", inf) == "INF " +string.format("%#-20.1G", -inf) == "-INF " +string.format("%#-20.1G", 100) == "1.E+02 " +string.format("%#-20.1G", 10000) == "1.E+04 " +string.format("%#-20.1G", 100000) == "1.E+05 " +string.format("%#-20.1G", 1000000) == "1.E+06 " +string.format("%#-20.1G", 10000000) == "1.E+07 " +string.format("%#-20.1G", 0.01) == "0.01 " +string.format("%#-20.1G", 0.0001) == "0.0001 " +string.format("%#-20.1G", 1e-05) == "1.E-05 " +string.format("%#-20.1G", 1e-06) == "1.E-06 " +string.format("%#-20.1G", 1e-07) == "1.E-07 " +string.format("%#-20.1G", 123.456) == "1.E+02 " +string.format("%#-20.1G", 1234560000) == "1.E+09 " +string.format("%#-20.1G", 1.23456e-05) == "1.E-05 " +string.format("%#-20.1G", 123.456789123) == "1.E+02 " +string.format("%#-20.1G", 1234567891.23) == "1.E+09 " +string.format("%#-20.1G", 1.23456789123e-05) == "1.E-05 " +string.format("%#-20.6G", 0) == "0.00000 " +string.format("%#-20.6G", 1) == "1.00000 " +string.format("%#-20.6G", -1) == "-1.00000 " +string.format("%#-20.6G", 2) == "2.00000 " +string.format("%#-20.6G", -2) == "-2.00000 " +string.format("%#-20.6G", 3) == "3.00000 " +string.format("%#-20.6G", -3) == "-3.00000 " +string.format("%#-20.6G", nan) == "NAN " +string.format("%#-20.6G", inf) == "INF " +string.format("%#-20.6G", -inf) == "-INF " +string.format("%#-20.6G", 100) == "100.000 " +string.format("%#-20.6G", 10000) == "10000.0 " +string.format("%#-20.6G", 100000) == "100000. " +string.format("%#-20.6G", 1000000) == "1.00000E+06 " +string.format("%#-20.6G", 10000000) == "1.00000E+07 " +string.format("%#-20.6G", 0.01) == "0.0100000 " +string.format("%#-20.6G", 0.0001) == "0.000100000 " +string.format("%#-20.6G", 1e-05) == "1.00000E-05 " +string.format("%#-20.6G", 1e-06) == "1.00000E-06 " +string.format("%#-20.6G", 1e-07) == "1.00000E-07 " +string.format("%#-20.6G", 123.456) == "123.456 " +string.format("%#-20.6G", 1234560000) == "1.23456E+09 " +string.format("%#-20.6G", 1.23456e-05) == "1.23456E-05 " +string.format("%#-20.6G", 123.456789123) == "123.457 " +string.format("%#-20.6G", 1234567891.23) == "1.23457E+09 " +string.format("%#-20.6G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%#-+G", 0) == "+0.00000" +string.format("%#-+G", 1) == "+1.00000" +string.format("%#-+G", -1) == "-1.00000" +string.format("%#-+G", 2) == "+2.00000" +string.format("%#-+G", -2) == "-2.00000" +string.format("%#-+G", 3) == "+3.00000" +string.format("%#-+G", -3) == "-3.00000" +string.format("%#-+G", nan) == "+NAN" +string.format("%#-+G", inf) == "+INF" +string.format("%#-+G", -inf) == "-INF" +string.format("%#-+G", 100) == "+100.000" +string.format("%#-+G", 10000) == "+10000.0" +string.format("%#-+G", 100000) == "+100000." +string.format("%#-+G", 1000000) == "+1.00000E+06" +string.format("%#-+G", 10000000) == "+1.00000E+07" +string.format("%#-+G", 0.01) == "+0.0100000" +string.format("%#-+G", 0.0001) == "+0.000100000" +string.format("%#-+G", 1e-05) == "+1.00000E-05" +string.format("%#-+G", 1e-06) == "+1.00000E-06" +string.format("%#-+G", 1e-07) == "+1.00000E-07" +string.format("%#-+G", 123.456) == "+123.456" +string.format("%#-+G", 1234560000) == "+1.23456E+09" +string.format("%#-+G", 1.23456e-05) == "+1.23456E-05" +string.format("%#-+G", 123.456789123) == "+123.457" +string.format("%#-+G", 1234567891.23) == "+1.23457E+09" +string.format("%#-+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%#-+.0G", 0) == "+0." +string.format("%#-+.0G", 1) == "+1." +string.format("%#-+.0G", -1) == "-1." +string.format("%#-+.0G", 2) == "+2." +string.format("%#-+.0G", -2) == "-2." +string.format("%#-+.0G", 3) == "+3." +string.format("%#-+.0G", -3) == "-3." +string.format("%#-+.0G", 100) == "+1.E+02" +string.format("%#-+.0G", 10000) == "+1.E+04" +string.format("%#-+.0G", 100000) == "+1.E+05" +string.format("%#-+.0G", 1000000) == "+1.E+06" +string.format("%#-+.0G", 10000000) == "+1.E+07" +string.format("%#-+.0G", 0.01) == "+0.01" +string.format("%#-+.0G", 0.0001) == "+0.0001" +string.format("%#-+.0G", 1e-05) == "+1.E-05" +string.format("%#-+.0G", 1e-06) == "+1.E-06" +string.format("%#-+.0G", 1e-07) == "+1.E-07" +string.format("%#-+.0G", 123.456) == "+1.E+02" +string.format("%#-+.0G", 1234560000) == "+1.E+09" +string.format("%#-+.0G", 1.23456e-05) == "+1.E-05" +string.format("%#-+.0G", 123.456789123) == "+1.E+02" +string.format("%#-+.0G", 1234567891.23) == "+1.E+09" +string.format("%#-+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+.1G", 0) == "+0." +string.format("%#-+.1G", 1) == "+1." +string.format("%#-+.1G", -1) == "-1." +string.format("%#-+.1G", 2) == "+2." +string.format("%#-+.1G", -2) == "-2." +string.format("%#-+.1G", 3) == "+3." +string.format("%#-+.1G", -3) == "-3." +string.format("%#-+.1G", 100) == "+1.E+02" +string.format("%#-+.1G", 10000) == "+1.E+04" +string.format("%#-+.1G", 100000) == "+1.E+05" +string.format("%#-+.1G", 1000000) == "+1.E+06" +string.format("%#-+.1G", 10000000) == "+1.E+07" +string.format("%#-+.1G", 0.01) == "+0.01" +string.format("%#-+.1G", 0.0001) == "+0.0001" +string.format("%#-+.1G", 1e-05) == "+1.E-05" +string.format("%#-+.1G", 1e-06) == "+1.E-06" +string.format("%#-+.1G", 1e-07) == "+1.E-07" +string.format("%#-+.1G", 123.456) == "+1.E+02" +string.format("%#-+.1G", 1234560000) == "+1.E+09" +string.format("%#-+.1G", 1.23456e-05) == "+1.E-05" +string.format("%#-+.1G", 123.456789123) == "+1.E+02" +string.format("%#-+.1G", 1234567891.23) == "+1.E+09" +string.format("%#-+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+1.0G", 0) == "+0." +string.format("%#-+1.0G", 1) == "+1." +string.format("%#-+1.0G", -1) == "-1." +string.format("%#-+1.0G", 2) == "+2." +string.format("%#-+1.0G", -2) == "-2." +string.format("%#-+1.0G", 3) == "+3." +string.format("%#-+1.0G", -3) == "-3." +string.format("%#-+1.0G", 100) == "+1.E+02" +string.format("%#-+1.0G", 10000) == "+1.E+04" +string.format("%#-+1.0G", 100000) == "+1.E+05" +string.format("%#-+1.0G", 1000000) == "+1.E+06" +string.format("%#-+1.0G", 10000000) == "+1.E+07" +string.format("%#-+1.0G", 0.01) == "+0.01" +string.format("%#-+1.0G", 0.0001) == "+0.0001" +string.format("%#-+1.0G", 1e-05) == "+1.E-05" +string.format("%#-+1.0G", 1e-06) == "+1.E-06" +string.format("%#-+1.0G", 1e-07) == "+1.E-07" +string.format("%#-+1.0G", 123.456) == "+1.E+02" +string.format("%#-+1.0G", 1234560000) == "+1.E+09" +string.format("%#-+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%#-+1.0G", 123.456789123) == "+1.E+02" +string.format("%#-+1.0G", 1234567891.23) == "+1.E+09" +string.format("%#-+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+1.1G", 0) == "+0." +string.format("%#-+1.1G", 1) == "+1." +string.format("%#-+1.1G", -1) == "-1." +string.format("%#-+1.1G", 2) == "+2." +string.format("%#-+1.1G", -2) == "-2." +string.format("%#-+1.1G", 3) == "+3." +string.format("%#-+1.1G", -3) == "-3." +string.format("%#-+1.1G", 100) == "+1.E+02" +string.format("%#-+1.1G", 10000) == "+1.E+04" +string.format("%#-+1.1G", 100000) == "+1.E+05" +string.format("%#-+1.1G", 1000000) == "+1.E+06" +string.format("%#-+1.1G", 10000000) == "+1.E+07" +string.format("%#-+1.1G", 0.01) == "+0.01" +string.format("%#-+1.1G", 0.0001) == "+0.0001" +string.format("%#-+1.1G", 1e-05) == "+1.E-05" +string.format("%#-+1.1G", 1e-06) == "+1.E-06" +string.format("%#-+1.1G", 1e-07) == "+1.E-07" +string.format("%#-+1.1G", 123.456) == "+1.E+02" +string.format("%#-+1.1G", 1234560000) == "+1.E+09" +string.format("%#-+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%#-+1.1G", 123.456789123) == "+1.E+02" +string.format("%#-+1.1G", 1234567891.23) == "+1.E+09" +string.format("%#-+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+2.0G", 0) == "+0." +string.format("%#-+2.0G", 1) == "+1." +string.format("%#-+2.0G", -1) == "-1." +string.format("%#-+2.0G", 2) == "+2." +string.format("%#-+2.0G", -2) == "-2." +string.format("%#-+2.0G", 3) == "+3." +string.format("%#-+2.0G", -3) == "-3." +string.format("%#-+2.0G", 100) == "+1.E+02" +string.format("%#-+2.0G", 10000) == "+1.E+04" +string.format("%#-+2.0G", 100000) == "+1.E+05" +string.format("%#-+2.0G", 1000000) == "+1.E+06" +string.format("%#-+2.0G", 10000000) == "+1.E+07" +string.format("%#-+2.0G", 0.01) == "+0.01" +string.format("%#-+2.0G", 0.0001) == "+0.0001" +string.format("%#-+2.0G", 1e-05) == "+1.E-05" +string.format("%#-+2.0G", 1e-06) == "+1.E-06" +string.format("%#-+2.0G", 1e-07) == "+1.E-07" +string.format("%#-+2.0G", 123.456) == "+1.E+02" +string.format("%#-+2.0G", 1234560000) == "+1.E+09" +string.format("%#-+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%#-+2.0G", 123.456789123) == "+1.E+02" +string.format("%#-+2.0G", 1234567891.23) == "+1.E+09" +string.format("%#-+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+2.1G", 0) == "+0." +string.format("%#-+2.1G", 1) == "+1." +string.format("%#-+2.1G", -1) == "-1." +string.format("%#-+2.1G", 2) == "+2." +string.format("%#-+2.1G", -2) == "-2." +string.format("%#-+2.1G", 3) == "+3." +string.format("%#-+2.1G", -3) == "-3." +string.format("%#-+2.1G", 100) == "+1.E+02" +string.format("%#-+2.1G", 10000) == "+1.E+04" +string.format("%#-+2.1G", 100000) == "+1.E+05" +string.format("%#-+2.1G", 1000000) == "+1.E+06" +string.format("%#-+2.1G", 10000000) == "+1.E+07" +string.format("%#-+2.1G", 0.01) == "+0.01" +string.format("%#-+2.1G", 0.0001) == "+0.0001" +string.format("%#-+2.1G", 1e-05) == "+1.E-05" +string.format("%#-+2.1G", 1e-06) == "+1.E-06" +string.format("%#-+2.1G", 1e-07) == "+1.E-07" +string.format("%#-+2.1G", 123.456) == "+1.E+02" +string.format("%#-+2.1G", 1234560000) == "+1.E+09" +string.format("%#-+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%#-+2.1G", 123.456789123) == "+1.E+02" +string.format("%#-+2.1G", 1234567891.23) == "+1.E+09" +string.format("%#-+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+6G", nan) == "+NAN " +string.format("%#-+6G", inf) == "+INF " +string.format("%#-+6G", -inf) == "-INF " +string.format("%#-+6.0G", 0) == "+0. " +string.format("%#-+6.0G", 1) == "+1. " +string.format("%#-+6.0G", -1) == "-1. " +string.format("%#-+6.0G", 2) == "+2. " +string.format("%#-+6.0G", -2) == "-2. " +string.format("%#-+6.0G", 3) == "+3. " +string.format("%#-+6.0G", -3) == "-3. " +string.format("%#-+6.0G", nan) == "+NAN " +string.format("%#-+6.0G", inf) == "+INF " +string.format("%#-+6.0G", -inf) == "-INF " +string.format("%#-+6.0G", 100) == "+1.E+02" +string.format("%#-+6.0G", 10000) == "+1.E+04" +string.format("%#-+6.0G", 100000) == "+1.E+05" +string.format("%#-+6.0G", 1000000) == "+1.E+06" +string.format("%#-+6.0G", 10000000) == "+1.E+07" +string.format("%#-+6.0G", 0.01) == "+0.01 " +string.format("%#-+6.0G", 0.0001) == "+0.0001" +string.format("%#-+6.0G", 1e-05) == "+1.E-05" +string.format("%#-+6.0G", 1e-06) == "+1.E-06" +string.format("%#-+6.0G", 1e-07) == "+1.E-07" +string.format("%#-+6.0G", 123.456) == "+1.E+02" +string.format("%#-+6.0G", 1234560000) == "+1.E+09" +string.format("%#-+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%#-+6.0G", 123.456789123) == "+1.E+02" +string.format("%#-+6.0G", 1234567891.23) == "+1.E+09" +string.format("%#-+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+6.1G", 0) == "+0. " +string.format("%#-+6.1G", 1) == "+1. " +string.format("%#-+6.1G", -1) == "-1. " +string.format("%#-+6.1G", 2) == "+2. " +string.format("%#-+6.1G", -2) == "-2. " +string.format("%#-+6.1G", 3) == "+3. " +string.format("%#-+6.1G", -3) == "-3. " +string.format("%#-+6.1G", nan) == "+NAN " +string.format("%#-+6.1G", inf) == "+INF " +string.format("%#-+6.1G", -inf) == "-INF " +string.format("%#-+6.1G", 100) == "+1.E+02" +string.format("%#-+6.1G", 10000) == "+1.E+04" +string.format("%#-+6.1G", 100000) == "+1.E+05" +string.format("%#-+6.1G", 1000000) == "+1.E+06" +string.format("%#-+6.1G", 10000000) == "+1.E+07" +string.format("%#-+6.1G", 0.01) == "+0.01 " +string.format("%#-+6.1G", 0.0001) == "+0.0001" +string.format("%#-+6.1G", 1e-05) == "+1.E-05" +string.format("%#-+6.1G", 1e-06) == "+1.E-06" +string.format("%#-+6.1G", 1e-07) == "+1.E-07" +string.format("%#-+6.1G", 123.456) == "+1.E+02" +string.format("%#-+6.1G", 1234560000) == "+1.E+09" +string.format("%#-+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%#-+6.1G", 123.456789123) == "+1.E+02" +string.format("%#-+6.1G", 1234567891.23) == "+1.E+09" +string.format("%#-+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%#-+6.6G", nan) == "+NAN " +string.format("%#-+6.6G", inf) == "+INF " +string.format("%#-+6.6G", -inf) == "-INF " +string.format("%#-+20G", 0) == "+0.00000 " +string.format("%#-+20G", 1) == "+1.00000 " +string.format("%#-+20G", -1) == "-1.00000 " +string.format("%#-+20G", 2) == "+2.00000 " +string.format("%#-+20G", -2) == "-2.00000 " +string.format("%#-+20G", 3) == "+3.00000 " +string.format("%#-+20G", -3) == "-3.00000 " +string.format("%#-+20G", nan) == "+NAN " +string.format("%#-+20G", inf) == "+INF " +string.format("%#-+20G", -inf) == "-INF " +string.format("%#-+20G", 100) == "+100.000 " +string.format("%#-+20G", 10000) == "+10000.0 " +string.format("%#-+20G", 100000) == "+100000. " +string.format("%#-+20G", 1000000) == "+1.00000E+06 " +string.format("%#-+20G", 10000000) == "+1.00000E+07 " +string.format("%#-+20G", 0.01) == "+0.0100000 " +string.format("%#-+20G", 0.0001) == "+0.000100000 " +string.format("%#-+20G", 1e-05) == "+1.00000E-05 " +string.format("%#-+20G", 1e-06) == "+1.00000E-06 " +string.format("%#-+20G", 1e-07) == "+1.00000E-07 " +string.format("%#-+20G", 123.456) == "+123.456 " +string.format("%#-+20G", 1234560000) == "+1.23456E+09 " +string.format("%#-+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%#-+20G", 123.456789123) == "+123.457 " +string.format("%#-+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%#-+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%#-+20.0G", 0) == "+0. " +string.format("%#-+20.0G", 1) == "+1. " +string.format("%#-+20.0G", -1) == "-1. " +string.format("%#-+20.0G", 2) == "+2. " +string.format("%#-+20.0G", -2) == "-2. " +string.format("%#-+20.0G", 3) == "+3. " +string.format("%#-+20.0G", -3) == "-3. " +string.format("%#-+20.0G", nan) == "+NAN " +string.format("%#-+20.0G", inf) == "+INF " +string.format("%#-+20.0G", -inf) == "-INF " +string.format("%#-+20.0G", 100) == "+1.E+02 " +string.format("%#-+20.0G", 10000) == "+1.E+04 " +string.format("%#-+20.0G", 100000) == "+1.E+05 " +string.format("%#-+20.0G", 1000000) == "+1.E+06 " +string.format("%#-+20.0G", 10000000) == "+1.E+07 " +string.format("%#-+20.0G", 0.01) == "+0.01 " +string.format("%#-+20.0G", 0.0001) == "+0.0001 " +string.format("%#-+20.0G", 1e-05) == "+1.E-05 " +string.format("%#-+20.0G", 1e-06) == "+1.E-06 " +string.format("%#-+20.0G", 1e-07) == "+1.E-07 " +string.format("%#-+20.0G", 123.456) == "+1.E+02 " +string.format("%#-+20.0G", 1234560000) == "+1.E+09 " +string.format("%#-+20.0G", 1.23456e-05) == "+1.E-05 " +string.format("%#-+20.0G", 123.456789123) == "+1.E+02 " +string.format("%#-+20.0G", 1234567891.23) == "+1.E+09 " +string.format("%#-+20.0G", 1.23456789123e-05) == "+1.E-05 " +string.format("%#-+20.1G", 0) == "+0. " +string.format("%#-+20.1G", 1) == "+1. " +string.format("%#-+20.1G", -1) == "-1. " +string.format("%#-+20.1G", 2) == "+2. " +string.format("%#-+20.1G", -2) == "-2. " +string.format("%#-+20.1G", 3) == "+3. " +string.format("%#-+20.1G", -3) == "-3. " +string.format("%#-+20.1G", nan) == "+NAN " +string.format("%#-+20.1G", inf) == "+INF " +string.format("%#-+20.1G", -inf) == "-INF " +string.format("%#-+20.1G", 100) == "+1.E+02 " +string.format("%#-+20.1G", 10000) == "+1.E+04 " +string.format("%#-+20.1G", 100000) == "+1.E+05 " +string.format("%#-+20.1G", 1000000) == "+1.E+06 " +string.format("%#-+20.1G", 10000000) == "+1.E+07 " +string.format("%#-+20.1G", 0.01) == "+0.01 " +string.format("%#-+20.1G", 0.0001) == "+0.0001 " +string.format("%#-+20.1G", 1e-05) == "+1.E-05 " +string.format("%#-+20.1G", 1e-06) == "+1.E-06 " +string.format("%#-+20.1G", 1e-07) == "+1.E-07 " +string.format("%#-+20.1G", 123.456) == "+1.E+02 " +string.format("%#-+20.1G", 1234560000) == "+1.E+09 " +string.format("%#-+20.1G", 1.23456e-05) == "+1.E-05 " +string.format("%#-+20.1G", 123.456789123) == "+1.E+02 " +string.format("%#-+20.1G", 1234567891.23) == "+1.E+09 " +string.format("%#-+20.1G", 1.23456789123e-05) == "+1.E-05 " +string.format("%#-+20.6G", 0) == "+0.00000 " +string.format("%#-+20.6G", 1) == "+1.00000 " +string.format("%#-+20.6G", -1) == "-1.00000 " +string.format("%#-+20.6G", 2) == "+2.00000 " +string.format("%#-+20.6G", -2) == "-2.00000 " +string.format("%#-+20.6G", 3) == "+3.00000 " +string.format("%#-+20.6G", -3) == "-3.00000 " +string.format("%#-+20.6G", nan) == "+NAN " +string.format("%#-+20.6G", inf) == "+INF " +string.format("%#-+20.6G", -inf) == "-INF " +string.format("%#-+20.6G", 100) == "+100.000 " +string.format("%#-+20.6G", 10000) == "+10000.0 " +string.format("%#-+20.6G", 100000) == "+100000. " +string.format("%#-+20.6G", 1000000) == "+1.00000E+06 " +string.format("%#-+20.6G", 10000000) == "+1.00000E+07 " +string.format("%#-+20.6G", 0.01) == "+0.0100000 " +string.format("%#-+20.6G", 0.0001) == "+0.000100000 " +string.format("%#-+20.6G", 1e-05) == "+1.00000E-05 " +string.format("%#-+20.6G", 1e-06) == "+1.00000E-06 " +string.format("%#-+20.6G", 1e-07) == "+1.00000E-07 " +string.format("%#-+20.6G", 123.456) == "+123.456 " +string.format("%#-+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%#-+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%#-+20.6G", 123.456789123) == "+123.457 " +string.format("%#-+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%#-+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%# G", 0) == " 0.00000" +string.format("%# G", 1) == " 1.00000" +string.format("%# G", -1) == "-1.00000" +string.format("%# G", 2) == " 2.00000" +string.format("%# G", -2) == "-2.00000" +string.format("%# G", 3) == " 3.00000" +string.format("%# G", -3) == "-3.00000" +string.format("%# G", nan) == " NAN" +string.format("%# G", inf) == " INF" +string.format("%# G", -inf) == "-INF" +string.format("%# G", 100) == " 100.000" +string.format("%# G", 10000) == " 10000.0" +string.format("%# G", 100000) == " 100000." +string.format("%# G", 1000000) == " 1.00000E+06" +string.format("%# G", 10000000) == " 1.00000E+07" +string.format("%# G", 0.01) == " 0.0100000" +string.format("%# G", 0.0001) == " 0.000100000" +string.format("%# G", 1e-05) == " 1.00000E-05" +string.format("%# G", 1e-06) == " 1.00000E-06" +string.format("%# G", 1e-07) == " 1.00000E-07" +string.format("%# G", 123.456) == " 123.456" +string.format("%# G", 1234560000) == " 1.23456E+09" +string.format("%# G", 1.23456e-05) == " 1.23456E-05" +string.format("%# G", 123.456789123) == " 123.457" +string.format("%# G", 1234567891.23) == " 1.23457E+09" +string.format("%# G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%# .0G", 0) == " 0." +string.format("%# .0G", 1) == " 1." +string.format("%# .0G", -1) == "-1." +string.format("%# .0G", 2) == " 2." +string.format("%# .0G", -2) == "-2." +string.format("%# .0G", 3) == " 3." +string.format("%# .0G", -3) == "-3." +string.format("%# .0G", 100) == " 1.E+02" +string.format("%# .0G", 10000) == " 1.E+04" +string.format("%# .0G", 100000) == " 1.E+05" +string.format("%# .0G", 1000000) == " 1.E+06" +string.format("%# .0G", 10000000) == " 1.E+07" +string.format("%# .0G", 0.01) == " 0.01" +string.format("%# .0G", 0.0001) == " 0.0001" +string.format("%# .0G", 1e-05) == " 1.E-05" +string.format("%# .0G", 1e-06) == " 1.E-06" +string.format("%# .0G", 1e-07) == " 1.E-07" +string.format("%# .0G", 123.456) == " 1.E+02" +string.format("%# .0G", 1234560000) == " 1.E+09" +string.format("%# .0G", 1.23456e-05) == " 1.E-05" +string.format("%# .0G", 123.456789123) == " 1.E+02" +string.format("%# .0G", 1234567891.23) == " 1.E+09" +string.format("%# .0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# .1G", 0) == " 0." +string.format("%# .1G", 1) == " 1." +string.format("%# .1G", -1) == "-1." +string.format("%# .1G", 2) == " 2." +string.format("%# .1G", -2) == "-2." +string.format("%# .1G", 3) == " 3." +string.format("%# .1G", -3) == "-3." +string.format("%# .1G", 100) == " 1.E+02" +string.format("%# .1G", 10000) == " 1.E+04" +string.format("%# .1G", 100000) == " 1.E+05" +string.format("%# .1G", 1000000) == " 1.E+06" +string.format("%# .1G", 10000000) == " 1.E+07" +string.format("%# .1G", 0.01) == " 0.01" +string.format("%# .1G", 0.0001) == " 0.0001" +string.format("%# .1G", 1e-05) == " 1.E-05" +string.format("%# .1G", 1e-06) == " 1.E-06" +string.format("%# .1G", 1e-07) == " 1.E-07" +string.format("%# .1G", 123.456) == " 1.E+02" +string.format("%# .1G", 1234560000) == " 1.E+09" +string.format("%# .1G", 1.23456e-05) == " 1.E-05" +string.format("%# .1G", 123.456789123) == " 1.E+02" +string.format("%# .1G", 1234567891.23) == " 1.E+09" +string.format("%# .1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 1.0G", 0) == " 0." +string.format("%# 1.0G", 1) == " 1." +string.format("%# 1.0G", -1) == "-1." +string.format("%# 1.0G", 2) == " 2." +string.format("%# 1.0G", -2) == "-2." +string.format("%# 1.0G", 3) == " 3." +string.format("%# 1.0G", -3) == "-3." +string.format("%# 1.0G", 100) == " 1.E+02" +string.format("%# 1.0G", 10000) == " 1.E+04" +string.format("%# 1.0G", 100000) == " 1.E+05" +string.format("%# 1.0G", 1000000) == " 1.E+06" +string.format("%# 1.0G", 10000000) == " 1.E+07" +string.format("%# 1.0G", 0.01) == " 0.01" +string.format("%# 1.0G", 0.0001) == " 0.0001" +string.format("%# 1.0G", 1e-05) == " 1.E-05" +string.format("%# 1.0G", 1e-06) == " 1.E-06" +string.format("%# 1.0G", 1e-07) == " 1.E-07" +string.format("%# 1.0G", 123.456) == " 1.E+02" +string.format("%# 1.0G", 1234560000) == " 1.E+09" +string.format("%# 1.0G", 1.23456e-05) == " 1.E-05" +string.format("%# 1.0G", 123.456789123) == " 1.E+02" +string.format("%# 1.0G", 1234567891.23) == " 1.E+09" +string.format("%# 1.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 1.1G", 0) == " 0." +string.format("%# 1.1G", 1) == " 1." +string.format("%# 1.1G", -1) == "-1." +string.format("%# 1.1G", 2) == " 2." +string.format("%# 1.1G", -2) == "-2." +string.format("%# 1.1G", 3) == " 3." +string.format("%# 1.1G", -3) == "-3." +string.format("%# 1.1G", 100) == " 1.E+02" +string.format("%# 1.1G", 10000) == " 1.E+04" +string.format("%# 1.1G", 100000) == " 1.E+05" +string.format("%# 1.1G", 1000000) == " 1.E+06" +string.format("%# 1.1G", 10000000) == " 1.E+07" +string.format("%# 1.1G", 0.01) == " 0.01" +string.format("%# 1.1G", 0.0001) == " 0.0001" +string.format("%# 1.1G", 1e-05) == " 1.E-05" +string.format("%# 1.1G", 1e-06) == " 1.E-06" +string.format("%# 1.1G", 1e-07) == " 1.E-07" +string.format("%# 1.1G", 123.456) == " 1.E+02" +string.format("%# 1.1G", 1234560000) == " 1.E+09" +string.format("%# 1.1G", 1.23456e-05) == " 1.E-05" +string.format("%# 1.1G", 123.456789123) == " 1.E+02" +string.format("%# 1.1G", 1234567891.23) == " 1.E+09" +string.format("%# 1.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 2.0G", 0) == " 0." +string.format("%# 2.0G", 1) == " 1." +string.format("%# 2.0G", -1) == "-1." +string.format("%# 2.0G", 2) == " 2." +string.format("%# 2.0G", -2) == "-2." +string.format("%# 2.0G", 3) == " 3." +string.format("%# 2.0G", -3) == "-3." +string.format("%# 2.0G", 100) == " 1.E+02" +string.format("%# 2.0G", 10000) == " 1.E+04" +string.format("%# 2.0G", 100000) == " 1.E+05" +string.format("%# 2.0G", 1000000) == " 1.E+06" +string.format("%# 2.0G", 10000000) == " 1.E+07" +string.format("%# 2.0G", 0.01) == " 0.01" +string.format("%# 2.0G", 0.0001) == " 0.0001" +string.format("%# 2.0G", 1e-05) == " 1.E-05" +string.format("%# 2.0G", 1e-06) == " 1.E-06" +string.format("%# 2.0G", 1e-07) == " 1.E-07" +string.format("%# 2.0G", 123.456) == " 1.E+02" +string.format("%# 2.0G", 1234560000) == " 1.E+09" +string.format("%# 2.0G", 1.23456e-05) == " 1.E-05" +string.format("%# 2.0G", 123.456789123) == " 1.E+02" +string.format("%# 2.0G", 1234567891.23) == " 1.E+09" +string.format("%# 2.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 2.1G", 0) == " 0." +string.format("%# 2.1G", 1) == " 1." +string.format("%# 2.1G", -1) == "-1." +string.format("%# 2.1G", 2) == " 2." +string.format("%# 2.1G", -2) == "-2." +string.format("%# 2.1G", 3) == " 3." +string.format("%# 2.1G", -3) == "-3." +string.format("%# 2.1G", 100) == " 1.E+02" +string.format("%# 2.1G", 10000) == " 1.E+04" +string.format("%# 2.1G", 100000) == " 1.E+05" +string.format("%# 2.1G", 1000000) == " 1.E+06" +string.format("%# 2.1G", 10000000) == " 1.E+07" +string.format("%# 2.1G", 0.01) == " 0.01" +string.format("%# 2.1G", 0.0001) == " 0.0001" +string.format("%# 2.1G", 1e-05) == " 1.E-05" +string.format("%# 2.1G", 1e-06) == " 1.E-06" +string.format("%# 2.1G", 1e-07) == " 1.E-07" +string.format("%# 2.1G", 123.456) == " 1.E+02" +string.format("%# 2.1G", 1234560000) == " 1.E+09" +string.format("%# 2.1G", 1.23456e-05) == " 1.E-05" +string.format("%# 2.1G", 123.456789123) == " 1.E+02" +string.format("%# 2.1G", 1234567891.23) == " 1.E+09" +string.format("%# 2.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 6G", nan) == " NAN" +string.format("%# 6G", inf) == " INF" +string.format("%# 6G", -inf) == " -INF" +string.format("%# 6.0G", 0) == " 0." +string.format("%# 6.0G", 1) == " 1." +string.format("%# 6.0G", -1) == " -1." +string.format("%# 6.0G", 2) == " 2." +string.format("%# 6.0G", -2) == " -2." +string.format("%# 6.0G", 3) == " 3." +string.format("%# 6.0G", -3) == " -3." +string.format("%# 6.0G", nan) == " NAN" +string.format("%# 6.0G", inf) == " INF" +string.format("%# 6.0G", -inf) == " -INF" +string.format("%# 6.0G", 100) == " 1.E+02" +string.format("%# 6.0G", 10000) == " 1.E+04" +string.format("%# 6.0G", 100000) == " 1.E+05" +string.format("%# 6.0G", 1000000) == " 1.E+06" +string.format("%# 6.0G", 10000000) == " 1.E+07" +string.format("%# 6.0G", 0.01) == " 0.01" +string.format("%# 6.0G", 0.0001) == " 0.0001" +string.format("%# 6.0G", 1e-05) == " 1.E-05" +string.format("%# 6.0G", 1e-06) == " 1.E-06" +string.format("%# 6.0G", 1e-07) == " 1.E-07" +string.format("%# 6.0G", 123.456) == " 1.E+02" +string.format("%# 6.0G", 1234560000) == " 1.E+09" +string.format("%# 6.0G", 1.23456e-05) == " 1.E-05" +string.format("%# 6.0G", 123.456789123) == " 1.E+02" +string.format("%# 6.0G", 1234567891.23) == " 1.E+09" +string.format("%# 6.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 6.1G", 0) == " 0." +string.format("%# 6.1G", 1) == " 1." +string.format("%# 6.1G", -1) == " -1." +string.format("%# 6.1G", 2) == " 2." +string.format("%# 6.1G", -2) == " -2." +string.format("%# 6.1G", 3) == " 3." +string.format("%# 6.1G", -3) == " -3." +string.format("%# 6.1G", nan) == " NAN" +string.format("%# 6.1G", inf) == " INF" +string.format("%# 6.1G", -inf) == " -INF" +string.format("%# 6.1G", 100) == " 1.E+02" +string.format("%# 6.1G", 10000) == " 1.E+04" +string.format("%# 6.1G", 100000) == " 1.E+05" +string.format("%# 6.1G", 1000000) == " 1.E+06" +string.format("%# 6.1G", 10000000) == " 1.E+07" +string.format("%# 6.1G", 0.01) == " 0.01" +string.format("%# 6.1G", 0.0001) == " 0.0001" +string.format("%# 6.1G", 1e-05) == " 1.E-05" +string.format("%# 6.1G", 1e-06) == " 1.E-06" +string.format("%# 6.1G", 1e-07) == " 1.E-07" +string.format("%# 6.1G", 123.456) == " 1.E+02" +string.format("%# 6.1G", 1234560000) == " 1.E+09" +string.format("%# 6.1G", 1.23456e-05) == " 1.E-05" +string.format("%# 6.1G", 123.456789123) == " 1.E+02" +string.format("%# 6.1G", 1234567891.23) == " 1.E+09" +string.format("%# 6.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 6.6G", nan) == " NAN" +string.format("%# 6.6G", inf) == " INF" +string.format("%# 6.6G", -inf) == " -INF" +string.format("%# 20G", 0) == " 0.00000" +string.format("%# 20G", 1) == " 1.00000" +string.format("%# 20G", -1) == " -1.00000" +string.format("%# 20G", 2) == " 2.00000" +string.format("%# 20G", -2) == " -2.00000" +string.format("%# 20G", 3) == " 3.00000" +string.format("%# 20G", -3) == " -3.00000" +string.format("%# 20G", nan) == " NAN" +string.format("%# 20G", inf) == " INF" +string.format("%# 20G", -inf) == " -INF" +string.format("%# 20G", 100) == " 100.000" +string.format("%# 20G", 10000) == " 10000.0" +string.format("%# 20G", 100000) == " 100000." +string.format("%# 20G", 1000000) == " 1.00000E+06" +string.format("%# 20G", 10000000) == " 1.00000E+07" +string.format("%# 20G", 0.01) == " 0.0100000" +string.format("%# 20G", 0.0001) == " 0.000100000" +string.format("%# 20G", 1e-05) == " 1.00000E-05" +string.format("%# 20G", 1e-06) == " 1.00000E-06" +string.format("%# 20G", 1e-07) == " 1.00000E-07" +string.format("%# 20G", 123.456) == " 123.456" +string.format("%# 20G", 1234560000) == " 1.23456E+09" +string.format("%# 20G", 1.23456e-05) == " 1.23456E-05" +string.format("%# 20G", 123.456789123) == " 123.457" +string.format("%# 20G", 1234567891.23) == " 1.23457E+09" +string.format("%# 20G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%# 20.0G", 0) == " 0." +string.format("%# 20.0G", 1) == " 1." +string.format("%# 20.0G", -1) == " -1." +string.format("%# 20.0G", 2) == " 2." +string.format("%# 20.0G", -2) == " -2." +string.format("%# 20.0G", 3) == " 3." +string.format("%# 20.0G", -3) == " -3." +string.format("%# 20.0G", nan) == " NAN" +string.format("%# 20.0G", inf) == " INF" +string.format("%# 20.0G", -inf) == " -INF" +string.format("%# 20.0G", 100) == " 1.E+02" +string.format("%# 20.0G", 10000) == " 1.E+04" +string.format("%# 20.0G", 100000) == " 1.E+05" +string.format("%# 20.0G", 1000000) == " 1.E+06" +string.format("%# 20.0G", 10000000) == " 1.E+07" +string.format("%# 20.0G", 0.01) == " 0.01" +string.format("%# 20.0G", 0.0001) == " 0.0001" +string.format("%# 20.0G", 1e-05) == " 1.E-05" +string.format("%# 20.0G", 1e-06) == " 1.E-06" +string.format("%# 20.0G", 1e-07) == " 1.E-07" +string.format("%# 20.0G", 123.456) == " 1.E+02" +string.format("%# 20.0G", 1234560000) == " 1.E+09" +string.format("%# 20.0G", 1.23456e-05) == " 1.E-05" +string.format("%# 20.0G", 123.456789123) == " 1.E+02" +string.format("%# 20.0G", 1234567891.23) == " 1.E+09" +string.format("%# 20.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 20.1G", 0) == " 0." +string.format("%# 20.1G", 1) == " 1." +string.format("%# 20.1G", -1) == " -1." +string.format("%# 20.1G", 2) == " 2." +string.format("%# 20.1G", -2) == " -2." +string.format("%# 20.1G", 3) == " 3." +string.format("%# 20.1G", -3) == " -3." +string.format("%# 20.1G", nan) == " NAN" +string.format("%# 20.1G", inf) == " INF" +string.format("%# 20.1G", -inf) == " -INF" +string.format("%# 20.1G", 100) == " 1.E+02" +string.format("%# 20.1G", 10000) == " 1.E+04" +string.format("%# 20.1G", 100000) == " 1.E+05" +string.format("%# 20.1G", 1000000) == " 1.E+06" +string.format("%# 20.1G", 10000000) == " 1.E+07" +string.format("%# 20.1G", 0.01) == " 0.01" +string.format("%# 20.1G", 0.0001) == " 0.0001" +string.format("%# 20.1G", 1e-05) == " 1.E-05" +string.format("%# 20.1G", 1e-06) == " 1.E-06" +string.format("%# 20.1G", 1e-07) == " 1.E-07" +string.format("%# 20.1G", 123.456) == " 1.E+02" +string.format("%# 20.1G", 1234560000) == " 1.E+09" +string.format("%# 20.1G", 1.23456e-05) == " 1.E-05" +string.format("%# 20.1G", 123.456789123) == " 1.E+02" +string.format("%# 20.1G", 1234567891.23) == " 1.E+09" +string.format("%# 20.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# 20.6G", 0) == " 0.00000" +string.format("%# 20.6G", 1) == " 1.00000" +string.format("%# 20.6G", -1) == " -1.00000" +string.format("%# 20.6G", 2) == " 2.00000" +string.format("%# 20.6G", -2) == " -2.00000" +string.format("%# 20.6G", 3) == " 3.00000" +string.format("%# 20.6G", -3) == " -3.00000" +string.format("%# 20.6G", nan) == " NAN" +string.format("%# 20.6G", inf) == " INF" +string.format("%# 20.6G", -inf) == " -INF" +string.format("%# 20.6G", 100) == " 100.000" +string.format("%# 20.6G", 10000) == " 10000.0" +string.format("%# 20.6G", 100000) == " 100000." +string.format("%# 20.6G", 1000000) == " 1.00000E+06" +string.format("%# 20.6G", 10000000) == " 1.00000E+07" +string.format("%# 20.6G", 0.01) == " 0.0100000" +string.format("%# 20.6G", 0.0001) == " 0.000100000" +string.format("%# 20.6G", 1e-05) == " 1.00000E-05" +string.format("%# 20.6G", 1e-06) == " 1.00000E-06" +string.format("%# 20.6G", 1e-07) == " 1.00000E-07" +string.format("%# 20.6G", 123.456) == " 123.456" +string.format("%# 20.6G", 1234560000) == " 1.23456E+09" +string.format("%# 20.6G", 1.23456e-05) == " 1.23456E-05" +string.format("%# 20.6G", 123.456789123) == " 123.457" +string.format("%# 20.6G", 1234567891.23) == " 1.23457E+09" +string.format("%# 20.6G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%# +G", 0) == "+0.00000" +string.format("%# +G", 1) == "+1.00000" +string.format("%# +G", -1) == "-1.00000" +string.format("%# +G", 2) == "+2.00000" +string.format("%# +G", -2) == "-2.00000" +string.format("%# +G", 3) == "+3.00000" +string.format("%# +G", -3) == "-3.00000" +string.format("%# +G", nan) == "+NAN" +string.format("%# +G", inf) == "+INF" +string.format("%# +G", -inf) == "-INF" +string.format("%# +G", 100) == "+100.000" +string.format("%# +G", 10000) == "+10000.0" +string.format("%# +G", 100000) == "+100000." +string.format("%# +G", 1000000) == "+1.00000E+06" +string.format("%# +G", 10000000) == "+1.00000E+07" +string.format("%# +G", 0.01) == "+0.0100000" +string.format("%# +G", 0.0001) == "+0.000100000" +string.format("%# +G", 1e-05) == "+1.00000E-05" +string.format("%# +G", 1e-06) == "+1.00000E-06" +string.format("%# +G", 1e-07) == "+1.00000E-07" +string.format("%# +G", 123.456) == "+123.456" +string.format("%# +G", 1234560000) == "+1.23456E+09" +string.format("%# +G", 1.23456e-05) == "+1.23456E-05" +string.format("%# +G", 123.456789123) == "+123.457" +string.format("%# +G", 1234567891.23) == "+1.23457E+09" +string.format("%# +G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%# +.0G", 0) == "+0." +string.format("%# +.0G", 1) == "+1." +string.format("%# +.0G", -1) == "-1." +string.format("%# +.0G", 2) == "+2." +string.format("%# +.0G", -2) == "-2." +string.format("%# +.0G", 3) == "+3." +string.format("%# +.0G", -3) == "-3." +string.format("%# +.0G", 100) == "+1.E+02" +string.format("%# +.0G", 10000) == "+1.E+04" +string.format("%# +.0G", 100000) == "+1.E+05" +string.format("%# +.0G", 1000000) == "+1.E+06" +string.format("%# +.0G", 10000000) == "+1.E+07" +string.format("%# +.0G", 0.01) == "+0.01" +string.format("%# +.0G", 0.0001) == "+0.0001" +string.format("%# +.0G", 1e-05) == "+1.E-05" +string.format("%# +.0G", 1e-06) == "+1.E-06" +string.format("%# +.0G", 1e-07) == "+1.E-07" +string.format("%# +.0G", 123.456) == "+1.E+02" +string.format("%# +.0G", 1234560000) == "+1.E+09" +string.format("%# +.0G", 1.23456e-05) == "+1.E-05" +string.format("%# +.0G", 123.456789123) == "+1.E+02" +string.format("%# +.0G", 1234567891.23) == "+1.E+09" +string.format("%# +.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +.1G", 0) == "+0." +string.format("%# +.1G", 1) == "+1." +string.format("%# +.1G", -1) == "-1." +string.format("%# +.1G", 2) == "+2." +string.format("%# +.1G", -2) == "-2." +string.format("%# +.1G", 3) == "+3." +string.format("%# +.1G", -3) == "-3." +string.format("%# +.1G", 100) == "+1.E+02" +string.format("%# +.1G", 10000) == "+1.E+04" +string.format("%# +.1G", 100000) == "+1.E+05" +string.format("%# +.1G", 1000000) == "+1.E+06" +string.format("%# +.1G", 10000000) == "+1.E+07" +string.format("%# +.1G", 0.01) == "+0.01" +string.format("%# +.1G", 0.0001) == "+0.0001" +string.format("%# +.1G", 1e-05) == "+1.E-05" +string.format("%# +.1G", 1e-06) == "+1.E-06" +string.format("%# +.1G", 1e-07) == "+1.E-07" +string.format("%# +.1G", 123.456) == "+1.E+02" +string.format("%# +.1G", 1234560000) == "+1.E+09" +string.format("%# +.1G", 1.23456e-05) == "+1.E-05" +string.format("%# +.1G", 123.456789123) == "+1.E+02" +string.format("%# +.1G", 1234567891.23) == "+1.E+09" +string.format("%# +.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +1.0G", 0) == "+0." +string.format("%# +1.0G", 1) == "+1." +string.format("%# +1.0G", -1) == "-1." +string.format("%# +1.0G", 2) == "+2." +string.format("%# +1.0G", -2) == "-2." +string.format("%# +1.0G", 3) == "+3." +string.format("%# +1.0G", -3) == "-3." +string.format("%# +1.0G", 100) == "+1.E+02" +string.format("%# +1.0G", 10000) == "+1.E+04" +string.format("%# +1.0G", 100000) == "+1.E+05" +string.format("%# +1.0G", 1000000) == "+1.E+06" +string.format("%# +1.0G", 10000000) == "+1.E+07" +string.format("%# +1.0G", 0.01) == "+0.01" +string.format("%# +1.0G", 0.0001) == "+0.0001" +string.format("%# +1.0G", 1e-05) == "+1.E-05" +string.format("%# +1.0G", 1e-06) == "+1.E-06" +string.format("%# +1.0G", 1e-07) == "+1.E-07" +string.format("%# +1.0G", 123.456) == "+1.E+02" +string.format("%# +1.0G", 1234560000) == "+1.E+09" +string.format("%# +1.0G", 1.23456e-05) == "+1.E-05" +string.format("%# +1.0G", 123.456789123) == "+1.E+02" +string.format("%# +1.0G", 1234567891.23) == "+1.E+09" +string.format("%# +1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +1.1G", 0) == "+0." +string.format("%# +1.1G", 1) == "+1." +string.format("%# +1.1G", -1) == "-1." +string.format("%# +1.1G", 2) == "+2." +string.format("%# +1.1G", -2) == "-2." +string.format("%# +1.1G", 3) == "+3." +string.format("%# +1.1G", -3) == "-3." +string.format("%# +1.1G", 100) == "+1.E+02" +string.format("%# +1.1G", 10000) == "+1.E+04" +string.format("%# +1.1G", 100000) == "+1.E+05" +string.format("%# +1.1G", 1000000) == "+1.E+06" +string.format("%# +1.1G", 10000000) == "+1.E+07" +string.format("%# +1.1G", 0.01) == "+0.01" +string.format("%# +1.1G", 0.0001) == "+0.0001" +string.format("%# +1.1G", 1e-05) == "+1.E-05" +string.format("%# +1.1G", 1e-06) == "+1.E-06" +string.format("%# +1.1G", 1e-07) == "+1.E-07" +string.format("%# +1.1G", 123.456) == "+1.E+02" +string.format("%# +1.1G", 1234560000) == "+1.E+09" +string.format("%# +1.1G", 1.23456e-05) == "+1.E-05" +string.format("%# +1.1G", 123.456789123) == "+1.E+02" +string.format("%# +1.1G", 1234567891.23) == "+1.E+09" +string.format("%# +1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +2.0G", 0) == "+0." +string.format("%# +2.0G", 1) == "+1." +string.format("%# +2.0G", -1) == "-1." +string.format("%# +2.0G", 2) == "+2." +string.format("%# +2.0G", -2) == "-2." +string.format("%# +2.0G", 3) == "+3." +string.format("%# +2.0G", -3) == "-3." +string.format("%# +2.0G", 100) == "+1.E+02" +string.format("%# +2.0G", 10000) == "+1.E+04" +string.format("%# +2.0G", 100000) == "+1.E+05" +string.format("%# +2.0G", 1000000) == "+1.E+06" +string.format("%# +2.0G", 10000000) == "+1.E+07" +string.format("%# +2.0G", 0.01) == "+0.01" +string.format("%# +2.0G", 0.0001) == "+0.0001" +string.format("%# +2.0G", 1e-05) == "+1.E-05" +string.format("%# +2.0G", 1e-06) == "+1.E-06" +string.format("%# +2.0G", 1e-07) == "+1.E-07" +string.format("%# +2.0G", 123.456) == "+1.E+02" +string.format("%# +2.0G", 1234560000) == "+1.E+09" +string.format("%# +2.0G", 1.23456e-05) == "+1.E-05" +string.format("%# +2.0G", 123.456789123) == "+1.E+02" +string.format("%# +2.0G", 1234567891.23) == "+1.E+09" +string.format("%# +2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +2.1G", 0) == "+0." +string.format("%# +2.1G", 1) == "+1." +string.format("%# +2.1G", -1) == "-1." +string.format("%# +2.1G", 2) == "+2." +string.format("%# +2.1G", -2) == "-2." +string.format("%# +2.1G", 3) == "+3." +string.format("%# +2.1G", -3) == "-3." +string.format("%# +2.1G", 100) == "+1.E+02" +string.format("%# +2.1G", 10000) == "+1.E+04" +string.format("%# +2.1G", 100000) == "+1.E+05" +string.format("%# +2.1G", 1000000) == "+1.E+06" +string.format("%# +2.1G", 10000000) == "+1.E+07" +string.format("%# +2.1G", 0.01) == "+0.01" +string.format("%# +2.1G", 0.0001) == "+0.0001" +string.format("%# +2.1G", 1e-05) == "+1.E-05" +string.format("%# +2.1G", 1e-06) == "+1.E-06" +string.format("%# +2.1G", 1e-07) == "+1.E-07" +string.format("%# +2.1G", 123.456) == "+1.E+02" +string.format("%# +2.1G", 1234560000) == "+1.E+09" +string.format("%# +2.1G", 1.23456e-05) == "+1.E-05" +string.format("%# +2.1G", 123.456789123) == "+1.E+02" +string.format("%# +2.1G", 1234567891.23) == "+1.E+09" +string.format("%# +2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +6G", nan) == " +NAN" +string.format("%# +6G", inf) == " +INF" +string.format("%# +6G", -inf) == " -INF" +string.format("%# +6.0G", 0) == " +0." +string.format("%# +6.0G", 1) == " +1." +string.format("%# +6.0G", -1) == " -1." +string.format("%# +6.0G", 2) == " +2." +string.format("%# +6.0G", -2) == " -2." +string.format("%# +6.0G", 3) == " +3." +string.format("%# +6.0G", -3) == " -3." +string.format("%# +6.0G", nan) == " +NAN" +string.format("%# +6.0G", inf) == " +INF" +string.format("%# +6.0G", -inf) == " -INF" +string.format("%# +6.0G", 100) == "+1.E+02" +string.format("%# +6.0G", 10000) == "+1.E+04" +string.format("%# +6.0G", 100000) == "+1.E+05" +string.format("%# +6.0G", 1000000) == "+1.E+06" +string.format("%# +6.0G", 10000000) == "+1.E+07" +string.format("%# +6.0G", 0.01) == " +0.01" +string.format("%# +6.0G", 0.0001) == "+0.0001" +string.format("%# +6.0G", 1e-05) == "+1.E-05" +string.format("%# +6.0G", 1e-06) == "+1.E-06" +string.format("%# +6.0G", 1e-07) == "+1.E-07" +string.format("%# +6.0G", 123.456) == "+1.E+02" +string.format("%# +6.0G", 1234560000) == "+1.E+09" +string.format("%# +6.0G", 1.23456e-05) == "+1.E-05" +string.format("%# +6.0G", 123.456789123) == "+1.E+02" +string.format("%# +6.0G", 1234567891.23) == "+1.E+09" +string.format("%# +6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +6.1G", 0) == " +0." +string.format("%# +6.1G", 1) == " +1." +string.format("%# +6.1G", -1) == " -1." +string.format("%# +6.1G", 2) == " +2." +string.format("%# +6.1G", -2) == " -2." +string.format("%# +6.1G", 3) == " +3." +string.format("%# +6.1G", -3) == " -3." +string.format("%# +6.1G", nan) == " +NAN" +string.format("%# +6.1G", inf) == " +INF" +string.format("%# +6.1G", -inf) == " -INF" +string.format("%# +6.1G", 100) == "+1.E+02" +string.format("%# +6.1G", 10000) == "+1.E+04" +string.format("%# +6.1G", 100000) == "+1.E+05" +string.format("%# +6.1G", 1000000) == "+1.E+06" +string.format("%# +6.1G", 10000000) == "+1.E+07" +string.format("%# +6.1G", 0.01) == " +0.01" +string.format("%# +6.1G", 0.0001) == "+0.0001" +string.format("%# +6.1G", 1e-05) == "+1.E-05" +string.format("%# +6.1G", 1e-06) == "+1.E-06" +string.format("%# +6.1G", 1e-07) == "+1.E-07" +string.format("%# +6.1G", 123.456) == "+1.E+02" +string.format("%# +6.1G", 1234560000) == "+1.E+09" +string.format("%# +6.1G", 1.23456e-05) == "+1.E-05" +string.format("%# +6.1G", 123.456789123) == "+1.E+02" +string.format("%# +6.1G", 1234567891.23) == "+1.E+09" +string.format("%# +6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# +6.6G", nan) == " +NAN" +string.format("%# +6.6G", inf) == " +INF" +string.format("%# +6.6G", -inf) == " -INF" +string.format("%# +20G", 0) == " +0.00000" +string.format("%# +20G", 1) == " +1.00000" +string.format("%# +20G", -1) == " -1.00000" +string.format("%# +20G", 2) == " +2.00000" +string.format("%# +20G", -2) == " -2.00000" +string.format("%# +20G", 3) == " +3.00000" +string.format("%# +20G", -3) == " -3.00000" +string.format("%# +20G", nan) == " +NAN" +string.format("%# +20G", inf) == " +INF" +string.format("%# +20G", -inf) == " -INF" +string.format("%# +20G", 100) == " +100.000" +string.format("%# +20G", 10000) == " +10000.0" +string.format("%# +20G", 100000) == " +100000." +string.format("%# +20G", 1000000) == " +1.00000E+06" +string.format("%# +20G", 10000000) == " +1.00000E+07" +string.format("%# +20G", 0.01) == " +0.0100000" +string.format("%# +20G", 0.0001) == " +0.000100000" +string.format("%# +20G", 1e-05) == " +1.00000E-05" +string.format("%# +20G", 1e-06) == " +1.00000E-06" +string.format("%# +20G", 1e-07) == " +1.00000E-07" +string.format("%# +20G", 123.456) == " +123.456" +string.format("%# +20G", 1234560000) == " +1.23456E+09" +string.format("%# +20G", 1.23456e-05) == " +1.23456E-05" +string.format("%# +20G", 123.456789123) == " +123.457" +string.format("%# +20G", 1234567891.23) == " +1.23457E+09" +string.format("%# +20G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%# +20.0G", 0) == " +0." +string.format("%# +20.0G", 1) == " +1." +string.format("%# +20.0G", -1) == " -1." +string.format("%# +20.0G", 2) == " +2." +string.format("%# +20.0G", -2) == " -2." +string.format("%# +20.0G", 3) == " +3." +string.format("%# +20.0G", -3) == " -3." +string.format("%# +20.0G", nan) == " +NAN" +string.format("%# +20.0G", inf) == " +INF" +string.format("%# +20.0G", -inf) == " -INF" +string.format("%# +20.0G", 100) == " +1.E+02" +string.format("%# +20.0G", 10000) == " +1.E+04" +string.format("%# +20.0G", 100000) == " +1.E+05" +string.format("%# +20.0G", 1000000) == " +1.E+06" +string.format("%# +20.0G", 10000000) == " +1.E+07" +string.format("%# +20.0G", 0.01) == " +0.01" +string.format("%# +20.0G", 0.0001) == " +0.0001" +string.format("%# +20.0G", 1e-05) == " +1.E-05" +string.format("%# +20.0G", 1e-06) == " +1.E-06" +string.format("%# +20.0G", 1e-07) == " +1.E-07" +string.format("%# +20.0G", 123.456) == " +1.E+02" +string.format("%# +20.0G", 1234560000) == " +1.E+09" +string.format("%# +20.0G", 1.23456e-05) == " +1.E-05" +string.format("%# +20.0G", 123.456789123) == " +1.E+02" +string.format("%# +20.0G", 1234567891.23) == " +1.E+09" +string.format("%# +20.0G", 1.23456789123e-05) == " +1.E-05" +string.format("%# +20.1G", 0) == " +0." +string.format("%# +20.1G", 1) == " +1." +string.format("%# +20.1G", -1) == " -1." +string.format("%# +20.1G", 2) == " +2." +string.format("%# +20.1G", -2) == " -2." +string.format("%# +20.1G", 3) == " +3." +string.format("%# +20.1G", -3) == " -3." +string.format("%# +20.1G", nan) == " +NAN" +string.format("%# +20.1G", inf) == " +INF" +string.format("%# +20.1G", -inf) == " -INF" +string.format("%# +20.1G", 100) == " +1.E+02" +string.format("%# +20.1G", 10000) == " +1.E+04" +string.format("%# +20.1G", 100000) == " +1.E+05" +string.format("%# +20.1G", 1000000) == " +1.E+06" +string.format("%# +20.1G", 10000000) == " +1.E+07" +string.format("%# +20.1G", 0.01) == " +0.01" +string.format("%# +20.1G", 0.0001) == " +0.0001" +string.format("%# +20.1G", 1e-05) == " +1.E-05" +string.format("%# +20.1G", 1e-06) == " +1.E-06" +string.format("%# +20.1G", 1e-07) == " +1.E-07" +string.format("%# +20.1G", 123.456) == " +1.E+02" +string.format("%# +20.1G", 1234560000) == " +1.E+09" +string.format("%# +20.1G", 1.23456e-05) == " +1.E-05" +string.format("%# +20.1G", 123.456789123) == " +1.E+02" +string.format("%# +20.1G", 1234567891.23) == " +1.E+09" +string.format("%# +20.1G", 1.23456789123e-05) == " +1.E-05" +string.format("%# +20.6G", 0) == " +0.00000" +string.format("%# +20.6G", 1) == " +1.00000" +string.format("%# +20.6G", -1) == " -1.00000" +string.format("%# +20.6G", 2) == " +2.00000" +string.format("%# +20.6G", -2) == " -2.00000" +string.format("%# +20.6G", 3) == " +3.00000" +string.format("%# +20.6G", -3) == " -3.00000" +string.format("%# +20.6G", nan) == " +NAN" +string.format("%# +20.6G", inf) == " +INF" +string.format("%# +20.6G", -inf) == " -INF" +string.format("%# +20.6G", 100) == " +100.000" +string.format("%# +20.6G", 10000) == " +10000.0" +string.format("%# +20.6G", 100000) == " +100000." +string.format("%# +20.6G", 1000000) == " +1.00000E+06" +string.format("%# +20.6G", 10000000) == " +1.00000E+07" +string.format("%# +20.6G", 0.01) == " +0.0100000" +string.format("%# +20.6G", 0.0001) == " +0.000100000" +string.format("%# +20.6G", 1e-05) == " +1.00000E-05" +string.format("%# +20.6G", 1e-06) == " +1.00000E-06" +string.format("%# +20.6G", 1e-07) == " +1.00000E-07" +string.format("%# +20.6G", 123.456) == " +123.456" +string.format("%# +20.6G", 1234560000) == " +1.23456E+09" +string.format("%# +20.6G", 1.23456e-05) == " +1.23456E-05" +string.format("%# +20.6G", 123.456789123) == " +123.457" +string.format("%# +20.6G", 1234567891.23) == " +1.23457E+09" +string.format("%# +20.6G", 1.23456789123e-05) == " +1.23457E-05" +string.format("%# -G", 0) == " 0.00000" +string.format("%# -G", 1) == " 1.00000" +string.format("%# -G", -1) == "-1.00000" +string.format("%# -G", 2) == " 2.00000" +string.format("%# -G", -2) == "-2.00000" +string.format("%# -G", 3) == " 3.00000" +string.format("%# -G", -3) == "-3.00000" +string.format("%# -G", nan) == " NAN" +string.format("%# -G", inf) == " INF" +string.format("%# -G", -inf) == "-INF" +string.format("%# -G", 100) == " 100.000" +string.format("%# -G", 10000) == " 10000.0" +string.format("%# -G", 100000) == " 100000." +string.format("%# -G", 1000000) == " 1.00000E+06" +string.format("%# -G", 10000000) == " 1.00000E+07" +string.format("%# -G", 0.01) == " 0.0100000" +string.format("%# -G", 0.0001) == " 0.000100000" +string.format("%# -G", 1e-05) == " 1.00000E-05" +string.format("%# -G", 1e-06) == " 1.00000E-06" +string.format("%# -G", 1e-07) == " 1.00000E-07" +string.format("%# -G", 123.456) == " 123.456" +string.format("%# -G", 1234560000) == " 1.23456E+09" +string.format("%# -G", 1.23456e-05) == " 1.23456E-05" +string.format("%# -G", 123.456789123) == " 123.457" +string.format("%# -G", 1234567891.23) == " 1.23457E+09" +string.format("%# -G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%# -.0G", 0) == " 0." +string.format("%# -.0G", 1) == " 1." +string.format("%# -.0G", -1) == "-1." +string.format("%# -.0G", 2) == " 2." +string.format("%# -.0G", -2) == "-2." +string.format("%# -.0G", 3) == " 3." +string.format("%# -.0G", -3) == "-3." +string.format("%# -.0G", 100) == " 1.E+02" +string.format("%# -.0G", 10000) == " 1.E+04" +string.format("%# -.0G", 100000) == " 1.E+05" +string.format("%# -.0G", 1000000) == " 1.E+06" +string.format("%# -.0G", 10000000) == " 1.E+07" +string.format("%# -.0G", 0.01) == " 0.01" +string.format("%# -.0G", 0.0001) == " 0.0001" +string.format("%# -.0G", 1e-05) == " 1.E-05" +string.format("%# -.0G", 1e-06) == " 1.E-06" +string.format("%# -.0G", 1e-07) == " 1.E-07" +string.format("%# -.0G", 123.456) == " 1.E+02" +string.format("%# -.0G", 1234560000) == " 1.E+09" +string.format("%# -.0G", 1.23456e-05) == " 1.E-05" +string.format("%# -.0G", 123.456789123) == " 1.E+02" +string.format("%# -.0G", 1234567891.23) == " 1.E+09" +string.format("%# -.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -.1G", 0) == " 0." +string.format("%# -.1G", 1) == " 1." +string.format("%# -.1G", -1) == "-1." +string.format("%# -.1G", 2) == " 2." +string.format("%# -.1G", -2) == "-2." +string.format("%# -.1G", 3) == " 3." +string.format("%# -.1G", -3) == "-3." +string.format("%# -.1G", 100) == " 1.E+02" +string.format("%# -.1G", 10000) == " 1.E+04" +string.format("%# -.1G", 100000) == " 1.E+05" +string.format("%# -.1G", 1000000) == " 1.E+06" +string.format("%# -.1G", 10000000) == " 1.E+07" +string.format("%# -.1G", 0.01) == " 0.01" +string.format("%# -.1G", 0.0001) == " 0.0001" +string.format("%# -.1G", 1e-05) == " 1.E-05" +string.format("%# -.1G", 1e-06) == " 1.E-06" +string.format("%# -.1G", 1e-07) == " 1.E-07" +string.format("%# -.1G", 123.456) == " 1.E+02" +string.format("%# -.1G", 1234560000) == " 1.E+09" +string.format("%# -.1G", 1.23456e-05) == " 1.E-05" +string.format("%# -.1G", 123.456789123) == " 1.E+02" +string.format("%# -.1G", 1234567891.23) == " 1.E+09" +string.format("%# -.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -1.0G", 0) == " 0." +string.format("%# -1.0G", 1) == " 1." +string.format("%# -1.0G", -1) == "-1." +string.format("%# -1.0G", 2) == " 2." +string.format("%# -1.0G", -2) == "-2." +string.format("%# -1.0G", 3) == " 3." +string.format("%# -1.0G", -3) == "-3." +string.format("%# -1.0G", 100) == " 1.E+02" +string.format("%# -1.0G", 10000) == " 1.E+04" +string.format("%# -1.0G", 100000) == " 1.E+05" +string.format("%# -1.0G", 1000000) == " 1.E+06" +string.format("%# -1.0G", 10000000) == " 1.E+07" +string.format("%# -1.0G", 0.01) == " 0.01" +string.format("%# -1.0G", 0.0001) == " 0.0001" +string.format("%# -1.0G", 1e-05) == " 1.E-05" +string.format("%# -1.0G", 1e-06) == " 1.E-06" +string.format("%# -1.0G", 1e-07) == " 1.E-07" +string.format("%# -1.0G", 123.456) == " 1.E+02" +string.format("%# -1.0G", 1234560000) == " 1.E+09" +string.format("%# -1.0G", 1.23456e-05) == " 1.E-05" +string.format("%# -1.0G", 123.456789123) == " 1.E+02" +string.format("%# -1.0G", 1234567891.23) == " 1.E+09" +string.format("%# -1.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -1.1G", 0) == " 0." +string.format("%# -1.1G", 1) == " 1." +string.format("%# -1.1G", -1) == "-1." +string.format("%# -1.1G", 2) == " 2." +string.format("%# -1.1G", -2) == "-2." +string.format("%# -1.1G", 3) == " 3." +string.format("%# -1.1G", -3) == "-3." +string.format("%# -1.1G", 100) == " 1.E+02" +string.format("%# -1.1G", 10000) == " 1.E+04" +string.format("%# -1.1G", 100000) == " 1.E+05" +string.format("%# -1.1G", 1000000) == " 1.E+06" +string.format("%# -1.1G", 10000000) == " 1.E+07" +string.format("%# -1.1G", 0.01) == " 0.01" +string.format("%# -1.1G", 0.0001) == " 0.0001" +string.format("%# -1.1G", 1e-05) == " 1.E-05" +string.format("%# -1.1G", 1e-06) == " 1.E-06" +string.format("%# -1.1G", 1e-07) == " 1.E-07" +string.format("%# -1.1G", 123.456) == " 1.E+02" +string.format("%# -1.1G", 1234560000) == " 1.E+09" +string.format("%# -1.1G", 1.23456e-05) == " 1.E-05" +string.format("%# -1.1G", 123.456789123) == " 1.E+02" +string.format("%# -1.1G", 1234567891.23) == " 1.E+09" +string.format("%# -1.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -2.0G", 0) == " 0." +string.format("%# -2.0G", 1) == " 1." +string.format("%# -2.0G", -1) == "-1." +string.format("%# -2.0G", 2) == " 2." +string.format("%# -2.0G", -2) == "-2." +string.format("%# -2.0G", 3) == " 3." +string.format("%# -2.0G", -3) == "-3." +string.format("%# -2.0G", 100) == " 1.E+02" +string.format("%# -2.0G", 10000) == " 1.E+04" +string.format("%# -2.0G", 100000) == " 1.E+05" +string.format("%# -2.0G", 1000000) == " 1.E+06" +string.format("%# -2.0G", 10000000) == " 1.E+07" +string.format("%# -2.0G", 0.01) == " 0.01" +string.format("%# -2.0G", 0.0001) == " 0.0001" +string.format("%# -2.0G", 1e-05) == " 1.E-05" +string.format("%# -2.0G", 1e-06) == " 1.E-06" +string.format("%# -2.0G", 1e-07) == " 1.E-07" +string.format("%# -2.0G", 123.456) == " 1.E+02" +string.format("%# -2.0G", 1234560000) == " 1.E+09" +string.format("%# -2.0G", 1.23456e-05) == " 1.E-05" +string.format("%# -2.0G", 123.456789123) == " 1.E+02" +string.format("%# -2.0G", 1234567891.23) == " 1.E+09" +string.format("%# -2.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -2.1G", 0) == " 0." +string.format("%# -2.1G", 1) == " 1." +string.format("%# -2.1G", -1) == "-1." +string.format("%# -2.1G", 2) == " 2." +string.format("%# -2.1G", -2) == "-2." +string.format("%# -2.1G", 3) == " 3." +string.format("%# -2.1G", -3) == "-3." +string.format("%# -2.1G", 100) == " 1.E+02" +string.format("%# -2.1G", 10000) == " 1.E+04" +string.format("%# -2.1G", 100000) == " 1.E+05" +string.format("%# -2.1G", 1000000) == " 1.E+06" +string.format("%# -2.1G", 10000000) == " 1.E+07" +string.format("%# -2.1G", 0.01) == " 0.01" +string.format("%# -2.1G", 0.0001) == " 0.0001" +string.format("%# -2.1G", 1e-05) == " 1.E-05" +string.format("%# -2.1G", 1e-06) == " 1.E-06" +string.format("%# -2.1G", 1e-07) == " 1.E-07" +string.format("%# -2.1G", 123.456) == " 1.E+02" +string.format("%# -2.1G", 1234560000) == " 1.E+09" +string.format("%# -2.1G", 1.23456e-05) == " 1.E-05" +string.format("%# -2.1G", 123.456789123) == " 1.E+02" +string.format("%# -2.1G", 1234567891.23) == " 1.E+09" +string.format("%# -2.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -6G", nan) == " NAN " +string.format("%# -6G", inf) == " INF " +string.format("%# -6G", -inf) == "-INF " +string.format("%# -6.0G", 0) == " 0. " +string.format("%# -6.0G", 1) == " 1. " +string.format("%# -6.0G", -1) == "-1. " +string.format("%# -6.0G", 2) == " 2. " +string.format("%# -6.0G", -2) == "-2. " +string.format("%# -6.0G", 3) == " 3. " +string.format("%# -6.0G", -3) == "-3. " +string.format("%# -6.0G", nan) == " NAN " +string.format("%# -6.0G", inf) == " INF " +string.format("%# -6.0G", -inf) == "-INF " +string.format("%# -6.0G", 100) == " 1.E+02" +string.format("%# -6.0G", 10000) == " 1.E+04" +string.format("%# -6.0G", 100000) == " 1.E+05" +string.format("%# -6.0G", 1000000) == " 1.E+06" +string.format("%# -6.0G", 10000000) == " 1.E+07" +string.format("%# -6.0G", 0.01) == " 0.01 " +string.format("%# -6.0G", 0.0001) == " 0.0001" +string.format("%# -6.0G", 1e-05) == " 1.E-05" +string.format("%# -6.0G", 1e-06) == " 1.E-06" +string.format("%# -6.0G", 1e-07) == " 1.E-07" +string.format("%# -6.0G", 123.456) == " 1.E+02" +string.format("%# -6.0G", 1234560000) == " 1.E+09" +string.format("%# -6.0G", 1.23456e-05) == " 1.E-05" +string.format("%# -6.0G", 123.456789123) == " 1.E+02" +string.format("%# -6.0G", 1234567891.23) == " 1.E+09" +string.format("%# -6.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -6.1G", 0) == " 0. " +string.format("%# -6.1G", 1) == " 1. " +string.format("%# -6.1G", -1) == "-1. " +string.format("%# -6.1G", 2) == " 2. " +string.format("%# -6.1G", -2) == "-2. " +string.format("%# -6.1G", 3) == " 3. " +string.format("%# -6.1G", -3) == "-3. " +string.format("%# -6.1G", nan) == " NAN " +string.format("%# -6.1G", inf) == " INF " +string.format("%# -6.1G", -inf) == "-INF " +string.format("%# -6.1G", 100) == " 1.E+02" +string.format("%# -6.1G", 10000) == " 1.E+04" +string.format("%# -6.1G", 100000) == " 1.E+05" +string.format("%# -6.1G", 1000000) == " 1.E+06" +string.format("%# -6.1G", 10000000) == " 1.E+07" +string.format("%# -6.1G", 0.01) == " 0.01 " +string.format("%# -6.1G", 0.0001) == " 0.0001" +string.format("%# -6.1G", 1e-05) == " 1.E-05" +string.format("%# -6.1G", 1e-06) == " 1.E-06" +string.format("%# -6.1G", 1e-07) == " 1.E-07" +string.format("%# -6.1G", 123.456) == " 1.E+02" +string.format("%# -6.1G", 1234560000) == " 1.E+09" +string.format("%# -6.1G", 1.23456e-05) == " 1.E-05" +string.format("%# -6.1G", 123.456789123) == " 1.E+02" +string.format("%# -6.1G", 1234567891.23) == " 1.E+09" +string.format("%# -6.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%# -6.6G", nan) == " NAN " +string.format("%# -6.6G", inf) == " INF " +string.format("%# -6.6G", -inf) == "-INF " +string.format("%# -20G", 0) == " 0.00000 " +string.format("%# -20G", 1) == " 1.00000 " +string.format("%# -20G", -1) == "-1.00000 " +string.format("%# -20G", 2) == " 2.00000 " +string.format("%# -20G", -2) == "-2.00000 " +string.format("%# -20G", 3) == " 3.00000 " +string.format("%# -20G", -3) == "-3.00000 " +string.format("%# -20G", nan) == " NAN " +string.format("%# -20G", inf) == " INF " +string.format("%# -20G", -inf) == "-INF " +string.format("%# -20G", 100) == " 100.000 " +string.format("%# -20G", 10000) == " 10000.0 " +string.format("%# -20G", 100000) == " 100000. " +string.format("%# -20G", 1000000) == " 1.00000E+06 " +string.format("%# -20G", 10000000) == " 1.00000E+07 " +string.format("%# -20G", 0.01) == " 0.0100000 " +string.format("%# -20G", 0.0001) == " 0.000100000 " +string.format("%# -20G", 1e-05) == " 1.00000E-05 " +string.format("%# -20G", 1e-06) == " 1.00000E-06 " +string.format("%# -20G", 1e-07) == " 1.00000E-07 " +string.format("%# -20G", 123.456) == " 123.456 " +string.format("%# -20G", 1234560000) == " 1.23456E+09 " +string.format("%# -20G", 1.23456e-05) == " 1.23456E-05 " +string.format("%# -20G", 123.456789123) == " 123.457 " +string.format("%# -20G", 1234567891.23) == " 1.23457E+09 " +string.format("%# -20G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%# -20.0G", 0) == " 0. " +string.format("%# -20.0G", 1) == " 1. " +string.format("%# -20.0G", -1) == "-1. " +string.format("%# -20.0G", 2) == " 2. " +string.format("%# -20.0G", -2) == "-2. " +string.format("%# -20.0G", 3) == " 3. " +string.format("%# -20.0G", -3) == "-3. " +string.format("%# -20.0G", nan) == " NAN " +string.format("%# -20.0G", inf) == " INF " +string.format("%# -20.0G", -inf) == "-INF " +string.format("%# -20.0G", 100) == " 1.E+02 " +string.format("%# -20.0G", 10000) == " 1.E+04 " +string.format("%# -20.0G", 100000) == " 1.E+05 " +string.format("%# -20.0G", 1000000) == " 1.E+06 " +string.format("%# -20.0G", 10000000) == " 1.E+07 " +string.format("%# -20.0G", 0.01) == " 0.01 " +string.format("%# -20.0G", 0.0001) == " 0.0001 " +string.format("%# -20.0G", 1e-05) == " 1.E-05 " +string.format("%# -20.0G", 1e-06) == " 1.E-06 " +string.format("%# -20.0G", 1e-07) == " 1.E-07 " +string.format("%# -20.0G", 123.456) == " 1.E+02 " +string.format("%# -20.0G", 1234560000) == " 1.E+09 " +string.format("%# -20.0G", 1.23456e-05) == " 1.E-05 " +string.format("%# -20.0G", 123.456789123) == " 1.E+02 " +string.format("%# -20.0G", 1234567891.23) == " 1.E+09 " +string.format("%# -20.0G", 1.23456789123e-05) == " 1.E-05 " +string.format("%# -20.1G", 0) == " 0. " +string.format("%# -20.1G", 1) == " 1. " +string.format("%# -20.1G", -1) == "-1. " +string.format("%# -20.1G", 2) == " 2. " +string.format("%# -20.1G", -2) == "-2. " +string.format("%# -20.1G", 3) == " 3. " +string.format("%# -20.1G", -3) == "-3. " +string.format("%# -20.1G", nan) == " NAN " +string.format("%# -20.1G", inf) == " INF " +string.format("%# -20.1G", -inf) == "-INF " +string.format("%# -20.1G", 100) == " 1.E+02 " +string.format("%# -20.1G", 10000) == " 1.E+04 " +string.format("%# -20.1G", 100000) == " 1.E+05 " +string.format("%# -20.1G", 1000000) == " 1.E+06 " +string.format("%# -20.1G", 10000000) == " 1.E+07 " +string.format("%# -20.1G", 0.01) == " 0.01 " +string.format("%# -20.1G", 0.0001) == " 0.0001 " +string.format("%# -20.1G", 1e-05) == " 1.E-05 " +string.format("%# -20.1G", 1e-06) == " 1.E-06 " +string.format("%# -20.1G", 1e-07) == " 1.E-07 " +string.format("%# -20.1G", 123.456) == " 1.E+02 " +string.format("%# -20.1G", 1234560000) == " 1.E+09 " +string.format("%# -20.1G", 1.23456e-05) == " 1.E-05 " +string.format("%# -20.1G", 123.456789123) == " 1.E+02 " +string.format("%# -20.1G", 1234567891.23) == " 1.E+09 " +string.format("%# -20.1G", 1.23456789123e-05) == " 1.E-05 " +string.format("%# -20.6G", 0) == " 0.00000 " +string.format("%# -20.6G", 1) == " 1.00000 " +string.format("%# -20.6G", -1) == "-1.00000 " +string.format("%# -20.6G", 2) == " 2.00000 " +string.format("%# -20.6G", -2) == "-2.00000 " +string.format("%# -20.6G", 3) == " 3.00000 " +string.format("%# -20.6G", -3) == "-3.00000 " +string.format("%# -20.6G", nan) == " NAN " +string.format("%# -20.6G", inf) == " INF " +string.format("%# -20.6G", -inf) == "-INF " +string.format("%# -20.6G", 100) == " 100.000 " +string.format("%# -20.6G", 10000) == " 10000.0 " +string.format("%# -20.6G", 100000) == " 100000. " +string.format("%# -20.6G", 1000000) == " 1.00000E+06 " +string.format("%# -20.6G", 10000000) == " 1.00000E+07 " +string.format("%# -20.6G", 0.01) == " 0.0100000 " +string.format("%# -20.6G", 0.0001) == " 0.000100000 " +string.format("%# -20.6G", 1e-05) == " 1.00000E-05 " +string.format("%# -20.6G", 1e-06) == " 1.00000E-06 " +string.format("%# -20.6G", 1e-07) == " 1.00000E-07 " +string.format("%# -20.6G", 123.456) == " 123.456 " +string.format("%# -20.6G", 1234560000) == " 1.23456E+09 " +string.format("%# -20.6G", 1.23456e-05) == " 1.23456E-05 " +string.format("%# -20.6G", 123.456789123) == " 123.457 " +string.format("%# -20.6G", 1234567891.23) == " 1.23457E+09 " +string.format("%# -20.6G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%# -+G", 0) == "+0.00000" +string.format("%# -+G", 1) == "+1.00000" +string.format("%# -+G", -1) == "-1.00000" +string.format("%# -+G", 2) == "+2.00000" +string.format("%# -+G", -2) == "-2.00000" +string.format("%# -+G", 3) == "+3.00000" +string.format("%# -+G", -3) == "-3.00000" +string.format("%# -+G", nan) == "+NAN" +string.format("%# -+G", inf) == "+INF" +string.format("%# -+G", -inf) == "-INF" +string.format("%# -+G", 100) == "+100.000" +string.format("%# -+G", 10000) == "+10000.0" +string.format("%# -+G", 100000) == "+100000." +string.format("%# -+G", 1000000) == "+1.00000E+06" +string.format("%# -+G", 10000000) == "+1.00000E+07" +string.format("%# -+G", 0.01) == "+0.0100000" +string.format("%# -+G", 0.0001) == "+0.000100000" +string.format("%# -+G", 1e-05) == "+1.00000E-05" +string.format("%# -+G", 1e-06) == "+1.00000E-06" +string.format("%# -+G", 1e-07) == "+1.00000E-07" +string.format("%# -+G", 123.456) == "+123.456" +string.format("%# -+G", 1234560000) == "+1.23456E+09" +string.format("%# -+G", 1.23456e-05) == "+1.23456E-05" +string.format("%# -+G", 123.456789123) == "+123.457" +string.format("%# -+G", 1234567891.23) == "+1.23457E+09" +string.format("%# -+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%# -+.0G", 0) == "+0." +string.format("%# -+.0G", 1) == "+1." +string.format("%# -+.0G", -1) == "-1." +string.format("%# -+.0G", 2) == "+2." +string.format("%# -+.0G", -2) == "-2." +string.format("%# -+.0G", 3) == "+3." +string.format("%# -+.0G", -3) == "-3." +string.format("%# -+.0G", 100) == "+1.E+02" +string.format("%# -+.0G", 10000) == "+1.E+04" +string.format("%# -+.0G", 100000) == "+1.E+05" +string.format("%# -+.0G", 1000000) == "+1.E+06" +string.format("%# -+.0G", 10000000) == "+1.E+07" +string.format("%# -+.0G", 0.01) == "+0.01" +string.format("%# -+.0G", 0.0001) == "+0.0001" +string.format("%# -+.0G", 1e-05) == "+1.E-05" +string.format("%# -+.0G", 1e-06) == "+1.E-06" +string.format("%# -+.0G", 1e-07) == "+1.E-07" +string.format("%# -+.0G", 123.456) == "+1.E+02" +string.format("%# -+.0G", 1234560000) == "+1.E+09" +string.format("%# -+.0G", 1.23456e-05) == "+1.E-05" +string.format("%# -+.0G", 123.456789123) == "+1.E+02" +string.format("%# -+.0G", 1234567891.23) == "+1.E+09" +string.format("%# -+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+.1G", 0) == "+0." +string.format("%# -+.1G", 1) == "+1." +string.format("%# -+.1G", -1) == "-1." +string.format("%# -+.1G", 2) == "+2." +string.format("%# -+.1G", -2) == "-2." +string.format("%# -+.1G", 3) == "+3." +string.format("%# -+.1G", -3) == "-3." +string.format("%# -+.1G", 100) == "+1.E+02" +string.format("%# -+.1G", 10000) == "+1.E+04" +string.format("%# -+.1G", 100000) == "+1.E+05" +string.format("%# -+.1G", 1000000) == "+1.E+06" +string.format("%# -+.1G", 10000000) == "+1.E+07" +string.format("%# -+.1G", 0.01) == "+0.01" +string.format("%# -+.1G", 0.0001) == "+0.0001" +string.format("%# -+.1G", 1e-05) == "+1.E-05" +string.format("%# -+.1G", 1e-06) == "+1.E-06" +string.format("%# -+.1G", 1e-07) == "+1.E-07" +string.format("%# -+.1G", 123.456) == "+1.E+02" +string.format("%# -+.1G", 1234560000) == "+1.E+09" +string.format("%# -+.1G", 1.23456e-05) == "+1.E-05" +string.format("%# -+.1G", 123.456789123) == "+1.E+02" +string.format("%# -+.1G", 1234567891.23) == "+1.E+09" +string.format("%# -+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+1.0G", 0) == "+0." +string.format("%# -+1.0G", 1) == "+1." +string.format("%# -+1.0G", -1) == "-1." +string.format("%# -+1.0G", 2) == "+2." +string.format("%# -+1.0G", -2) == "-2." +string.format("%# -+1.0G", 3) == "+3." +string.format("%# -+1.0G", -3) == "-3." +string.format("%# -+1.0G", 100) == "+1.E+02" +string.format("%# -+1.0G", 10000) == "+1.E+04" +string.format("%# -+1.0G", 100000) == "+1.E+05" +string.format("%# -+1.0G", 1000000) == "+1.E+06" +string.format("%# -+1.0G", 10000000) == "+1.E+07" +string.format("%# -+1.0G", 0.01) == "+0.01" +string.format("%# -+1.0G", 0.0001) == "+0.0001" +string.format("%# -+1.0G", 1e-05) == "+1.E-05" +string.format("%# -+1.0G", 1e-06) == "+1.E-06" +string.format("%# -+1.0G", 1e-07) == "+1.E-07" +string.format("%# -+1.0G", 123.456) == "+1.E+02" +string.format("%# -+1.0G", 1234560000) == "+1.E+09" +string.format("%# -+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%# -+1.0G", 123.456789123) == "+1.E+02" +string.format("%# -+1.0G", 1234567891.23) == "+1.E+09" +string.format("%# -+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+1.1G", 0) == "+0." +string.format("%# -+1.1G", 1) == "+1." +string.format("%# -+1.1G", -1) == "-1." +string.format("%# -+1.1G", 2) == "+2." +string.format("%# -+1.1G", -2) == "-2." +string.format("%# -+1.1G", 3) == "+3." +string.format("%# -+1.1G", -3) == "-3." +string.format("%# -+1.1G", 100) == "+1.E+02" +string.format("%# -+1.1G", 10000) == "+1.E+04" +string.format("%# -+1.1G", 100000) == "+1.E+05" +string.format("%# -+1.1G", 1000000) == "+1.E+06" +string.format("%# -+1.1G", 10000000) == "+1.E+07" +string.format("%# -+1.1G", 0.01) == "+0.01" +string.format("%# -+1.1G", 0.0001) == "+0.0001" +string.format("%# -+1.1G", 1e-05) == "+1.E-05" +string.format("%# -+1.1G", 1e-06) == "+1.E-06" +string.format("%# -+1.1G", 1e-07) == "+1.E-07" +string.format("%# -+1.1G", 123.456) == "+1.E+02" +string.format("%# -+1.1G", 1234560000) == "+1.E+09" +string.format("%# -+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%# -+1.1G", 123.456789123) == "+1.E+02" +string.format("%# -+1.1G", 1234567891.23) == "+1.E+09" +string.format("%# -+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+2.0G", 0) == "+0." +string.format("%# -+2.0G", 1) == "+1." +string.format("%# -+2.0G", -1) == "-1." +string.format("%# -+2.0G", 2) == "+2." +string.format("%# -+2.0G", -2) == "-2." +string.format("%# -+2.0G", 3) == "+3." +string.format("%# -+2.0G", -3) == "-3." +string.format("%# -+2.0G", 100) == "+1.E+02" +string.format("%# -+2.0G", 10000) == "+1.E+04" +string.format("%# -+2.0G", 100000) == "+1.E+05" +string.format("%# -+2.0G", 1000000) == "+1.E+06" +string.format("%# -+2.0G", 10000000) == "+1.E+07" +string.format("%# -+2.0G", 0.01) == "+0.01" +string.format("%# -+2.0G", 0.0001) == "+0.0001" +string.format("%# -+2.0G", 1e-05) == "+1.E-05" +string.format("%# -+2.0G", 1e-06) == "+1.E-06" +string.format("%# -+2.0G", 1e-07) == "+1.E-07" +string.format("%# -+2.0G", 123.456) == "+1.E+02" +string.format("%# -+2.0G", 1234560000) == "+1.E+09" +string.format("%# -+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%# -+2.0G", 123.456789123) == "+1.E+02" +string.format("%# -+2.0G", 1234567891.23) == "+1.E+09" +string.format("%# -+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+2.1G", 0) == "+0." +string.format("%# -+2.1G", 1) == "+1." +string.format("%# -+2.1G", -1) == "-1." +string.format("%# -+2.1G", 2) == "+2." +string.format("%# -+2.1G", -2) == "-2." +string.format("%# -+2.1G", 3) == "+3." +string.format("%# -+2.1G", -3) == "-3." +string.format("%# -+2.1G", 100) == "+1.E+02" +string.format("%# -+2.1G", 10000) == "+1.E+04" +string.format("%# -+2.1G", 100000) == "+1.E+05" +string.format("%# -+2.1G", 1000000) == "+1.E+06" +string.format("%# -+2.1G", 10000000) == "+1.E+07" +string.format("%# -+2.1G", 0.01) == "+0.01" +string.format("%# -+2.1G", 0.0001) == "+0.0001" +string.format("%# -+2.1G", 1e-05) == "+1.E-05" +string.format("%# -+2.1G", 1e-06) == "+1.E-06" +string.format("%# -+2.1G", 1e-07) == "+1.E-07" +string.format("%# -+2.1G", 123.456) == "+1.E+02" +string.format("%# -+2.1G", 1234560000) == "+1.E+09" +string.format("%# -+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%# -+2.1G", 123.456789123) == "+1.E+02" +string.format("%# -+2.1G", 1234567891.23) == "+1.E+09" +string.format("%# -+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+6G", nan) == "+NAN " +string.format("%# -+6G", inf) == "+INF " +string.format("%# -+6G", -inf) == "-INF " +string.format("%# -+6.0G", 0) == "+0. " +string.format("%# -+6.0G", 1) == "+1. " +string.format("%# -+6.0G", -1) == "-1. " +string.format("%# -+6.0G", 2) == "+2. " +string.format("%# -+6.0G", -2) == "-2. " +string.format("%# -+6.0G", 3) == "+3. " +string.format("%# -+6.0G", -3) == "-3. " +string.format("%# -+6.0G", nan) == "+NAN " +string.format("%# -+6.0G", inf) == "+INF " +string.format("%# -+6.0G", -inf) == "-INF " +string.format("%# -+6.0G", 100) == "+1.E+02" +string.format("%# -+6.0G", 10000) == "+1.E+04" +string.format("%# -+6.0G", 100000) == "+1.E+05" +string.format("%# -+6.0G", 1000000) == "+1.E+06" +string.format("%# -+6.0G", 10000000) == "+1.E+07" +string.format("%# -+6.0G", 0.01) == "+0.01 " +string.format("%# -+6.0G", 0.0001) == "+0.0001" +string.format("%# -+6.0G", 1e-05) == "+1.E-05" +string.format("%# -+6.0G", 1e-06) == "+1.E-06" +string.format("%# -+6.0G", 1e-07) == "+1.E-07" +string.format("%# -+6.0G", 123.456) == "+1.E+02" +string.format("%# -+6.0G", 1234560000) == "+1.E+09" +string.format("%# -+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%# -+6.0G", 123.456789123) == "+1.E+02" +string.format("%# -+6.0G", 1234567891.23) == "+1.E+09" +string.format("%# -+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+6.1G", 0) == "+0. " +string.format("%# -+6.1G", 1) == "+1. " +string.format("%# -+6.1G", -1) == "-1. " +string.format("%# -+6.1G", 2) == "+2. " +string.format("%# -+6.1G", -2) == "-2. " +string.format("%# -+6.1G", 3) == "+3. " +string.format("%# -+6.1G", -3) == "-3. " +string.format("%# -+6.1G", nan) == "+NAN " +string.format("%# -+6.1G", inf) == "+INF " +string.format("%# -+6.1G", -inf) == "-INF " +string.format("%# -+6.1G", 100) == "+1.E+02" +string.format("%# -+6.1G", 10000) == "+1.E+04" +string.format("%# -+6.1G", 100000) == "+1.E+05" +string.format("%# -+6.1G", 1000000) == "+1.E+06" +string.format("%# -+6.1G", 10000000) == "+1.E+07" +string.format("%# -+6.1G", 0.01) == "+0.01 " +string.format("%# -+6.1G", 0.0001) == "+0.0001" +string.format("%# -+6.1G", 1e-05) == "+1.E-05" +string.format("%# -+6.1G", 1e-06) == "+1.E-06" +string.format("%# -+6.1G", 1e-07) == "+1.E-07" +string.format("%# -+6.1G", 123.456) == "+1.E+02" +string.format("%# -+6.1G", 1234560000) == "+1.E+09" +string.format("%# -+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%# -+6.1G", 123.456789123) == "+1.E+02" +string.format("%# -+6.1G", 1234567891.23) == "+1.E+09" +string.format("%# -+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%# -+6.6G", nan) == "+NAN " +string.format("%# -+6.6G", inf) == "+INF " +string.format("%# -+6.6G", -inf) == "-INF " +string.format("%# -+20G", 0) == "+0.00000 " +string.format("%# -+20G", 1) == "+1.00000 " +string.format("%# -+20G", -1) == "-1.00000 " +string.format("%# -+20G", 2) == "+2.00000 " +string.format("%# -+20G", -2) == "-2.00000 " +string.format("%# -+20G", 3) == "+3.00000 " +string.format("%# -+20G", -3) == "-3.00000 " +string.format("%# -+20G", nan) == "+NAN " +string.format("%# -+20G", inf) == "+INF " +string.format("%# -+20G", -inf) == "-INF " +string.format("%# -+20G", 100) == "+100.000 " +string.format("%# -+20G", 10000) == "+10000.0 " +string.format("%# -+20G", 100000) == "+100000. " +string.format("%# -+20G", 1000000) == "+1.00000E+06 " +string.format("%# -+20G", 10000000) == "+1.00000E+07 " +string.format("%# -+20G", 0.01) == "+0.0100000 " +string.format("%# -+20G", 0.0001) == "+0.000100000 " +string.format("%# -+20G", 1e-05) == "+1.00000E-05 " +string.format("%# -+20G", 1e-06) == "+1.00000E-06 " +string.format("%# -+20G", 1e-07) == "+1.00000E-07 " +string.format("%# -+20G", 123.456) == "+123.456 " +string.format("%# -+20G", 1234560000) == "+1.23456E+09 " +string.format("%# -+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%# -+20G", 123.456789123) == "+123.457 " +string.format("%# -+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%# -+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%# -+20.0G", 0) == "+0. " +string.format("%# -+20.0G", 1) == "+1. " +string.format("%# -+20.0G", -1) == "-1. " +string.format("%# -+20.0G", 2) == "+2. " +string.format("%# -+20.0G", -2) == "-2. " +string.format("%# -+20.0G", 3) == "+3. " +string.format("%# -+20.0G", -3) == "-3. " +string.format("%# -+20.0G", nan) == "+NAN " +string.format("%# -+20.0G", inf) == "+INF " +string.format("%# -+20.0G", -inf) == "-INF " +string.format("%# -+20.0G", 100) == "+1.E+02 " +string.format("%# -+20.0G", 10000) == "+1.E+04 " +string.format("%# -+20.0G", 100000) == "+1.E+05 " +string.format("%# -+20.0G", 1000000) == "+1.E+06 " +string.format("%# -+20.0G", 10000000) == "+1.E+07 " +string.format("%# -+20.0G", 0.01) == "+0.01 " +string.format("%# -+20.0G", 0.0001) == "+0.0001 " +string.format("%# -+20.0G", 1e-05) == "+1.E-05 " +string.format("%# -+20.0G", 1e-06) == "+1.E-06 " +string.format("%# -+20.0G", 1e-07) == "+1.E-07 " +string.format("%# -+20.0G", 123.456) == "+1.E+02 " +string.format("%# -+20.0G", 1234560000) == "+1.E+09 " +string.format("%# -+20.0G", 1.23456e-05) == "+1.E-05 " +string.format("%# -+20.0G", 123.456789123) == "+1.E+02 " +string.format("%# -+20.0G", 1234567891.23) == "+1.E+09 " +string.format("%# -+20.0G", 1.23456789123e-05) == "+1.E-05 " +string.format("%# -+20.1G", 0) == "+0. " +string.format("%# -+20.1G", 1) == "+1. " +string.format("%# -+20.1G", -1) == "-1. " +string.format("%# -+20.1G", 2) == "+2. " +string.format("%# -+20.1G", -2) == "-2. " +string.format("%# -+20.1G", 3) == "+3. " +string.format("%# -+20.1G", -3) == "-3. " +string.format("%# -+20.1G", nan) == "+NAN " +string.format("%# -+20.1G", inf) == "+INF " +string.format("%# -+20.1G", -inf) == "-INF " +string.format("%# -+20.1G", 100) == "+1.E+02 " +string.format("%# -+20.1G", 10000) == "+1.E+04 " +string.format("%# -+20.1G", 100000) == "+1.E+05 " +string.format("%# -+20.1G", 1000000) == "+1.E+06 " +string.format("%# -+20.1G", 10000000) == "+1.E+07 " +string.format("%# -+20.1G", 0.01) == "+0.01 " +string.format("%# -+20.1G", 0.0001) == "+0.0001 " +string.format("%# -+20.1G", 1e-05) == "+1.E-05 " +string.format("%# -+20.1G", 1e-06) == "+1.E-06 " +string.format("%# -+20.1G", 1e-07) == "+1.E-07 " +string.format("%# -+20.1G", 123.456) == "+1.E+02 " +string.format("%# -+20.1G", 1234560000) == "+1.E+09 " +string.format("%# -+20.1G", 1.23456e-05) == "+1.E-05 " +string.format("%# -+20.1G", 123.456789123) == "+1.E+02 " +string.format("%# -+20.1G", 1234567891.23) == "+1.E+09 " +string.format("%# -+20.1G", 1.23456789123e-05) == "+1.E-05 " +string.format("%# -+20.6G", 0) == "+0.00000 " +string.format("%# -+20.6G", 1) == "+1.00000 " +string.format("%# -+20.6G", -1) == "-1.00000 " +string.format("%# -+20.6G", 2) == "+2.00000 " +string.format("%# -+20.6G", -2) == "-2.00000 " +string.format("%# -+20.6G", 3) == "+3.00000 " +string.format("%# -+20.6G", -3) == "-3.00000 " +string.format("%# -+20.6G", nan) == "+NAN " +string.format("%# -+20.6G", inf) == "+INF " +string.format("%# -+20.6G", -inf) == "-INF " +string.format("%# -+20.6G", 100) == "+100.000 " +string.format("%# -+20.6G", 10000) == "+10000.0 " +string.format("%# -+20.6G", 100000) == "+100000. " +string.format("%# -+20.6G", 1000000) == "+1.00000E+06 " +string.format("%# -+20.6G", 10000000) == "+1.00000E+07 " +string.format("%# -+20.6G", 0.01) == "+0.0100000 " +string.format("%# -+20.6G", 0.0001) == "+0.000100000 " +string.format("%# -+20.6G", 1e-05) == "+1.00000E-05 " +string.format("%# -+20.6G", 1e-06) == "+1.00000E-06 " +string.format("%# -+20.6G", 1e-07) == "+1.00000E-07 " +string.format("%# -+20.6G", 123.456) == "+123.456 " +string.format("%# -+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%# -+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%# -+20.6G", 123.456789123) == "+123.457 " +string.format("%# -+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%# -+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0G", 0) == "0" +string.format("%0G", 1) == "1" +string.format("%0G", -1) == "-1" +string.format("%0G", 2) == "2" +string.format("%0G", -2) == "-2" +string.format("%0G", 3) == "3" +string.format("%0G", -3) == "-3" +string.format("%0G", nan) == "NAN" +string.format("%0G", inf) == "INF" +string.format("%0G", -inf) == "-INF" +string.format("%0G", 100) == "100" +string.format("%0G", 10000) == "10000" +string.format("%0G", 100000) == "100000" +string.format("%0G", 1000000) == "1E+06" +string.format("%0G", 10000000) == "1E+07" +string.format("%0G", 0.01) == "0.01" +string.format("%0G", 0.0001) == "0.0001" +string.format("%0G", 1e-05) == "1E-05" +string.format("%0G", 1e-06) == "1E-06" +string.format("%0G", 1e-07) == "1E-07" +string.format("%0G", 123.456) == "123.456" +string.format("%0G", 1234560000) == "1.23456E+09" +string.format("%0G", 1.23456e-05) == "1.23456E-05" +string.format("%0G", 123.456789123) == "123.457" +string.format("%0G", 1234567891.23) == "1.23457E+09" +string.format("%0G", 1.23456789123e-05) == "1.23457E-05" +string.format("%0.0G", 100) == "1E+02" +string.format("%0.0G", 10000) == "1E+04" +string.format("%0.0G", 100000) == "1E+05" +string.format("%0.0G", 123.456) == "1E+02" +string.format("%0.0G", 1234560000) == "1E+09" +string.format("%0.0G", 1.23456e-05) == "1E-05" +string.format("%0.0G", 123.456789123) == "1E+02" +string.format("%0.0G", 1234567891.23) == "1E+09" +string.format("%0.0G", 1.23456789123e-05) == "1E-05" +string.format("%0.1G", 100) == "1E+02" +string.format("%0.1G", 10000) == "1E+04" +string.format("%0.1G", 100000) == "1E+05" +string.format("%0.1G", 123.456) == "1E+02" +string.format("%0.1G", 1234560000) == "1E+09" +string.format("%0.1G", 1.23456e-05) == "1E-05" +string.format("%0.1G", 123.456789123) == "1E+02" +string.format("%0.1G", 1234567891.23) == "1E+09" +string.format("%0.1G", 1.23456789123e-05) == "1E-05" +string.format("%01.0G", 100) == "1E+02" +string.format("%01.0G", 10000) == "1E+04" +string.format("%01.0G", 100000) == "1E+05" +string.format("%01.0G", 123.456) == "1E+02" +string.format("%01.0G", 1234560000) == "1E+09" +string.format("%01.0G", 1.23456e-05) == "1E-05" +string.format("%01.0G", 123.456789123) == "1E+02" +string.format("%01.0G", 1234567891.23) == "1E+09" +string.format("%01.0G", 1.23456789123e-05) == "1E-05" +string.format("%01.1G", 100) == "1E+02" +string.format("%01.1G", 10000) == "1E+04" +string.format("%01.1G", 100000) == "1E+05" +string.format("%01.1G", 123.456) == "1E+02" +string.format("%01.1G", 1234560000) == "1E+09" +string.format("%01.1G", 1.23456e-05) == "1E-05" +string.format("%01.1G", 123.456789123) == "1E+02" +string.format("%01.1G", 1234567891.23) == "1E+09" +string.format("%01.1G", 1.23456789123e-05) == "1E-05" +string.format("%02G", 0) == "00" +string.format("%02G", 1) == "01" +string.format("%02G", 2) == "02" +string.format("%02G", 3) == "03" +string.format("%02.0G", 0) == "00" +string.format("%02.0G", 1) == "01" +string.format("%02.0G", 2) == "02" +string.format("%02.0G", 3) == "03" +string.format("%02.0G", 100) == "1E+02" +string.format("%02.0G", 10000) == "1E+04" +string.format("%02.0G", 100000) == "1E+05" +string.format("%02.0G", 123.456) == "1E+02" +string.format("%02.0G", 1234560000) == "1E+09" +string.format("%02.0G", 1.23456e-05) == "1E-05" +string.format("%02.0G", 123.456789123) == "1E+02" +string.format("%02.0G", 1234567891.23) == "1E+09" +string.format("%02.0G", 1.23456789123e-05) == "1E-05" +string.format("%02.1G", 0) == "00" +string.format("%02.1G", 1) == "01" +string.format("%02.1G", 2) == "02" +string.format("%02.1G", 3) == "03" +string.format("%02.1G", 100) == "1E+02" +string.format("%02.1G", 10000) == "1E+04" +string.format("%02.1G", 100000) == "1E+05" +string.format("%02.1G", 123.456) == "1E+02" +string.format("%02.1G", 1234560000) == "1E+09" +string.format("%02.1G", 1.23456e-05) == "1E-05" +string.format("%02.1G", 123.456789123) == "1E+02" +string.format("%02.1G", 1234567891.23) == "1E+09" +string.format("%02.1G", 1.23456789123e-05) == "1E-05" +string.format("%02.6G", 0) == "00" +string.format("%02.6G", 1) == "01" +string.format("%02.6G", 2) == "02" +string.format("%02.6G", 3) == "03" +string.format("%06G", 0) == "000000" +string.format("%06G", 1) == "000001" +string.format("%06G", -1) == "-00001" +string.format("%06G", 2) == "000002" +string.format("%06G", -2) == "-00002" +string.format("%06G", 3) == "000003" +string.format("%06G", -3) == "-00003" +string.format("%06G", nan) == " NAN" +string.format("%06G", inf) == " INF" +string.format("%06G", -inf) == " -INF" +string.format("%06G", 100) == "000100" +string.format("%06G", 10000) == "010000" +string.format("%06G", 1000000) == "01E+06" +string.format("%06G", 10000000) == "01E+07" +string.format("%06G", 0.01) == "000.01" +string.format("%06G", 1e-05) == "01E-05" +string.format("%06G", 1e-06) == "01E-06" +string.format("%06G", 1e-07) == "01E-07" +string.format("%06.0G", 0) == "000000" +string.format("%06.0G", 1) == "000001" +string.format("%06.0G", -1) == "-00001" +string.format("%06.0G", 2) == "000002" +string.format("%06.0G", -2) == "-00002" +string.format("%06.0G", 3) == "000003" +string.format("%06.0G", -3) == "-00003" +string.format("%06.0G", nan) == " NAN" +string.format("%06.0G", inf) == " INF" +string.format("%06.0G", -inf) == " -INF" +string.format("%06.0G", 100) == "01E+02" +string.format("%06.0G", 10000) == "01E+04" +string.format("%06.0G", 100000) == "01E+05" +string.format("%06.0G", 1000000) == "01E+06" +string.format("%06.0G", 10000000) == "01E+07" +string.format("%06.0G", 0.01) == "000.01" +string.format("%06.0G", 1e-05) == "01E-05" +string.format("%06.0G", 1e-06) == "01E-06" +string.format("%06.0G", 1e-07) == "01E-07" +string.format("%06.0G", 123.456) == "01E+02" +string.format("%06.0G", 1234560000) == "01E+09" +string.format("%06.0G", 1.23456e-05) == "01E-05" +string.format("%06.0G", 123.456789123) == "01E+02" +string.format("%06.0G", 1234567891.23) == "01E+09" +string.format("%06.0G", 1.23456789123e-05) == "01E-05" +string.format("%06.1G", 0) == "000000" +string.format("%06.1G", 1) == "000001" +string.format("%06.1G", -1) == "-00001" +string.format("%06.1G", 2) == "000002" +string.format("%06.1G", -2) == "-00002" +string.format("%06.1G", 3) == "000003" +string.format("%06.1G", -3) == "-00003" +string.format("%06.1G", nan) == " NAN" +string.format("%06.1G", inf) == " INF" +string.format("%06.1G", -inf) == " -INF" +string.format("%06.1G", 100) == "01E+02" +string.format("%06.1G", 10000) == "01E+04" +string.format("%06.1G", 100000) == "01E+05" +string.format("%06.1G", 1000000) == "01E+06" +string.format("%06.1G", 10000000) == "01E+07" +string.format("%06.1G", 0.01) == "000.01" +string.format("%06.1G", 1e-05) == "01E-05" +string.format("%06.1G", 1e-06) == "01E-06" +string.format("%06.1G", 1e-07) == "01E-07" +string.format("%06.1G", 123.456) == "01E+02" +string.format("%06.1G", 1234560000) == "01E+09" +string.format("%06.1G", 1.23456e-05) == "01E-05" +string.format("%06.1G", 123.456789123) == "01E+02" +string.format("%06.1G", 1234567891.23) == "01E+09" +string.format("%06.1G", 1.23456789123e-05) == "01E-05" +string.format("%06.6G", 0) == "000000" +string.format("%06.6G", 1) == "000001" +string.format("%06.6G", -1) == "-00001" +string.format("%06.6G", 2) == "000002" +string.format("%06.6G", -2) == "-00002" +string.format("%06.6G", 3) == "000003" +string.format("%06.6G", -3) == "-00003" +string.format("%06.6G", nan) == " NAN" +string.format("%06.6G", inf) == " INF" +string.format("%06.6G", -inf) == " -INF" +string.format("%06.6G", 100) == "000100" +string.format("%06.6G", 10000) == "010000" +string.format("%06.6G", 1000000) == "01E+06" +string.format("%06.6G", 10000000) == "01E+07" +string.format("%06.6G", 0.01) == "000.01" +string.format("%06.6G", 1e-05) == "01E-05" +string.format("%06.6G", 1e-06) == "01E-06" +string.format("%06.6G", 1e-07) == "01E-07" +string.format("%020G", 0) == "00000000000000000000" +string.format("%020G", 1) == "00000000000000000001" +string.format("%020G", -1) == "-0000000000000000001" +string.format("%020G", 2) == "00000000000000000002" +string.format("%020G", -2) == "-0000000000000000002" +string.format("%020G", 3) == "00000000000000000003" +string.format("%020G", -3) == "-0000000000000000003" +string.format("%020G", nan) == " NAN" +string.format("%020G", inf) == " INF" +string.format("%020G", -inf) == " -INF" +string.format("%020G", 100) == "00000000000000000100" +string.format("%020G", 10000) == "00000000000000010000" +string.format("%020G", 100000) == "00000000000000100000" +string.format("%020G", 1000000) == "0000000000000001E+06" +string.format("%020G", 10000000) == "0000000000000001E+07" +string.format("%020G", 0.01) == "00000000000000000.01" +string.format("%020G", 0.0001) == "000000000000000.0001" +string.format("%020G", 1e-05) == "0000000000000001E-05" +string.format("%020G", 1e-06) == "0000000000000001E-06" +string.format("%020G", 1e-07) == "0000000000000001E-07" +string.format("%020G", 123.456) == "0000000000000123.456" +string.format("%020G", 1234560000) == "0000000001.23456E+09" +string.format("%020G", 1.23456e-05) == "0000000001.23456E-05" +string.format("%020G", 123.456789123) == "0000000000000123.457" +string.format("%020G", 1234567891.23) == "0000000001.23457E+09" +string.format("%020G", 1.23456789123e-05) == "0000000001.23457E-05" +string.format("%020.0G", 0) == "00000000000000000000" +string.format("%020.0G", 1) == "00000000000000000001" +string.format("%020.0G", -1) == "-0000000000000000001" +string.format("%020.0G", 2) == "00000000000000000002" +string.format("%020.0G", -2) == "-0000000000000000002" +string.format("%020.0G", 3) == "00000000000000000003" +string.format("%020.0G", -3) == "-0000000000000000003" +string.format("%020.0G", nan) == " NAN" +string.format("%020.0G", inf) == " INF" +string.format("%020.0G", -inf) == " -INF" +string.format("%020.0G", 100) == "0000000000000001E+02" +string.format("%020.0G", 10000) == "0000000000000001E+04" +string.format("%020.0G", 100000) == "0000000000000001E+05" +string.format("%020.0G", 1000000) == "0000000000000001E+06" +string.format("%020.0G", 10000000) == "0000000000000001E+07" +string.format("%020.0G", 0.01) == "00000000000000000.01" +string.format("%020.0G", 0.0001) == "000000000000000.0001" +string.format("%020.0G", 1e-05) == "0000000000000001E-05" +string.format("%020.0G", 1e-06) == "0000000000000001E-06" +string.format("%020.0G", 1e-07) == "0000000000000001E-07" +string.format("%020.0G", 123.456) == "0000000000000001E+02" +string.format("%020.0G", 1234560000) == "0000000000000001E+09" +string.format("%020.0G", 1.23456e-05) == "0000000000000001E-05" +string.format("%020.0G", 123.456789123) == "0000000000000001E+02" +string.format("%020.0G", 1234567891.23) == "0000000000000001E+09" +string.format("%020.0G", 1.23456789123e-05) == "0000000000000001E-05" +string.format("%020.1G", 0) == "00000000000000000000" +string.format("%020.1G", 1) == "00000000000000000001" +string.format("%020.1G", -1) == "-0000000000000000001" +string.format("%020.1G", 2) == "00000000000000000002" +string.format("%020.1G", -2) == "-0000000000000000002" +string.format("%020.1G", 3) == "00000000000000000003" +string.format("%020.1G", -3) == "-0000000000000000003" +string.format("%020.1G", nan) == " NAN" +string.format("%020.1G", inf) == " INF" +string.format("%020.1G", -inf) == " -INF" +string.format("%020.1G", 100) == "0000000000000001E+02" +string.format("%020.1G", 10000) == "0000000000000001E+04" +string.format("%020.1G", 100000) == "0000000000000001E+05" +string.format("%020.1G", 1000000) == "0000000000000001E+06" +string.format("%020.1G", 10000000) == "0000000000000001E+07" +string.format("%020.1G", 0.01) == "00000000000000000.01" +string.format("%020.1G", 0.0001) == "000000000000000.0001" +string.format("%020.1G", 1e-05) == "0000000000000001E-05" +string.format("%020.1G", 1e-06) == "0000000000000001E-06" +string.format("%020.1G", 1e-07) == "0000000000000001E-07" +string.format("%020.1G", 123.456) == "0000000000000001E+02" +string.format("%020.1G", 1234560000) == "0000000000000001E+09" +string.format("%020.1G", 1.23456e-05) == "0000000000000001E-05" +string.format("%020.1G", 123.456789123) == "0000000000000001E+02" +string.format("%020.1G", 1234567891.23) == "0000000000000001E+09" +string.format("%020.1G", 1.23456789123e-05) == "0000000000000001E-05" +string.format("%020.6G", 0) == "00000000000000000000" +string.format("%020.6G", 1) == "00000000000000000001" +string.format("%020.6G", -1) == "-0000000000000000001" +string.format("%020.6G", 2) == "00000000000000000002" +string.format("%020.6G", -2) == "-0000000000000000002" +string.format("%020.6G", 3) == "00000000000000000003" +string.format("%020.6G", -3) == "-0000000000000000003" +string.format("%020.6G", nan) == " NAN" +string.format("%020.6G", inf) == " INF" +string.format("%020.6G", -inf) == " -INF" +string.format("%020.6G", 100) == "00000000000000000100" +string.format("%020.6G", 10000) == "00000000000000010000" +string.format("%020.6G", 100000) == "00000000000000100000" +string.format("%020.6G", 1000000) == "0000000000000001E+06" +string.format("%020.6G", 10000000) == "0000000000000001E+07" +string.format("%020.6G", 0.01) == "00000000000000000.01" +string.format("%020.6G", 0.0001) == "000000000000000.0001" +string.format("%020.6G", 1e-05) == "0000000000000001E-05" +string.format("%020.6G", 1e-06) == "0000000000000001E-06" +string.format("%020.6G", 1e-07) == "0000000000000001E-07" +string.format("%020.6G", 123.456) == "0000000000000123.456" +string.format("%020.6G", 1234560000) == "0000000001.23456E+09" +string.format("%020.6G", 1.23456e-05) == "0000000001.23456E-05" +string.format("%020.6G", 123.456789123) == "0000000000000123.457" +string.format("%020.6G", 1234567891.23) == "0000000001.23457E+09" +string.format("%020.6G", 1.23456789123e-05) == "0000000001.23457E-05" +string.format("%0+G", 0) == "+0" +string.format("%0+G", 1) == "+1" +string.format("%0+G", -1) == "-1" +string.format("%0+G", 2) == "+2" +string.format("%0+G", -2) == "-2" +string.format("%0+G", 3) == "+3" +string.format("%0+G", -3) == "-3" +string.format("%0+G", nan) == "+NAN" +string.format("%0+G", inf) == "+INF" +string.format("%0+G", -inf) == "-INF" +string.format("%0+G", 100) == "+100" +string.format("%0+G", 10000) == "+10000" +string.format("%0+G", 100000) == "+100000" +string.format("%0+G", 1000000) == "+1E+06" +string.format("%0+G", 10000000) == "+1E+07" +string.format("%0+G", 0.01) == "+0.01" +string.format("%0+G", 0.0001) == "+0.0001" +string.format("%0+G", 1e-05) == "+1E-05" +string.format("%0+G", 1e-06) == "+1E-06" +string.format("%0+G", 1e-07) == "+1E-07" +string.format("%0+G", 123.456) == "+123.456" +string.format("%0+G", 1234560000) == "+1.23456E+09" +string.format("%0+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0+G", 123.456789123) == "+123.457" +string.format("%0+G", 1234567891.23) == "+1.23457E+09" +string.format("%0+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0+.0G", 100) == "+1E+02" +string.format("%0+.0G", 10000) == "+1E+04" +string.format("%0+.0G", 100000) == "+1E+05" +string.format("%0+.0G", 123.456) == "+1E+02" +string.format("%0+.0G", 1234560000) == "+1E+09" +string.format("%0+.0G", 1.23456e-05) == "+1E-05" +string.format("%0+.0G", 123.456789123) == "+1E+02" +string.format("%0+.0G", 1234567891.23) == "+1E+09" +string.format("%0+.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0+.1G", 100) == "+1E+02" +string.format("%0+.1G", 10000) == "+1E+04" +string.format("%0+.1G", 100000) == "+1E+05" +string.format("%0+.1G", 123.456) == "+1E+02" +string.format("%0+.1G", 1234560000) == "+1E+09" +string.format("%0+.1G", 1.23456e-05) == "+1E-05" +string.format("%0+.1G", 123.456789123) == "+1E+02" +string.format("%0+.1G", 1234567891.23) == "+1E+09" +string.format("%0+.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0+1.0G", 100) == "+1E+02" +string.format("%0+1.0G", 10000) == "+1E+04" +string.format("%0+1.0G", 100000) == "+1E+05" +string.format("%0+1.0G", 123.456) == "+1E+02" +string.format("%0+1.0G", 1234560000) == "+1E+09" +string.format("%0+1.0G", 1.23456e-05) == "+1E-05" +string.format("%0+1.0G", 123.456789123) == "+1E+02" +string.format("%0+1.0G", 1234567891.23) == "+1E+09" +string.format("%0+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0+1.1G", 100) == "+1E+02" +string.format("%0+1.1G", 10000) == "+1E+04" +string.format("%0+1.1G", 100000) == "+1E+05" +string.format("%0+1.1G", 123.456) == "+1E+02" +string.format("%0+1.1G", 1234560000) == "+1E+09" +string.format("%0+1.1G", 1.23456e-05) == "+1E-05" +string.format("%0+1.1G", 123.456789123) == "+1E+02" +string.format("%0+1.1G", 1234567891.23) == "+1E+09" +string.format("%0+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0+2.0G", 100) == "+1E+02" +string.format("%0+2.0G", 10000) == "+1E+04" +string.format("%0+2.0G", 100000) == "+1E+05" +string.format("%0+2.0G", 123.456) == "+1E+02" +string.format("%0+2.0G", 1234560000) == "+1E+09" +string.format("%0+2.0G", 1.23456e-05) == "+1E-05" +string.format("%0+2.0G", 123.456789123) == "+1E+02" +string.format("%0+2.0G", 1234567891.23) == "+1E+09" +string.format("%0+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0+2.1G", 100) == "+1E+02" +string.format("%0+2.1G", 10000) == "+1E+04" +string.format("%0+2.1G", 100000) == "+1E+05" +string.format("%0+2.1G", 123.456) == "+1E+02" +string.format("%0+2.1G", 1234560000) == "+1E+09" +string.format("%0+2.1G", 1.23456e-05) == "+1E-05" +string.format("%0+2.1G", 123.456789123) == "+1E+02" +string.format("%0+2.1G", 1234567891.23) == "+1E+09" +string.format("%0+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0+6G", 0) == "+00000" +string.format("%0+6G", 1) == "+00001" +string.format("%0+6G", -1) == "-00001" +string.format("%0+6G", 2) == "+00002" +string.format("%0+6G", -2) == "-00002" +string.format("%0+6G", 3) == "+00003" +string.format("%0+6G", -3) == "-00003" +string.format("%0+6G", nan) == " +NAN" +string.format("%0+6G", inf) == " +INF" +string.format("%0+6G", -inf) == " -INF" +string.format("%0+6G", 100) == "+00100" +string.format("%0+6G", 0.01) == "+00.01" +string.format("%0+6.0G", 0) == "+00000" +string.format("%0+6.0G", 1) == "+00001" +string.format("%0+6.0G", -1) == "-00001" +string.format("%0+6.0G", 2) == "+00002" +string.format("%0+6.0G", -2) == "-00002" +string.format("%0+6.0G", 3) == "+00003" +string.format("%0+6.0G", -3) == "-00003" +string.format("%0+6.0G", nan) == " +NAN" +string.format("%0+6.0G", inf) == " +INF" +string.format("%0+6.0G", -inf) == " -INF" +string.format("%0+6.0G", 100) == "+1E+02" +string.format("%0+6.0G", 10000) == "+1E+04" +string.format("%0+6.0G", 100000) == "+1E+05" +string.format("%0+6.0G", 0.01) == "+00.01" +string.format("%0+6.0G", 123.456) == "+1E+02" +string.format("%0+6.0G", 1234560000) == "+1E+09" +string.format("%0+6.0G", 1.23456e-05) == "+1E-05" +string.format("%0+6.0G", 123.456789123) == "+1E+02" +string.format("%0+6.0G", 1234567891.23) == "+1E+09" +string.format("%0+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0+6.1G", 0) == "+00000" +string.format("%0+6.1G", 1) == "+00001" +string.format("%0+6.1G", -1) == "-00001" +string.format("%0+6.1G", 2) == "+00002" +string.format("%0+6.1G", -2) == "-00002" +string.format("%0+6.1G", 3) == "+00003" +string.format("%0+6.1G", -3) == "-00003" +string.format("%0+6.1G", nan) == " +NAN" +string.format("%0+6.1G", inf) == " +INF" +string.format("%0+6.1G", -inf) == " -INF" +string.format("%0+6.1G", 100) == "+1E+02" +string.format("%0+6.1G", 10000) == "+1E+04" +string.format("%0+6.1G", 100000) == "+1E+05" +string.format("%0+6.1G", 0.01) == "+00.01" +string.format("%0+6.1G", 123.456) == "+1E+02" +string.format("%0+6.1G", 1234560000) == "+1E+09" +string.format("%0+6.1G", 1.23456e-05) == "+1E-05" +string.format("%0+6.1G", 123.456789123) == "+1E+02" +string.format("%0+6.1G", 1234567891.23) == "+1E+09" +string.format("%0+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0+6.6G", 0) == "+00000" +string.format("%0+6.6G", 1) == "+00001" +string.format("%0+6.6G", -1) == "-00001" +string.format("%0+6.6G", 2) == "+00002" +string.format("%0+6.6G", -2) == "-00002" +string.format("%0+6.6G", 3) == "+00003" +string.format("%0+6.6G", -3) == "-00003" +string.format("%0+6.6G", nan) == " +NAN" +string.format("%0+6.6G", inf) == " +INF" +string.format("%0+6.6G", -inf) == " -INF" +string.format("%0+6.6G", 100) == "+00100" +string.format("%0+6.6G", 0.01) == "+00.01" +string.format("%0+20G", 0) == "+0000000000000000000" +string.format("%0+20G", 1) == "+0000000000000000001" +string.format("%0+20G", -1) == "-0000000000000000001" +string.format("%0+20G", 2) == "+0000000000000000002" +string.format("%0+20G", -2) == "-0000000000000000002" +string.format("%0+20G", 3) == "+0000000000000000003" +string.format("%0+20G", -3) == "-0000000000000000003" +string.format("%0+20G", nan) == " +NAN" +string.format("%0+20G", inf) == " +INF" +string.format("%0+20G", -inf) == " -INF" +string.format("%0+20G", 100) == "+0000000000000000100" +string.format("%0+20G", 10000) == "+0000000000000010000" +string.format("%0+20G", 100000) == "+0000000000000100000" +string.format("%0+20G", 1000000) == "+000000000000001E+06" +string.format("%0+20G", 10000000) == "+000000000000001E+07" +string.format("%0+20G", 0.01) == "+0000000000000000.01" +string.format("%0+20G", 0.0001) == "+00000000000000.0001" +string.format("%0+20G", 1e-05) == "+000000000000001E-05" +string.format("%0+20G", 1e-06) == "+000000000000001E-06" +string.format("%0+20G", 1e-07) == "+000000000000001E-07" +string.format("%0+20G", 123.456) == "+000000000000123.456" +string.format("%0+20G", 1234560000) == "+000000001.23456E+09" +string.format("%0+20G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0+20G", 123.456789123) == "+000000000000123.457" +string.format("%0+20G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0+20G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0+20.0G", 0) == "+0000000000000000000" +string.format("%0+20.0G", 1) == "+0000000000000000001" +string.format("%0+20.0G", -1) == "-0000000000000000001" +string.format("%0+20.0G", 2) == "+0000000000000000002" +string.format("%0+20.0G", -2) == "-0000000000000000002" +string.format("%0+20.0G", 3) == "+0000000000000000003" +string.format("%0+20.0G", -3) == "-0000000000000000003" +string.format("%0+20.0G", nan) == " +NAN" +string.format("%0+20.0G", inf) == " +INF" +string.format("%0+20.0G", -inf) == " -INF" +string.format("%0+20.0G", 100) == "+000000000000001E+02" +string.format("%0+20.0G", 10000) == "+000000000000001E+04" +string.format("%0+20.0G", 100000) == "+000000000000001E+05" +string.format("%0+20.0G", 1000000) == "+000000000000001E+06" +string.format("%0+20.0G", 10000000) == "+000000000000001E+07" +string.format("%0+20.0G", 0.01) == "+0000000000000000.01" +string.format("%0+20.0G", 0.0001) == "+00000000000000.0001" +string.format("%0+20.0G", 1e-05) == "+000000000000001E-05" +string.format("%0+20.0G", 1e-06) == "+000000000000001E-06" +string.format("%0+20.0G", 1e-07) == "+000000000000001E-07" +string.format("%0+20.0G", 123.456) == "+000000000000001E+02" +string.format("%0+20.0G", 1234560000) == "+000000000000001E+09" +string.format("%0+20.0G", 1.23456e-05) == "+000000000000001E-05" +string.format("%0+20.0G", 123.456789123) == "+000000000000001E+02" +string.format("%0+20.0G", 1234567891.23) == "+000000000000001E+09" +string.format("%0+20.0G", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0+20.1G", 0) == "+0000000000000000000" +string.format("%0+20.1G", 1) == "+0000000000000000001" +string.format("%0+20.1G", -1) == "-0000000000000000001" +string.format("%0+20.1G", 2) == "+0000000000000000002" +string.format("%0+20.1G", -2) == "-0000000000000000002" +string.format("%0+20.1G", 3) == "+0000000000000000003" +string.format("%0+20.1G", -3) == "-0000000000000000003" +string.format("%0+20.1G", nan) == " +NAN" +string.format("%0+20.1G", inf) == " +INF" +string.format("%0+20.1G", -inf) == " -INF" +string.format("%0+20.1G", 100) == "+000000000000001E+02" +string.format("%0+20.1G", 10000) == "+000000000000001E+04" +string.format("%0+20.1G", 100000) == "+000000000000001E+05" +string.format("%0+20.1G", 1000000) == "+000000000000001E+06" +string.format("%0+20.1G", 10000000) == "+000000000000001E+07" +string.format("%0+20.1G", 0.01) == "+0000000000000000.01" +string.format("%0+20.1G", 0.0001) == "+00000000000000.0001" +string.format("%0+20.1G", 1e-05) == "+000000000000001E-05" +string.format("%0+20.1G", 1e-06) == "+000000000000001E-06" +string.format("%0+20.1G", 1e-07) == "+000000000000001E-07" +string.format("%0+20.1G", 123.456) == "+000000000000001E+02" +string.format("%0+20.1G", 1234560000) == "+000000000000001E+09" +string.format("%0+20.1G", 1.23456e-05) == "+000000000000001E-05" +string.format("%0+20.1G", 123.456789123) == "+000000000000001E+02" +string.format("%0+20.1G", 1234567891.23) == "+000000000000001E+09" +string.format("%0+20.1G", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0+20.6G", 0) == "+0000000000000000000" +string.format("%0+20.6G", 1) == "+0000000000000000001" +string.format("%0+20.6G", -1) == "-0000000000000000001" +string.format("%0+20.6G", 2) == "+0000000000000000002" +string.format("%0+20.6G", -2) == "-0000000000000000002" +string.format("%0+20.6G", 3) == "+0000000000000000003" +string.format("%0+20.6G", -3) == "-0000000000000000003" +string.format("%0+20.6G", nan) == " +NAN" +string.format("%0+20.6G", inf) == " +INF" +string.format("%0+20.6G", -inf) == " -INF" +string.format("%0+20.6G", 100) == "+0000000000000000100" +string.format("%0+20.6G", 10000) == "+0000000000000010000" +string.format("%0+20.6G", 100000) == "+0000000000000100000" +string.format("%0+20.6G", 1000000) == "+000000000000001E+06" +string.format("%0+20.6G", 10000000) == "+000000000000001E+07" +string.format("%0+20.6G", 0.01) == "+0000000000000000.01" +string.format("%0+20.6G", 0.0001) == "+00000000000000.0001" +string.format("%0+20.6G", 1e-05) == "+000000000000001E-05" +string.format("%0+20.6G", 1e-06) == "+000000000000001E-06" +string.format("%0+20.6G", 1e-07) == "+000000000000001E-07" +string.format("%0+20.6G", 123.456) == "+000000000000123.456" +string.format("%0+20.6G", 1234560000) == "+000000001.23456E+09" +string.format("%0+20.6G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0+20.6G", 123.456789123) == "+000000000000123.457" +string.format("%0+20.6G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0+20.6G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0-G", 0) == "0" +string.format("%0-G", 1) == "1" +string.format("%0-G", -1) == "-1" +string.format("%0-G", 2) == "2" +string.format("%0-G", -2) == "-2" +string.format("%0-G", 3) == "3" +string.format("%0-G", -3) == "-3" +string.format("%0-G", nan) == "NAN" +string.format("%0-G", inf) == "INF" +string.format("%0-G", -inf) == "-INF" +string.format("%0-G", 100) == "100" +string.format("%0-G", 10000) == "10000" +string.format("%0-G", 100000) == "100000" +string.format("%0-G", 1000000) == "1E+06" +string.format("%0-G", 10000000) == "1E+07" +string.format("%0-G", 0.01) == "0.01" +string.format("%0-G", 0.0001) == "0.0001" +string.format("%0-G", 1e-05) == "1E-05" +string.format("%0-G", 1e-06) == "1E-06" +string.format("%0-G", 1e-07) == "1E-07" +string.format("%0-G", 123.456) == "123.456" +string.format("%0-G", 1234560000) == "1.23456E+09" +string.format("%0-G", 1.23456e-05) == "1.23456E-05" +string.format("%0-G", 123.456789123) == "123.457" +string.format("%0-G", 1234567891.23) == "1.23457E+09" +string.format("%0-G", 1.23456789123e-05) == "1.23457E-05" +string.format("%0-.0G", 100) == "1E+02" +string.format("%0-.0G", 10000) == "1E+04" +string.format("%0-.0G", 100000) == "1E+05" +string.format("%0-.0G", 123.456) == "1E+02" +string.format("%0-.0G", 1234560000) == "1E+09" +string.format("%0-.0G", 1.23456e-05) == "1E-05" +string.format("%0-.0G", 123.456789123) == "1E+02" +string.format("%0-.0G", 1234567891.23) == "1E+09" +string.format("%0-.0G", 1.23456789123e-05) == "1E-05" +string.format("%0-.1G", 100) == "1E+02" +string.format("%0-.1G", 10000) == "1E+04" +string.format("%0-.1G", 100000) == "1E+05" +string.format("%0-.1G", 123.456) == "1E+02" +string.format("%0-.1G", 1234560000) == "1E+09" +string.format("%0-.1G", 1.23456e-05) == "1E-05" +string.format("%0-.1G", 123.456789123) == "1E+02" +string.format("%0-.1G", 1234567891.23) == "1E+09" +string.format("%0-.1G", 1.23456789123e-05) == "1E-05" +string.format("%0-1.0G", 100) == "1E+02" +string.format("%0-1.0G", 10000) == "1E+04" +string.format("%0-1.0G", 100000) == "1E+05" +string.format("%0-1.0G", 123.456) == "1E+02" +string.format("%0-1.0G", 1234560000) == "1E+09" +string.format("%0-1.0G", 1.23456e-05) == "1E-05" +string.format("%0-1.0G", 123.456789123) == "1E+02" +string.format("%0-1.0G", 1234567891.23) == "1E+09" +string.format("%0-1.0G", 1.23456789123e-05) == "1E-05" +string.format("%0-1.1G", 100) == "1E+02" +string.format("%0-1.1G", 10000) == "1E+04" +string.format("%0-1.1G", 100000) == "1E+05" +string.format("%0-1.1G", 123.456) == "1E+02" +string.format("%0-1.1G", 1234560000) == "1E+09" +string.format("%0-1.1G", 1.23456e-05) == "1E-05" +string.format("%0-1.1G", 123.456789123) == "1E+02" +string.format("%0-1.1G", 1234567891.23) == "1E+09" +string.format("%0-1.1G", 1.23456789123e-05) == "1E-05" +string.format("%0-2G", 0) == "0 " +string.format("%0-2G", 1) == "1 " +string.format("%0-2G", 2) == "2 " +string.format("%0-2G", 3) == "3 " +string.format("%0-2.0G", 0) == "0 " +string.format("%0-2.0G", 1) == "1 " +string.format("%0-2.0G", 2) == "2 " +string.format("%0-2.0G", 3) == "3 " +string.format("%0-2.0G", 100) == "1E+02" +string.format("%0-2.0G", 10000) == "1E+04" +string.format("%0-2.0G", 100000) == "1E+05" +string.format("%0-2.0G", 123.456) == "1E+02" +string.format("%0-2.0G", 1234560000) == "1E+09" +string.format("%0-2.0G", 1.23456e-05) == "1E-05" +string.format("%0-2.0G", 123.456789123) == "1E+02" +string.format("%0-2.0G", 1234567891.23) == "1E+09" +string.format("%0-2.0G", 1.23456789123e-05) == "1E-05" +string.format("%0-2.1G", 0) == "0 " +string.format("%0-2.1G", 1) == "1 " +string.format("%0-2.1G", 2) == "2 " +string.format("%0-2.1G", 3) == "3 " +string.format("%0-2.1G", 100) == "1E+02" +string.format("%0-2.1G", 10000) == "1E+04" +string.format("%0-2.1G", 100000) == "1E+05" +string.format("%0-2.1G", 123.456) == "1E+02" +string.format("%0-2.1G", 1234560000) == "1E+09" +string.format("%0-2.1G", 1.23456e-05) == "1E-05" +string.format("%0-2.1G", 123.456789123) == "1E+02" +string.format("%0-2.1G", 1234567891.23) == "1E+09" +string.format("%0-2.1G", 1.23456789123e-05) == "1E-05" +string.format("%0-2.6G", 0) == "0 " +string.format("%0-2.6G", 1) == "1 " +string.format("%0-2.6G", 2) == "2 " +string.format("%0-2.6G", 3) == "3 " +string.format("%0-6G", 0) == "0 " +string.format("%0-6G", 1) == "1 " +string.format("%0-6G", -1) == "-1 " +string.format("%0-6G", 2) == "2 " +string.format("%0-6G", -2) == "-2 " +string.format("%0-6G", 3) == "3 " +string.format("%0-6G", -3) == "-3 " +string.format("%0-6G", nan) == "NAN " +string.format("%0-6G", inf) == "INF " +string.format("%0-6G", -inf) == "-INF " +string.format("%0-6G", 100) == "100 " +string.format("%0-6G", 10000) == "10000 " +string.format("%0-6G", 1000000) == "1E+06 " +string.format("%0-6G", 10000000) == "1E+07 " +string.format("%0-6G", 0.01) == "0.01 " +string.format("%0-6G", 1e-05) == "1E-05 " +string.format("%0-6G", 1e-06) == "1E-06 " +string.format("%0-6G", 1e-07) == "1E-07 " +string.format("%0-6.0G", 0) == "0 " +string.format("%0-6.0G", 1) == "1 " +string.format("%0-6.0G", -1) == "-1 " +string.format("%0-6.0G", 2) == "2 " +string.format("%0-6.0G", -2) == "-2 " +string.format("%0-6.0G", 3) == "3 " +string.format("%0-6.0G", -3) == "-3 " +string.format("%0-6.0G", nan) == "NAN " +string.format("%0-6.0G", inf) == "INF " +string.format("%0-6.0G", -inf) == "-INF " +string.format("%0-6.0G", 100) == "1E+02 " +string.format("%0-6.0G", 10000) == "1E+04 " +string.format("%0-6.0G", 100000) == "1E+05 " +string.format("%0-6.0G", 1000000) == "1E+06 " +string.format("%0-6.0G", 10000000) == "1E+07 " +string.format("%0-6.0G", 0.01) == "0.01 " +string.format("%0-6.0G", 1e-05) == "1E-05 " +string.format("%0-6.0G", 1e-06) == "1E-06 " +string.format("%0-6.0G", 1e-07) == "1E-07 " +string.format("%0-6.0G", 123.456) == "1E+02 " +string.format("%0-6.0G", 1234560000) == "1E+09 " +string.format("%0-6.0G", 1.23456e-05) == "1E-05 " +string.format("%0-6.0G", 123.456789123) == "1E+02 " +string.format("%0-6.0G", 1234567891.23) == "1E+09 " +string.format("%0-6.0G", 1.23456789123e-05) == "1E-05 " +string.format("%0-6.1G", 0) == "0 " +string.format("%0-6.1G", 1) == "1 " +string.format("%0-6.1G", -1) == "-1 " +string.format("%0-6.1G", 2) == "2 " +string.format("%0-6.1G", -2) == "-2 " +string.format("%0-6.1G", 3) == "3 " +string.format("%0-6.1G", -3) == "-3 " +string.format("%0-6.1G", nan) == "NAN " +string.format("%0-6.1G", inf) == "INF " +string.format("%0-6.1G", -inf) == "-INF " +string.format("%0-6.1G", 100) == "1E+02 " +string.format("%0-6.1G", 10000) == "1E+04 " +string.format("%0-6.1G", 100000) == "1E+05 " +string.format("%0-6.1G", 1000000) == "1E+06 " +string.format("%0-6.1G", 10000000) == "1E+07 " +string.format("%0-6.1G", 0.01) == "0.01 " +string.format("%0-6.1G", 1e-05) == "1E-05 " +string.format("%0-6.1G", 1e-06) == "1E-06 " +string.format("%0-6.1G", 1e-07) == "1E-07 " +string.format("%0-6.1G", 123.456) == "1E+02 " +string.format("%0-6.1G", 1234560000) == "1E+09 " +string.format("%0-6.1G", 1.23456e-05) == "1E-05 " +string.format("%0-6.1G", 123.456789123) == "1E+02 " +string.format("%0-6.1G", 1234567891.23) == "1E+09 " +string.format("%0-6.1G", 1.23456789123e-05) == "1E-05 " +string.format("%0-6.6G", 0) == "0 " +string.format("%0-6.6G", 1) == "1 " +string.format("%0-6.6G", -1) == "-1 " +string.format("%0-6.6G", 2) == "2 " +string.format("%0-6.6G", -2) == "-2 " +string.format("%0-6.6G", 3) == "3 " +string.format("%0-6.6G", -3) == "-3 " +string.format("%0-6.6G", nan) == "NAN " +string.format("%0-6.6G", inf) == "INF " +string.format("%0-6.6G", -inf) == "-INF " +string.format("%0-6.6G", 100) == "100 " +string.format("%0-6.6G", 10000) == "10000 " +string.format("%0-6.6G", 1000000) == "1E+06 " +string.format("%0-6.6G", 10000000) == "1E+07 " +string.format("%0-6.6G", 0.01) == "0.01 " +string.format("%0-6.6G", 1e-05) == "1E-05 " +string.format("%0-6.6G", 1e-06) == "1E-06 " +string.format("%0-6.6G", 1e-07) == "1E-07 " +string.format("%0-20G", 0) == "0 " +string.format("%0-20G", 1) == "1 " +string.format("%0-20G", -1) == "-1 " +string.format("%0-20G", 2) == "2 " +string.format("%0-20G", -2) == "-2 " +string.format("%0-20G", 3) == "3 " +string.format("%0-20G", -3) == "-3 " +string.format("%0-20G", nan) == "NAN " +string.format("%0-20G", inf) == "INF " +string.format("%0-20G", -inf) == "-INF " +string.format("%0-20G", 100) == "100 " +string.format("%0-20G", 10000) == "10000 " +string.format("%0-20G", 100000) == "100000 " +string.format("%0-20G", 1000000) == "1E+06 " +string.format("%0-20G", 10000000) == "1E+07 " +string.format("%0-20G", 0.01) == "0.01 " +string.format("%0-20G", 0.0001) == "0.0001 " +string.format("%0-20G", 1e-05) == "1E-05 " +string.format("%0-20G", 1e-06) == "1E-06 " +string.format("%0-20G", 1e-07) == "1E-07 " +string.format("%0-20G", 123.456) == "123.456 " +string.format("%0-20G", 1234560000) == "1.23456E+09 " +string.format("%0-20G", 1.23456e-05) == "1.23456E-05 " +string.format("%0-20G", 123.456789123) == "123.457 " +string.format("%0-20G", 1234567891.23) == "1.23457E+09 " +string.format("%0-20G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%0-20.0G", 0) == "0 " +string.format("%0-20.0G", 1) == "1 " +string.format("%0-20.0G", -1) == "-1 " +string.format("%0-20.0G", 2) == "2 " +string.format("%0-20.0G", -2) == "-2 " +string.format("%0-20.0G", 3) == "3 " +string.format("%0-20.0G", -3) == "-3 " +string.format("%0-20.0G", nan) == "NAN " +string.format("%0-20.0G", inf) == "INF " +string.format("%0-20.0G", -inf) == "-INF " +string.format("%0-20.0G", 100) == "1E+02 " +string.format("%0-20.0G", 10000) == "1E+04 " +string.format("%0-20.0G", 100000) == "1E+05 " +string.format("%0-20.0G", 1000000) == "1E+06 " +string.format("%0-20.0G", 10000000) == "1E+07 " +string.format("%0-20.0G", 0.01) == "0.01 " +string.format("%0-20.0G", 0.0001) == "0.0001 " +string.format("%0-20.0G", 1e-05) == "1E-05 " +string.format("%0-20.0G", 1e-06) == "1E-06 " +string.format("%0-20.0G", 1e-07) == "1E-07 " +string.format("%0-20.0G", 123.456) == "1E+02 " +string.format("%0-20.0G", 1234560000) == "1E+09 " +string.format("%0-20.0G", 1.23456e-05) == "1E-05 " +string.format("%0-20.0G", 123.456789123) == "1E+02 " +string.format("%0-20.0G", 1234567891.23) == "1E+09 " +string.format("%0-20.0G", 1.23456789123e-05) == "1E-05 " +string.format("%0-20.1G", 0) == "0 " +string.format("%0-20.1G", 1) == "1 " +string.format("%0-20.1G", -1) == "-1 " +string.format("%0-20.1G", 2) == "2 " +string.format("%0-20.1G", -2) == "-2 " +string.format("%0-20.1G", 3) == "3 " +string.format("%0-20.1G", -3) == "-3 " +string.format("%0-20.1G", nan) == "NAN " +string.format("%0-20.1G", inf) == "INF " +string.format("%0-20.1G", -inf) == "-INF " +string.format("%0-20.1G", 100) == "1E+02 " +string.format("%0-20.1G", 10000) == "1E+04 " +string.format("%0-20.1G", 100000) == "1E+05 " +string.format("%0-20.1G", 1000000) == "1E+06 " +string.format("%0-20.1G", 10000000) == "1E+07 " +string.format("%0-20.1G", 0.01) == "0.01 " +string.format("%0-20.1G", 0.0001) == "0.0001 " +string.format("%0-20.1G", 1e-05) == "1E-05 " +string.format("%0-20.1G", 1e-06) == "1E-06 " +string.format("%0-20.1G", 1e-07) == "1E-07 " +string.format("%0-20.1G", 123.456) == "1E+02 " +string.format("%0-20.1G", 1234560000) == "1E+09 " +string.format("%0-20.1G", 1.23456e-05) == "1E-05 " +string.format("%0-20.1G", 123.456789123) == "1E+02 " +string.format("%0-20.1G", 1234567891.23) == "1E+09 " +string.format("%0-20.1G", 1.23456789123e-05) == "1E-05 " +string.format("%0-20.6G", 0) == "0 " +string.format("%0-20.6G", 1) == "1 " +string.format("%0-20.6G", -1) == "-1 " +string.format("%0-20.6G", 2) == "2 " +string.format("%0-20.6G", -2) == "-2 " +string.format("%0-20.6G", 3) == "3 " +string.format("%0-20.6G", -3) == "-3 " +string.format("%0-20.6G", nan) == "NAN " +string.format("%0-20.6G", inf) == "INF " +string.format("%0-20.6G", -inf) == "-INF " +string.format("%0-20.6G", 100) == "100 " +string.format("%0-20.6G", 10000) == "10000 " +string.format("%0-20.6G", 100000) == "100000 " +string.format("%0-20.6G", 1000000) == "1E+06 " +string.format("%0-20.6G", 10000000) == "1E+07 " +string.format("%0-20.6G", 0.01) == "0.01 " +string.format("%0-20.6G", 0.0001) == "0.0001 " +string.format("%0-20.6G", 1e-05) == "1E-05 " +string.format("%0-20.6G", 1e-06) == "1E-06 " +string.format("%0-20.6G", 1e-07) == "1E-07 " +string.format("%0-20.6G", 123.456) == "123.456 " +string.format("%0-20.6G", 1234560000) == "1.23456E+09 " +string.format("%0-20.6G", 1.23456e-05) == "1.23456E-05 " +string.format("%0-20.6G", 123.456789123) == "123.457 " +string.format("%0-20.6G", 1234567891.23) == "1.23457E+09 " +string.format("%0-20.6G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%0-+G", 0) == "+0" +string.format("%0-+G", 1) == "+1" +string.format("%0-+G", -1) == "-1" +string.format("%0-+G", 2) == "+2" +string.format("%0-+G", -2) == "-2" +string.format("%0-+G", 3) == "+3" +string.format("%0-+G", -3) == "-3" +string.format("%0-+G", nan) == "+NAN" +string.format("%0-+G", inf) == "+INF" +string.format("%0-+G", -inf) == "-INF" +string.format("%0-+G", 100) == "+100" +string.format("%0-+G", 10000) == "+10000" +string.format("%0-+G", 100000) == "+100000" +string.format("%0-+G", 1000000) == "+1E+06" +string.format("%0-+G", 10000000) == "+1E+07" +string.format("%0-+G", 0.01) == "+0.01" +string.format("%0-+G", 0.0001) == "+0.0001" +string.format("%0-+G", 1e-05) == "+1E-05" +string.format("%0-+G", 1e-06) == "+1E-06" +string.format("%0-+G", 1e-07) == "+1E-07" +string.format("%0-+G", 123.456) == "+123.456" +string.format("%0-+G", 1234560000) == "+1.23456E+09" +string.format("%0-+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0-+G", 123.456789123) == "+123.457" +string.format("%0-+G", 1234567891.23) == "+1.23457E+09" +string.format("%0-+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0-+.0G", 100) == "+1E+02" +string.format("%0-+.0G", 10000) == "+1E+04" +string.format("%0-+.0G", 100000) == "+1E+05" +string.format("%0-+.0G", 123.456) == "+1E+02" +string.format("%0-+.0G", 1234560000) == "+1E+09" +string.format("%0-+.0G", 1.23456e-05) == "+1E-05" +string.format("%0-+.0G", 123.456789123) == "+1E+02" +string.format("%0-+.0G", 1234567891.23) == "+1E+09" +string.format("%0-+.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+.1G", 100) == "+1E+02" +string.format("%0-+.1G", 10000) == "+1E+04" +string.format("%0-+.1G", 100000) == "+1E+05" +string.format("%0-+.1G", 123.456) == "+1E+02" +string.format("%0-+.1G", 1234560000) == "+1E+09" +string.format("%0-+.1G", 1.23456e-05) == "+1E-05" +string.format("%0-+.1G", 123.456789123) == "+1E+02" +string.format("%0-+.1G", 1234567891.23) == "+1E+09" +string.format("%0-+.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+1.0G", 100) == "+1E+02" +string.format("%0-+1.0G", 10000) == "+1E+04" +string.format("%0-+1.0G", 100000) == "+1E+05" +string.format("%0-+1.0G", 123.456) == "+1E+02" +string.format("%0-+1.0G", 1234560000) == "+1E+09" +string.format("%0-+1.0G", 1.23456e-05) == "+1E-05" +string.format("%0-+1.0G", 123.456789123) == "+1E+02" +string.format("%0-+1.0G", 1234567891.23) == "+1E+09" +string.format("%0-+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+1.1G", 100) == "+1E+02" +string.format("%0-+1.1G", 10000) == "+1E+04" +string.format("%0-+1.1G", 100000) == "+1E+05" +string.format("%0-+1.1G", 123.456) == "+1E+02" +string.format("%0-+1.1G", 1234560000) == "+1E+09" +string.format("%0-+1.1G", 1.23456e-05) == "+1E-05" +string.format("%0-+1.1G", 123.456789123) == "+1E+02" +string.format("%0-+1.1G", 1234567891.23) == "+1E+09" +string.format("%0-+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+2.0G", 100) == "+1E+02" +string.format("%0-+2.0G", 10000) == "+1E+04" +string.format("%0-+2.0G", 100000) == "+1E+05" +string.format("%0-+2.0G", 123.456) == "+1E+02" +string.format("%0-+2.0G", 1234560000) == "+1E+09" +string.format("%0-+2.0G", 1.23456e-05) == "+1E-05" +string.format("%0-+2.0G", 123.456789123) == "+1E+02" +string.format("%0-+2.0G", 1234567891.23) == "+1E+09" +string.format("%0-+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+2.1G", 100) == "+1E+02" +string.format("%0-+2.1G", 10000) == "+1E+04" +string.format("%0-+2.1G", 100000) == "+1E+05" +string.format("%0-+2.1G", 123.456) == "+1E+02" +string.format("%0-+2.1G", 1234560000) == "+1E+09" +string.format("%0-+2.1G", 1.23456e-05) == "+1E-05" +string.format("%0-+2.1G", 123.456789123) == "+1E+02" +string.format("%0-+2.1G", 1234567891.23) == "+1E+09" +string.format("%0-+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+6G", 0) == "+0 " +string.format("%0-+6G", 1) == "+1 " +string.format("%0-+6G", -1) == "-1 " +string.format("%0-+6G", 2) == "+2 " +string.format("%0-+6G", -2) == "-2 " +string.format("%0-+6G", 3) == "+3 " +string.format("%0-+6G", -3) == "-3 " +string.format("%0-+6G", nan) == "+NAN " +string.format("%0-+6G", inf) == "+INF " +string.format("%0-+6G", -inf) == "-INF " +string.format("%0-+6G", 100) == "+100 " +string.format("%0-+6G", 0.01) == "+0.01 " +string.format("%0-+6.0G", 0) == "+0 " +string.format("%0-+6.0G", 1) == "+1 " +string.format("%0-+6.0G", -1) == "-1 " +string.format("%0-+6.0G", 2) == "+2 " +string.format("%0-+6.0G", -2) == "-2 " +string.format("%0-+6.0G", 3) == "+3 " +string.format("%0-+6.0G", -3) == "-3 " +string.format("%0-+6.0G", nan) == "+NAN " +string.format("%0-+6.0G", inf) == "+INF " +string.format("%0-+6.0G", -inf) == "-INF " +string.format("%0-+6.0G", 100) == "+1E+02" +string.format("%0-+6.0G", 10000) == "+1E+04" +string.format("%0-+6.0G", 100000) == "+1E+05" +string.format("%0-+6.0G", 0.01) == "+0.01 " +string.format("%0-+6.0G", 123.456) == "+1E+02" +string.format("%0-+6.0G", 1234560000) == "+1E+09" +string.format("%0-+6.0G", 1.23456e-05) == "+1E-05" +string.format("%0-+6.0G", 123.456789123) == "+1E+02" +string.format("%0-+6.0G", 1234567891.23) == "+1E+09" +string.format("%0-+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+6.1G", 0) == "+0 " +string.format("%0-+6.1G", 1) == "+1 " +string.format("%0-+6.1G", -1) == "-1 " +string.format("%0-+6.1G", 2) == "+2 " +string.format("%0-+6.1G", -2) == "-2 " +string.format("%0-+6.1G", 3) == "+3 " +string.format("%0-+6.1G", -3) == "-3 " +string.format("%0-+6.1G", nan) == "+NAN " +string.format("%0-+6.1G", inf) == "+INF " +string.format("%0-+6.1G", -inf) == "-INF " +string.format("%0-+6.1G", 100) == "+1E+02" +string.format("%0-+6.1G", 10000) == "+1E+04" +string.format("%0-+6.1G", 100000) == "+1E+05" +string.format("%0-+6.1G", 0.01) == "+0.01 " +string.format("%0-+6.1G", 123.456) == "+1E+02" +string.format("%0-+6.1G", 1234560000) == "+1E+09" +string.format("%0-+6.1G", 1.23456e-05) == "+1E-05" +string.format("%0-+6.1G", 123.456789123) == "+1E+02" +string.format("%0-+6.1G", 1234567891.23) == "+1E+09" +string.format("%0-+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0-+6.6G", 0) == "+0 " +string.format("%0-+6.6G", 1) == "+1 " +string.format("%0-+6.6G", -1) == "-1 " +string.format("%0-+6.6G", 2) == "+2 " +string.format("%0-+6.6G", -2) == "-2 " +string.format("%0-+6.6G", 3) == "+3 " +string.format("%0-+6.6G", -3) == "-3 " +string.format("%0-+6.6G", nan) == "+NAN " +string.format("%0-+6.6G", inf) == "+INF " +string.format("%0-+6.6G", -inf) == "-INF " +string.format("%0-+6.6G", 100) == "+100 " +string.format("%0-+6.6G", 0.01) == "+0.01 " +string.format("%0-+20G", 0) == "+0 " +string.format("%0-+20G", 1) == "+1 " +string.format("%0-+20G", -1) == "-1 " +string.format("%0-+20G", 2) == "+2 " +string.format("%0-+20G", -2) == "-2 " +string.format("%0-+20G", 3) == "+3 " +string.format("%0-+20G", -3) == "-3 " +string.format("%0-+20G", nan) == "+NAN " +string.format("%0-+20G", inf) == "+INF " +string.format("%0-+20G", -inf) == "-INF " +string.format("%0-+20G", 100) == "+100 " +string.format("%0-+20G", 10000) == "+10000 " +string.format("%0-+20G", 100000) == "+100000 " +string.format("%0-+20G", 1000000) == "+1E+06 " +string.format("%0-+20G", 10000000) == "+1E+07 " +string.format("%0-+20G", 0.01) == "+0.01 " +string.format("%0-+20G", 0.0001) == "+0.0001 " +string.format("%0-+20G", 1e-05) == "+1E-05 " +string.format("%0-+20G", 1e-06) == "+1E-06 " +string.format("%0-+20G", 1e-07) == "+1E-07 " +string.format("%0-+20G", 123.456) == "+123.456 " +string.format("%0-+20G", 1234560000) == "+1.23456E+09 " +string.format("%0-+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0-+20G", 123.456789123) == "+123.457 " +string.format("%0-+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%0-+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0-+20.0G", 0) == "+0 " +string.format("%0-+20.0G", 1) == "+1 " +string.format("%0-+20.0G", -1) == "-1 " +string.format("%0-+20.0G", 2) == "+2 " +string.format("%0-+20.0G", -2) == "-2 " +string.format("%0-+20.0G", 3) == "+3 " +string.format("%0-+20.0G", -3) == "-3 " +string.format("%0-+20.0G", nan) == "+NAN " +string.format("%0-+20.0G", inf) == "+INF " +string.format("%0-+20.0G", -inf) == "-INF " +string.format("%0-+20.0G", 100) == "+1E+02 " +string.format("%0-+20.0G", 10000) == "+1E+04 " +string.format("%0-+20.0G", 100000) == "+1E+05 " +string.format("%0-+20.0G", 1000000) == "+1E+06 " +string.format("%0-+20.0G", 10000000) == "+1E+07 " +string.format("%0-+20.0G", 0.01) == "+0.01 " +string.format("%0-+20.0G", 0.0001) == "+0.0001 " +string.format("%0-+20.0G", 1e-05) == "+1E-05 " +string.format("%0-+20.0G", 1e-06) == "+1E-06 " +string.format("%0-+20.0G", 1e-07) == "+1E-07 " +string.format("%0-+20.0G", 123.456) == "+1E+02 " +string.format("%0-+20.0G", 1234560000) == "+1E+09 " +string.format("%0-+20.0G", 1.23456e-05) == "+1E-05 " +string.format("%0-+20.0G", 123.456789123) == "+1E+02 " +string.format("%0-+20.0G", 1234567891.23) == "+1E+09 " +string.format("%0-+20.0G", 1.23456789123e-05) == "+1E-05 " +string.format("%0-+20.1G", 0) == "+0 " +string.format("%0-+20.1G", 1) == "+1 " +string.format("%0-+20.1G", -1) == "-1 " +string.format("%0-+20.1G", 2) == "+2 " +string.format("%0-+20.1G", -2) == "-2 " +string.format("%0-+20.1G", 3) == "+3 " +string.format("%0-+20.1G", -3) == "-3 " +string.format("%0-+20.1G", nan) == "+NAN " +string.format("%0-+20.1G", inf) == "+INF " +string.format("%0-+20.1G", -inf) == "-INF " +string.format("%0-+20.1G", 100) == "+1E+02 " +string.format("%0-+20.1G", 10000) == "+1E+04 " +string.format("%0-+20.1G", 100000) == "+1E+05 " +string.format("%0-+20.1G", 1000000) == "+1E+06 " +string.format("%0-+20.1G", 10000000) == "+1E+07 " +string.format("%0-+20.1G", 0.01) == "+0.01 " +string.format("%0-+20.1G", 0.0001) == "+0.0001 " +string.format("%0-+20.1G", 1e-05) == "+1E-05 " +string.format("%0-+20.1G", 1e-06) == "+1E-06 " +string.format("%0-+20.1G", 1e-07) == "+1E-07 " +string.format("%0-+20.1G", 123.456) == "+1E+02 " +string.format("%0-+20.1G", 1234560000) == "+1E+09 " +string.format("%0-+20.1G", 1.23456e-05) == "+1E-05 " +string.format("%0-+20.1G", 123.456789123) == "+1E+02 " +string.format("%0-+20.1G", 1234567891.23) == "+1E+09 " +string.format("%0-+20.1G", 1.23456789123e-05) == "+1E-05 " +string.format("%0-+20.6G", 0) == "+0 " +string.format("%0-+20.6G", 1) == "+1 " +string.format("%0-+20.6G", -1) == "-1 " +string.format("%0-+20.6G", 2) == "+2 " +string.format("%0-+20.6G", -2) == "-2 " +string.format("%0-+20.6G", 3) == "+3 " +string.format("%0-+20.6G", -3) == "-3 " +string.format("%0-+20.6G", nan) == "+NAN " +string.format("%0-+20.6G", inf) == "+INF " +string.format("%0-+20.6G", -inf) == "-INF " +string.format("%0-+20.6G", 100) == "+100 " +string.format("%0-+20.6G", 10000) == "+10000 " +string.format("%0-+20.6G", 100000) == "+100000 " +string.format("%0-+20.6G", 1000000) == "+1E+06 " +string.format("%0-+20.6G", 10000000) == "+1E+07 " +string.format("%0-+20.6G", 0.01) == "+0.01 " +string.format("%0-+20.6G", 0.0001) == "+0.0001 " +string.format("%0-+20.6G", 1e-05) == "+1E-05 " +string.format("%0-+20.6G", 1e-06) == "+1E-06 " +string.format("%0-+20.6G", 1e-07) == "+1E-07 " +string.format("%0-+20.6G", 123.456) == "+123.456 " +string.format("%0-+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%0-+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0-+20.6G", 123.456789123) == "+123.457 " +string.format("%0-+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%0-+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0 G", 0) == " 0" +string.format("%0 G", 1) == " 1" +string.format("%0 G", -1) == "-1" +string.format("%0 G", 2) == " 2" +string.format("%0 G", -2) == "-2" +string.format("%0 G", 3) == " 3" +string.format("%0 G", -3) == "-3" +string.format("%0 G", nan) == " NAN" +string.format("%0 G", inf) == " INF" +string.format("%0 G", -inf) == "-INF" +string.format("%0 G", 100) == " 100" +string.format("%0 G", 10000) == " 10000" +string.format("%0 G", 100000) == " 100000" +string.format("%0 G", 1000000) == " 1E+06" +string.format("%0 G", 10000000) == " 1E+07" +string.format("%0 G", 0.01) == " 0.01" +string.format("%0 G", 0.0001) == " 0.0001" +string.format("%0 G", 1e-05) == " 1E-05" +string.format("%0 G", 1e-06) == " 1E-06" +string.format("%0 G", 1e-07) == " 1E-07" +string.format("%0 G", 123.456) == " 123.456" +string.format("%0 G", 1234560000) == " 1.23456E+09" +string.format("%0 G", 1.23456e-05) == " 1.23456E-05" +string.format("%0 G", 123.456789123) == " 123.457" +string.format("%0 G", 1234567891.23) == " 1.23457E+09" +string.format("%0 G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%0 .0G", 100) == " 1E+02" +string.format("%0 .0G", 10000) == " 1E+04" +string.format("%0 .0G", 100000) == " 1E+05" +string.format("%0 .0G", 123.456) == " 1E+02" +string.format("%0 .0G", 1234560000) == " 1E+09" +string.format("%0 .0G", 1.23456e-05) == " 1E-05" +string.format("%0 .0G", 123.456789123) == " 1E+02" +string.format("%0 .0G", 1234567891.23) == " 1E+09" +string.format("%0 .0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 .1G", 100) == " 1E+02" +string.format("%0 .1G", 10000) == " 1E+04" +string.format("%0 .1G", 100000) == " 1E+05" +string.format("%0 .1G", 123.456) == " 1E+02" +string.format("%0 .1G", 1234560000) == " 1E+09" +string.format("%0 .1G", 1.23456e-05) == " 1E-05" +string.format("%0 .1G", 123.456789123) == " 1E+02" +string.format("%0 .1G", 1234567891.23) == " 1E+09" +string.format("%0 .1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 1.0G", 100) == " 1E+02" +string.format("%0 1.0G", 10000) == " 1E+04" +string.format("%0 1.0G", 100000) == " 1E+05" +string.format("%0 1.0G", 123.456) == " 1E+02" +string.format("%0 1.0G", 1234560000) == " 1E+09" +string.format("%0 1.0G", 1.23456e-05) == " 1E-05" +string.format("%0 1.0G", 123.456789123) == " 1E+02" +string.format("%0 1.0G", 1234567891.23) == " 1E+09" +string.format("%0 1.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 1.1G", 100) == " 1E+02" +string.format("%0 1.1G", 10000) == " 1E+04" +string.format("%0 1.1G", 100000) == " 1E+05" +string.format("%0 1.1G", 123.456) == " 1E+02" +string.format("%0 1.1G", 1234560000) == " 1E+09" +string.format("%0 1.1G", 1.23456e-05) == " 1E-05" +string.format("%0 1.1G", 123.456789123) == " 1E+02" +string.format("%0 1.1G", 1234567891.23) == " 1E+09" +string.format("%0 1.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 2.0G", 100) == " 1E+02" +string.format("%0 2.0G", 10000) == " 1E+04" +string.format("%0 2.0G", 100000) == " 1E+05" +string.format("%0 2.0G", 123.456) == " 1E+02" +string.format("%0 2.0G", 1234560000) == " 1E+09" +string.format("%0 2.0G", 1.23456e-05) == " 1E-05" +string.format("%0 2.0G", 123.456789123) == " 1E+02" +string.format("%0 2.0G", 1234567891.23) == " 1E+09" +string.format("%0 2.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 2.1G", 100) == " 1E+02" +string.format("%0 2.1G", 10000) == " 1E+04" +string.format("%0 2.1G", 100000) == " 1E+05" +string.format("%0 2.1G", 123.456) == " 1E+02" +string.format("%0 2.1G", 1234560000) == " 1E+09" +string.format("%0 2.1G", 1.23456e-05) == " 1E-05" +string.format("%0 2.1G", 123.456789123) == " 1E+02" +string.format("%0 2.1G", 1234567891.23) == " 1E+09" +string.format("%0 2.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 6G", 0) == " 00000" +string.format("%0 6G", 1) == " 00001" +string.format("%0 6G", -1) == "-00001" +string.format("%0 6G", 2) == " 00002" +string.format("%0 6G", -2) == "-00002" +string.format("%0 6G", 3) == " 00003" +string.format("%0 6G", -3) == "-00003" +string.format("%0 6G", nan) == " NAN" +string.format("%0 6G", inf) == " INF" +string.format("%0 6G", -inf) == " -INF" +string.format("%0 6G", 100) == " 00100" +string.format("%0 6G", 0.01) == " 00.01" +string.format("%0 6.0G", 0) == " 00000" +string.format("%0 6.0G", 1) == " 00001" +string.format("%0 6.0G", -1) == "-00001" +string.format("%0 6.0G", 2) == " 00002" +string.format("%0 6.0G", -2) == "-00002" +string.format("%0 6.0G", 3) == " 00003" +string.format("%0 6.0G", -3) == "-00003" +string.format("%0 6.0G", nan) == " NAN" +string.format("%0 6.0G", inf) == " INF" +string.format("%0 6.0G", -inf) == " -INF" +string.format("%0 6.0G", 100) == " 1E+02" +string.format("%0 6.0G", 10000) == " 1E+04" +string.format("%0 6.0G", 100000) == " 1E+05" +string.format("%0 6.0G", 0.01) == " 00.01" +string.format("%0 6.0G", 123.456) == " 1E+02" +string.format("%0 6.0G", 1234560000) == " 1E+09" +string.format("%0 6.0G", 1.23456e-05) == " 1E-05" +string.format("%0 6.0G", 123.456789123) == " 1E+02" +string.format("%0 6.0G", 1234567891.23) == " 1E+09" +string.format("%0 6.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 6.1G", 0) == " 00000" +string.format("%0 6.1G", 1) == " 00001" +string.format("%0 6.1G", -1) == "-00001" +string.format("%0 6.1G", 2) == " 00002" +string.format("%0 6.1G", -2) == "-00002" +string.format("%0 6.1G", 3) == " 00003" +string.format("%0 6.1G", -3) == "-00003" +string.format("%0 6.1G", nan) == " NAN" +string.format("%0 6.1G", inf) == " INF" +string.format("%0 6.1G", -inf) == " -INF" +string.format("%0 6.1G", 100) == " 1E+02" +string.format("%0 6.1G", 10000) == " 1E+04" +string.format("%0 6.1G", 100000) == " 1E+05" +string.format("%0 6.1G", 0.01) == " 00.01" +string.format("%0 6.1G", 123.456) == " 1E+02" +string.format("%0 6.1G", 1234560000) == " 1E+09" +string.format("%0 6.1G", 1.23456e-05) == " 1E-05" +string.format("%0 6.1G", 123.456789123) == " 1E+02" +string.format("%0 6.1G", 1234567891.23) == " 1E+09" +string.format("%0 6.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 6.6G", 0) == " 00000" +string.format("%0 6.6G", 1) == " 00001" +string.format("%0 6.6G", -1) == "-00001" +string.format("%0 6.6G", 2) == " 00002" +string.format("%0 6.6G", -2) == "-00002" +string.format("%0 6.6G", 3) == " 00003" +string.format("%0 6.6G", -3) == "-00003" +string.format("%0 6.6G", nan) == " NAN" +string.format("%0 6.6G", inf) == " INF" +string.format("%0 6.6G", -inf) == " -INF" +string.format("%0 6.6G", 100) == " 00100" +string.format("%0 6.6G", 0.01) == " 00.01" +string.format("%0 20G", 0) == " 0000000000000000000" +string.format("%0 20G", 1) == " 0000000000000000001" +string.format("%0 20G", -1) == "-0000000000000000001" +string.format("%0 20G", 2) == " 0000000000000000002" +string.format("%0 20G", -2) == "-0000000000000000002" +string.format("%0 20G", 3) == " 0000000000000000003" +string.format("%0 20G", -3) == "-0000000000000000003" +string.format("%0 20G", nan) == " NAN" +string.format("%0 20G", inf) == " INF" +string.format("%0 20G", -inf) == " -INF" +string.format("%0 20G", 100) == " 0000000000000000100" +string.format("%0 20G", 10000) == " 0000000000000010000" +string.format("%0 20G", 100000) == " 0000000000000100000" +string.format("%0 20G", 1000000) == " 000000000000001E+06" +string.format("%0 20G", 10000000) == " 000000000000001E+07" +string.format("%0 20G", 0.01) == " 0000000000000000.01" +string.format("%0 20G", 0.0001) == " 00000000000000.0001" +string.format("%0 20G", 1e-05) == " 000000000000001E-05" +string.format("%0 20G", 1e-06) == " 000000000000001E-06" +string.format("%0 20G", 1e-07) == " 000000000000001E-07" +string.format("%0 20G", 123.456) == " 000000000000123.456" +string.format("%0 20G", 1234560000) == " 000000001.23456E+09" +string.format("%0 20G", 1.23456e-05) == " 000000001.23456E-05" +string.format("%0 20G", 123.456789123) == " 000000000000123.457" +string.format("%0 20G", 1234567891.23) == " 000000001.23457E+09" +string.format("%0 20G", 1.23456789123e-05) == " 000000001.23457E-05" +string.format("%0 20.0G", 0) == " 0000000000000000000" +string.format("%0 20.0G", 1) == " 0000000000000000001" +string.format("%0 20.0G", -1) == "-0000000000000000001" +string.format("%0 20.0G", 2) == " 0000000000000000002" +string.format("%0 20.0G", -2) == "-0000000000000000002" +string.format("%0 20.0G", 3) == " 0000000000000000003" +string.format("%0 20.0G", -3) == "-0000000000000000003" +string.format("%0 20.0G", nan) == " NAN" +string.format("%0 20.0G", inf) == " INF" +string.format("%0 20.0G", -inf) == " -INF" +string.format("%0 20.0G", 100) == " 000000000000001E+02" +string.format("%0 20.0G", 10000) == " 000000000000001E+04" +string.format("%0 20.0G", 100000) == " 000000000000001E+05" +string.format("%0 20.0G", 1000000) == " 000000000000001E+06" +string.format("%0 20.0G", 10000000) == " 000000000000001E+07" +string.format("%0 20.0G", 0.01) == " 0000000000000000.01" +string.format("%0 20.0G", 0.0001) == " 00000000000000.0001" +string.format("%0 20.0G", 1e-05) == " 000000000000001E-05" +string.format("%0 20.0G", 1e-06) == " 000000000000001E-06" +string.format("%0 20.0G", 1e-07) == " 000000000000001E-07" +string.format("%0 20.0G", 123.456) == " 000000000000001E+02" +string.format("%0 20.0G", 1234560000) == " 000000000000001E+09" +string.format("%0 20.0G", 1.23456e-05) == " 000000000000001E-05" +string.format("%0 20.0G", 123.456789123) == " 000000000000001E+02" +string.format("%0 20.0G", 1234567891.23) == " 000000000000001E+09" +string.format("%0 20.0G", 1.23456789123e-05) == " 000000000000001E-05" +string.format("%0 20.1G", 0) == " 0000000000000000000" +string.format("%0 20.1G", 1) == " 0000000000000000001" +string.format("%0 20.1G", -1) == "-0000000000000000001" +string.format("%0 20.1G", 2) == " 0000000000000000002" +string.format("%0 20.1G", -2) == "-0000000000000000002" +string.format("%0 20.1G", 3) == " 0000000000000000003" +string.format("%0 20.1G", -3) == "-0000000000000000003" +string.format("%0 20.1G", nan) == " NAN" +string.format("%0 20.1G", inf) == " INF" +string.format("%0 20.1G", -inf) == " -INF" +string.format("%0 20.1G", 100) == " 000000000000001E+02" +string.format("%0 20.1G", 10000) == " 000000000000001E+04" +string.format("%0 20.1G", 100000) == " 000000000000001E+05" +string.format("%0 20.1G", 1000000) == " 000000000000001E+06" +string.format("%0 20.1G", 10000000) == " 000000000000001E+07" +string.format("%0 20.1G", 0.01) == " 0000000000000000.01" +string.format("%0 20.1G", 0.0001) == " 00000000000000.0001" +string.format("%0 20.1G", 1e-05) == " 000000000000001E-05" +string.format("%0 20.1G", 1e-06) == " 000000000000001E-06" +string.format("%0 20.1G", 1e-07) == " 000000000000001E-07" +string.format("%0 20.1G", 123.456) == " 000000000000001E+02" +string.format("%0 20.1G", 1234560000) == " 000000000000001E+09" +string.format("%0 20.1G", 1.23456e-05) == " 000000000000001E-05" +string.format("%0 20.1G", 123.456789123) == " 000000000000001E+02" +string.format("%0 20.1G", 1234567891.23) == " 000000000000001E+09" +string.format("%0 20.1G", 1.23456789123e-05) == " 000000000000001E-05" +string.format("%0 20.6G", 0) == " 0000000000000000000" +string.format("%0 20.6G", 1) == " 0000000000000000001" +string.format("%0 20.6G", -1) == "-0000000000000000001" +string.format("%0 20.6G", 2) == " 0000000000000000002" +string.format("%0 20.6G", -2) == "-0000000000000000002" +string.format("%0 20.6G", 3) == " 0000000000000000003" +string.format("%0 20.6G", -3) == "-0000000000000000003" +string.format("%0 20.6G", nan) == " NAN" +string.format("%0 20.6G", inf) == " INF" +string.format("%0 20.6G", -inf) == " -INF" +string.format("%0 20.6G", 100) == " 0000000000000000100" +string.format("%0 20.6G", 10000) == " 0000000000000010000" +string.format("%0 20.6G", 100000) == " 0000000000000100000" +string.format("%0 20.6G", 1000000) == " 000000000000001E+06" +string.format("%0 20.6G", 10000000) == " 000000000000001E+07" +string.format("%0 20.6G", 0.01) == " 0000000000000000.01" +string.format("%0 20.6G", 0.0001) == " 00000000000000.0001" +string.format("%0 20.6G", 1e-05) == " 000000000000001E-05" +string.format("%0 20.6G", 1e-06) == " 000000000000001E-06" +string.format("%0 20.6G", 1e-07) == " 000000000000001E-07" +string.format("%0 20.6G", 123.456) == " 000000000000123.456" +string.format("%0 20.6G", 1234560000) == " 000000001.23456E+09" +string.format("%0 20.6G", 1.23456e-05) == " 000000001.23456E-05" +string.format("%0 20.6G", 123.456789123) == " 000000000000123.457" +string.format("%0 20.6G", 1234567891.23) == " 000000001.23457E+09" +string.format("%0 20.6G", 1.23456789123e-05) == " 000000001.23457E-05" +string.format("%0 +G", 0) == "+0" +string.format("%0 +G", 1) == "+1" +string.format("%0 +G", -1) == "-1" +string.format("%0 +G", 2) == "+2" +string.format("%0 +G", -2) == "-2" +string.format("%0 +G", 3) == "+3" +string.format("%0 +G", -3) == "-3" +string.format("%0 +G", nan) == "+NAN" +string.format("%0 +G", inf) == "+INF" +string.format("%0 +G", -inf) == "-INF" +string.format("%0 +G", 100) == "+100" +string.format("%0 +G", 10000) == "+10000" +string.format("%0 +G", 100000) == "+100000" +string.format("%0 +G", 1000000) == "+1E+06" +string.format("%0 +G", 10000000) == "+1E+07" +string.format("%0 +G", 0.01) == "+0.01" +string.format("%0 +G", 0.0001) == "+0.0001" +string.format("%0 +G", 1e-05) == "+1E-05" +string.format("%0 +G", 1e-06) == "+1E-06" +string.format("%0 +G", 1e-07) == "+1E-07" +string.format("%0 +G", 123.456) == "+123.456" +string.format("%0 +G", 1234560000) == "+1.23456E+09" +string.format("%0 +G", 1.23456e-05) == "+1.23456E-05" +string.format("%0 +G", 123.456789123) == "+123.457" +string.format("%0 +G", 1234567891.23) == "+1.23457E+09" +string.format("%0 +G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0 +.0G", 100) == "+1E+02" +string.format("%0 +.0G", 10000) == "+1E+04" +string.format("%0 +.0G", 100000) == "+1E+05" +string.format("%0 +.0G", 123.456) == "+1E+02" +string.format("%0 +.0G", 1234560000) == "+1E+09" +string.format("%0 +.0G", 1.23456e-05) == "+1E-05" +string.format("%0 +.0G", 123.456789123) == "+1E+02" +string.format("%0 +.0G", 1234567891.23) == "+1E+09" +string.format("%0 +.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +.1G", 100) == "+1E+02" +string.format("%0 +.1G", 10000) == "+1E+04" +string.format("%0 +.1G", 100000) == "+1E+05" +string.format("%0 +.1G", 123.456) == "+1E+02" +string.format("%0 +.1G", 1234560000) == "+1E+09" +string.format("%0 +.1G", 1.23456e-05) == "+1E-05" +string.format("%0 +.1G", 123.456789123) == "+1E+02" +string.format("%0 +.1G", 1234567891.23) == "+1E+09" +string.format("%0 +.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +1.0G", 100) == "+1E+02" +string.format("%0 +1.0G", 10000) == "+1E+04" +string.format("%0 +1.0G", 100000) == "+1E+05" +string.format("%0 +1.0G", 123.456) == "+1E+02" +string.format("%0 +1.0G", 1234560000) == "+1E+09" +string.format("%0 +1.0G", 1.23456e-05) == "+1E-05" +string.format("%0 +1.0G", 123.456789123) == "+1E+02" +string.format("%0 +1.0G", 1234567891.23) == "+1E+09" +string.format("%0 +1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +1.1G", 100) == "+1E+02" +string.format("%0 +1.1G", 10000) == "+1E+04" +string.format("%0 +1.1G", 100000) == "+1E+05" +string.format("%0 +1.1G", 123.456) == "+1E+02" +string.format("%0 +1.1G", 1234560000) == "+1E+09" +string.format("%0 +1.1G", 1.23456e-05) == "+1E-05" +string.format("%0 +1.1G", 123.456789123) == "+1E+02" +string.format("%0 +1.1G", 1234567891.23) == "+1E+09" +string.format("%0 +1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +2.0G", 100) == "+1E+02" +string.format("%0 +2.0G", 10000) == "+1E+04" +string.format("%0 +2.0G", 100000) == "+1E+05" +string.format("%0 +2.0G", 123.456) == "+1E+02" +string.format("%0 +2.0G", 1234560000) == "+1E+09" +string.format("%0 +2.0G", 1.23456e-05) == "+1E-05" +string.format("%0 +2.0G", 123.456789123) == "+1E+02" +string.format("%0 +2.0G", 1234567891.23) == "+1E+09" +string.format("%0 +2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +2.1G", 100) == "+1E+02" +string.format("%0 +2.1G", 10000) == "+1E+04" +string.format("%0 +2.1G", 100000) == "+1E+05" +string.format("%0 +2.1G", 123.456) == "+1E+02" +string.format("%0 +2.1G", 1234560000) == "+1E+09" +string.format("%0 +2.1G", 1.23456e-05) == "+1E-05" +string.format("%0 +2.1G", 123.456789123) == "+1E+02" +string.format("%0 +2.1G", 1234567891.23) == "+1E+09" +string.format("%0 +2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +6G", 0) == "+00000" +string.format("%0 +6G", 1) == "+00001" +string.format("%0 +6G", -1) == "-00001" +string.format("%0 +6G", 2) == "+00002" +string.format("%0 +6G", -2) == "-00002" +string.format("%0 +6G", 3) == "+00003" +string.format("%0 +6G", -3) == "-00003" +string.format("%0 +6G", nan) == " +NAN" +string.format("%0 +6G", inf) == " +INF" +string.format("%0 +6G", -inf) == " -INF" +string.format("%0 +6G", 100) == "+00100" +string.format("%0 +6G", 0.01) == "+00.01" +string.format("%0 +6.0G", 0) == "+00000" +string.format("%0 +6.0G", 1) == "+00001" +string.format("%0 +6.0G", -1) == "-00001" +string.format("%0 +6.0G", 2) == "+00002" +string.format("%0 +6.0G", -2) == "-00002" +string.format("%0 +6.0G", 3) == "+00003" +string.format("%0 +6.0G", -3) == "-00003" +string.format("%0 +6.0G", nan) == " +NAN" +string.format("%0 +6.0G", inf) == " +INF" +string.format("%0 +6.0G", -inf) == " -INF" +string.format("%0 +6.0G", 100) == "+1E+02" +string.format("%0 +6.0G", 10000) == "+1E+04" +string.format("%0 +6.0G", 100000) == "+1E+05" +string.format("%0 +6.0G", 0.01) == "+00.01" +string.format("%0 +6.0G", 123.456) == "+1E+02" +string.format("%0 +6.0G", 1234560000) == "+1E+09" +string.format("%0 +6.0G", 1.23456e-05) == "+1E-05" +string.format("%0 +6.0G", 123.456789123) == "+1E+02" +string.format("%0 +6.0G", 1234567891.23) == "+1E+09" +string.format("%0 +6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +6.1G", 0) == "+00000" +string.format("%0 +6.1G", 1) == "+00001" +string.format("%0 +6.1G", -1) == "-00001" +string.format("%0 +6.1G", 2) == "+00002" +string.format("%0 +6.1G", -2) == "-00002" +string.format("%0 +6.1G", 3) == "+00003" +string.format("%0 +6.1G", -3) == "-00003" +string.format("%0 +6.1G", nan) == " +NAN" +string.format("%0 +6.1G", inf) == " +INF" +string.format("%0 +6.1G", -inf) == " -INF" +string.format("%0 +6.1G", 100) == "+1E+02" +string.format("%0 +6.1G", 10000) == "+1E+04" +string.format("%0 +6.1G", 100000) == "+1E+05" +string.format("%0 +6.1G", 0.01) == "+00.01" +string.format("%0 +6.1G", 123.456) == "+1E+02" +string.format("%0 +6.1G", 1234560000) == "+1E+09" +string.format("%0 +6.1G", 1.23456e-05) == "+1E-05" +string.format("%0 +6.1G", 123.456789123) == "+1E+02" +string.format("%0 +6.1G", 1234567891.23) == "+1E+09" +string.format("%0 +6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 +6.6G", 0) == "+00000" +string.format("%0 +6.6G", 1) == "+00001" +string.format("%0 +6.6G", -1) == "-00001" +string.format("%0 +6.6G", 2) == "+00002" +string.format("%0 +6.6G", -2) == "-00002" +string.format("%0 +6.6G", 3) == "+00003" +string.format("%0 +6.6G", -3) == "-00003" +string.format("%0 +6.6G", nan) == " +NAN" +string.format("%0 +6.6G", inf) == " +INF" +string.format("%0 +6.6G", -inf) == " -INF" +string.format("%0 +6.6G", 100) == "+00100" +string.format("%0 +6.6G", 0.01) == "+00.01" +string.format("%0 +20G", 0) == "+0000000000000000000" +string.format("%0 +20G", 1) == "+0000000000000000001" +string.format("%0 +20G", -1) == "-0000000000000000001" +string.format("%0 +20G", 2) == "+0000000000000000002" +string.format("%0 +20G", -2) == "-0000000000000000002" +string.format("%0 +20G", 3) == "+0000000000000000003" +string.format("%0 +20G", -3) == "-0000000000000000003" +string.format("%0 +20G", nan) == " +NAN" +string.format("%0 +20G", inf) == " +INF" +string.format("%0 +20G", -inf) == " -INF" +string.format("%0 +20G", 100) == "+0000000000000000100" +string.format("%0 +20G", 10000) == "+0000000000000010000" +string.format("%0 +20G", 100000) == "+0000000000000100000" +string.format("%0 +20G", 1000000) == "+000000000000001E+06" +string.format("%0 +20G", 10000000) == "+000000000000001E+07" +string.format("%0 +20G", 0.01) == "+0000000000000000.01" +string.format("%0 +20G", 0.0001) == "+00000000000000.0001" +string.format("%0 +20G", 1e-05) == "+000000000000001E-05" +string.format("%0 +20G", 1e-06) == "+000000000000001E-06" +string.format("%0 +20G", 1e-07) == "+000000000000001E-07" +string.format("%0 +20G", 123.456) == "+000000000000123.456" +string.format("%0 +20G", 1234560000) == "+000000001.23456E+09" +string.format("%0 +20G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0 +20G", 123.456789123) == "+000000000000123.457" +string.format("%0 +20G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0 +20G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0 +20.0G", 0) == "+0000000000000000000" +string.format("%0 +20.0G", 1) == "+0000000000000000001" +string.format("%0 +20.0G", -1) == "-0000000000000000001" +string.format("%0 +20.0G", 2) == "+0000000000000000002" +string.format("%0 +20.0G", -2) == "-0000000000000000002" +string.format("%0 +20.0G", 3) == "+0000000000000000003" +string.format("%0 +20.0G", -3) == "-0000000000000000003" +string.format("%0 +20.0G", nan) == " +NAN" +string.format("%0 +20.0G", inf) == " +INF" +string.format("%0 +20.0G", -inf) == " -INF" +string.format("%0 +20.0G", 100) == "+000000000000001E+02" +string.format("%0 +20.0G", 10000) == "+000000000000001E+04" +string.format("%0 +20.0G", 100000) == "+000000000000001E+05" +string.format("%0 +20.0G", 1000000) == "+000000000000001E+06" +string.format("%0 +20.0G", 10000000) == "+000000000000001E+07" +string.format("%0 +20.0G", 0.01) == "+0000000000000000.01" +string.format("%0 +20.0G", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.0G", 1e-05) == "+000000000000001E-05" +string.format("%0 +20.0G", 1e-06) == "+000000000000001E-06" +string.format("%0 +20.0G", 1e-07) == "+000000000000001E-07" +string.format("%0 +20.0G", 123.456) == "+000000000000001E+02" +string.format("%0 +20.0G", 1234560000) == "+000000000000001E+09" +string.format("%0 +20.0G", 1.23456e-05) == "+000000000000001E-05" +string.format("%0 +20.0G", 123.456789123) == "+000000000000001E+02" +string.format("%0 +20.0G", 1234567891.23) == "+000000000000001E+09" +string.format("%0 +20.0G", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0 +20.1G", 0) == "+0000000000000000000" +string.format("%0 +20.1G", 1) == "+0000000000000000001" +string.format("%0 +20.1G", -1) == "-0000000000000000001" +string.format("%0 +20.1G", 2) == "+0000000000000000002" +string.format("%0 +20.1G", -2) == "-0000000000000000002" +string.format("%0 +20.1G", 3) == "+0000000000000000003" +string.format("%0 +20.1G", -3) == "-0000000000000000003" +string.format("%0 +20.1G", nan) == " +NAN" +string.format("%0 +20.1G", inf) == " +INF" +string.format("%0 +20.1G", -inf) == " -INF" +string.format("%0 +20.1G", 100) == "+000000000000001E+02" +string.format("%0 +20.1G", 10000) == "+000000000000001E+04" +string.format("%0 +20.1G", 100000) == "+000000000000001E+05" +string.format("%0 +20.1G", 1000000) == "+000000000000001E+06" +string.format("%0 +20.1G", 10000000) == "+000000000000001E+07" +string.format("%0 +20.1G", 0.01) == "+0000000000000000.01" +string.format("%0 +20.1G", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.1G", 1e-05) == "+000000000000001E-05" +string.format("%0 +20.1G", 1e-06) == "+000000000000001E-06" +string.format("%0 +20.1G", 1e-07) == "+000000000000001E-07" +string.format("%0 +20.1G", 123.456) == "+000000000000001E+02" +string.format("%0 +20.1G", 1234560000) == "+000000000000001E+09" +string.format("%0 +20.1G", 1.23456e-05) == "+000000000000001E-05" +string.format("%0 +20.1G", 123.456789123) == "+000000000000001E+02" +string.format("%0 +20.1G", 1234567891.23) == "+000000000000001E+09" +string.format("%0 +20.1G", 1.23456789123e-05) == "+000000000000001E-05" +string.format("%0 +20.6G", 0) == "+0000000000000000000" +string.format("%0 +20.6G", 1) == "+0000000000000000001" +string.format("%0 +20.6G", -1) == "-0000000000000000001" +string.format("%0 +20.6G", 2) == "+0000000000000000002" +string.format("%0 +20.6G", -2) == "-0000000000000000002" +string.format("%0 +20.6G", 3) == "+0000000000000000003" +string.format("%0 +20.6G", -3) == "-0000000000000000003" +string.format("%0 +20.6G", nan) == " +NAN" +string.format("%0 +20.6G", inf) == " +INF" +string.format("%0 +20.6G", -inf) == " -INF" +string.format("%0 +20.6G", 100) == "+0000000000000000100" +string.format("%0 +20.6G", 10000) == "+0000000000000010000" +string.format("%0 +20.6G", 100000) == "+0000000000000100000" +string.format("%0 +20.6G", 1000000) == "+000000000000001E+06" +string.format("%0 +20.6G", 10000000) == "+000000000000001E+07" +string.format("%0 +20.6G", 0.01) == "+0000000000000000.01" +string.format("%0 +20.6G", 0.0001) == "+00000000000000.0001" +string.format("%0 +20.6G", 1e-05) == "+000000000000001E-05" +string.format("%0 +20.6G", 1e-06) == "+000000000000001E-06" +string.format("%0 +20.6G", 1e-07) == "+000000000000001E-07" +string.format("%0 +20.6G", 123.456) == "+000000000000123.456" +string.format("%0 +20.6G", 1234560000) == "+000000001.23456E+09" +string.format("%0 +20.6G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0 +20.6G", 123.456789123) == "+000000000000123.457" +string.format("%0 +20.6G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0 +20.6G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0 -G", 0) == " 0" +string.format("%0 -G", 1) == " 1" +string.format("%0 -G", -1) == "-1" +string.format("%0 -G", 2) == " 2" +string.format("%0 -G", -2) == "-2" +string.format("%0 -G", 3) == " 3" +string.format("%0 -G", -3) == "-3" +string.format("%0 -G", nan) == " NAN" +string.format("%0 -G", inf) == " INF" +string.format("%0 -G", -inf) == "-INF" +string.format("%0 -G", 100) == " 100" +string.format("%0 -G", 10000) == " 10000" +string.format("%0 -G", 100000) == " 100000" +string.format("%0 -G", 1000000) == " 1E+06" +string.format("%0 -G", 10000000) == " 1E+07" +string.format("%0 -G", 0.01) == " 0.01" +string.format("%0 -G", 0.0001) == " 0.0001" +string.format("%0 -G", 1e-05) == " 1E-05" +string.format("%0 -G", 1e-06) == " 1E-06" +string.format("%0 -G", 1e-07) == " 1E-07" +string.format("%0 -G", 123.456) == " 123.456" +string.format("%0 -G", 1234560000) == " 1.23456E+09" +string.format("%0 -G", 1.23456e-05) == " 1.23456E-05" +string.format("%0 -G", 123.456789123) == " 123.457" +string.format("%0 -G", 1234567891.23) == " 1.23457E+09" +string.format("%0 -G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%0 -.0G", 100) == " 1E+02" +string.format("%0 -.0G", 10000) == " 1E+04" +string.format("%0 -.0G", 100000) == " 1E+05" +string.format("%0 -.0G", 123.456) == " 1E+02" +string.format("%0 -.0G", 1234560000) == " 1E+09" +string.format("%0 -.0G", 1.23456e-05) == " 1E-05" +string.format("%0 -.0G", 123.456789123) == " 1E+02" +string.format("%0 -.0G", 1234567891.23) == " 1E+09" +string.format("%0 -.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -.1G", 100) == " 1E+02" +string.format("%0 -.1G", 10000) == " 1E+04" +string.format("%0 -.1G", 100000) == " 1E+05" +string.format("%0 -.1G", 123.456) == " 1E+02" +string.format("%0 -.1G", 1234560000) == " 1E+09" +string.format("%0 -.1G", 1.23456e-05) == " 1E-05" +string.format("%0 -.1G", 123.456789123) == " 1E+02" +string.format("%0 -.1G", 1234567891.23) == " 1E+09" +string.format("%0 -.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -1.0G", 100) == " 1E+02" +string.format("%0 -1.0G", 10000) == " 1E+04" +string.format("%0 -1.0G", 100000) == " 1E+05" +string.format("%0 -1.0G", 123.456) == " 1E+02" +string.format("%0 -1.0G", 1234560000) == " 1E+09" +string.format("%0 -1.0G", 1.23456e-05) == " 1E-05" +string.format("%0 -1.0G", 123.456789123) == " 1E+02" +string.format("%0 -1.0G", 1234567891.23) == " 1E+09" +string.format("%0 -1.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -1.1G", 100) == " 1E+02" +string.format("%0 -1.1G", 10000) == " 1E+04" +string.format("%0 -1.1G", 100000) == " 1E+05" +string.format("%0 -1.1G", 123.456) == " 1E+02" +string.format("%0 -1.1G", 1234560000) == " 1E+09" +string.format("%0 -1.1G", 1.23456e-05) == " 1E-05" +string.format("%0 -1.1G", 123.456789123) == " 1E+02" +string.format("%0 -1.1G", 1234567891.23) == " 1E+09" +string.format("%0 -1.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -2.0G", 100) == " 1E+02" +string.format("%0 -2.0G", 10000) == " 1E+04" +string.format("%0 -2.0G", 100000) == " 1E+05" +string.format("%0 -2.0G", 123.456) == " 1E+02" +string.format("%0 -2.0G", 1234560000) == " 1E+09" +string.format("%0 -2.0G", 1.23456e-05) == " 1E-05" +string.format("%0 -2.0G", 123.456789123) == " 1E+02" +string.format("%0 -2.0G", 1234567891.23) == " 1E+09" +string.format("%0 -2.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -2.1G", 100) == " 1E+02" +string.format("%0 -2.1G", 10000) == " 1E+04" +string.format("%0 -2.1G", 100000) == " 1E+05" +string.format("%0 -2.1G", 123.456) == " 1E+02" +string.format("%0 -2.1G", 1234560000) == " 1E+09" +string.format("%0 -2.1G", 1.23456e-05) == " 1E-05" +string.format("%0 -2.1G", 123.456789123) == " 1E+02" +string.format("%0 -2.1G", 1234567891.23) == " 1E+09" +string.format("%0 -2.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -6G", 0) == " 0 " +string.format("%0 -6G", 1) == " 1 " +string.format("%0 -6G", -1) == "-1 " +string.format("%0 -6G", 2) == " 2 " +string.format("%0 -6G", -2) == "-2 " +string.format("%0 -6G", 3) == " 3 " +string.format("%0 -6G", -3) == "-3 " +string.format("%0 -6G", nan) == " NAN " +string.format("%0 -6G", inf) == " INF " +string.format("%0 -6G", -inf) == "-INF " +string.format("%0 -6G", 100) == " 100 " +string.format("%0 -6G", 0.01) == " 0.01 " +string.format("%0 -6.0G", 0) == " 0 " +string.format("%0 -6.0G", 1) == " 1 " +string.format("%0 -6.0G", -1) == "-1 " +string.format("%0 -6.0G", 2) == " 2 " +string.format("%0 -6.0G", -2) == "-2 " +string.format("%0 -6.0G", 3) == " 3 " +string.format("%0 -6.0G", -3) == "-3 " +string.format("%0 -6.0G", nan) == " NAN " +string.format("%0 -6.0G", inf) == " INF " +string.format("%0 -6.0G", -inf) == "-INF " +string.format("%0 -6.0G", 100) == " 1E+02" +string.format("%0 -6.0G", 10000) == " 1E+04" +string.format("%0 -6.0G", 100000) == " 1E+05" +string.format("%0 -6.0G", 0.01) == " 0.01 " +string.format("%0 -6.0G", 123.456) == " 1E+02" +string.format("%0 -6.0G", 1234560000) == " 1E+09" +string.format("%0 -6.0G", 1.23456e-05) == " 1E-05" +string.format("%0 -6.0G", 123.456789123) == " 1E+02" +string.format("%0 -6.0G", 1234567891.23) == " 1E+09" +string.format("%0 -6.0G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -6.1G", 0) == " 0 " +string.format("%0 -6.1G", 1) == " 1 " +string.format("%0 -6.1G", -1) == "-1 " +string.format("%0 -6.1G", 2) == " 2 " +string.format("%0 -6.1G", -2) == "-2 " +string.format("%0 -6.1G", 3) == " 3 " +string.format("%0 -6.1G", -3) == "-3 " +string.format("%0 -6.1G", nan) == " NAN " +string.format("%0 -6.1G", inf) == " INF " +string.format("%0 -6.1G", -inf) == "-INF " +string.format("%0 -6.1G", 100) == " 1E+02" +string.format("%0 -6.1G", 10000) == " 1E+04" +string.format("%0 -6.1G", 100000) == " 1E+05" +string.format("%0 -6.1G", 0.01) == " 0.01 " +string.format("%0 -6.1G", 123.456) == " 1E+02" +string.format("%0 -6.1G", 1234560000) == " 1E+09" +string.format("%0 -6.1G", 1.23456e-05) == " 1E-05" +string.format("%0 -6.1G", 123.456789123) == " 1E+02" +string.format("%0 -6.1G", 1234567891.23) == " 1E+09" +string.format("%0 -6.1G", 1.23456789123e-05) == " 1E-05" +string.format("%0 -6.6G", 0) == " 0 " +string.format("%0 -6.6G", 1) == " 1 " +string.format("%0 -6.6G", -1) == "-1 " +string.format("%0 -6.6G", 2) == " 2 " +string.format("%0 -6.6G", -2) == "-2 " +string.format("%0 -6.6G", 3) == " 3 " +string.format("%0 -6.6G", -3) == "-3 " +string.format("%0 -6.6G", nan) == " NAN " +string.format("%0 -6.6G", inf) == " INF " +string.format("%0 -6.6G", -inf) == "-INF " +string.format("%0 -6.6G", 100) == " 100 " +string.format("%0 -6.6G", 0.01) == " 0.01 " +string.format("%0 -20G", 0) == " 0 " +string.format("%0 -20G", 1) == " 1 " +string.format("%0 -20G", -1) == "-1 " +string.format("%0 -20G", 2) == " 2 " +string.format("%0 -20G", -2) == "-2 " +string.format("%0 -20G", 3) == " 3 " +string.format("%0 -20G", -3) == "-3 " +string.format("%0 -20G", nan) == " NAN " +string.format("%0 -20G", inf) == " INF " +string.format("%0 -20G", -inf) == "-INF " +string.format("%0 -20G", 100) == " 100 " +string.format("%0 -20G", 10000) == " 10000 " +string.format("%0 -20G", 100000) == " 100000 " +string.format("%0 -20G", 1000000) == " 1E+06 " +string.format("%0 -20G", 10000000) == " 1E+07 " +string.format("%0 -20G", 0.01) == " 0.01 " +string.format("%0 -20G", 0.0001) == " 0.0001 " +string.format("%0 -20G", 1e-05) == " 1E-05 " +string.format("%0 -20G", 1e-06) == " 1E-06 " +string.format("%0 -20G", 1e-07) == " 1E-07 " +string.format("%0 -20G", 123.456) == " 123.456 " +string.format("%0 -20G", 1234560000) == " 1.23456E+09 " +string.format("%0 -20G", 1.23456e-05) == " 1.23456E-05 " +string.format("%0 -20G", 123.456789123) == " 123.457 " +string.format("%0 -20G", 1234567891.23) == " 1.23457E+09 " +string.format("%0 -20G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%0 -20.0G", 0) == " 0 " +string.format("%0 -20.0G", 1) == " 1 " +string.format("%0 -20.0G", -1) == "-1 " +string.format("%0 -20.0G", 2) == " 2 " +string.format("%0 -20.0G", -2) == "-2 " +string.format("%0 -20.0G", 3) == " 3 " +string.format("%0 -20.0G", -3) == "-3 " +string.format("%0 -20.0G", nan) == " NAN " +string.format("%0 -20.0G", inf) == " INF " +string.format("%0 -20.0G", -inf) == "-INF " +string.format("%0 -20.0G", 100) == " 1E+02 " +string.format("%0 -20.0G", 10000) == " 1E+04 " +string.format("%0 -20.0G", 100000) == " 1E+05 " +string.format("%0 -20.0G", 1000000) == " 1E+06 " +string.format("%0 -20.0G", 10000000) == " 1E+07 " +string.format("%0 -20.0G", 0.01) == " 0.01 " +string.format("%0 -20.0G", 0.0001) == " 0.0001 " +string.format("%0 -20.0G", 1e-05) == " 1E-05 " +string.format("%0 -20.0G", 1e-06) == " 1E-06 " +string.format("%0 -20.0G", 1e-07) == " 1E-07 " +string.format("%0 -20.0G", 123.456) == " 1E+02 " +string.format("%0 -20.0G", 1234560000) == " 1E+09 " +string.format("%0 -20.0G", 1.23456e-05) == " 1E-05 " +string.format("%0 -20.0G", 123.456789123) == " 1E+02 " +string.format("%0 -20.0G", 1234567891.23) == " 1E+09 " +string.format("%0 -20.0G", 1.23456789123e-05) == " 1E-05 " +string.format("%0 -20.1G", 0) == " 0 " +string.format("%0 -20.1G", 1) == " 1 " +string.format("%0 -20.1G", -1) == "-1 " +string.format("%0 -20.1G", 2) == " 2 " +string.format("%0 -20.1G", -2) == "-2 " +string.format("%0 -20.1G", 3) == " 3 " +string.format("%0 -20.1G", -3) == "-3 " +string.format("%0 -20.1G", nan) == " NAN " +string.format("%0 -20.1G", inf) == " INF " +string.format("%0 -20.1G", -inf) == "-INF " +string.format("%0 -20.1G", 100) == " 1E+02 " +string.format("%0 -20.1G", 10000) == " 1E+04 " +string.format("%0 -20.1G", 100000) == " 1E+05 " +string.format("%0 -20.1G", 1000000) == " 1E+06 " +string.format("%0 -20.1G", 10000000) == " 1E+07 " +string.format("%0 -20.1G", 0.01) == " 0.01 " +string.format("%0 -20.1G", 0.0001) == " 0.0001 " +string.format("%0 -20.1G", 1e-05) == " 1E-05 " +string.format("%0 -20.1G", 1e-06) == " 1E-06 " +string.format("%0 -20.1G", 1e-07) == " 1E-07 " +string.format("%0 -20.1G", 123.456) == " 1E+02 " +string.format("%0 -20.1G", 1234560000) == " 1E+09 " +string.format("%0 -20.1G", 1.23456e-05) == " 1E-05 " +string.format("%0 -20.1G", 123.456789123) == " 1E+02 " +string.format("%0 -20.1G", 1234567891.23) == " 1E+09 " +string.format("%0 -20.1G", 1.23456789123e-05) == " 1E-05 " +string.format("%0 -20.6G", 0) == " 0 " +string.format("%0 -20.6G", 1) == " 1 " +string.format("%0 -20.6G", -1) == "-1 " +string.format("%0 -20.6G", 2) == " 2 " +string.format("%0 -20.6G", -2) == "-2 " +string.format("%0 -20.6G", 3) == " 3 " +string.format("%0 -20.6G", -3) == "-3 " +string.format("%0 -20.6G", nan) == " NAN " +string.format("%0 -20.6G", inf) == " INF " +string.format("%0 -20.6G", -inf) == "-INF " +string.format("%0 -20.6G", 100) == " 100 " +string.format("%0 -20.6G", 10000) == " 10000 " +string.format("%0 -20.6G", 100000) == " 100000 " +string.format("%0 -20.6G", 1000000) == " 1E+06 " +string.format("%0 -20.6G", 10000000) == " 1E+07 " +string.format("%0 -20.6G", 0.01) == " 0.01 " +string.format("%0 -20.6G", 0.0001) == " 0.0001 " +string.format("%0 -20.6G", 1e-05) == " 1E-05 " +string.format("%0 -20.6G", 1e-06) == " 1E-06 " +string.format("%0 -20.6G", 1e-07) == " 1E-07 " +string.format("%0 -20.6G", 123.456) == " 123.456 " +string.format("%0 -20.6G", 1234560000) == " 1.23456E+09 " +string.format("%0 -20.6G", 1.23456e-05) == " 1.23456E-05 " +string.format("%0 -20.6G", 123.456789123) == " 123.457 " +string.format("%0 -20.6G", 1234567891.23) == " 1.23457E+09 " +string.format("%0 -20.6G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%0 -+G", 0) == "+0" +string.format("%0 -+G", 1) == "+1" +string.format("%0 -+G", -1) == "-1" +string.format("%0 -+G", 2) == "+2" +string.format("%0 -+G", -2) == "-2" +string.format("%0 -+G", 3) == "+3" +string.format("%0 -+G", -3) == "-3" +string.format("%0 -+G", nan) == "+NAN" +string.format("%0 -+G", inf) == "+INF" +string.format("%0 -+G", -inf) == "-INF" +string.format("%0 -+G", 100) == "+100" +string.format("%0 -+G", 10000) == "+10000" +string.format("%0 -+G", 100000) == "+100000" +string.format("%0 -+G", 1000000) == "+1E+06" +string.format("%0 -+G", 10000000) == "+1E+07" +string.format("%0 -+G", 0.01) == "+0.01" +string.format("%0 -+G", 0.0001) == "+0.0001" +string.format("%0 -+G", 1e-05) == "+1E-05" +string.format("%0 -+G", 1e-06) == "+1E-06" +string.format("%0 -+G", 1e-07) == "+1E-07" +string.format("%0 -+G", 123.456) == "+123.456" +string.format("%0 -+G", 1234560000) == "+1.23456E+09" +string.format("%0 -+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0 -+G", 123.456789123) == "+123.457" +string.format("%0 -+G", 1234567891.23) == "+1.23457E+09" +string.format("%0 -+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0 -+.0G", 100) == "+1E+02" +string.format("%0 -+.0G", 10000) == "+1E+04" +string.format("%0 -+.0G", 100000) == "+1E+05" +string.format("%0 -+.0G", 123.456) == "+1E+02" +string.format("%0 -+.0G", 1234560000) == "+1E+09" +string.format("%0 -+.0G", 1.23456e-05) == "+1E-05" +string.format("%0 -+.0G", 123.456789123) == "+1E+02" +string.format("%0 -+.0G", 1234567891.23) == "+1E+09" +string.format("%0 -+.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+.1G", 100) == "+1E+02" +string.format("%0 -+.1G", 10000) == "+1E+04" +string.format("%0 -+.1G", 100000) == "+1E+05" +string.format("%0 -+.1G", 123.456) == "+1E+02" +string.format("%0 -+.1G", 1234560000) == "+1E+09" +string.format("%0 -+.1G", 1.23456e-05) == "+1E-05" +string.format("%0 -+.1G", 123.456789123) == "+1E+02" +string.format("%0 -+.1G", 1234567891.23) == "+1E+09" +string.format("%0 -+.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+1.0G", 100) == "+1E+02" +string.format("%0 -+1.0G", 10000) == "+1E+04" +string.format("%0 -+1.0G", 100000) == "+1E+05" +string.format("%0 -+1.0G", 123.456) == "+1E+02" +string.format("%0 -+1.0G", 1234560000) == "+1E+09" +string.format("%0 -+1.0G", 1.23456e-05) == "+1E-05" +string.format("%0 -+1.0G", 123.456789123) == "+1E+02" +string.format("%0 -+1.0G", 1234567891.23) == "+1E+09" +string.format("%0 -+1.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+1.1G", 100) == "+1E+02" +string.format("%0 -+1.1G", 10000) == "+1E+04" +string.format("%0 -+1.1G", 100000) == "+1E+05" +string.format("%0 -+1.1G", 123.456) == "+1E+02" +string.format("%0 -+1.1G", 1234560000) == "+1E+09" +string.format("%0 -+1.1G", 1.23456e-05) == "+1E-05" +string.format("%0 -+1.1G", 123.456789123) == "+1E+02" +string.format("%0 -+1.1G", 1234567891.23) == "+1E+09" +string.format("%0 -+1.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+2.0G", 100) == "+1E+02" +string.format("%0 -+2.0G", 10000) == "+1E+04" +string.format("%0 -+2.0G", 100000) == "+1E+05" +string.format("%0 -+2.0G", 123.456) == "+1E+02" +string.format("%0 -+2.0G", 1234560000) == "+1E+09" +string.format("%0 -+2.0G", 1.23456e-05) == "+1E-05" +string.format("%0 -+2.0G", 123.456789123) == "+1E+02" +string.format("%0 -+2.0G", 1234567891.23) == "+1E+09" +string.format("%0 -+2.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+2.1G", 100) == "+1E+02" +string.format("%0 -+2.1G", 10000) == "+1E+04" +string.format("%0 -+2.1G", 100000) == "+1E+05" +string.format("%0 -+2.1G", 123.456) == "+1E+02" +string.format("%0 -+2.1G", 1234560000) == "+1E+09" +string.format("%0 -+2.1G", 1.23456e-05) == "+1E-05" +string.format("%0 -+2.1G", 123.456789123) == "+1E+02" +string.format("%0 -+2.1G", 1234567891.23) == "+1E+09" +string.format("%0 -+2.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+6G", 0) == "+0 " +string.format("%0 -+6G", 1) == "+1 " +string.format("%0 -+6G", -1) == "-1 " +string.format("%0 -+6G", 2) == "+2 " +string.format("%0 -+6G", -2) == "-2 " +string.format("%0 -+6G", 3) == "+3 " +string.format("%0 -+6G", -3) == "-3 " +string.format("%0 -+6G", nan) == "+NAN " +string.format("%0 -+6G", inf) == "+INF " +string.format("%0 -+6G", -inf) == "-INF " +string.format("%0 -+6G", 100) == "+100 " +string.format("%0 -+6G", 0.01) == "+0.01 " +string.format("%0 -+6.0G", 0) == "+0 " +string.format("%0 -+6.0G", 1) == "+1 " +string.format("%0 -+6.0G", -1) == "-1 " +string.format("%0 -+6.0G", 2) == "+2 " +string.format("%0 -+6.0G", -2) == "-2 " +string.format("%0 -+6.0G", 3) == "+3 " +string.format("%0 -+6.0G", -3) == "-3 " +string.format("%0 -+6.0G", nan) == "+NAN " +string.format("%0 -+6.0G", inf) == "+INF " +string.format("%0 -+6.0G", -inf) == "-INF " +string.format("%0 -+6.0G", 100) == "+1E+02" +string.format("%0 -+6.0G", 10000) == "+1E+04" +string.format("%0 -+6.0G", 100000) == "+1E+05" +string.format("%0 -+6.0G", 0.01) == "+0.01 " +string.format("%0 -+6.0G", 123.456) == "+1E+02" +string.format("%0 -+6.0G", 1234560000) == "+1E+09" +string.format("%0 -+6.0G", 1.23456e-05) == "+1E-05" +string.format("%0 -+6.0G", 123.456789123) == "+1E+02" +string.format("%0 -+6.0G", 1234567891.23) == "+1E+09" +string.format("%0 -+6.0G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+6.1G", 0) == "+0 " +string.format("%0 -+6.1G", 1) == "+1 " +string.format("%0 -+6.1G", -1) == "-1 " +string.format("%0 -+6.1G", 2) == "+2 " +string.format("%0 -+6.1G", -2) == "-2 " +string.format("%0 -+6.1G", 3) == "+3 " +string.format("%0 -+6.1G", -3) == "-3 " +string.format("%0 -+6.1G", nan) == "+NAN " +string.format("%0 -+6.1G", inf) == "+INF " +string.format("%0 -+6.1G", -inf) == "-INF " +string.format("%0 -+6.1G", 100) == "+1E+02" +string.format("%0 -+6.1G", 10000) == "+1E+04" +string.format("%0 -+6.1G", 100000) == "+1E+05" +string.format("%0 -+6.1G", 0.01) == "+0.01 " +string.format("%0 -+6.1G", 123.456) == "+1E+02" +string.format("%0 -+6.1G", 1234560000) == "+1E+09" +string.format("%0 -+6.1G", 1.23456e-05) == "+1E-05" +string.format("%0 -+6.1G", 123.456789123) == "+1E+02" +string.format("%0 -+6.1G", 1234567891.23) == "+1E+09" +string.format("%0 -+6.1G", 1.23456789123e-05) == "+1E-05" +string.format("%0 -+6.6G", 0) == "+0 " +string.format("%0 -+6.6G", 1) == "+1 " +string.format("%0 -+6.6G", -1) == "-1 " +string.format("%0 -+6.6G", 2) == "+2 " +string.format("%0 -+6.6G", -2) == "-2 " +string.format("%0 -+6.6G", 3) == "+3 " +string.format("%0 -+6.6G", -3) == "-3 " +string.format("%0 -+6.6G", nan) == "+NAN " +string.format("%0 -+6.6G", inf) == "+INF " +string.format("%0 -+6.6G", -inf) == "-INF " +string.format("%0 -+6.6G", 100) == "+100 " +string.format("%0 -+6.6G", 0.01) == "+0.01 " +string.format("%0 -+20G", 0) == "+0 " +string.format("%0 -+20G", 1) == "+1 " +string.format("%0 -+20G", -1) == "-1 " +string.format("%0 -+20G", 2) == "+2 " +string.format("%0 -+20G", -2) == "-2 " +string.format("%0 -+20G", 3) == "+3 " +string.format("%0 -+20G", -3) == "-3 " +string.format("%0 -+20G", nan) == "+NAN " +string.format("%0 -+20G", inf) == "+INF " +string.format("%0 -+20G", -inf) == "-INF " +string.format("%0 -+20G", 100) == "+100 " +string.format("%0 -+20G", 10000) == "+10000 " +string.format("%0 -+20G", 100000) == "+100000 " +string.format("%0 -+20G", 1000000) == "+1E+06 " +string.format("%0 -+20G", 10000000) == "+1E+07 " +string.format("%0 -+20G", 0.01) == "+0.01 " +string.format("%0 -+20G", 0.0001) == "+0.0001 " +string.format("%0 -+20G", 1e-05) == "+1E-05 " +string.format("%0 -+20G", 1e-06) == "+1E-06 " +string.format("%0 -+20G", 1e-07) == "+1E-07 " +string.format("%0 -+20G", 123.456) == "+123.456 " +string.format("%0 -+20G", 1234560000) == "+1.23456E+09 " +string.format("%0 -+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0 -+20G", 123.456789123) == "+123.457 " +string.format("%0 -+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%0 -+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0 -+20.0G", 0) == "+0 " +string.format("%0 -+20.0G", 1) == "+1 " +string.format("%0 -+20.0G", -1) == "-1 " +string.format("%0 -+20.0G", 2) == "+2 " +string.format("%0 -+20.0G", -2) == "-2 " +string.format("%0 -+20.0G", 3) == "+3 " +string.format("%0 -+20.0G", -3) == "-3 " +string.format("%0 -+20.0G", nan) == "+NAN " +string.format("%0 -+20.0G", inf) == "+INF " +string.format("%0 -+20.0G", -inf) == "-INF " +string.format("%0 -+20.0G", 100) == "+1E+02 " +string.format("%0 -+20.0G", 10000) == "+1E+04 " +string.format("%0 -+20.0G", 100000) == "+1E+05 " +string.format("%0 -+20.0G", 1000000) == "+1E+06 " +string.format("%0 -+20.0G", 10000000) == "+1E+07 " +string.format("%0 -+20.0G", 0.01) == "+0.01 " +string.format("%0 -+20.0G", 0.0001) == "+0.0001 " +string.format("%0 -+20.0G", 1e-05) == "+1E-05 " +string.format("%0 -+20.0G", 1e-06) == "+1E-06 " +string.format("%0 -+20.0G", 1e-07) == "+1E-07 " +string.format("%0 -+20.0G", 123.456) == "+1E+02 " +string.format("%0 -+20.0G", 1234560000) == "+1E+09 " +string.format("%0 -+20.0G", 1.23456e-05) == "+1E-05 " +string.format("%0 -+20.0G", 123.456789123) == "+1E+02 " +string.format("%0 -+20.0G", 1234567891.23) == "+1E+09 " +string.format("%0 -+20.0G", 1.23456789123e-05) == "+1E-05 " +string.format("%0 -+20.1G", 0) == "+0 " +string.format("%0 -+20.1G", 1) == "+1 " +string.format("%0 -+20.1G", -1) == "-1 " +string.format("%0 -+20.1G", 2) == "+2 " +string.format("%0 -+20.1G", -2) == "-2 " +string.format("%0 -+20.1G", 3) == "+3 " +string.format("%0 -+20.1G", -3) == "-3 " +string.format("%0 -+20.1G", nan) == "+NAN " +string.format("%0 -+20.1G", inf) == "+INF " +string.format("%0 -+20.1G", -inf) == "-INF " +string.format("%0 -+20.1G", 100) == "+1E+02 " +string.format("%0 -+20.1G", 10000) == "+1E+04 " +string.format("%0 -+20.1G", 100000) == "+1E+05 " +string.format("%0 -+20.1G", 1000000) == "+1E+06 " +string.format("%0 -+20.1G", 10000000) == "+1E+07 " +string.format("%0 -+20.1G", 0.01) == "+0.01 " +string.format("%0 -+20.1G", 0.0001) == "+0.0001 " +string.format("%0 -+20.1G", 1e-05) == "+1E-05 " +string.format("%0 -+20.1G", 1e-06) == "+1E-06 " +string.format("%0 -+20.1G", 1e-07) == "+1E-07 " +string.format("%0 -+20.1G", 123.456) == "+1E+02 " +string.format("%0 -+20.1G", 1234560000) == "+1E+09 " +string.format("%0 -+20.1G", 1.23456e-05) == "+1E-05 " +string.format("%0 -+20.1G", 123.456789123) == "+1E+02 " +string.format("%0 -+20.1G", 1234567891.23) == "+1E+09 " +string.format("%0 -+20.1G", 1.23456789123e-05) == "+1E-05 " +string.format("%0 -+20.6G", 0) == "+0 " +string.format("%0 -+20.6G", 1) == "+1 " +string.format("%0 -+20.6G", -1) == "-1 " +string.format("%0 -+20.6G", 2) == "+2 " +string.format("%0 -+20.6G", -2) == "-2 " +string.format("%0 -+20.6G", 3) == "+3 " +string.format("%0 -+20.6G", -3) == "-3 " +string.format("%0 -+20.6G", nan) == "+NAN " +string.format("%0 -+20.6G", inf) == "+INF " +string.format("%0 -+20.6G", -inf) == "-INF " +string.format("%0 -+20.6G", 100) == "+100 " +string.format("%0 -+20.6G", 10000) == "+10000 " +string.format("%0 -+20.6G", 100000) == "+100000 " +string.format("%0 -+20.6G", 1000000) == "+1E+06 " +string.format("%0 -+20.6G", 10000000) == "+1E+07 " +string.format("%0 -+20.6G", 0.01) == "+0.01 " +string.format("%0 -+20.6G", 0.0001) == "+0.0001 " +string.format("%0 -+20.6G", 1e-05) == "+1E-05 " +string.format("%0 -+20.6G", 1e-06) == "+1E-06 " +string.format("%0 -+20.6G", 1e-07) == "+1E-07 " +string.format("%0 -+20.6G", 123.456) == "+123.456 " +string.format("%0 -+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%0 -+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0 -+20.6G", 123.456789123) == "+123.457 " +string.format("%0 -+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%0 -+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0#G", 0) == "0.00000" +string.format("%0#G", 1) == "1.00000" +string.format("%0#G", -1) == "-1.00000" +string.format("%0#G", 2) == "2.00000" +string.format("%0#G", -2) == "-2.00000" +string.format("%0#G", 3) == "3.00000" +string.format("%0#G", -3) == "-3.00000" +string.format("%0#G", nan) == "NAN" +string.format("%0#G", inf) == "INF" +string.format("%0#G", -inf) == "-INF" +string.format("%0#G", 100) == "100.000" +string.format("%0#G", 10000) == "10000.0" +string.format("%0#G", 100000) == "100000." +string.format("%0#G", 1000000) == "1.00000E+06" +string.format("%0#G", 10000000) == "1.00000E+07" +string.format("%0#G", 0.01) == "0.0100000" +string.format("%0#G", 0.0001) == "0.000100000" +string.format("%0#G", 1e-05) == "1.00000E-05" +string.format("%0#G", 1e-06) == "1.00000E-06" +string.format("%0#G", 1e-07) == "1.00000E-07" +string.format("%0#G", 123.456) == "123.456" +string.format("%0#G", 1234560000) == "1.23456E+09" +string.format("%0#G", 1.23456e-05) == "1.23456E-05" +string.format("%0#G", 123.456789123) == "123.457" +string.format("%0#G", 1234567891.23) == "1.23457E+09" +string.format("%0#G", 1.23456789123e-05) == "1.23457E-05" +string.format("%0#.0G", 0) == "0." +string.format("%0#.0G", 1) == "1." +string.format("%0#.0G", -1) == "-1." +string.format("%0#.0G", 2) == "2." +string.format("%0#.0G", -2) == "-2." +string.format("%0#.0G", 3) == "3." +string.format("%0#.0G", -3) == "-3." +string.format("%0#.0G", 100) == "1.E+02" +string.format("%0#.0G", 10000) == "1.E+04" +string.format("%0#.0G", 100000) == "1.E+05" +string.format("%0#.0G", 1000000) == "1.E+06" +string.format("%0#.0G", 10000000) == "1.E+07" +string.format("%0#.0G", 0.01) == "0.01" +string.format("%0#.0G", 0.0001) == "0.0001" +string.format("%0#.0G", 1e-05) == "1.E-05" +string.format("%0#.0G", 1e-06) == "1.E-06" +string.format("%0#.0G", 1e-07) == "1.E-07" +string.format("%0#.0G", 123.456) == "1.E+02" +string.format("%0#.0G", 1234560000) == "1.E+09" +string.format("%0#.0G", 1.23456e-05) == "1.E-05" +string.format("%0#.0G", 123.456789123) == "1.E+02" +string.format("%0#.0G", 1234567891.23) == "1.E+09" +string.format("%0#.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#.1G", 0) == "0." +string.format("%0#.1G", 1) == "1." +string.format("%0#.1G", -1) == "-1." +string.format("%0#.1G", 2) == "2." +string.format("%0#.1G", -2) == "-2." +string.format("%0#.1G", 3) == "3." +string.format("%0#.1G", -3) == "-3." +string.format("%0#.1G", 100) == "1.E+02" +string.format("%0#.1G", 10000) == "1.E+04" +string.format("%0#.1G", 100000) == "1.E+05" +string.format("%0#.1G", 1000000) == "1.E+06" +string.format("%0#.1G", 10000000) == "1.E+07" +string.format("%0#.1G", 0.01) == "0.01" +string.format("%0#.1G", 0.0001) == "0.0001" +string.format("%0#.1G", 1e-05) == "1.E-05" +string.format("%0#.1G", 1e-06) == "1.E-06" +string.format("%0#.1G", 1e-07) == "1.E-07" +string.format("%0#.1G", 123.456) == "1.E+02" +string.format("%0#.1G", 1234560000) == "1.E+09" +string.format("%0#.1G", 1.23456e-05) == "1.E-05" +string.format("%0#.1G", 123.456789123) == "1.E+02" +string.format("%0#.1G", 1234567891.23) == "1.E+09" +string.format("%0#.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#1.0G", 0) == "0." +string.format("%0#1.0G", 1) == "1." +string.format("%0#1.0G", -1) == "-1." +string.format("%0#1.0G", 2) == "2." +string.format("%0#1.0G", -2) == "-2." +string.format("%0#1.0G", 3) == "3." +string.format("%0#1.0G", -3) == "-3." +string.format("%0#1.0G", 100) == "1.E+02" +string.format("%0#1.0G", 10000) == "1.E+04" +string.format("%0#1.0G", 100000) == "1.E+05" +string.format("%0#1.0G", 1000000) == "1.E+06" +string.format("%0#1.0G", 10000000) == "1.E+07" +string.format("%0#1.0G", 0.01) == "0.01" +string.format("%0#1.0G", 0.0001) == "0.0001" +string.format("%0#1.0G", 1e-05) == "1.E-05" +string.format("%0#1.0G", 1e-06) == "1.E-06" +string.format("%0#1.0G", 1e-07) == "1.E-07" +string.format("%0#1.0G", 123.456) == "1.E+02" +string.format("%0#1.0G", 1234560000) == "1.E+09" +string.format("%0#1.0G", 1.23456e-05) == "1.E-05" +string.format("%0#1.0G", 123.456789123) == "1.E+02" +string.format("%0#1.0G", 1234567891.23) == "1.E+09" +string.format("%0#1.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#1.1G", 0) == "0." +string.format("%0#1.1G", 1) == "1." +string.format("%0#1.1G", -1) == "-1." +string.format("%0#1.1G", 2) == "2." +string.format("%0#1.1G", -2) == "-2." +string.format("%0#1.1G", 3) == "3." +string.format("%0#1.1G", -3) == "-3." +string.format("%0#1.1G", 100) == "1.E+02" +string.format("%0#1.1G", 10000) == "1.E+04" +string.format("%0#1.1G", 100000) == "1.E+05" +string.format("%0#1.1G", 1000000) == "1.E+06" +string.format("%0#1.1G", 10000000) == "1.E+07" +string.format("%0#1.1G", 0.01) == "0.01" +string.format("%0#1.1G", 0.0001) == "0.0001" +string.format("%0#1.1G", 1e-05) == "1.E-05" +string.format("%0#1.1G", 1e-06) == "1.E-06" +string.format("%0#1.1G", 1e-07) == "1.E-07" +string.format("%0#1.1G", 123.456) == "1.E+02" +string.format("%0#1.1G", 1234560000) == "1.E+09" +string.format("%0#1.1G", 1.23456e-05) == "1.E-05" +string.format("%0#1.1G", 123.456789123) == "1.E+02" +string.format("%0#1.1G", 1234567891.23) == "1.E+09" +string.format("%0#1.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#2.0G", 0) == "0." +string.format("%0#2.0G", 1) == "1." +string.format("%0#2.0G", -1) == "-1." +string.format("%0#2.0G", 2) == "2." +string.format("%0#2.0G", -2) == "-2." +string.format("%0#2.0G", 3) == "3." +string.format("%0#2.0G", -3) == "-3." +string.format("%0#2.0G", 100) == "1.E+02" +string.format("%0#2.0G", 10000) == "1.E+04" +string.format("%0#2.0G", 100000) == "1.E+05" +string.format("%0#2.0G", 1000000) == "1.E+06" +string.format("%0#2.0G", 10000000) == "1.E+07" +string.format("%0#2.0G", 0.01) == "0.01" +string.format("%0#2.0G", 0.0001) == "0.0001" +string.format("%0#2.0G", 1e-05) == "1.E-05" +string.format("%0#2.0G", 1e-06) == "1.E-06" +string.format("%0#2.0G", 1e-07) == "1.E-07" +string.format("%0#2.0G", 123.456) == "1.E+02" +string.format("%0#2.0G", 1234560000) == "1.E+09" +string.format("%0#2.0G", 1.23456e-05) == "1.E-05" +string.format("%0#2.0G", 123.456789123) == "1.E+02" +string.format("%0#2.0G", 1234567891.23) == "1.E+09" +string.format("%0#2.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#2.1G", 0) == "0." +string.format("%0#2.1G", 1) == "1." +string.format("%0#2.1G", -1) == "-1." +string.format("%0#2.1G", 2) == "2." +string.format("%0#2.1G", -2) == "-2." +string.format("%0#2.1G", 3) == "3." +string.format("%0#2.1G", -3) == "-3." +string.format("%0#2.1G", 100) == "1.E+02" +string.format("%0#2.1G", 10000) == "1.E+04" +string.format("%0#2.1G", 100000) == "1.E+05" +string.format("%0#2.1G", 1000000) == "1.E+06" +string.format("%0#2.1G", 10000000) == "1.E+07" +string.format("%0#2.1G", 0.01) == "0.01" +string.format("%0#2.1G", 0.0001) == "0.0001" +string.format("%0#2.1G", 1e-05) == "1.E-05" +string.format("%0#2.1G", 1e-06) == "1.E-06" +string.format("%0#2.1G", 1e-07) == "1.E-07" +string.format("%0#2.1G", 123.456) == "1.E+02" +string.format("%0#2.1G", 1234560000) == "1.E+09" +string.format("%0#2.1G", 1.23456e-05) == "1.E-05" +string.format("%0#2.1G", 123.456789123) == "1.E+02" +string.format("%0#2.1G", 1234567891.23) == "1.E+09" +string.format("%0#2.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#6G", nan) == " NAN" +string.format("%0#6G", inf) == " INF" +string.format("%0#6G", -inf) == " -INF" +string.format("%0#6.0G", 0) == "00000." +string.format("%0#6.0G", 1) == "00001." +string.format("%0#6.0G", -1) == "-0001." +string.format("%0#6.0G", 2) == "00002." +string.format("%0#6.0G", -2) == "-0002." +string.format("%0#6.0G", 3) == "00003." +string.format("%0#6.0G", -3) == "-0003." +string.format("%0#6.0G", nan) == " NAN" +string.format("%0#6.0G", inf) == " INF" +string.format("%0#6.0G", -inf) == " -INF" +string.format("%0#6.0G", 100) == "1.E+02" +string.format("%0#6.0G", 10000) == "1.E+04" +string.format("%0#6.0G", 100000) == "1.E+05" +string.format("%0#6.0G", 1000000) == "1.E+06" +string.format("%0#6.0G", 10000000) == "1.E+07" +string.format("%0#6.0G", 0.01) == "000.01" +string.format("%0#6.0G", 0.0001) == "0.0001" +string.format("%0#6.0G", 1e-05) == "1.E-05" +string.format("%0#6.0G", 1e-06) == "1.E-06" +string.format("%0#6.0G", 1e-07) == "1.E-07" +string.format("%0#6.0G", 123.456) == "1.E+02" +string.format("%0#6.0G", 1234560000) == "1.E+09" +string.format("%0#6.0G", 1.23456e-05) == "1.E-05" +string.format("%0#6.0G", 123.456789123) == "1.E+02" +string.format("%0#6.0G", 1234567891.23) == "1.E+09" +string.format("%0#6.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#6.1G", 0) == "00000." +string.format("%0#6.1G", 1) == "00001." +string.format("%0#6.1G", -1) == "-0001." +string.format("%0#6.1G", 2) == "00002." +string.format("%0#6.1G", -2) == "-0002." +string.format("%0#6.1G", 3) == "00003." +string.format("%0#6.1G", -3) == "-0003." +string.format("%0#6.1G", nan) == " NAN" +string.format("%0#6.1G", inf) == " INF" +string.format("%0#6.1G", -inf) == " -INF" +string.format("%0#6.1G", 100) == "1.E+02" +string.format("%0#6.1G", 10000) == "1.E+04" +string.format("%0#6.1G", 100000) == "1.E+05" +string.format("%0#6.1G", 1000000) == "1.E+06" +string.format("%0#6.1G", 10000000) == "1.E+07" +string.format("%0#6.1G", 0.01) == "000.01" +string.format("%0#6.1G", 0.0001) == "0.0001" +string.format("%0#6.1G", 1e-05) == "1.E-05" +string.format("%0#6.1G", 1e-06) == "1.E-06" +string.format("%0#6.1G", 1e-07) == "1.E-07" +string.format("%0#6.1G", 123.456) == "1.E+02" +string.format("%0#6.1G", 1234560000) == "1.E+09" +string.format("%0#6.1G", 1.23456e-05) == "1.E-05" +string.format("%0#6.1G", 123.456789123) == "1.E+02" +string.format("%0#6.1G", 1234567891.23) == "1.E+09" +string.format("%0#6.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#6.6G", nan) == " NAN" +string.format("%0#6.6G", inf) == " INF" +string.format("%0#6.6G", -inf) == " -INF" +string.format("%0#20G", 0) == "00000000000000.00000" +string.format("%0#20G", 1) == "00000000000001.00000" +string.format("%0#20G", -1) == "-0000000000001.00000" +string.format("%0#20G", 2) == "00000000000002.00000" +string.format("%0#20G", -2) == "-0000000000002.00000" +string.format("%0#20G", 3) == "00000000000003.00000" +string.format("%0#20G", -3) == "-0000000000003.00000" +string.format("%0#20G", nan) == " NAN" +string.format("%0#20G", inf) == " INF" +string.format("%0#20G", -inf) == " -INF" +string.format("%0#20G", 100) == "0000000000000100.000" +string.format("%0#20G", 10000) == "000000000000010000.0" +string.format("%0#20G", 100000) == "0000000000000100000." +string.format("%0#20G", 1000000) == "0000000001.00000E+06" +string.format("%0#20G", 10000000) == "0000000001.00000E+07" +string.format("%0#20G", 0.01) == "000000000000.0100000" +string.format("%0#20G", 0.0001) == "0000000000.000100000" +string.format("%0#20G", 1e-05) == "0000000001.00000E-05" +string.format("%0#20G", 1e-06) == "0000000001.00000E-06" +string.format("%0#20G", 1e-07) == "0000000001.00000E-07" +string.format("%0#20G", 123.456) == "0000000000000123.456" +string.format("%0#20G", 1234560000) == "0000000001.23456E+09" +string.format("%0#20G", 1.23456e-05) == "0000000001.23456E-05" +string.format("%0#20G", 123.456789123) == "0000000000000123.457" +string.format("%0#20G", 1234567891.23) == "0000000001.23457E+09" +string.format("%0#20G", 1.23456789123e-05) == "0000000001.23457E-05" +string.format("%0#20.0G", 0) == "0000000000000000000." +string.format("%0#20.0G", 1) == "0000000000000000001." +string.format("%0#20.0G", -1) == "-000000000000000001." +string.format("%0#20.0G", 2) == "0000000000000000002." +string.format("%0#20.0G", -2) == "-000000000000000002." +string.format("%0#20.0G", 3) == "0000000000000000003." +string.format("%0#20.0G", -3) == "-000000000000000003." +string.format("%0#20.0G", nan) == " NAN" +string.format("%0#20.0G", inf) == " INF" +string.format("%0#20.0G", -inf) == " -INF" +string.format("%0#20.0G", 100) == "000000000000001.E+02" +string.format("%0#20.0G", 10000) == "000000000000001.E+04" +string.format("%0#20.0G", 100000) == "000000000000001.E+05" +string.format("%0#20.0G", 1000000) == "000000000000001.E+06" +string.format("%0#20.0G", 10000000) == "000000000000001.E+07" +string.format("%0#20.0G", 0.01) == "00000000000000000.01" +string.format("%0#20.0G", 0.0001) == "000000000000000.0001" +string.format("%0#20.0G", 1e-05) == "000000000000001.E-05" +string.format("%0#20.0G", 1e-06) == "000000000000001.E-06" +string.format("%0#20.0G", 1e-07) == "000000000000001.E-07" +string.format("%0#20.0G", 123.456) == "000000000000001.E+02" +string.format("%0#20.0G", 1234560000) == "000000000000001.E+09" +string.format("%0#20.0G", 1.23456e-05) == "000000000000001.E-05" +string.format("%0#20.0G", 123.456789123) == "000000000000001.E+02" +string.format("%0#20.0G", 1234567891.23) == "000000000000001.E+09" +string.format("%0#20.0G", 1.23456789123e-05) == "000000000000001.E-05" +string.format("%0#20.1G", 0) == "0000000000000000000." +string.format("%0#20.1G", 1) == "0000000000000000001." +string.format("%0#20.1G", -1) == "-000000000000000001." +string.format("%0#20.1G", 2) == "0000000000000000002." +string.format("%0#20.1G", -2) == "-000000000000000002." +string.format("%0#20.1G", 3) == "0000000000000000003." +string.format("%0#20.1G", -3) == "-000000000000000003." +string.format("%0#20.1G", nan) == " NAN" +string.format("%0#20.1G", inf) == " INF" +string.format("%0#20.1G", -inf) == " -INF" +string.format("%0#20.1G", 100) == "000000000000001.E+02" +string.format("%0#20.1G", 10000) == "000000000000001.E+04" +string.format("%0#20.1G", 100000) == "000000000000001.E+05" +string.format("%0#20.1G", 1000000) == "000000000000001.E+06" +string.format("%0#20.1G", 10000000) == "000000000000001.E+07" +string.format("%0#20.1G", 0.01) == "00000000000000000.01" +string.format("%0#20.1G", 0.0001) == "000000000000000.0001" +string.format("%0#20.1G", 1e-05) == "000000000000001.E-05" +string.format("%0#20.1G", 1e-06) == "000000000000001.E-06" +string.format("%0#20.1G", 1e-07) == "000000000000001.E-07" +string.format("%0#20.1G", 123.456) == "000000000000001.E+02" +string.format("%0#20.1G", 1234560000) == "000000000000001.E+09" +string.format("%0#20.1G", 1.23456e-05) == "000000000000001.E-05" +string.format("%0#20.1G", 123.456789123) == "000000000000001.E+02" +string.format("%0#20.1G", 1234567891.23) == "000000000000001.E+09" +string.format("%0#20.1G", 1.23456789123e-05) == "000000000000001.E-05" +string.format("%0#20.6G", 0) == "00000000000000.00000" +string.format("%0#20.6G", 1) == "00000000000001.00000" +string.format("%0#20.6G", -1) == "-0000000000001.00000" +string.format("%0#20.6G", 2) == "00000000000002.00000" +string.format("%0#20.6G", -2) == "-0000000000002.00000" +string.format("%0#20.6G", 3) == "00000000000003.00000" +string.format("%0#20.6G", -3) == "-0000000000003.00000" +string.format("%0#20.6G", nan) == " NAN" +string.format("%0#20.6G", inf) == " INF" +string.format("%0#20.6G", -inf) == " -INF" +string.format("%0#20.6G", 100) == "0000000000000100.000" +string.format("%0#20.6G", 10000) == "000000000000010000.0" +string.format("%0#20.6G", 100000) == "0000000000000100000." +string.format("%0#20.6G", 1000000) == "0000000001.00000E+06" +string.format("%0#20.6G", 10000000) == "0000000001.00000E+07" +string.format("%0#20.6G", 0.01) == "000000000000.0100000" +string.format("%0#20.6G", 0.0001) == "0000000000.000100000" +string.format("%0#20.6G", 1e-05) == "0000000001.00000E-05" +string.format("%0#20.6G", 1e-06) == "0000000001.00000E-06" +string.format("%0#20.6G", 1e-07) == "0000000001.00000E-07" +string.format("%0#20.6G", 123.456) == "0000000000000123.456" +string.format("%0#20.6G", 1234560000) == "0000000001.23456E+09" +string.format("%0#20.6G", 1.23456e-05) == "0000000001.23456E-05" +string.format("%0#20.6G", 123.456789123) == "0000000000000123.457" +string.format("%0#20.6G", 1234567891.23) == "0000000001.23457E+09" +string.format("%0#20.6G", 1.23456789123e-05) == "0000000001.23457E-05" +string.format("%0#+G", 0) == "+0.00000" +string.format("%0#+G", 1) == "+1.00000" +string.format("%0#+G", -1) == "-1.00000" +string.format("%0#+G", 2) == "+2.00000" +string.format("%0#+G", -2) == "-2.00000" +string.format("%0#+G", 3) == "+3.00000" +string.format("%0#+G", -3) == "-3.00000" +string.format("%0#+G", nan) == "+NAN" +string.format("%0#+G", inf) == "+INF" +string.format("%0#+G", -inf) == "-INF" +string.format("%0#+G", 100) == "+100.000" +string.format("%0#+G", 10000) == "+10000.0" +string.format("%0#+G", 100000) == "+100000." +string.format("%0#+G", 1000000) == "+1.00000E+06" +string.format("%0#+G", 10000000) == "+1.00000E+07" +string.format("%0#+G", 0.01) == "+0.0100000" +string.format("%0#+G", 0.0001) == "+0.000100000" +string.format("%0#+G", 1e-05) == "+1.00000E-05" +string.format("%0#+G", 1e-06) == "+1.00000E-06" +string.format("%0#+G", 1e-07) == "+1.00000E-07" +string.format("%0#+G", 123.456) == "+123.456" +string.format("%0#+G", 1234560000) == "+1.23456E+09" +string.format("%0#+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0#+G", 123.456789123) == "+123.457" +string.format("%0#+G", 1234567891.23) == "+1.23457E+09" +string.format("%0#+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0#+.0G", 0) == "+0." +string.format("%0#+.0G", 1) == "+1." +string.format("%0#+.0G", -1) == "-1." +string.format("%0#+.0G", 2) == "+2." +string.format("%0#+.0G", -2) == "-2." +string.format("%0#+.0G", 3) == "+3." +string.format("%0#+.0G", -3) == "-3." +string.format("%0#+.0G", 100) == "+1.E+02" +string.format("%0#+.0G", 10000) == "+1.E+04" +string.format("%0#+.0G", 100000) == "+1.E+05" +string.format("%0#+.0G", 1000000) == "+1.E+06" +string.format("%0#+.0G", 10000000) == "+1.E+07" +string.format("%0#+.0G", 0.01) == "+0.01" +string.format("%0#+.0G", 0.0001) == "+0.0001" +string.format("%0#+.0G", 1e-05) == "+1.E-05" +string.format("%0#+.0G", 1e-06) == "+1.E-06" +string.format("%0#+.0G", 1e-07) == "+1.E-07" +string.format("%0#+.0G", 123.456) == "+1.E+02" +string.format("%0#+.0G", 1234560000) == "+1.E+09" +string.format("%0#+.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#+.0G", 123.456789123) == "+1.E+02" +string.format("%0#+.0G", 1234567891.23) == "+1.E+09" +string.format("%0#+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+.1G", 0) == "+0." +string.format("%0#+.1G", 1) == "+1." +string.format("%0#+.1G", -1) == "-1." +string.format("%0#+.1G", 2) == "+2." +string.format("%0#+.1G", -2) == "-2." +string.format("%0#+.1G", 3) == "+3." +string.format("%0#+.1G", -3) == "-3." +string.format("%0#+.1G", 100) == "+1.E+02" +string.format("%0#+.1G", 10000) == "+1.E+04" +string.format("%0#+.1G", 100000) == "+1.E+05" +string.format("%0#+.1G", 1000000) == "+1.E+06" +string.format("%0#+.1G", 10000000) == "+1.E+07" +string.format("%0#+.1G", 0.01) == "+0.01" +string.format("%0#+.1G", 0.0001) == "+0.0001" +string.format("%0#+.1G", 1e-05) == "+1.E-05" +string.format("%0#+.1G", 1e-06) == "+1.E-06" +string.format("%0#+.1G", 1e-07) == "+1.E-07" +string.format("%0#+.1G", 123.456) == "+1.E+02" +string.format("%0#+.1G", 1234560000) == "+1.E+09" +string.format("%0#+.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#+.1G", 123.456789123) == "+1.E+02" +string.format("%0#+.1G", 1234567891.23) == "+1.E+09" +string.format("%0#+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+1.0G", 0) == "+0." +string.format("%0#+1.0G", 1) == "+1." +string.format("%0#+1.0G", -1) == "-1." +string.format("%0#+1.0G", 2) == "+2." +string.format("%0#+1.0G", -2) == "-2." +string.format("%0#+1.0G", 3) == "+3." +string.format("%0#+1.0G", -3) == "-3." +string.format("%0#+1.0G", 100) == "+1.E+02" +string.format("%0#+1.0G", 10000) == "+1.E+04" +string.format("%0#+1.0G", 100000) == "+1.E+05" +string.format("%0#+1.0G", 1000000) == "+1.E+06" +string.format("%0#+1.0G", 10000000) == "+1.E+07" +string.format("%0#+1.0G", 0.01) == "+0.01" +string.format("%0#+1.0G", 0.0001) == "+0.0001" +string.format("%0#+1.0G", 1e-05) == "+1.E-05" +string.format("%0#+1.0G", 1e-06) == "+1.E-06" +string.format("%0#+1.0G", 1e-07) == "+1.E-07" +string.format("%0#+1.0G", 123.456) == "+1.E+02" +string.format("%0#+1.0G", 1234560000) == "+1.E+09" +string.format("%0#+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#+1.0G", 123.456789123) == "+1.E+02" +string.format("%0#+1.0G", 1234567891.23) == "+1.E+09" +string.format("%0#+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+1.1G", 0) == "+0." +string.format("%0#+1.1G", 1) == "+1." +string.format("%0#+1.1G", -1) == "-1." +string.format("%0#+1.1G", 2) == "+2." +string.format("%0#+1.1G", -2) == "-2." +string.format("%0#+1.1G", 3) == "+3." +string.format("%0#+1.1G", -3) == "-3." +string.format("%0#+1.1G", 100) == "+1.E+02" +string.format("%0#+1.1G", 10000) == "+1.E+04" +string.format("%0#+1.1G", 100000) == "+1.E+05" +string.format("%0#+1.1G", 1000000) == "+1.E+06" +string.format("%0#+1.1G", 10000000) == "+1.E+07" +string.format("%0#+1.1G", 0.01) == "+0.01" +string.format("%0#+1.1G", 0.0001) == "+0.0001" +string.format("%0#+1.1G", 1e-05) == "+1.E-05" +string.format("%0#+1.1G", 1e-06) == "+1.E-06" +string.format("%0#+1.1G", 1e-07) == "+1.E-07" +string.format("%0#+1.1G", 123.456) == "+1.E+02" +string.format("%0#+1.1G", 1234560000) == "+1.E+09" +string.format("%0#+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#+1.1G", 123.456789123) == "+1.E+02" +string.format("%0#+1.1G", 1234567891.23) == "+1.E+09" +string.format("%0#+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+2.0G", 0) == "+0." +string.format("%0#+2.0G", 1) == "+1." +string.format("%0#+2.0G", -1) == "-1." +string.format("%0#+2.0G", 2) == "+2." +string.format("%0#+2.0G", -2) == "-2." +string.format("%0#+2.0G", 3) == "+3." +string.format("%0#+2.0G", -3) == "-3." +string.format("%0#+2.0G", 100) == "+1.E+02" +string.format("%0#+2.0G", 10000) == "+1.E+04" +string.format("%0#+2.0G", 100000) == "+1.E+05" +string.format("%0#+2.0G", 1000000) == "+1.E+06" +string.format("%0#+2.0G", 10000000) == "+1.E+07" +string.format("%0#+2.0G", 0.01) == "+0.01" +string.format("%0#+2.0G", 0.0001) == "+0.0001" +string.format("%0#+2.0G", 1e-05) == "+1.E-05" +string.format("%0#+2.0G", 1e-06) == "+1.E-06" +string.format("%0#+2.0G", 1e-07) == "+1.E-07" +string.format("%0#+2.0G", 123.456) == "+1.E+02" +string.format("%0#+2.0G", 1234560000) == "+1.E+09" +string.format("%0#+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#+2.0G", 123.456789123) == "+1.E+02" +string.format("%0#+2.0G", 1234567891.23) == "+1.E+09" +string.format("%0#+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+2.1G", 0) == "+0." +string.format("%0#+2.1G", 1) == "+1." +string.format("%0#+2.1G", -1) == "-1." +string.format("%0#+2.1G", 2) == "+2." +string.format("%0#+2.1G", -2) == "-2." +string.format("%0#+2.1G", 3) == "+3." +string.format("%0#+2.1G", -3) == "-3." +string.format("%0#+2.1G", 100) == "+1.E+02" +string.format("%0#+2.1G", 10000) == "+1.E+04" +string.format("%0#+2.1G", 100000) == "+1.E+05" +string.format("%0#+2.1G", 1000000) == "+1.E+06" +string.format("%0#+2.1G", 10000000) == "+1.E+07" +string.format("%0#+2.1G", 0.01) == "+0.01" +string.format("%0#+2.1G", 0.0001) == "+0.0001" +string.format("%0#+2.1G", 1e-05) == "+1.E-05" +string.format("%0#+2.1G", 1e-06) == "+1.E-06" +string.format("%0#+2.1G", 1e-07) == "+1.E-07" +string.format("%0#+2.1G", 123.456) == "+1.E+02" +string.format("%0#+2.1G", 1234560000) == "+1.E+09" +string.format("%0#+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#+2.1G", 123.456789123) == "+1.E+02" +string.format("%0#+2.1G", 1234567891.23) == "+1.E+09" +string.format("%0#+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+6G", nan) == " +NAN" +string.format("%0#+6G", inf) == " +INF" +string.format("%0#+6G", -inf) == " -INF" +string.format("%0#+6.0G", 0) == "+0000." +string.format("%0#+6.0G", 1) == "+0001." +string.format("%0#+6.0G", -1) == "-0001." +string.format("%0#+6.0G", 2) == "+0002." +string.format("%0#+6.0G", -2) == "-0002." +string.format("%0#+6.0G", 3) == "+0003." +string.format("%0#+6.0G", -3) == "-0003." +string.format("%0#+6.0G", nan) == " +NAN" +string.format("%0#+6.0G", inf) == " +INF" +string.format("%0#+6.0G", -inf) == " -INF" +string.format("%0#+6.0G", 100) == "+1.E+02" +string.format("%0#+6.0G", 10000) == "+1.E+04" +string.format("%0#+6.0G", 100000) == "+1.E+05" +string.format("%0#+6.0G", 1000000) == "+1.E+06" +string.format("%0#+6.0G", 10000000) == "+1.E+07" +string.format("%0#+6.0G", 0.01) == "+00.01" +string.format("%0#+6.0G", 0.0001) == "+0.0001" +string.format("%0#+6.0G", 1e-05) == "+1.E-05" +string.format("%0#+6.0G", 1e-06) == "+1.E-06" +string.format("%0#+6.0G", 1e-07) == "+1.E-07" +string.format("%0#+6.0G", 123.456) == "+1.E+02" +string.format("%0#+6.0G", 1234560000) == "+1.E+09" +string.format("%0#+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#+6.0G", 123.456789123) == "+1.E+02" +string.format("%0#+6.0G", 1234567891.23) == "+1.E+09" +string.format("%0#+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+6.1G", 0) == "+0000." +string.format("%0#+6.1G", 1) == "+0001." +string.format("%0#+6.1G", -1) == "-0001." +string.format("%0#+6.1G", 2) == "+0002." +string.format("%0#+6.1G", -2) == "-0002." +string.format("%0#+6.1G", 3) == "+0003." +string.format("%0#+6.1G", -3) == "-0003." +string.format("%0#+6.1G", nan) == " +NAN" +string.format("%0#+6.1G", inf) == " +INF" +string.format("%0#+6.1G", -inf) == " -INF" +string.format("%0#+6.1G", 100) == "+1.E+02" +string.format("%0#+6.1G", 10000) == "+1.E+04" +string.format("%0#+6.1G", 100000) == "+1.E+05" +string.format("%0#+6.1G", 1000000) == "+1.E+06" +string.format("%0#+6.1G", 10000000) == "+1.E+07" +string.format("%0#+6.1G", 0.01) == "+00.01" +string.format("%0#+6.1G", 0.0001) == "+0.0001" +string.format("%0#+6.1G", 1e-05) == "+1.E-05" +string.format("%0#+6.1G", 1e-06) == "+1.E-06" +string.format("%0#+6.1G", 1e-07) == "+1.E-07" +string.format("%0#+6.1G", 123.456) == "+1.E+02" +string.format("%0#+6.1G", 1234560000) == "+1.E+09" +string.format("%0#+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#+6.1G", 123.456789123) == "+1.E+02" +string.format("%0#+6.1G", 1234567891.23) == "+1.E+09" +string.format("%0#+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#+6.6G", nan) == " +NAN" +string.format("%0#+6.6G", inf) == " +INF" +string.format("%0#+6.6G", -inf) == " -INF" +string.format("%0#+20G", 0) == "+0000000000000.00000" +string.format("%0#+20G", 1) == "+0000000000001.00000" +string.format("%0#+20G", -1) == "-0000000000001.00000" +string.format("%0#+20G", 2) == "+0000000000002.00000" +string.format("%0#+20G", -2) == "-0000000000002.00000" +string.format("%0#+20G", 3) == "+0000000000003.00000" +string.format("%0#+20G", -3) == "-0000000000003.00000" +string.format("%0#+20G", nan) == " +NAN" +string.format("%0#+20G", inf) == " +INF" +string.format("%0#+20G", -inf) == " -INF" +string.format("%0#+20G", 100) == "+000000000000100.000" +string.format("%0#+20G", 10000) == "+00000000000010000.0" +string.format("%0#+20G", 100000) == "+000000000000100000." +string.format("%0#+20G", 1000000) == "+000000001.00000E+06" +string.format("%0#+20G", 10000000) == "+000000001.00000E+07" +string.format("%0#+20G", 0.01) == "+00000000000.0100000" +string.format("%0#+20G", 0.0001) == "+000000000.000100000" +string.format("%0#+20G", 1e-05) == "+000000001.00000E-05" +string.format("%0#+20G", 1e-06) == "+000000001.00000E-06" +string.format("%0#+20G", 1e-07) == "+000000001.00000E-07" +string.format("%0#+20G", 123.456) == "+000000000000123.456" +string.format("%0#+20G", 1234560000) == "+000000001.23456E+09" +string.format("%0#+20G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0#+20G", 123.456789123) == "+000000000000123.457" +string.format("%0#+20G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0#+20G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0#+20.0G", 0) == "+000000000000000000." +string.format("%0#+20.0G", 1) == "+000000000000000001." +string.format("%0#+20.0G", -1) == "-000000000000000001." +string.format("%0#+20.0G", 2) == "+000000000000000002." +string.format("%0#+20.0G", -2) == "-000000000000000002." +string.format("%0#+20.0G", 3) == "+000000000000000003." +string.format("%0#+20.0G", -3) == "-000000000000000003." +string.format("%0#+20.0G", nan) == " +NAN" +string.format("%0#+20.0G", inf) == " +INF" +string.format("%0#+20.0G", -inf) == " -INF" +string.format("%0#+20.0G", 100) == "+00000000000001.E+02" +string.format("%0#+20.0G", 10000) == "+00000000000001.E+04" +string.format("%0#+20.0G", 100000) == "+00000000000001.E+05" +string.format("%0#+20.0G", 1000000) == "+00000000000001.E+06" +string.format("%0#+20.0G", 10000000) == "+00000000000001.E+07" +string.format("%0#+20.0G", 0.01) == "+0000000000000000.01" +string.format("%0#+20.0G", 0.0001) == "+00000000000000.0001" +string.format("%0#+20.0G", 1e-05) == "+00000000000001.E-05" +string.format("%0#+20.0G", 1e-06) == "+00000000000001.E-06" +string.format("%0#+20.0G", 1e-07) == "+00000000000001.E-07" +string.format("%0#+20.0G", 123.456) == "+00000000000001.E+02" +string.format("%0#+20.0G", 1234560000) == "+00000000000001.E+09" +string.format("%0#+20.0G", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0#+20.0G", 123.456789123) == "+00000000000001.E+02" +string.format("%0#+20.0G", 1234567891.23) == "+00000000000001.E+09" +string.format("%0#+20.0G", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0#+20.1G", 0) == "+000000000000000000." +string.format("%0#+20.1G", 1) == "+000000000000000001." +string.format("%0#+20.1G", -1) == "-000000000000000001." +string.format("%0#+20.1G", 2) == "+000000000000000002." +string.format("%0#+20.1G", -2) == "-000000000000000002." +string.format("%0#+20.1G", 3) == "+000000000000000003." +string.format("%0#+20.1G", -3) == "-000000000000000003." +string.format("%0#+20.1G", nan) == " +NAN" +string.format("%0#+20.1G", inf) == " +INF" +string.format("%0#+20.1G", -inf) == " -INF" +string.format("%0#+20.1G", 100) == "+00000000000001.E+02" +string.format("%0#+20.1G", 10000) == "+00000000000001.E+04" +string.format("%0#+20.1G", 100000) == "+00000000000001.E+05" +string.format("%0#+20.1G", 1000000) == "+00000000000001.E+06" +string.format("%0#+20.1G", 10000000) == "+00000000000001.E+07" +string.format("%0#+20.1G", 0.01) == "+0000000000000000.01" +string.format("%0#+20.1G", 0.0001) == "+00000000000000.0001" +string.format("%0#+20.1G", 1e-05) == "+00000000000001.E-05" +string.format("%0#+20.1G", 1e-06) == "+00000000000001.E-06" +string.format("%0#+20.1G", 1e-07) == "+00000000000001.E-07" +string.format("%0#+20.1G", 123.456) == "+00000000000001.E+02" +string.format("%0#+20.1G", 1234560000) == "+00000000000001.E+09" +string.format("%0#+20.1G", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0#+20.1G", 123.456789123) == "+00000000000001.E+02" +string.format("%0#+20.1G", 1234567891.23) == "+00000000000001.E+09" +string.format("%0#+20.1G", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0#+20.6G", 0) == "+0000000000000.00000" +string.format("%0#+20.6G", 1) == "+0000000000001.00000" +string.format("%0#+20.6G", -1) == "-0000000000001.00000" +string.format("%0#+20.6G", 2) == "+0000000000002.00000" +string.format("%0#+20.6G", -2) == "-0000000000002.00000" +string.format("%0#+20.6G", 3) == "+0000000000003.00000" +string.format("%0#+20.6G", -3) == "-0000000000003.00000" +string.format("%0#+20.6G", nan) == " +NAN" +string.format("%0#+20.6G", inf) == " +INF" +string.format("%0#+20.6G", -inf) == " -INF" +string.format("%0#+20.6G", 100) == "+000000000000100.000" +string.format("%0#+20.6G", 10000) == "+00000000000010000.0" +string.format("%0#+20.6G", 100000) == "+000000000000100000." +string.format("%0#+20.6G", 1000000) == "+000000001.00000E+06" +string.format("%0#+20.6G", 10000000) == "+000000001.00000E+07" +string.format("%0#+20.6G", 0.01) == "+00000000000.0100000" +string.format("%0#+20.6G", 0.0001) == "+000000000.000100000" +string.format("%0#+20.6G", 1e-05) == "+000000001.00000E-05" +string.format("%0#+20.6G", 1e-06) == "+000000001.00000E-06" +string.format("%0#+20.6G", 1e-07) == "+000000001.00000E-07" +string.format("%0#+20.6G", 123.456) == "+000000000000123.456" +string.format("%0#+20.6G", 1234560000) == "+000000001.23456E+09" +string.format("%0#+20.6G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0#+20.6G", 123.456789123) == "+000000000000123.457" +string.format("%0#+20.6G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0#+20.6G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0#-G", 0) == "0.00000" +string.format("%0#-G", 1) == "1.00000" +string.format("%0#-G", -1) == "-1.00000" +string.format("%0#-G", 2) == "2.00000" +string.format("%0#-G", -2) == "-2.00000" +string.format("%0#-G", 3) == "3.00000" +string.format("%0#-G", -3) == "-3.00000" +string.format("%0#-G", nan) == "NAN" +string.format("%0#-G", inf) == "INF" +string.format("%0#-G", -inf) == "-INF" +string.format("%0#-G", 100) == "100.000" +string.format("%0#-G", 10000) == "10000.0" +string.format("%0#-G", 100000) == "100000." +string.format("%0#-G", 1000000) == "1.00000E+06" +string.format("%0#-G", 10000000) == "1.00000E+07" +string.format("%0#-G", 0.01) == "0.0100000" +string.format("%0#-G", 0.0001) == "0.000100000" +string.format("%0#-G", 1e-05) == "1.00000E-05" +string.format("%0#-G", 1e-06) == "1.00000E-06" +string.format("%0#-G", 1e-07) == "1.00000E-07" +string.format("%0#-G", 123.456) == "123.456" +string.format("%0#-G", 1234560000) == "1.23456E+09" +string.format("%0#-G", 1.23456e-05) == "1.23456E-05" +string.format("%0#-G", 123.456789123) == "123.457" +string.format("%0#-G", 1234567891.23) == "1.23457E+09" +string.format("%0#-G", 1.23456789123e-05) == "1.23457E-05" +string.format("%0#-.0G", 0) == "0." +string.format("%0#-.0G", 1) == "1." +string.format("%0#-.0G", -1) == "-1." +string.format("%0#-.0G", 2) == "2." +string.format("%0#-.0G", -2) == "-2." +string.format("%0#-.0G", 3) == "3." +string.format("%0#-.0G", -3) == "-3." +string.format("%0#-.0G", 100) == "1.E+02" +string.format("%0#-.0G", 10000) == "1.E+04" +string.format("%0#-.0G", 100000) == "1.E+05" +string.format("%0#-.0G", 1000000) == "1.E+06" +string.format("%0#-.0G", 10000000) == "1.E+07" +string.format("%0#-.0G", 0.01) == "0.01" +string.format("%0#-.0G", 0.0001) == "0.0001" +string.format("%0#-.0G", 1e-05) == "1.E-05" +string.format("%0#-.0G", 1e-06) == "1.E-06" +string.format("%0#-.0G", 1e-07) == "1.E-07" +string.format("%0#-.0G", 123.456) == "1.E+02" +string.format("%0#-.0G", 1234560000) == "1.E+09" +string.format("%0#-.0G", 1.23456e-05) == "1.E-05" +string.format("%0#-.0G", 123.456789123) == "1.E+02" +string.format("%0#-.0G", 1234567891.23) == "1.E+09" +string.format("%0#-.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-.1G", 0) == "0." +string.format("%0#-.1G", 1) == "1." +string.format("%0#-.1G", -1) == "-1." +string.format("%0#-.1G", 2) == "2." +string.format("%0#-.1G", -2) == "-2." +string.format("%0#-.1G", 3) == "3." +string.format("%0#-.1G", -3) == "-3." +string.format("%0#-.1G", 100) == "1.E+02" +string.format("%0#-.1G", 10000) == "1.E+04" +string.format("%0#-.1G", 100000) == "1.E+05" +string.format("%0#-.1G", 1000000) == "1.E+06" +string.format("%0#-.1G", 10000000) == "1.E+07" +string.format("%0#-.1G", 0.01) == "0.01" +string.format("%0#-.1G", 0.0001) == "0.0001" +string.format("%0#-.1G", 1e-05) == "1.E-05" +string.format("%0#-.1G", 1e-06) == "1.E-06" +string.format("%0#-.1G", 1e-07) == "1.E-07" +string.format("%0#-.1G", 123.456) == "1.E+02" +string.format("%0#-.1G", 1234560000) == "1.E+09" +string.format("%0#-.1G", 1.23456e-05) == "1.E-05" +string.format("%0#-.1G", 123.456789123) == "1.E+02" +string.format("%0#-.1G", 1234567891.23) == "1.E+09" +string.format("%0#-.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-1.0G", 0) == "0." +string.format("%0#-1.0G", 1) == "1." +string.format("%0#-1.0G", -1) == "-1." +string.format("%0#-1.0G", 2) == "2." +string.format("%0#-1.0G", -2) == "-2." +string.format("%0#-1.0G", 3) == "3." +string.format("%0#-1.0G", -3) == "-3." +string.format("%0#-1.0G", 100) == "1.E+02" +string.format("%0#-1.0G", 10000) == "1.E+04" +string.format("%0#-1.0G", 100000) == "1.E+05" +string.format("%0#-1.0G", 1000000) == "1.E+06" +string.format("%0#-1.0G", 10000000) == "1.E+07" +string.format("%0#-1.0G", 0.01) == "0.01" +string.format("%0#-1.0G", 0.0001) == "0.0001" +string.format("%0#-1.0G", 1e-05) == "1.E-05" +string.format("%0#-1.0G", 1e-06) == "1.E-06" +string.format("%0#-1.0G", 1e-07) == "1.E-07" +string.format("%0#-1.0G", 123.456) == "1.E+02" +string.format("%0#-1.0G", 1234560000) == "1.E+09" +string.format("%0#-1.0G", 1.23456e-05) == "1.E-05" +string.format("%0#-1.0G", 123.456789123) == "1.E+02" +string.format("%0#-1.0G", 1234567891.23) == "1.E+09" +string.format("%0#-1.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-1.1G", 0) == "0." +string.format("%0#-1.1G", 1) == "1." +string.format("%0#-1.1G", -1) == "-1." +string.format("%0#-1.1G", 2) == "2." +string.format("%0#-1.1G", -2) == "-2." +string.format("%0#-1.1G", 3) == "3." +string.format("%0#-1.1G", -3) == "-3." +string.format("%0#-1.1G", 100) == "1.E+02" +string.format("%0#-1.1G", 10000) == "1.E+04" +string.format("%0#-1.1G", 100000) == "1.E+05" +string.format("%0#-1.1G", 1000000) == "1.E+06" +string.format("%0#-1.1G", 10000000) == "1.E+07" +string.format("%0#-1.1G", 0.01) == "0.01" +string.format("%0#-1.1G", 0.0001) == "0.0001" +string.format("%0#-1.1G", 1e-05) == "1.E-05" +string.format("%0#-1.1G", 1e-06) == "1.E-06" +string.format("%0#-1.1G", 1e-07) == "1.E-07" +string.format("%0#-1.1G", 123.456) == "1.E+02" +string.format("%0#-1.1G", 1234560000) == "1.E+09" +string.format("%0#-1.1G", 1.23456e-05) == "1.E-05" +string.format("%0#-1.1G", 123.456789123) == "1.E+02" +string.format("%0#-1.1G", 1234567891.23) == "1.E+09" +string.format("%0#-1.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-2.0G", 0) == "0." +string.format("%0#-2.0G", 1) == "1." +string.format("%0#-2.0G", -1) == "-1." +string.format("%0#-2.0G", 2) == "2." +string.format("%0#-2.0G", -2) == "-2." +string.format("%0#-2.0G", 3) == "3." +string.format("%0#-2.0G", -3) == "-3." +string.format("%0#-2.0G", 100) == "1.E+02" +string.format("%0#-2.0G", 10000) == "1.E+04" +string.format("%0#-2.0G", 100000) == "1.E+05" +string.format("%0#-2.0G", 1000000) == "1.E+06" +string.format("%0#-2.0G", 10000000) == "1.E+07" +string.format("%0#-2.0G", 0.01) == "0.01" +string.format("%0#-2.0G", 0.0001) == "0.0001" +string.format("%0#-2.0G", 1e-05) == "1.E-05" +string.format("%0#-2.0G", 1e-06) == "1.E-06" +string.format("%0#-2.0G", 1e-07) == "1.E-07" +string.format("%0#-2.0G", 123.456) == "1.E+02" +string.format("%0#-2.0G", 1234560000) == "1.E+09" +string.format("%0#-2.0G", 1.23456e-05) == "1.E-05" +string.format("%0#-2.0G", 123.456789123) == "1.E+02" +string.format("%0#-2.0G", 1234567891.23) == "1.E+09" +string.format("%0#-2.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-2.1G", 0) == "0." +string.format("%0#-2.1G", 1) == "1." +string.format("%0#-2.1G", -1) == "-1." +string.format("%0#-2.1G", 2) == "2." +string.format("%0#-2.1G", -2) == "-2." +string.format("%0#-2.1G", 3) == "3." +string.format("%0#-2.1G", -3) == "-3." +string.format("%0#-2.1G", 100) == "1.E+02" +string.format("%0#-2.1G", 10000) == "1.E+04" +string.format("%0#-2.1G", 100000) == "1.E+05" +string.format("%0#-2.1G", 1000000) == "1.E+06" +string.format("%0#-2.1G", 10000000) == "1.E+07" +string.format("%0#-2.1G", 0.01) == "0.01" +string.format("%0#-2.1G", 0.0001) == "0.0001" +string.format("%0#-2.1G", 1e-05) == "1.E-05" +string.format("%0#-2.1G", 1e-06) == "1.E-06" +string.format("%0#-2.1G", 1e-07) == "1.E-07" +string.format("%0#-2.1G", 123.456) == "1.E+02" +string.format("%0#-2.1G", 1234560000) == "1.E+09" +string.format("%0#-2.1G", 1.23456e-05) == "1.E-05" +string.format("%0#-2.1G", 123.456789123) == "1.E+02" +string.format("%0#-2.1G", 1234567891.23) == "1.E+09" +string.format("%0#-2.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-6G", nan) == "NAN " +string.format("%0#-6G", inf) == "INF " +string.format("%0#-6G", -inf) == "-INF " +string.format("%0#-6.0G", 0) == "0. " +string.format("%0#-6.0G", 1) == "1. " +string.format("%0#-6.0G", -1) == "-1. " +string.format("%0#-6.0G", 2) == "2. " +string.format("%0#-6.0G", -2) == "-2. " +string.format("%0#-6.0G", 3) == "3. " +string.format("%0#-6.0G", -3) == "-3. " +string.format("%0#-6.0G", nan) == "NAN " +string.format("%0#-6.0G", inf) == "INF " +string.format("%0#-6.0G", -inf) == "-INF " +string.format("%0#-6.0G", 100) == "1.E+02" +string.format("%0#-6.0G", 10000) == "1.E+04" +string.format("%0#-6.0G", 100000) == "1.E+05" +string.format("%0#-6.0G", 1000000) == "1.E+06" +string.format("%0#-6.0G", 10000000) == "1.E+07" +string.format("%0#-6.0G", 0.01) == "0.01 " +string.format("%0#-6.0G", 0.0001) == "0.0001" +string.format("%0#-6.0G", 1e-05) == "1.E-05" +string.format("%0#-6.0G", 1e-06) == "1.E-06" +string.format("%0#-6.0G", 1e-07) == "1.E-07" +string.format("%0#-6.0G", 123.456) == "1.E+02" +string.format("%0#-6.0G", 1234560000) == "1.E+09" +string.format("%0#-6.0G", 1.23456e-05) == "1.E-05" +string.format("%0#-6.0G", 123.456789123) == "1.E+02" +string.format("%0#-6.0G", 1234567891.23) == "1.E+09" +string.format("%0#-6.0G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-6.1G", 0) == "0. " +string.format("%0#-6.1G", 1) == "1. " +string.format("%0#-6.1G", -1) == "-1. " +string.format("%0#-6.1G", 2) == "2. " +string.format("%0#-6.1G", -2) == "-2. " +string.format("%0#-6.1G", 3) == "3. " +string.format("%0#-6.1G", -3) == "-3. " +string.format("%0#-6.1G", nan) == "NAN " +string.format("%0#-6.1G", inf) == "INF " +string.format("%0#-6.1G", -inf) == "-INF " +string.format("%0#-6.1G", 100) == "1.E+02" +string.format("%0#-6.1G", 10000) == "1.E+04" +string.format("%0#-6.1G", 100000) == "1.E+05" +string.format("%0#-6.1G", 1000000) == "1.E+06" +string.format("%0#-6.1G", 10000000) == "1.E+07" +string.format("%0#-6.1G", 0.01) == "0.01 " +string.format("%0#-6.1G", 0.0001) == "0.0001" +string.format("%0#-6.1G", 1e-05) == "1.E-05" +string.format("%0#-6.1G", 1e-06) == "1.E-06" +string.format("%0#-6.1G", 1e-07) == "1.E-07" +string.format("%0#-6.1G", 123.456) == "1.E+02" +string.format("%0#-6.1G", 1234560000) == "1.E+09" +string.format("%0#-6.1G", 1.23456e-05) == "1.E-05" +string.format("%0#-6.1G", 123.456789123) == "1.E+02" +string.format("%0#-6.1G", 1234567891.23) == "1.E+09" +string.format("%0#-6.1G", 1.23456789123e-05) == "1.E-05" +string.format("%0#-6.6G", nan) == "NAN " +string.format("%0#-6.6G", inf) == "INF " +string.format("%0#-6.6G", -inf) == "-INF " +string.format("%0#-20G", 0) == "0.00000 " +string.format("%0#-20G", 1) == "1.00000 " +string.format("%0#-20G", -1) == "-1.00000 " +string.format("%0#-20G", 2) == "2.00000 " +string.format("%0#-20G", -2) == "-2.00000 " +string.format("%0#-20G", 3) == "3.00000 " +string.format("%0#-20G", -3) == "-3.00000 " +string.format("%0#-20G", nan) == "NAN " +string.format("%0#-20G", inf) == "INF " +string.format("%0#-20G", -inf) == "-INF " +string.format("%0#-20G", 100) == "100.000 " +string.format("%0#-20G", 10000) == "10000.0 " +string.format("%0#-20G", 100000) == "100000. " +string.format("%0#-20G", 1000000) == "1.00000E+06 " +string.format("%0#-20G", 10000000) == "1.00000E+07 " +string.format("%0#-20G", 0.01) == "0.0100000 " +string.format("%0#-20G", 0.0001) == "0.000100000 " +string.format("%0#-20G", 1e-05) == "1.00000E-05 " +string.format("%0#-20G", 1e-06) == "1.00000E-06 " +string.format("%0#-20G", 1e-07) == "1.00000E-07 " +string.format("%0#-20G", 123.456) == "123.456 " +string.format("%0#-20G", 1234560000) == "1.23456E+09 " +string.format("%0#-20G", 1.23456e-05) == "1.23456E-05 " +string.format("%0#-20G", 123.456789123) == "123.457 " +string.format("%0#-20G", 1234567891.23) == "1.23457E+09 " +string.format("%0#-20G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%0#-20.0G", 0) == "0. " +string.format("%0#-20.0G", 1) == "1. " +string.format("%0#-20.0G", -1) == "-1. " +string.format("%0#-20.0G", 2) == "2. " +string.format("%0#-20.0G", -2) == "-2. " +string.format("%0#-20.0G", 3) == "3. " +string.format("%0#-20.0G", -3) == "-3. " +string.format("%0#-20.0G", nan) == "NAN " +string.format("%0#-20.0G", inf) == "INF " +string.format("%0#-20.0G", -inf) == "-INF " +string.format("%0#-20.0G", 100) == "1.E+02 " +string.format("%0#-20.0G", 10000) == "1.E+04 " +string.format("%0#-20.0G", 100000) == "1.E+05 " +string.format("%0#-20.0G", 1000000) == "1.E+06 " +string.format("%0#-20.0G", 10000000) == "1.E+07 " +string.format("%0#-20.0G", 0.01) == "0.01 " +string.format("%0#-20.0G", 0.0001) == "0.0001 " +string.format("%0#-20.0G", 1e-05) == "1.E-05 " +string.format("%0#-20.0G", 1e-06) == "1.E-06 " +string.format("%0#-20.0G", 1e-07) == "1.E-07 " +string.format("%0#-20.0G", 123.456) == "1.E+02 " +string.format("%0#-20.0G", 1234560000) == "1.E+09 " +string.format("%0#-20.0G", 1.23456e-05) == "1.E-05 " +string.format("%0#-20.0G", 123.456789123) == "1.E+02 " +string.format("%0#-20.0G", 1234567891.23) == "1.E+09 " +string.format("%0#-20.0G", 1.23456789123e-05) == "1.E-05 " +string.format("%0#-20.1G", 0) == "0. " +string.format("%0#-20.1G", 1) == "1. " +string.format("%0#-20.1G", -1) == "-1. " +string.format("%0#-20.1G", 2) == "2. " +string.format("%0#-20.1G", -2) == "-2. " +string.format("%0#-20.1G", 3) == "3. " +string.format("%0#-20.1G", -3) == "-3. " +string.format("%0#-20.1G", nan) == "NAN " +string.format("%0#-20.1G", inf) == "INF " +string.format("%0#-20.1G", -inf) == "-INF " +string.format("%0#-20.1G", 100) == "1.E+02 " +string.format("%0#-20.1G", 10000) == "1.E+04 " +string.format("%0#-20.1G", 100000) == "1.E+05 " +string.format("%0#-20.1G", 1000000) == "1.E+06 " +string.format("%0#-20.1G", 10000000) == "1.E+07 " +string.format("%0#-20.1G", 0.01) == "0.01 " +string.format("%0#-20.1G", 0.0001) == "0.0001 " +string.format("%0#-20.1G", 1e-05) == "1.E-05 " +string.format("%0#-20.1G", 1e-06) == "1.E-06 " +string.format("%0#-20.1G", 1e-07) == "1.E-07 " +string.format("%0#-20.1G", 123.456) == "1.E+02 " +string.format("%0#-20.1G", 1234560000) == "1.E+09 " +string.format("%0#-20.1G", 1.23456e-05) == "1.E-05 " +string.format("%0#-20.1G", 123.456789123) == "1.E+02 " +string.format("%0#-20.1G", 1234567891.23) == "1.E+09 " +string.format("%0#-20.1G", 1.23456789123e-05) == "1.E-05 " +string.format("%0#-20.6G", 0) == "0.00000 " +string.format("%0#-20.6G", 1) == "1.00000 " +string.format("%0#-20.6G", -1) == "-1.00000 " +string.format("%0#-20.6G", 2) == "2.00000 " +string.format("%0#-20.6G", -2) == "-2.00000 " +string.format("%0#-20.6G", 3) == "3.00000 " +string.format("%0#-20.6G", -3) == "-3.00000 " +string.format("%0#-20.6G", nan) == "NAN " +string.format("%0#-20.6G", inf) == "INF " +string.format("%0#-20.6G", -inf) == "-INF " +string.format("%0#-20.6G", 100) == "100.000 " +string.format("%0#-20.6G", 10000) == "10000.0 " +string.format("%0#-20.6G", 100000) == "100000. " +string.format("%0#-20.6G", 1000000) == "1.00000E+06 " +string.format("%0#-20.6G", 10000000) == "1.00000E+07 " +string.format("%0#-20.6G", 0.01) == "0.0100000 " +string.format("%0#-20.6G", 0.0001) == "0.000100000 " +string.format("%0#-20.6G", 1e-05) == "1.00000E-05 " +string.format("%0#-20.6G", 1e-06) == "1.00000E-06 " +string.format("%0#-20.6G", 1e-07) == "1.00000E-07 " +string.format("%0#-20.6G", 123.456) == "123.456 " +string.format("%0#-20.6G", 1234560000) == "1.23456E+09 " +string.format("%0#-20.6G", 1.23456e-05) == "1.23456E-05 " +string.format("%0#-20.6G", 123.456789123) == "123.457 " +string.format("%0#-20.6G", 1234567891.23) == "1.23457E+09 " +string.format("%0#-20.6G", 1.23456789123e-05) == "1.23457E-05 " +string.format("%0#-+G", 0) == "+0.00000" +string.format("%0#-+G", 1) == "+1.00000" +string.format("%0#-+G", -1) == "-1.00000" +string.format("%0#-+G", 2) == "+2.00000" +string.format("%0#-+G", -2) == "-2.00000" +string.format("%0#-+G", 3) == "+3.00000" +string.format("%0#-+G", -3) == "-3.00000" +string.format("%0#-+G", nan) == "+NAN" +string.format("%0#-+G", inf) == "+INF" +string.format("%0#-+G", -inf) == "-INF" +string.format("%0#-+G", 100) == "+100.000" +string.format("%0#-+G", 10000) == "+10000.0" +string.format("%0#-+G", 100000) == "+100000." +string.format("%0#-+G", 1000000) == "+1.00000E+06" +string.format("%0#-+G", 10000000) == "+1.00000E+07" +string.format("%0#-+G", 0.01) == "+0.0100000" +string.format("%0#-+G", 0.0001) == "+0.000100000" +string.format("%0#-+G", 1e-05) == "+1.00000E-05" +string.format("%0#-+G", 1e-06) == "+1.00000E-06" +string.format("%0#-+G", 1e-07) == "+1.00000E-07" +string.format("%0#-+G", 123.456) == "+123.456" +string.format("%0#-+G", 1234560000) == "+1.23456E+09" +string.format("%0#-+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0#-+G", 123.456789123) == "+123.457" +string.format("%0#-+G", 1234567891.23) == "+1.23457E+09" +string.format("%0#-+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0#-+.0G", 0) == "+0." +string.format("%0#-+.0G", 1) == "+1." +string.format("%0#-+.0G", -1) == "-1." +string.format("%0#-+.0G", 2) == "+2." +string.format("%0#-+.0G", -2) == "-2." +string.format("%0#-+.0G", 3) == "+3." +string.format("%0#-+.0G", -3) == "-3." +string.format("%0#-+.0G", 100) == "+1.E+02" +string.format("%0#-+.0G", 10000) == "+1.E+04" +string.format("%0#-+.0G", 100000) == "+1.E+05" +string.format("%0#-+.0G", 1000000) == "+1.E+06" +string.format("%0#-+.0G", 10000000) == "+1.E+07" +string.format("%0#-+.0G", 0.01) == "+0.01" +string.format("%0#-+.0G", 0.0001) == "+0.0001" +string.format("%0#-+.0G", 1e-05) == "+1.E-05" +string.format("%0#-+.0G", 1e-06) == "+1.E-06" +string.format("%0#-+.0G", 1e-07) == "+1.E-07" +string.format("%0#-+.0G", 123.456) == "+1.E+02" +string.format("%0#-+.0G", 1234560000) == "+1.E+09" +string.format("%0#-+.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+.0G", 123.456789123) == "+1.E+02" +string.format("%0#-+.0G", 1234567891.23) == "+1.E+09" +string.format("%0#-+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+.1G", 0) == "+0." +string.format("%0#-+.1G", 1) == "+1." +string.format("%0#-+.1G", -1) == "-1." +string.format("%0#-+.1G", 2) == "+2." +string.format("%0#-+.1G", -2) == "-2." +string.format("%0#-+.1G", 3) == "+3." +string.format("%0#-+.1G", -3) == "-3." +string.format("%0#-+.1G", 100) == "+1.E+02" +string.format("%0#-+.1G", 10000) == "+1.E+04" +string.format("%0#-+.1G", 100000) == "+1.E+05" +string.format("%0#-+.1G", 1000000) == "+1.E+06" +string.format("%0#-+.1G", 10000000) == "+1.E+07" +string.format("%0#-+.1G", 0.01) == "+0.01" +string.format("%0#-+.1G", 0.0001) == "+0.0001" +string.format("%0#-+.1G", 1e-05) == "+1.E-05" +string.format("%0#-+.1G", 1e-06) == "+1.E-06" +string.format("%0#-+.1G", 1e-07) == "+1.E-07" +string.format("%0#-+.1G", 123.456) == "+1.E+02" +string.format("%0#-+.1G", 1234560000) == "+1.E+09" +string.format("%0#-+.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+.1G", 123.456789123) == "+1.E+02" +string.format("%0#-+.1G", 1234567891.23) == "+1.E+09" +string.format("%0#-+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+1.0G", 0) == "+0." +string.format("%0#-+1.0G", 1) == "+1." +string.format("%0#-+1.0G", -1) == "-1." +string.format("%0#-+1.0G", 2) == "+2." +string.format("%0#-+1.0G", -2) == "-2." +string.format("%0#-+1.0G", 3) == "+3." +string.format("%0#-+1.0G", -3) == "-3." +string.format("%0#-+1.0G", 100) == "+1.E+02" +string.format("%0#-+1.0G", 10000) == "+1.E+04" +string.format("%0#-+1.0G", 100000) == "+1.E+05" +string.format("%0#-+1.0G", 1000000) == "+1.E+06" +string.format("%0#-+1.0G", 10000000) == "+1.E+07" +string.format("%0#-+1.0G", 0.01) == "+0.01" +string.format("%0#-+1.0G", 0.0001) == "+0.0001" +string.format("%0#-+1.0G", 1e-05) == "+1.E-05" +string.format("%0#-+1.0G", 1e-06) == "+1.E-06" +string.format("%0#-+1.0G", 1e-07) == "+1.E-07" +string.format("%0#-+1.0G", 123.456) == "+1.E+02" +string.format("%0#-+1.0G", 1234560000) == "+1.E+09" +string.format("%0#-+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+1.0G", 123.456789123) == "+1.E+02" +string.format("%0#-+1.0G", 1234567891.23) == "+1.E+09" +string.format("%0#-+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+1.1G", 0) == "+0." +string.format("%0#-+1.1G", 1) == "+1." +string.format("%0#-+1.1G", -1) == "-1." +string.format("%0#-+1.1G", 2) == "+2." +string.format("%0#-+1.1G", -2) == "-2." +string.format("%0#-+1.1G", 3) == "+3." +string.format("%0#-+1.1G", -3) == "-3." +string.format("%0#-+1.1G", 100) == "+1.E+02" +string.format("%0#-+1.1G", 10000) == "+1.E+04" +string.format("%0#-+1.1G", 100000) == "+1.E+05" +string.format("%0#-+1.1G", 1000000) == "+1.E+06" +string.format("%0#-+1.1G", 10000000) == "+1.E+07" +string.format("%0#-+1.1G", 0.01) == "+0.01" +string.format("%0#-+1.1G", 0.0001) == "+0.0001" +string.format("%0#-+1.1G", 1e-05) == "+1.E-05" +string.format("%0#-+1.1G", 1e-06) == "+1.E-06" +string.format("%0#-+1.1G", 1e-07) == "+1.E-07" +string.format("%0#-+1.1G", 123.456) == "+1.E+02" +string.format("%0#-+1.1G", 1234560000) == "+1.E+09" +string.format("%0#-+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+1.1G", 123.456789123) == "+1.E+02" +string.format("%0#-+1.1G", 1234567891.23) == "+1.E+09" +string.format("%0#-+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+2.0G", 0) == "+0." +string.format("%0#-+2.0G", 1) == "+1." +string.format("%0#-+2.0G", -1) == "-1." +string.format("%0#-+2.0G", 2) == "+2." +string.format("%0#-+2.0G", -2) == "-2." +string.format("%0#-+2.0G", 3) == "+3." +string.format("%0#-+2.0G", -3) == "-3." +string.format("%0#-+2.0G", 100) == "+1.E+02" +string.format("%0#-+2.0G", 10000) == "+1.E+04" +string.format("%0#-+2.0G", 100000) == "+1.E+05" +string.format("%0#-+2.0G", 1000000) == "+1.E+06" +string.format("%0#-+2.0G", 10000000) == "+1.E+07" +string.format("%0#-+2.0G", 0.01) == "+0.01" +string.format("%0#-+2.0G", 0.0001) == "+0.0001" +string.format("%0#-+2.0G", 1e-05) == "+1.E-05" +string.format("%0#-+2.0G", 1e-06) == "+1.E-06" +string.format("%0#-+2.0G", 1e-07) == "+1.E-07" +string.format("%0#-+2.0G", 123.456) == "+1.E+02" +string.format("%0#-+2.0G", 1234560000) == "+1.E+09" +string.format("%0#-+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+2.0G", 123.456789123) == "+1.E+02" +string.format("%0#-+2.0G", 1234567891.23) == "+1.E+09" +string.format("%0#-+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+2.1G", 0) == "+0." +string.format("%0#-+2.1G", 1) == "+1." +string.format("%0#-+2.1G", -1) == "-1." +string.format("%0#-+2.1G", 2) == "+2." +string.format("%0#-+2.1G", -2) == "-2." +string.format("%0#-+2.1G", 3) == "+3." +string.format("%0#-+2.1G", -3) == "-3." +string.format("%0#-+2.1G", 100) == "+1.E+02" +string.format("%0#-+2.1G", 10000) == "+1.E+04" +string.format("%0#-+2.1G", 100000) == "+1.E+05" +string.format("%0#-+2.1G", 1000000) == "+1.E+06" +string.format("%0#-+2.1G", 10000000) == "+1.E+07" +string.format("%0#-+2.1G", 0.01) == "+0.01" +string.format("%0#-+2.1G", 0.0001) == "+0.0001" +string.format("%0#-+2.1G", 1e-05) == "+1.E-05" +string.format("%0#-+2.1G", 1e-06) == "+1.E-06" +string.format("%0#-+2.1G", 1e-07) == "+1.E-07" +string.format("%0#-+2.1G", 123.456) == "+1.E+02" +string.format("%0#-+2.1G", 1234560000) == "+1.E+09" +string.format("%0#-+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+2.1G", 123.456789123) == "+1.E+02" +string.format("%0#-+2.1G", 1234567891.23) == "+1.E+09" +string.format("%0#-+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+6G", nan) == "+NAN " +string.format("%0#-+6G", inf) == "+INF " +string.format("%0#-+6G", -inf) == "-INF " +string.format("%0#-+6.0G", 0) == "+0. " +string.format("%0#-+6.0G", 1) == "+1. " +string.format("%0#-+6.0G", -1) == "-1. " +string.format("%0#-+6.0G", 2) == "+2. " +string.format("%0#-+6.0G", -2) == "-2. " +string.format("%0#-+6.0G", 3) == "+3. " +string.format("%0#-+6.0G", -3) == "-3. " +string.format("%0#-+6.0G", nan) == "+NAN " +string.format("%0#-+6.0G", inf) == "+INF " +string.format("%0#-+6.0G", -inf) == "-INF " +string.format("%0#-+6.0G", 100) == "+1.E+02" +string.format("%0#-+6.0G", 10000) == "+1.E+04" +string.format("%0#-+6.0G", 100000) == "+1.E+05" +string.format("%0#-+6.0G", 1000000) == "+1.E+06" +string.format("%0#-+6.0G", 10000000) == "+1.E+07" +string.format("%0#-+6.0G", 0.01) == "+0.01 " +string.format("%0#-+6.0G", 0.0001) == "+0.0001" +string.format("%0#-+6.0G", 1e-05) == "+1.E-05" +string.format("%0#-+6.0G", 1e-06) == "+1.E-06" +string.format("%0#-+6.0G", 1e-07) == "+1.E-07" +string.format("%0#-+6.0G", 123.456) == "+1.E+02" +string.format("%0#-+6.0G", 1234560000) == "+1.E+09" +string.format("%0#-+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+6.0G", 123.456789123) == "+1.E+02" +string.format("%0#-+6.0G", 1234567891.23) == "+1.E+09" +string.format("%0#-+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+6.1G", 0) == "+0. " +string.format("%0#-+6.1G", 1) == "+1. " +string.format("%0#-+6.1G", -1) == "-1. " +string.format("%0#-+6.1G", 2) == "+2. " +string.format("%0#-+6.1G", -2) == "-2. " +string.format("%0#-+6.1G", 3) == "+3. " +string.format("%0#-+6.1G", -3) == "-3. " +string.format("%0#-+6.1G", nan) == "+NAN " +string.format("%0#-+6.1G", inf) == "+INF " +string.format("%0#-+6.1G", -inf) == "-INF " +string.format("%0#-+6.1G", 100) == "+1.E+02" +string.format("%0#-+6.1G", 10000) == "+1.E+04" +string.format("%0#-+6.1G", 100000) == "+1.E+05" +string.format("%0#-+6.1G", 1000000) == "+1.E+06" +string.format("%0#-+6.1G", 10000000) == "+1.E+07" +string.format("%0#-+6.1G", 0.01) == "+0.01 " +string.format("%0#-+6.1G", 0.0001) == "+0.0001" +string.format("%0#-+6.1G", 1e-05) == "+1.E-05" +string.format("%0#-+6.1G", 1e-06) == "+1.E-06" +string.format("%0#-+6.1G", 1e-07) == "+1.E-07" +string.format("%0#-+6.1G", 123.456) == "+1.E+02" +string.format("%0#-+6.1G", 1234560000) == "+1.E+09" +string.format("%0#-+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%0#-+6.1G", 123.456789123) == "+1.E+02" +string.format("%0#-+6.1G", 1234567891.23) == "+1.E+09" +string.format("%0#-+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0#-+6.6G", nan) == "+NAN " +string.format("%0#-+6.6G", inf) == "+INF " +string.format("%0#-+6.6G", -inf) == "-INF " +string.format("%0#-+20G", 0) == "+0.00000 " +string.format("%0#-+20G", 1) == "+1.00000 " +string.format("%0#-+20G", -1) == "-1.00000 " +string.format("%0#-+20G", 2) == "+2.00000 " +string.format("%0#-+20G", -2) == "-2.00000 " +string.format("%0#-+20G", 3) == "+3.00000 " +string.format("%0#-+20G", -3) == "-3.00000 " +string.format("%0#-+20G", nan) == "+NAN " +string.format("%0#-+20G", inf) == "+INF " +string.format("%0#-+20G", -inf) == "-INF " +string.format("%0#-+20G", 100) == "+100.000 " +string.format("%0#-+20G", 10000) == "+10000.0 " +string.format("%0#-+20G", 100000) == "+100000. " +string.format("%0#-+20G", 1000000) == "+1.00000E+06 " +string.format("%0#-+20G", 10000000) == "+1.00000E+07 " +string.format("%0#-+20G", 0.01) == "+0.0100000 " +string.format("%0#-+20G", 0.0001) == "+0.000100000 " +string.format("%0#-+20G", 1e-05) == "+1.00000E-05 " +string.format("%0#-+20G", 1e-06) == "+1.00000E-06 " +string.format("%0#-+20G", 1e-07) == "+1.00000E-07 " +string.format("%0#-+20G", 123.456) == "+123.456 " +string.format("%0#-+20G", 1234560000) == "+1.23456E+09 " +string.format("%0#-+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0#-+20G", 123.456789123) == "+123.457 " +string.format("%0#-+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%0#-+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0#-+20.0G", 0) == "+0. " +string.format("%0#-+20.0G", 1) == "+1. " +string.format("%0#-+20.0G", -1) == "-1. " +string.format("%0#-+20.0G", 2) == "+2. " +string.format("%0#-+20.0G", -2) == "-2. " +string.format("%0#-+20.0G", 3) == "+3. " +string.format("%0#-+20.0G", -3) == "-3. " +string.format("%0#-+20.0G", nan) == "+NAN " +string.format("%0#-+20.0G", inf) == "+INF " +string.format("%0#-+20.0G", -inf) == "-INF " +string.format("%0#-+20.0G", 100) == "+1.E+02 " +string.format("%0#-+20.0G", 10000) == "+1.E+04 " +string.format("%0#-+20.0G", 100000) == "+1.E+05 " +string.format("%0#-+20.0G", 1000000) == "+1.E+06 " +string.format("%0#-+20.0G", 10000000) == "+1.E+07 " +string.format("%0#-+20.0G", 0.01) == "+0.01 " +string.format("%0#-+20.0G", 0.0001) == "+0.0001 " +string.format("%0#-+20.0G", 1e-05) == "+1.E-05 " +string.format("%0#-+20.0G", 1e-06) == "+1.E-06 " +string.format("%0#-+20.0G", 1e-07) == "+1.E-07 " +string.format("%0#-+20.0G", 123.456) == "+1.E+02 " +string.format("%0#-+20.0G", 1234560000) == "+1.E+09 " +string.format("%0#-+20.0G", 1.23456e-05) == "+1.E-05 " +string.format("%0#-+20.0G", 123.456789123) == "+1.E+02 " +string.format("%0#-+20.0G", 1234567891.23) == "+1.E+09 " +string.format("%0#-+20.0G", 1.23456789123e-05) == "+1.E-05 " +string.format("%0#-+20.1G", 0) == "+0. " +string.format("%0#-+20.1G", 1) == "+1. " +string.format("%0#-+20.1G", -1) == "-1. " +string.format("%0#-+20.1G", 2) == "+2. " +string.format("%0#-+20.1G", -2) == "-2. " +string.format("%0#-+20.1G", 3) == "+3. " +string.format("%0#-+20.1G", -3) == "-3. " +string.format("%0#-+20.1G", nan) == "+NAN " +string.format("%0#-+20.1G", inf) == "+INF " +string.format("%0#-+20.1G", -inf) == "-INF " +string.format("%0#-+20.1G", 100) == "+1.E+02 " +string.format("%0#-+20.1G", 10000) == "+1.E+04 " +string.format("%0#-+20.1G", 100000) == "+1.E+05 " +string.format("%0#-+20.1G", 1000000) == "+1.E+06 " +string.format("%0#-+20.1G", 10000000) == "+1.E+07 " +string.format("%0#-+20.1G", 0.01) == "+0.01 " +string.format("%0#-+20.1G", 0.0001) == "+0.0001 " +string.format("%0#-+20.1G", 1e-05) == "+1.E-05 " +string.format("%0#-+20.1G", 1e-06) == "+1.E-06 " +string.format("%0#-+20.1G", 1e-07) == "+1.E-07 " +string.format("%0#-+20.1G", 123.456) == "+1.E+02 " +string.format("%0#-+20.1G", 1234560000) == "+1.E+09 " +string.format("%0#-+20.1G", 1.23456e-05) == "+1.E-05 " +string.format("%0#-+20.1G", 123.456789123) == "+1.E+02 " +string.format("%0#-+20.1G", 1234567891.23) == "+1.E+09 " +string.format("%0#-+20.1G", 1.23456789123e-05) == "+1.E-05 " +string.format("%0#-+20.6G", 0) == "+0.00000 " +string.format("%0#-+20.6G", 1) == "+1.00000 " +string.format("%0#-+20.6G", -1) == "-1.00000 " +string.format("%0#-+20.6G", 2) == "+2.00000 " +string.format("%0#-+20.6G", -2) == "-2.00000 " +string.format("%0#-+20.6G", 3) == "+3.00000 " +string.format("%0#-+20.6G", -3) == "-3.00000 " +string.format("%0#-+20.6G", nan) == "+NAN " +string.format("%0#-+20.6G", inf) == "+INF " +string.format("%0#-+20.6G", -inf) == "-INF " +string.format("%0#-+20.6G", 100) == "+100.000 " +string.format("%0#-+20.6G", 10000) == "+10000.0 " +string.format("%0#-+20.6G", 100000) == "+100000. " +string.format("%0#-+20.6G", 1000000) == "+1.00000E+06 " +string.format("%0#-+20.6G", 10000000) == "+1.00000E+07 " +string.format("%0#-+20.6G", 0.01) == "+0.0100000 " +string.format("%0#-+20.6G", 0.0001) == "+0.000100000 " +string.format("%0#-+20.6G", 1e-05) == "+1.00000E-05 " +string.format("%0#-+20.6G", 1e-06) == "+1.00000E-06 " +string.format("%0#-+20.6G", 1e-07) == "+1.00000E-07 " +string.format("%0#-+20.6G", 123.456) == "+123.456 " +string.format("%0#-+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%0#-+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0#-+20.6G", 123.456789123) == "+123.457 " +string.format("%0#-+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%0#-+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0# G", 0) == " 0.00000" +string.format("%0# G", 1) == " 1.00000" +string.format("%0# G", -1) == "-1.00000" +string.format("%0# G", 2) == " 2.00000" +string.format("%0# G", -2) == "-2.00000" +string.format("%0# G", 3) == " 3.00000" +string.format("%0# G", -3) == "-3.00000" +string.format("%0# G", nan) == " NAN" +string.format("%0# G", inf) == " INF" +string.format("%0# G", -inf) == "-INF" +string.format("%0# G", 100) == " 100.000" +string.format("%0# G", 10000) == " 10000.0" +string.format("%0# G", 100000) == " 100000." +string.format("%0# G", 1000000) == " 1.00000E+06" +string.format("%0# G", 10000000) == " 1.00000E+07" +string.format("%0# G", 0.01) == " 0.0100000" +string.format("%0# G", 0.0001) == " 0.000100000" +string.format("%0# G", 1e-05) == " 1.00000E-05" +string.format("%0# G", 1e-06) == " 1.00000E-06" +string.format("%0# G", 1e-07) == " 1.00000E-07" +string.format("%0# G", 123.456) == " 123.456" +string.format("%0# G", 1234560000) == " 1.23456E+09" +string.format("%0# G", 1.23456e-05) == " 1.23456E-05" +string.format("%0# G", 123.456789123) == " 123.457" +string.format("%0# G", 1234567891.23) == " 1.23457E+09" +string.format("%0# G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%0# .0G", 0) == " 0." +string.format("%0# .0G", 1) == " 1." +string.format("%0# .0G", -1) == "-1." +string.format("%0# .0G", 2) == " 2." +string.format("%0# .0G", -2) == "-2." +string.format("%0# .0G", 3) == " 3." +string.format("%0# .0G", -3) == "-3." +string.format("%0# .0G", 100) == " 1.E+02" +string.format("%0# .0G", 10000) == " 1.E+04" +string.format("%0# .0G", 100000) == " 1.E+05" +string.format("%0# .0G", 1000000) == " 1.E+06" +string.format("%0# .0G", 10000000) == " 1.E+07" +string.format("%0# .0G", 0.01) == " 0.01" +string.format("%0# .0G", 0.0001) == " 0.0001" +string.format("%0# .0G", 1e-05) == " 1.E-05" +string.format("%0# .0G", 1e-06) == " 1.E-06" +string.format("%0# .0G", 1e-07) == " 1.E-07" +string.format("%0# .0G", 123.456) == " 1.E+02" +string.format("%0# .0G", 1234560000) == " 1.E+09" +string.format("%0# .0G", 1.23456e-05) == " 1.E-05" +string.format("%0# .0G", 123.456789123) == " 1.E+02" +string.format("%0# .0G", 1234567891.23) == " 1.E+09" +string.format("%0# .0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# .1G", 0) == " 0." +string.format("%0# .1G", 1) == " 1." +string.format("%0# .1G", -1) == "-1." +string.format("%0# .1G", 2) == " 2." +string.format("%0# .1G", -2) == "-2." +string.format("%0# .1G", 3) == " 3." +string.format("%0# .1G", -3) == "-3." +string.format("%0# .1G", 100) == " 1.E+02" +string.format("%0# .1G", 10000) == " 1.E+04" +string.format("%0# .1G", 100000) == " 1.E+05" +string.format("%0# .1G", 1000000) == " 1.E+06" +string.format("%0# .1G", 10000000) == " 1.E+07" +string.format("%0# .1G", 0.01) == " 0.01" +string.format("%0# .1G", 0.0001) == " 0.0001" +string.format("%0# .1G", 1e-05) == " 1.E-05" +string.format("%0# .1G", 1e-06) == " 1.E-06" +string.format("%0# .1G", 1e-07) == " 1.E-07" +string.format("%0# .1G", 123.456) == " 1.E+02" +string.format("%0# .1G", 1234560000) == " 1.E+09" +string.format("%0# .1G", 1.23456e-05) == " 1.E-05" +string.format("%0# .1G", 123.456789123) == " 1.E+02" +string.format("%0# .1G", 1234567891.23) == " 1.E+09" +string.format("%0# .1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 1.0G", 0) == " 0." +string.format("%0# 1.0G", 1) == " 1." +string.format("%0# 1.0G", -1) == "-1." +string.format("%0# 1.0G", 2) == " 2." +string.format("%0# 1.0G", -2) == "-2." +string.format("%0# 1.0G", 3) == " 3." +string.format("%0# 1.0G", -3) == "-3." +string.format("%0# 1.0G", 100) == " 1.E+02" +string.format("%0# 1.0G", 10000) == " 1.E+04" +string.format("%0# 1.0G", 100000) == " 1.E+05" +string.format("%0# 1.0G", 1000000) == " 1.E+06" +string.format("%0# 1.0G", 10000000) == " 1.E+07" +string.format("%0# 1.0G", 0.01) == " 0.01" +string.format("%0# 1.0G", 0.0001) == " 0.0001" +string.format("%0# 1.0G", 1e-05) == " 1.E-05" +string.format("%0# 1.0G", 1e-06) == " 1.E-06" +string.format("%0# 1.0G", 1e-07) == " 1.E-07" +string.format("%0# 1.0G", 123.456) == " 1.E+02" +string.format("%0# 1.0G", 1234560000) == " 1.E+09" +string.format("%0# 1.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# 1.0G", 123.456789123) == " 1.E+02" +string.format("%0# 1.0G", 1234567891.23) == " 1.E+09" +string.format("%0# 1.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 1.1G", 0) == " 0." +string.format("%0# 1.1G", 1) == " 1." +string.format("%0# 1.1G", -1) == "-1." +string.format("%0# 1.1G", 2) == " 2." +string.format("%0# 1.1G", -2) == "-2." +string.format("%0# 1.1G", 3) == " 3." +string.format("%0# 1.1G", -3) == "-3." +string.format("%0# 1.1G", 100) == " 1.E+02" +string.format("%0# 1.1G", 10000) == " 1.E+04" +string.format("%0# 1.1G", 100000) == " 1.E+05" +string.format("%0# 1.1G", 1000000) == " 1.E+06" +string.format("%0# 1.1G", 10000000) == " 1.E+07" +string.format("%0# 1.1G", 0.01) == " 0.01" +string.format("%0# 1.1G", 0.0001) == " 0.0001" +string.format("%0# 1.1G", 1e-05) == " 1.E-05" +string.format("%0# 1.1G", 1e-06) == " 1.E-06" +string.format("%0# 1.1G", 1e-07) == " 1.E-07" +string.format("%0# 1.1G", 123.456) == " 1.E+02" +string.format("%0# 1.1G", 1234560000) == " 1.E+09" +string.format("%0# 1.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# 1.1G", 123.456789123) == " 1.E+02" +string.format("%0# 1.1G", 1234567891.23) == " 1.E+09" +string.format("%0# 1.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 2.0G", 0) == " 0." +string.format("%0# 2.0G", 1) == " 1." +string.format("%0# 2.0G", -1) == "-1." +string.format("%0# 2.0G", 2) == " 2." +string.format("%0# 2.0G", -2) == "-2." +string.format("%0# 2.0G", 3) == " 3." +string.format("%0# 2.0G", -3) == "-3." +string.format("%0# 2.0G", 100) == " 1.E+02" +string.format("%0# 2.0G", 10000) == " 1.E+04" +string.format("%0# 2.0G", 100000) == " 1.E+05" +string.format("%0# 2.0G", 1000000) == " 1.E+06" +string.format("%0# 2.0G", 10000000) == " 1.E+07" +string.format("%0# 2.0G", 0.01) == " 0.01" +string.format("%0# 2.0G", 0.0001) == " 0.0001" +string.format("%0# 2.0G", 1e-05) == " 1.E-05" +string.format("%0# 2.0G", 1e-06) == " 1.E-06" +string.format("%0# 2.0G", 1e-07) == " 1.E-07" +string.format("%0# 2.0G", 123.456) == " 1.E+02" +string.format("%0# 2.0G", 1234560000) == " 1.E+09" +string.format("%0# 2.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# 2.0G", 123.456789123) == " 1.E+02" +string.format("%0# 2.0G", 1234567891.23) == " 1.E+09" +string.format("%0# 2.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 2.1G", 0) == " 0." +string.format("%0# 2.1G", 1) == " 1." +string.format("%0# 2.1G", -1) == "-1." +string.format("%0# 2.1G", 2) == " 2." +string.format("%0# 2.1G", -2) == "-2." +string.format("%0# 2.1G", 3) == " 3." +string.format("%0# 2.1G", -3) == "-3." +string.format("%0# 2.1G", 100) == " 1.E+02" +string.format("%0# 2.1G", 10000) == " 1.E+04" +string.format("%0# 2.1G", 100000) == " 1.E+05" +string.format("%0# 2.1G", 1000000) == " 1.E+06" +string.format("%0# 2.1G", 10000000) == " 1.E+07" +string.format("%0# 2.1G", 0.01) == " 0.01" +string.format("%0# 2.1G", 0.0001) == " 0.0001" +string.format("%0# 2.1G", 1e-05) == " 1.E-05" +string.format("%0# 2.1G", 1e-06) == " 1.E-06" +string.format("%0# 2.1G", 1e-07) == " 1.E-07" +string.format("%0# 2.1G", 123.456) == " 1.E+02" +string.format("%0# 2.1G", 1234560000) == " 1.E+09" +string.format("%0# 2.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# 2.1G", 123.456789123) == " 1.E+02" +string.format("%0# 2.1G", 1234567891.23) == " 1.E+09" +string.format("%0# 2.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 6G", nan) == " NAN" +string.format("%0# 6G", inf) == " INF" +string.format("%0# 6G", -inf) == " -INF" +string.format("%0# 6.0G", 0) == " 0000." +string.format("%0# 6.0G", 1) == " 0001." +string.format("%0# 6.0G", -1) == "-0001." +string.format("%0# 6.0G", 2) == " 0002." +string.format("%0# 6.0G", -2) == "-0002." +string.format("%0# 6.0G", 3) == " 0003." +string.format("%0# 6.0G", -3) == "-0003." +string.format("%0# 6.0G", nan) == " NAN" +string.format("%0# 6.0G", inf) == " INF" +string.format("%0# 6.0G", -inf) == " -INF" +string.format("%0# 6.0G", 100) == " 1.E+02" +string.format("%0# 6.0G", 10000) == " 1.E+04" +string.format("%0# 6.0G", 100000) == " 1.E+05" +string.format("%0# 6.0G", 1000000) == " 1.E+06" +string.format("%0# 6.0G", 10000000) == " 1.E+07" +string.format("%0# 6.0G", 0.01) == " 00.01" +string.format("%0# 6.0G", 0.0001) == " 0.0001" +string.format("%0# 6.0G", 1e-05) == " 1.E-05" +string.format("%0# 6.0G", 1e-06) == " 1.E-06" +string.format("%0# 6.0G", 1e-07) == " 1.E-07" +string.format("%0# 6.0G", 123.456) == " 1.E+02" +string.format("%0# 6.0G", 1234560000) == " 1.E+09" +string.format("%0# 6.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# 6.0G", 123.456789123) == " 1.E+02" +string.format("%0# 6.0G", 1234567891.23) == " 1.E+09" +string.format("%0# 6.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 6.1G", 0) == " 0000." +string.format("%0# 6.1G", 1) == " 0001." +string.format("%0# 6.1G", -1) == "-0001." +string.format("%0# 6.1G", 2) == " 0002." +string.format("%0# 6.1G", -2) == "-0002." +string.format("%0# 6.1G", 3) == " 0003." +string.format("%0# 6.1G", -3) == "-0003." +string.format("%0# 6.1G", nan) == " NAN" +string.format("%0# 6.1G", inf) == " INF" +string.format("%0# 6.1G", -inf) == " -INF" +string.format("%0# 6.1G", 100) == " 1.E+02" +string.format("%0# 6.1G", 10000) == " 1.E+04" +string.format("%0# 6.1G", 100000) == " 1.E+05" +string.format("%0# 6.1G", 1000000) == " 1.E+06" +string.format("%0# 6.1G", 10000000) == " 1.E+07" +string.format("%0# 6.1G", 0.01) == " 00.01" +string.format("%0# 6.1G", 0.0001) == " 0.0001" +string.format("%0# 6.1G", 1e-05) == " 1.E-05" +string.format("%0# 6.1G", 1e-06) == " 1.E-06" +string.format("%0# 6.1G", 1e-07) == " 1.E-07" +string.format("%0# 6.1G", 123.456) == " 1.E+02" +string.format("%0# 6.1G", 1234560000) == " 1.E+09" +string.format("%0# 6.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# 6.1G", 123.456789123) == " 1.E+02" +string.format("%0# 6.1G", 1234567891.23) == " 1.E+09" +string.format("%0# 6.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# 6.6G", nan) == " NAN" +string.format("%0# 6.6G", inf) == " INF" +string.format("%0# 6.6G", -inf) == " -INF" +string.format("%0# 20G", 0) == " 0000000000000.00000" +string.format("%0# 20G", 1) == " 0000000000001.00000" +string.format("%0# 20G", -1) == "-0000000000001.00000" +string.format("%0# 20G", 2) == " 0000000000002.00000" +string.format("%0# 20G", -2) == "-0000000000002.00000" +string.format("%0# 20G", 3) == " 0000000000003.00000" +string.format("%0# 20G", -3) == "-0000000000003.00000" +string.format("%0# 20G", nan) == " NAN" +string.format("%0# 20G", inf) == " INF" +string.format("%0# 20G", -inf) == " -INF" +string.format("%0# 20G", 100) == " 000000000000100.000" +string.format("%0# 20G", 10000) == " 00000000000010000.0" +string.format("%0# 20G", 100000) == " 000000000000100000." +string.format("%0# 20G", 1000000) == " 000000001.00000E+06" +string.format("%0# 20G", 10000000) == " 000000001.00000E+07" +string.format("%0# 20G", 0.01) == " 00000000000.0100000" +string.format("%0# 20G", 0.0001) == " 000000000.000100000" +string.format("%0# 20G", 1e-05) == " 000000001.00000E-05" +string.format("%0# 20G", 1e-06) == " 000000001.00000E-06" +string.format("%0# 20G", 1e-07) == " 000000001.00000E-07" +string.format("%0# 20G", 123.456) == " 000000000000123.456" +string.format("%0# 20G", 1234560000) == " 000000001.23456E+09" +string.format("%0# 20G", 1.23456e-05) == " 000000001.23456E-05" +string.format("%0# 20G", 123.456789123) == " 000000000000123.457" +string.format("%0# 20G", 1234567891.23) == " 000000001.23457E+09" +string.format("%0# 20G", 1.23456789123e-05) == " 000000001.23457E-05" +string.format("%0# 20.0G", 0) == " 000000000000000000." +string.format("%0# 20.0G", 1) == " 000000000000000001." +string.format("%0# 20.0G", -1) == "-000000000000000001." +string.format("%0# 20.0G", 2) == " 000000000000000002." +string.format("%0# 20.0G", -2) == "-000000000000000002." +string.format("%0# 20.0G", 3) == " 000000000000000003." +string.format("%0# 20.0G", -3) == "-000000000000000003." +string.format("%0# 20.0G", nan) == " NAN" +string.format("%0# 20.0G", inf) == " INF" +string.format("%0# 20.0G", -inf) == " -INF" +string.format("%0# 20.0G", 100) == " 00000000000001.E+02" +string.format("%0# 20.0G", 10000) == " 00000000000001.E+04" +string.format("%0# 20.0G", 100000) == " 00000000000001.E+05" +string.format("%0# 20.0G", 1000000) == " 00000000000001.E+06" +string.format("%0# 20.0G", 10000000) == " 00000000000001.E+07" +string.format("%0# 20.0G", 0.01) == " 0000000000000000.01" +string.format("%0# 20.0G", 0.0001) == " 00000000000000.0001" +string.format("%0# 20.0G", 1e-05) == " 00000000000001.E-05" +string.format("%0# 20.0G", 1e-06) == " 00000000000001.E-06" +string.format("%0# 20.0G", 1e-07) == " 00000000000001.E-07" +string.format("%0# 20.0G", 123.456) == " 00000000000001.E+02" +string.format("%0# 20.0G", 1234560000) == " 00000000000001.E+09" +string.format("%0# 20.0G", 1.23456e-05) == " 00000000000001.E-05" +string.format("%0# 20.0G", 123.456789123) == " 00000000000001.E+02" +string.format("%0# 20.0G", 1234567891.23) == " 00000000000001.E+09" +string.format("%0# 20.0G", 1.23456789123e-05) == " 00000000000001.E-05" +string.format("%0# 20.1G", 0) == " 000000000000000000." +string.format("%0# 20.1G", 1) == " 000000000000000001." +string.format("%0# 20.1G", -1) == "-000000000000000001." +string.format("%0# 20.1G", 2) == " 000000000000000002." +string.format("%0# 20.1G", -2) == "-000000000000000002." +string.format("%0# 20.1G", 3) == " 000000000000000003." +string.format("%0# 20.1G", -3) == "-000000000000000003." +string.format("%0# 20.1G", nan) == " NAN" +string.format("%0# 20.1G", inf) == " INF" +string.format("%0# 20.1G", -inf) == " -INF" +string.format("%0# 20.1G", 100) == " 00000000000001.E+02" +string.format("%0# 20.1G", 10000) == " 00000000000001.E+04" +string.format("%0# 20.1G", 100000) == " 00000000000001.E+05" +string.format("%0# 20.1G", 1000000) == " 00000000000001.E+06" +string.format("%0# 20.1G", 10000000) == " 00000000000001.E+07" +string.format("%0# 20.1G", 0.01) == " 0000000000000000.01" +string.format("%0# 20.1G", 0.0001) == " 00000000000000.0001" +string.format("%0# 20.1G", 1e-05) == " 00000000000001.E-05" +string.format("%0# 20.1G", 1e-06) == " 00000000000001.E-06" +string.format("%0# 20.1G", 1e-07) == " 00000000000001.E-07" +string.format("%0# 20.1G", 123.456) == " 00000000000001.E+02" +string.format("%0# 20.1G", 1234560000) == " 00000000000001.E+09" +string.format("%0# 20.1G", 1.23456e-05) == " 00000000000001.E-05" +string.format("%0# 20.1G", 123.456789123) == " 00000000000001.E+02" +string.format("%0# 20.1G", 1234567891.23) == " 00000000000001.E+09" +string.format("%0# 20.1G", 1.23456789123e-05) == " 00000000000001.E-05" +string.format("%0# 20.6G", 0) == " 0000000000000.00000" +string.format("%0# 20.6G", 1) == " 0000000000001.00000" +string.format("%0# 20.6G", -1) == "-0000000000001.00000" +string.format("%0# 20.6G", 2) == " 0000000000002.00000" +string.format("%0# 20.6G", -2) == "-0000000000002.00000" +string.format("%0# 20.6G", 3) == " 0000000000003.00000" +string.format("%0# 20.6G", -3) == "-0000000000003.00000" +string.format("%0# 20.6G", nan) == " NAN" +string.format("%0# 20.6G", inf) == " INF" +string.format("%0# 20.6G", -inf) == " -INF" +string.format("%0# 20.6G", 100) == " 000000000000100.000" +string.format("%0# 20.6G", 10000) == " 00000000000010000.0" +string.format("%0# 20.6G", 100000) == " 000000000000100000." +string.format("%0# 20.6G", 1000000) == " 000000001.00000E+06" +string.format("%0# 20.6G", 10000000) == " 000000001.00000E+07" +string.format("%0# 20.6G", 0.01) == " 00000000000.0100000" +string.format("%0# 20.6G", 0.0001) == " 000000000.000100000" +string.format("%0# 20.6G", 1e-05) == " 000000001.00000E-05" +string.format("%0# 20.6G", 1e-06) == " 000000001.00000E-06" +string.format("%0# 20.6G", 1e-07) == " 000000001.00000E-07" +string.format("%0# 20.6G", 123.456) == " 000000000000123.456" +string.format("%0# 20.6G", 1234560000) == " 000000001.23456E+09" +string.format("%0# 20.6G", 1.23456e-05) == " 000000001.23456E-05" +string.format("%0# 20.6G", 123.456789123) == " 000000000000123.457" +string.format("%0# 20.6G", 1234567891.23) == " 000000001.23457E+09" +string.format("%0# 20.6G", 1.23456789123e-05) == " 000000001.23457E-05" +string.format("%0# +G", 0) == "+0.00000" +string.format("%0# +G", 1) == "+1.00000" +string.format("%0# +G", -1) == "-1.00000" +string.format("%0# +G", 2) == "+2.00000" +string.format("%0# +G", -2) == "-2.00000" +string.format("%0# +G", 3) == "+3.00000" +string.format("%0# +G", -3) == "-3.00000" +string.format("%0# +G", nan) == "+NAN" +string.format("%0# +G", inf) == "+INF" +string.format("%0# +G", -inf) == "-INF" +string.format("%0# +G", 100) == "+100.000" +string.format("%0# +G", 10000) == "+10000.0" +string.format("%0# +G", 100000) == "+100000." +string.format("%0# +G", 1000000) == "+1.00000E+06" +string.format("%0# +G", 10000000) == "+1.00000E+07" +string.format("%0# +G", 0.01) == "+0.0100000" +string.format("%0# +G", 0.0001) == "+0.000100000" +string.format("%0# +G", 1e-05) == "+1.00000E-05" +string.format("%0# +G", 1e-06) == "+1.00000E-06" +string.format("%0# +G", 1e-07) == "+1.00000E-07" +string.format("%0# +G", 123.456) == "+123.456" +string.format("%0# +G", 1234560000) == "+1.23456E+09" +string.format("%0# +G", 1.23456e-05) == "+1.23456E-05" +string.format("%0# +G", 123.456789123) == "+123.457" +string.format("%0# +G", 1234567891.23) == "+1.23457E+09" +string.format("%0# +G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0# +.0G", 0) == "+0." +string.format("%0# +.0G", 1) == "+1." +string.format("%0# +.0G", -1) == "-1." +string.format("%0# +.0G", 2) == "+2." +string.format("%0# +.0G", -2) == "-2." +string.format("%0# +.0G", 3) == "+3." +string.format("%0# +.0G", -3) == "-3." +string.format("%0# +.0G", 100) == "+1.E+02" +string.format("%0# +.0G", 10000) == "+1.E+04" +string.format("%0# +.0G", 100000) == "+1.E+05" +string.format("%0# +.0G", 1000000) == "+1.E+06" +string.format("%0# +.0G", 10000000) == "+1.E+07" +string.format("%0# +.0G", 0.01) == "+0.01" +string.format("%0# +.0G", 0.0001) == "+0.0001" +string.format("%0# +.0G", 1e-05) == "+1.E-05" +string.format("%0# +.0G", 1e-06) == "+1.E-06" +string.format("%0# +.0G", 1e-07) == "+1.E-07" +string.format("%0# +.0G", 123.456) == "+1.E+02" +string.format("%0# +.0G", 1234560000) == "+1.E+09" +string.format("%0# +.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# +.0G", 123.456789123) == "+1.E+02" +string.format("%0# +.0G", 1234567891.23) == "+1.E+09" +string.format("%0# +.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +.1G", 0) == "+0." +string.format("%0# +.1G", 1) == "+1." +string.format("%0# +.1G", -1) == "-1." +string.format("%0# +.1G", 2) == "+2." +string.format("%0# +.1G", -2) == "-2." +string.format("%0# +.1G", 3) == "+3." +string.format("%0# +.1G", -3) == "-3." +string.format("%0# +.1G", 100) == "+1.E+02" +string.format("%0# +.1G", 10000) == "+1.E+04" +string.format("%0# +.1G", 100000) == "+1.E+05" +string.format("%0# +.1G", 1000000) == "+1.E+06" +string.format("%0# +.1G", 10000000) == "+1.E+07" +string.format("%0# +.1G", 0.01) == "+0.01" +string.format("%0# +.1G", 0.0001) == "+0.0001" +string.format("%0# +.1G", 1e-05) == "+1.E-05" +string.format("%0# +.1G", 1e-06) == "+1.E-06" +string.format("%0# +.1G", 1e-07) == "+1.E-07" +string.format("%0# +.1G", 123.456) == "+1.E+02" +string.format("%0# +.1G", 1234560000) == "+1.E+09" +string.format("%0# +.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# +.1G", 123.456789123) == "+1.E+02" +string.format("%0# +.1G", 1234567891.23) == "+1.E+09" +string.format("%0# +.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +1.0G", 0) == "+0." +string.format("%0# +1.0G", 1) == "+1." +string.format("%0# +1.0G", -1) == "-1." +string.format("%0# +1.0G", 2) == "+2." +string.format("%0# +1.0G", -2) == "-2." +string.format("%0# +1.0G", 3) == "+3." +string.format("%0# +1.0G", -3) == "-3." +string.format("%0# +1.0G", 100) == "+1.E+02" +string.format("%0# +1.0G", 10000) == "+1.E+04" +string.format("%0# +1.0G", 100000) == "+1.E+05" +string.format("%0# +1.0G", 1000000) == "+1.E+06" +string.format("%0# +1.0G", 10000000) == "+1.E+07" +string.format("%0# +1.0G", 0.01) == "+0.01" +string.format("%0# +1.0G", 0.0001) == "+0.0001" +string.format("%0# +1.0G", 1e-05) == "+1.E-05" +string.format("%0# +1.0G", 1e-06) == "+1.E-06" +string.format("%0# +1.0G", 1e-07) == "+1.E-07" +string.format("%0# +1.0G", 123.456) == "+1.E+02" +string.format("%0# +1.0G", 1234560000) == "+1.E+09" +string.format("%0# +1.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# +1.0G", 123.456789123) == "+1.E+02" +string.format("%0# +1.0G", 1234567891.23) == "+1.E+09" +string.format("%0# +1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +1.1G", 0) == "+0." +string.format("%0# +1.1G", 1) == "+1." +string.format("%0# +1.1G", -1) == "-1." +string.format("%0# +1.1G", 2) == "+2." +string.format("%0# +1.1G", -2) == "-2." +string.format("%0# +1.1G", 3) == "+3." +string.format("%0# +1.1G", -3) == "-3." +string.format("%0# +1.1G", 100) == "+1.E+02" +string.format("%0# +1.1G", 10000) == "+1.E+04" +string.format("%0# +1.1G", 100000) == "+1.E+05" +string.format("%0# +1.1G", 1000000) == "+1.E+06" +string.format("%0# +1.1G", 10000000) == "+1.E+07" +string.format("%0# +1.1G", 0.01) == "+0.01" +string.format("%0# +1.1G", 0.0001) == "+0.0001" +string.format("%0# +1.1G", 1e-05) == "+1.E-05" +string.format("%0# +1.1G", 1e-06) == "+1.E-06" +string.format("%0# +1.1G", 1e-07) == "+1.E-07" +string.format("%0# +1.1G", 123.456) == "+1.E+02" +string.format("%0# +1.1G", 1234560000) == "+1.E+09" +string.format("%0# +1.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# +1.1G", 123.456789123) == "+1.E+02" +string.format("%0# +1.1G", 1234567891.23) == "+1.E+09" +string.format("%0# +1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +2.0G", 0) == "+0." +string.format("%0# +2.0G", 1) == "+1." +string.format("%0# +2.0G", -1) == "-1." +string.format("%0# +2.0G", 2) == "+2." +string.format("%0# +2.0G", -2) == "-2." +string.format("%0# +2.0G", 3) == "+3." +string.format("%0# +2.0G", -3) == "-3." +string.format("%0# +2.0G", 100) == "+1.E+02" +string.format("%0# +2.0G", 10000) == "+1.E+04" +string.format("%0# +2.0G", 100000) == "+1.E+05" +string.format("%0# +2.0G", 1000000) == "+1.E+06" +string.format("%0# +2.0G", 10000000) == "+1.E+07" +string.format("%0# +2.0G", 0.01) == "+0.01" +string.format("%0# +2.0G", 0.0001) == "+0.0001" +string.format("%0# +2.0G", 1e-05) == "+1.E-05" +string.format("%0# +2.0G", 1e-06) == "+1.E-06" +string.format("%0# +2.0G", 1e-07) == "+1.E-07" +string.format("%0# +2.0G", 123.456) == "+1.E+02" +string.format("%0# +2.0G", 1234560000) == "+1.E+09" +string.format("%0# +2.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# +2.0G", 123.456789123) == "+1.E+02" +string.format("%0# +2.0G", 1234567891.23) == "+1.E+09" +string.format("%0# +2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +2.1G", 0) == "+0." +string.format("%0# +2.1G", 1) == "+1." +string.format("%0# +2.1G", -1) == "-1." +string.format("%0# +2.1G", 2) == "+2." +string.format("%0# +2.1G", -2) == "-2." +string.format("%0# +2.1G", 3) == "+3." +string.format("%0# +2.1G", -3) == "-3." +string.format("%0# +2.1G", 100) == "+1.E+02" +string.format("%0# +2.1G", 10000) == "+1.E+04" +string.format("%0# +2.1G", 100000) == "+1.E+05" +string.format("%0# +2.1G", 1000000) == "+1.E+06" +string.format("%0# +2.1G", 10000000) == "+1.E+07" +string.format("%0# +2.1G", 0.01) == "+0.01" +string.format("%0# +2.1G", 0.0001) == "+0.0001" +string.format("%0# +2.1G", 1e-05) == "+1.E-05" +string.format("%0# +2.1G", 1e-06) == "+1.E-06" +string.format("%0# +2.1G", 1e-07) == "+1.E-07" +string.format("%0# +2.1G", 123.456) == "+1.E+02" +string.format("%0# +2.1G", 1234560000) == "+1.E+09" +string.format("%0# +2.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# +2.1G", 123.456789123) == "+1.E+02" +string.format("%0# +2.1G", 1234567891.23) == "+1.E+09" +string.format("%0# +2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +6G", nan) == " +NAN" +string.format("%0# +6G", inf) == " +INF" +string.format("%0# +6G", -inf) == " -INF" +string.format("%0# +6.0G", 0) == "+0000." +string.format("%0# +6.0G", 1) == "+0001." +string.format("%0# +6.0G", -1) == "-0001." +string.format("%0# +6.0G", 2) == "+0002." +string.format("%0# +6.0G", -2) == "-0002." +string.format("%0# +6.0G", 3) == "+0003." +string.format("%0# +6.0G", -3) == "-0003." +string.format("%0# +6.0G", nan) == " +NAN" +string.format("%0# +6.0G", inf) == " +INF" +string.format("%0# +6.0G", -inf) == " -INF" +string.format("%0# +6.0G", 100) == "+1.E+02" +string.format("%0# +6.0G", 10000) == "+1.E+04" +string.format("%0# +6.0G", 100000) == "+1.E+05" +string.format("%0# +6.0G", 1000000) == "+1.E+06" +string.format("%0# +6.0G", 10000000) == "+1.E+07" +string.format("%0# +6.0G", 0.01) == "+00.01" +string.format("%0# +6.0G", 0.0001) == "+0.0001" +string.format("%0# +6.0G", 1e-05) == "+1.E-05" +string.format("%0# +6.0G", 1e-06) == "+1.E-06" +string.format("%0# +6.0G", 1e-07) == "+1.E-07" +string.format("%0# +6.0G", 123.456) == "+1.E+02" +string.format("%0# +6.0G", 1234560000) == "+1.E+09" +string.format("%0# +6.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# +6.0G", 123.456789123) == "+1.E+02" +string.format("%0# +6.0G", 1234567891.23) == "+1.E+09" +string.format("%0# +6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +6.1G", 0) == "+0000." +string.format("%0# +6.1G", 1) == "+0001." +string.format("%0# +6.1G", -1) == "-0001." +string.format("%0# +6.1G", 2) == "+0002." +string.format("%0# +6.1G", -2) == "-0002." +string.format("%0# +6.1G", 3) == "+0003." +string.format("%0# +6.1G", -3) == "-0003." +string.format("%0# +6.1G", nan) == " +NAN" +string.format("%0# +6.1G", inf) == " +INF" +string.format("%0# +6.1G", -inf) == " -INF" +string.format("%0# +6.1G", 100) == "+1.E+02" +string.format("%0# +6.1G", 10000) == "+1.E+04" +string.format("%0# +6.1G", 100000) == "+1.E+05" +string.format("%0# +6.1G", 1000000) == "+1.E+06" +string.format("%0# +6.1G", 10000000) == "+1.E+07" +string.format("%0# +6.1G", 0.01) == "+00.01" +string.format("%0# +6.1G", 0.0001) == "+0.0001" +string.format("%0# +6.1G", 1e-05) == "+1.E-05" +string.format("%0# +6.1G", 1e-06) == "+1.E-06" +string.format("%0# +6.1G", 1e-07) == "+1.E-07" +string.format("%0# +6.1G", 123.456) == "+1.E+02" +string.format("%0# +6.1G", 1234560000) == "+1.E+09" +string.format("%0# +6.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# +6.1G", 123.456789123) == "+1.E+02" +string.format("%0# +6.1G", 1234567891.23) == "+1.E+09" +string.format("%0# +6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# +6.6G", nan) == " +NAN" +string.format("%0# +6.6G", inf) == " +INF" +string.format("%0# +6.6G", -inf) == " -INF" +string.format("%0# +20G", 0) == "+0000000000000.00000" +string.format("%0# +20G", 1) == "+0000000000001.00000" +string.format("%0# +20G", -1) == "-0000000000001.00000" +string.format("%0# +20G", 2) == "+0000000000002.00000" +string.format("%0# +20G", -2) == "-0000000000002.00000" +string.format("%0# +20G", 3) == "+0000000000003.00000" +string.format("%0# +20G", -3) == "-0000000000003.00000" +string.format("%0# +20G", nan) == " +NAN" +string.format("%0# +20G", inf) == " +INF" +string.format("%0# +20G", -inf) == " -INF" +string.format("%0# +20G", 100) == "+000000000000100.000" +string.format("%0# +20G", 10000) == "+00000000000010000.0" +string.format("%0# +20G", 100000) == "+000000000000100000." +string.format("%0# +20G", 1000000) == "+000000001.00000E+06" +string.format("%0# +20G", 10000000) == "+000000001.00000E+07" +string.format("%0# +20G", 0.01) == "+00000000000.0100000" +string.format("%0# +20G", 0.0001) == "+000000000.000100000" +string.format("%0# +20G", 1e-05) == "+000000001.00000E-05" +string.format("%0# +20G", 1e-06) == "+000000001.00000E-06" +string.format("%0# +20G", 1e-07) == "+000000001.00000E-07" +string.format("%0# +20G", 123.456) == "+000000000000123.456" +string.format("%0# +20G", 1234560000) == "+000000001.23456E+09" +string.format("%0# +20G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0# +20G", 123.456789123) == "+000000000000123.457" +string.format("%0# +20G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0# +20G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0# +20.0G", 0) == "+000000000000000000." +string.format("%0# +20.0G", 1) == "+000000000000000001." +string.format("%0# +20.0G", -1) == "-000000000000000001." +string.format("%0# +20.0G", 2) == "+000000000000000002." +string.format("%0# +20.0G", -2) == "-000000000000000002." +string.format("%0# +20.0G", 3) == "+000000000000000003." +string.format("%0# +20.0G", -3) == "-000000000000000003." +string.format("%0# +20.0G", nan) == " +NAN" +string.format("%0# +20.0G", inf) == " +INF" +string.format("%0# +20.0G", -inf) == " -INF" +string.format("%0# +20.0G", 100) == "+00000000000001.E+02" +string.format("%0# +20.0G", 10000) == "+00000000000001.E+04" +string.format("%0# +20.0G", 100000) == "+00000000000001.E+05" +string.format("%0# +20.0G", 1000000) == "+00000000000001.E+06" +string.format("%0# +20.0G", 10000000) == "+00000000000001.E+07" +string.format("%0# +20.0G", 0.01) == "+0000000000000000.01" +string.format("%0# +20.0G", 0.0001) == "+00000000000000.0001" +string.format("%0# +20.0G", 1e-05) == "+00000000000001.E-05" +string.format("%0# +20.0G", 1e-06) == "+00000000000001.E-06" +string.format("%0# +20.0G", 1e-07) == "+00000000000001.E-07" +string.format("%0# +20.0G", 123.456) == "+00000000000001.E+02" +string.format("%0# +20.0G", 1234560000) == "+00000000000001.E+09" +string.format("%0# +20.0G", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0# +20.0G", 123.456789123) == "+00000000000001.E+02" +string.format("%0# +20.0G", 1234567891.23) == "+00000000000001.E+09" +string.format("%0# +20.0G", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0# +20.1G", 0) == "+000000000000000000." +string.format("%0# +20.1G", 1) == "+000000000000000001." +string.format("%0# +20.1G", -1) == "-000000000000000001." +string.format("%0# +20.1G", 2) == "+000000000000000002." +string.format("%0# +20.1G", -2) == "-000000000000000002." +string.format("%0# +20.1G", 3) == "+000000000000000003." +string.format("%0# +20.1G", -3) == "-000000000000000003." +string.format("%0# +20.1G", nan) == " +NAN" +string.format("%0# +20.1G", inf) == " +INF" +string.format("%0# +20.1G", -inf) == " -INF" +string.format("%0# +20.1G", 100) == "+00000000000001.E+02" +string.format("%0# +20.1G", 10000) == "+00000000000001.E+04" +string.format("%0# +20.1G", 100000) == "+00000000000001.E+05" +string.format("%0# +20.1G", 1000000) == "+00000000000001.E+06" +string.format("%0# +20.1G", 10000000) == "+00000000000001.E+07" +string.format("%0# +20.1G", 0.01) == "+0000000000000000.01" +string.format("%0# +20.1G", 0.0001) == "+00000000000000.0001" +string.format("%0# +20.1G", 1e-05) == "+00000000000001.E-05" +string.format("%0# +20.1G", 1e-06) == "+00000000000001.E-06" +string.format("%0# +20.1G", 1e-07) == "+00000000000001.E-07" +string.format("%0# +20.1G", 123.456) == "+00000000000001.E+02" +string.format("%0# +20.1G", 1234560000) == "+00000000000001.E+09" +string.format("%0# +20.1G", 1.23456e-05) == "+00000000000001.E-05" +string.format("%0# +20.1G", 123.456789123) == "+00000000000001.E+02" +string.format("%0# +20.1G", 1234567891.23) == "+00000000000001.E+09" +string.format("%0# +20.1G", 1.23456789123e-05) == "+00000000000001.E-05" +string.format("%0# +20.6G", 0) == "+0000000000000.00000" +string.format("%0# +20.6G", 1) == "+0000000000001.00000" +string.format("%0# +20.6G", -1) == "-0000000000001.00000" +string.format("%0# +20.6G", 2) == "+0000000000002.00000" +string.format("%0# +20.6G", -2) == "-0000000000002.00000" +string.format("%0# +20.6G", 3) == "+0000000000003.00000" +string.format("%0# +20.6G", -3) == "-0000000000003.00000" +string.format("%0# +20.6G", nan) == " +NAN" +string.format("%0# +20.6G", inf) == " +INF" +string.format("%0# +20.6G", -inf) == " -INF" +string.format("%0# +20.6G", 100) == "+000000000000100.000" +string.format("%0# +20.6G", 10000) == "+00000000000010000.0" +string.format("%0# +20.6G", 100000) == "+000000000000100000." +string.format("%0# +20.6G", 1000000) == "+000000001.00000E+06" +string.format("%0# +20.6G", 10000000) == "+000000001.00000E+07" +string.format("%0# +20.6G", 0.01) == "+00000000000.0100000" +string.format("%0# +20.6G", 0.0001) == "+000000000.000100000" +string.format("%0# +20.6G", 1e-05) == "+000000001.00000E-05" +string.format("%0# +20.6G", 1e-06) == "+000000001.00000E-06" +string.format("%0# +20.6G", 1e-07) == "+000000001.00000E-07" +string.format("%0# +20.6G", 123.456) == "+000000000000123.456" +string.format("%0# +20.6G", 1234560000) == "+000000001.23456E+09" +string.format("%0# +20.6G", 1.23456e-05) == "+000000001.23456E-05" +string.format("%0# +20.6G", 123.456789123) == "+000000000000123.457" +string.format("%0# +20.6G", 1234567891.23) == "+000000001.23457E+09" +string.format("%0# +20.6G", 1.23456789123e-05) == "+000000001.23457E-05" +string.format("%0# -G", 0) == " 0.00000" +string.format("%0# -G", 1) == " 1.00000" +string.format("%0# -G", -1) == "-1.00000" +string.format("%0# -G", 2) == " 2.00000" +string.format("%0# -G", -2) == "-2.00000" +string.format("%0# -G", 3) == " 3.00000" +string.format("%0# -G", -3) == "-3.00000" +string.format("%0# -G", nan) == " NAN" +string.format("%0# -G", inf) == " INF" +string.format("%0# -G", -inf) == "-INF" +string.format("%0# -G", 100) == " 100.000" +string.format("%0# -G", 10000) == " 10000.0" +string.format("%0# -G", 100000) == " 100000." +string.format("%0# -G", 1000000) == " 1.00000E+06" +string.format("%0# -G", 10000000) == " 1.00000E+07" +string.format("%0# -G", 0.01) == " 0.0100000" +string.format("%0# -G", 0.0001) == " 0.000100000" +string.format("%0# -G", 1e-05) == " 1.00000E-05" +string.format("%0# -G", 1e-06) == " 1.00000E-06" +string.format("%0# -G", 1e-07) == " 1.00000E-07" +string.format("%0# -G", 123.456) == " 123.456" +string.format("%0# -G", 1234560000) == " 1.23456E+09" +string.format("%0# -G", 1.23456e-05) == " 1.23456E-05" +string.format("%0# -G", 123.456789123) == " 123.457" +string.format("%0# -G", 1234567891.23) == " 1.23457E+09" +string.format("%0# -G", 1.23456789123e-05) == " 1.23457E-05" +string.format("%0# -.0G", 0) == " 0." +string.format("%0# -.0G", 1) == " 1." +string.format("%0# -.0G", -1) == "-1." +string.format("%0# -.0G", 2) == " 2." +string.format("%0# -.0G", -2) == "-2." +string.format("%0# -.0G", 3) == " 3." +string.format("%0# -.0G", -3) == "-3." +string.format("%0# -.0G", 100) == " 1.E+02" +string.format("%0# -.0G", 10000) == " 1.E+04" +string.format("%0# -.0G", 100000) == " 1.E+05" +string.format("%0# -.0G", 1000000) == " 1.E+06" +string.format("%0# -.0G", 10000000) == " 1.E+07" +string.format("%0# -.0G", 0.01) == " 0.01" +string.format("%0# -.0G", 0.0001) == " 0.0001" +string.format("%0# -.0G", 1e-05) == " 1.E-05" +string.format("%0# -.0G", 1e-06) == " 1.E-06" +string.format("%0# -.0G", 1e-07) == " 1.E-07" +string.format("%0# -.0G", 123.456) == " 1.E+02" +string.format("%0# -.0G", 1234560000) == " 1.E+09" +string.format("%0# -.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# -.0G", 123.456789123) == " 1.E+02" +string.format("%0# -.0G", 1234567891.23) == " 1.E+09" +string.format("%0# -.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -.1G", 0) == " 0." +string.format("%0# -.1G", 1) == " 1." +string.format("%0# -.1G", -1) == "-1." +string.format("%0# -.1G", 2) == " 2." +string.format("%0# -.1G", -2) == "-2." +string.format("%0# -.1G", 3) == " 3." +string.format("%0# -.1G", -3) == "-3." +string.format("%0# -.1G", 100) == " 1.E+02" +string.format("%0# -.1G", 10000) == " 1.E+04" +string.format("%0# -.1G", 100000) == " 1.E+05" +string.format("%0# -.1G", 1000000) == " 1.E+06" +string.format("%0# -.1G", 10000000) == " 1.E+07" +string.format("%0# -.1G", 0.01) == " 0.01" +string.format("%0# -.1G", 0.0001) == " 0.0001" +string.format("%0# -.1G", 1e-05) == " 1.E-05" +string.format("%0# -.1G", 1e-06) == " 1.E-06" +string.format("%0# -.1G", 1e-07) == " 1.E-07" +string.format("%0# -.1G", 123.456) == " 1.E+02" +string.format("%0# -.1G", 1234560000) == " 1.E+09" +string.format("%0# -.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# -.1G", 123.456789123) == " 1.E+02" +string.format("%0# -.1G", 1234567891.23) == " 1.E+09" +string.format("%0# -.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -1.0G", 0) == " 0." +string.format("%0# -1.0G", 1) == " 1." +string.format("%0# -1.0G", -1) == "-1." +string.format("%0# -1.0G", 2) == " 2." +string.format("%0# -1.0G", -2) == "-2." +string.format("%0# -1.0G", 3) == " 3." +string.format("%0# -1.0G", -3) == "-3." +string.format("%0# -1.0G", 100) == " 1.E+02" +string.format("%0# -1.0G", 10000) == " 1.E+04" +string.format("%0# -1.0G", 100000) == " 1.E+05" +string.format("%0# -1.0G", 1000000) == " 1.E+06" +string.format("%0# -1.0G", 10000000) == " 1.E+07" +string.format("%0# -1.0G", 0.01) == " 0.01" +string.format("%0# -1.0G", 0.0001) == " 0.0001" +string.format("%0# -1.0G", 1e-05) == " 1.E-05" +string.format("%0# -1.0G", 1e-06) == " 1.E-06" +string.format("%0# -1.0G", 1e-07) == " 1.E-07" +string.format("%0# -1.0G", 123.456) == " 1.E+02" +string.format("%0# -1.0G", 1234560000) == " 1.E+09" +string.format("%0# -1.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# -1.0G", 123.456789123) == " 1.E+02" +string.format("%0# -1.0G", 1234567891.23) == " 1.E+09" +string.format("%0# -1.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -1.1G", 0) == " 0." +string.format("%0# -1.1G", 1) == " 1." +string.format("%0# -1.1G", -1) == "-1." +string.format("%0# -1.1G", 2) == " 2." +string.format("%0# -1.1G", -2) == "-2." +string.format("%0# -1.1G", 3) == " 3." +string.format("%0# -1.1G", -3) == "-3." +string.format("%0# -1.1G", 100) == " 1.E+02" +string.format("%0# -1.1G", 10000) == " 1.E+04" +string.format("%0# -1.1G", 100000) == " 1.E+05" +string.format("%0# -1.1G", 1000000) == " 1.E+06" +string.format("%0# -1.1G", 10000000) == " 1.E+07" +string.format("%0# -1.1G", 0.01) == " 0.01" +string.format("%0# -1.1G", 0.0001) == " 0.0001" +string.format("%0# -1.1G", 1e-05) == " 1.E-05" +string.format("%0# -1.1G", 1e-06) == " 1.E-06" +string.format("%0# -1.1G", 1e-07) == " 1.E-07" +string.format("%0# -1.1G", 123.456) == " 1.E+02" +string.format("%0# -1.1G", 1234560000) == " 1.E+09" +string.format("%0# -1.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# -1.1G", 123.456789123) == " 1.E+02" +string.format("%0# -1.1G", 1234567891.23) == " 1.E+09" +string.format("%0# -1.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -2.0G", 0) == " 0." +string.format("%0# -2.0G", 1) == " 1." +string.format("%0# -2.0G", -1) == "-1." +string.format("%0# -2.0G", 2) == " 2." +string.format("%0# -2.0G", -2) == "-2." +string.format("%0# -2.0G", 3) == " 3." +string.format("%0# -2.0G", -3) == "-3." +string.format("%0# -2.0G", 100) == " 1.E+02" +string.format("%0# -2.0G", 10000) == " 1.E+04" +string.format("%0# -2.0G", 100000) == " 1.E+05" +string.format("%0# -2.0G", 1000000) == " 1.E+06" +string.format("%0# -2.0G", 10000000) == " 1.E+07" +string.format("%0# -2.0G", 0.01) == " 0.01" +string.format("%0# -2.0G", 0.0001) == " 0.0001" +string.format("%0# -2.0G", 1e-05) == " 1.E-05" +string.format("%0# -2.0G", 1e-06) == " 1.E-06" +string.format("%0# -2.0G", 1e-07) == " 1.E-07" +string.format("%0# -2.0G", 123.456) == " 1.E+02" +string.format("%0# -2.0G", 1234560000) == " 1.E+09" +string.format("%0# -2.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# -2.0G", 123.456789123) == " 1.E+02" +string.format("%0# -2.0G", 1234567891.23) == " 1.E+09" +string.format("%0# -2.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -2.1G", 0) == " 0." +string.format("%0# -2.1G", 1) == " 1." +string.format("%0# -2.1G", -1) == "-1." +string.format("%0# -2.1G", 2) == " 2." +string.format("%0# -2.1G", -2) == "-2." +string.format("%0# -2.1G", 3) == " 3." +string.format("%0# -2.1G", -3) == "-3." +string.format("%0# -2.1G", 100) == " 1.E+02" +string.format("%0# -2.1G", 10000) == " 1.E+04" +string.format("%0# -2.1G", 100000) == " 1.E+05" +string.format("%0# -2.1G", 1000000) == " 1.E+06" +string.format("%0# -2.1G", 10000000) == " 1.E+07" +string.format("%0# -2.1G", 0.01) == " 0.01" +string.format("%0# -2.1G", 0.0001) == " 0.0001" +string.format("%0# -2.1G", 1e-05) == " 1.E-05" +string.format("%0# -2.1G", 1e-06) == " 1.E-06" +string.format("%0# -2.1G", 1e-07) == " 1.E-07" +string.format("%0# -2.1G", 123.456) == " 1.E+02" +string.format("%0# -2.1G", 1234560000) == " 1.E+09" +string.format("%0# -2.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# -2.1G", 123.456789123) == " 1.E+02" +string.format("%0# -2.1G", 1234567891.23) == " 1.E+09" +string.format("%0# -2.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -6G", nan) == " NAN " +string.format("%0# -6G", inf) == " INF " +string.format("%0# -6G", -inf) == "-INF " +string.format("%0# -6.0G", 0) == " 0. " +string.format("%0# -6.0G", 1) == " 1. " +string.format("%0# -6.0G", -1) == "-1. " +string.format("%0# -6.0G", 2) == " 2. " +string.format("%0# -6.0G", -2) == "-2. " +string.format("%0# -6.0G", 3) == " 3. " +string.format("%0# -6.0G", -3) == "-3. " +string.format("%0# -6.0G", nan) == " NAN " +string.format("%0# -6.0G", inf) == " INF " +string.format("%0# -6.0G", -inf) == "-INF " +string.format("%0# -6.0G", 100) == " 1.E+02" +string.format("%0# -6.0G", 10000) == " 1.E+04" +string.format("%0# -6.0G", 100000) == " 1.E+05" +string.format("%0# -6.0G", 1000000) == " 1.E+06" +string.format("%0# -6.0G", 10000000) == " 1.E+07" +string.format("%0# -6.0G", 0.01) == " 0.01 " +string.format("%0# -6.0G", 0.0001) == " 0.0001" +string.format("%0# -6.0G", 1e-05) == " 1.E-05" +string.format("%0# -6.0G", 1e-06) == " 1.E-06" +string.format("%0# -6.0G", 1e-07) == " 1.E-07" +string.format("%0# -6.0G", 123.456) == " 1.E+02" +string.format("%0# -6.0G", 1234560000) == " 1.E+09" +string.format("%0# -6.0G", 1.23456e-05) == " 1.E-05" +string.format("%0# -6.0G", 123.456789123) == " 1.E+02" +string.format("%0# -6.0G", 1234567891.23) == " 1.E+09" +string.format("%0# -6.0G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -6.1G", 0) == " 0. " +string.format("%0# -6.1G", 1) == " 1. " +string.format("%0# -6.1G", -1) == "-1. " +string.format("%0# -6.1G", 2) == " 2. " +string.format("%0# -6.1G", -2) == "-2. " +string.format("%0# -6.1G", 3) == " 3. " +string.format("%0# -6.1G", -3) == "-3. " +string.format("%0# -6.1G", nan) == " NAN " +string.format("%0# -6.1G", inf) == " INF " +string.format("%0# -6.1G", -inf) == "-INF " +string.format("%0# -6.1G", 100) == " 1.E+02" +string.format("%0# -6.1G", 10000) == " 1.E+04" +string.format("%0# -6.1G", 100000) == " 1.E+05" +string.format("%0# -6.1G", 1000000) == " 1.E+06" +string.format("%0# -6.1G", 10000000) == " 1.E+07" +string.format("%0# -6.1G", 0.01) == " 0.01 " +string.format("%0# -6.1G", 0.0001) == " 0.0001" +string.format("%0# -6.1G", 1e-05) == " 1.E-05" +string.format("%0# -6.1G", 1e-06) == " 1.E-06" +string.format("%0# -6.1G", 1e-07) == " 1.E-07" +string.format("%0# -6.1G", 123.456) == " 1.E+02" +string.format("%0# -6.1G", 1234560000) == " 1.E+09" +string.format("%0# -6.1G", 1.23456e-05) == " 1.E-05" +string.format("%0# -6.1G", 123.456789123) == " 1.E+02" +string.format("%0# -6.1G", 1234567891.23) == " 1.E+09" +string.format("%0# -6.1G", 1.23456789123e-05) == " 1.E-05" +string.format("%0# -6.6G", nan) == " NAN " +string.format("%0# -6.6G", inf) == " INF " +string.format("%0# -6.6G", -inf) == "-INF " +string.format("%0# -20G", 0) == " 0.00000 " +string.format("%0# -20G", 1) == " 1.00000 " +string.format("%0# -20G", -1) == "-1.00000 " +string.format("%0# -20G", 2) == " 2.00000 " +string.format("%0# -20G", -2) == "-2.00000 " +string.format("%0# -20G", 3) == " 3.00000 " +string.format("%0# -20G", -3) == "-3.00000 " +string.format("%0# -20G", nan) == " NAN " +string.format("%0# -20G", inf) == " INF " +string.format("%0# -20G", -inf) == "-INF " +string.format("%0# -20G", 100) == " 100.000 " +string.format("%0# -20G", 10000) == " 10000.0 " +string.format("%0# -20G", 100000) == " 100000. " +string.format("%0# -20G", 1000000) == " 1.00000E+06 " +string.format("%0# -20G", 10000000) == " 1.00000E+07 " +string.format("%0# -20G", 0.01) == " 0.0100000 " +string.format("%0# -20G", 0.0001) == " 0.000100000 " +string.format("%0# -20G", 1e-05) == " 1.00000E-05 " +string.format("%0# -20G", 1e-06) == " 1.00000E-06 " +string.format("%0# -20G", 1e-07) == " 1.00000E-07 " +string.format("%0# -20G", 123.456) == " 123.456 " +string.format("%0# -20G", 1234560000) == " 1.23456E+09 " +string.format("%0# -20G", 1.23456e-05) == " 1.23456E-05 " +string.format("%0# -20G", 123.456789123) == " 123.457 " +string.format("%0# -20G", 1234567891.23) == " 1.23457E+09 " +string.format("%0# -20G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%0# -20.0G", 0) == " 0. " +string.format("%0# -20.0G", 1) == " 1. " +string.format("%0# -20.0G", -1) == "-1. " +string.format("%0# -20.0G", 2) == " 2. " +string.format("%0# -20.0G", -2) == "-2. " +string.format("%0# -20.0G", 3) == " 3. " +string.format("%0# -20.0G", -3) == "-3. " +string.format("%0# -20.0G", nan) == " NAN " +string.format("%0# -20.0G", inf) == " INF " +string.format("%0# -20.0G", -inf) == "-INF " +string.format("%0# -20.0G", 100) == " 1.E+02 " +string.format("%0# -20.0G", 10000) == " 1.E+04 " +string.format("%0# -20.0G", 100000) == " 1.E+05 " +string.format("%0# -20.0G", 1000000) == " 1.E+06 " +string.format("%0# -20.0G", 10000000) == " 1.E+07 " +string.format("%0# -20.0G", 0.01) == " 0.01 " +string.format("%0# -20.0G", 0.0001) == " 0.0001 " +string.format("%0# -20.0G", 1e-05) == " 1.E-05 " +string.format("%0# -20.0G", 1e-06) == " 1.E-06 " +string.format("%0# -20.0G", 1e-07) == " 1.E-07 " +string.format("%0# -20.0G", 123.456) == " 1.E+02 " +string.format("%0# -20.0G", 1234560000) == " 1.E+09 " +string.format("%0# -20.0G", 1.23456e-05) == " 1.E-05 " +string.format("%0# -20.0G", 123.456789123) == " 1.E+02 " +string.format("%0# -20.0G", 1234567891.23) == " 1.E+09 " +string.format("%0# -20.0G", 1.23456789123e-05) == " 1.E-05 " +string.format("%0# -20.1G", 0) == " 0. " +string.format("%0# -20.1G", 1) == " 1. " +string.format("%0# -20.1G", -1) == "-1. " +string.format("%0# -20.1G", 2) == " 2. " +string.format("%0# -20.1G", -2) == "-2. " +string.format("%0# -20.1G", 3) == " 3. " +string.format("%0# -20.1G", -3) == "-3. " +string.format("%0# -20.1G", nan) == " NAN " +string.format("%0# -20.1G", inf) == " INF " +string.format("%0# -20.1G", -inf) == "-INF " +string.format("%0# -20.1G", 100) == " 1.E+02 " +string.format("%0# -20.1G", 10000) == " 1.E+04 " +string.format("%0# -20.1G", 100000) == " 1.E+05 " +string.format("%0# -20.1G", 1000000) == " 1.E+06 " +string.format("%0# -20.1G", 10000000) == " 1.E+07 " +string.format("%0# -20.1G", 0.01) == " 0.01 " +string.format("%0# -20.1G", 0.0001) == " 0.0001 " +string.format("%0# -20.1G", 1e-05) == " 1.E-05 " +string.format("%0# -20.1G", 1e-06) == " 1.E-06 " +string.format("%0# -20.1G", 1e-07) == " 1.E-07 " +string.format("%0# -20.1G", 123.456) == " 1.E+02 " +string.format("%0# -20.1G", 1234560000) == " 1.E+09 " +string.format("%0# -20.1G", 1.23456e-05) == " 1.E-05 " +string.format("%0# -20.1G", 123.456789123) == " 1.E+02 " +string.format("%0# -20.1G", 1234567891.23) == " 1.E+09 " +string.format("%0# -20.1G", 1.23456789123e-05) == " 1.E-05 " +string.format("%0# -20.6G", 0) == " 0.00000 " +string.format("%0# -20.6G", 1) == " 1.00000 " +string.format("%0# -20.6G", -1) == "-1.00000 " +string.format("%0# -20.6G", 2) == " 2.00000 " +string.format("%0# -20.6G", -2) == "-2.00000 " +string.format("%0# -20.6G", 3) == " 3.00000 " +string.format("%0# -20.6G", -3) == "-3.00000 " +string.format("%0# -20.6G", nan) == " NAN " +string.format("%0# -20.6G", inf) == " INF " +string.format("%0# -20.6G", -inf) == "-INF " +string.format("%0# -20.6G", 100) == " 100.000 " +string.format("%0# -20.6G", 10000) == " 10000.0 " +string.format("%0# -20.6G", 100000) == " 100000. " +string.format("%0# -20.6G", 1000000) == " 1.00000E+06 " +string.format("%0# -20.6G", 10000000) == " 1.00000E+07 " +string.format("%0# -20.6G", 0.01) == " 0.0100000 " +string.format("%0# -20.6G", 0.0001) == " 0.000100000 " +string.format("%0# -20.6G", 1e-05) == " 1.00000E-05 " +string.format("%0# -20.6G", 1e-06) == " 1.00000E-06 " +string.format("%0# -20.6G", 1e-07) == " 1.00000E-07 " +string.format("%0# -20.6G", 123.456) == " 123.456 " +string.format("%0# -20.6G", 1234560000) == " 1.23456E+09 " +string.format("%0# -20.6G", 1.23456e-05) == " 1.23456E-05 " +string.format("%0# -20.6G", 123.456789123) == " 123.457 " +string.format("%0# -20.6G", 1234567891.23) == " 1.23457E+09 " +string.format("%0# -20.6G", 1.23456789123e-05) == " 1.23457E-05 " +string.format("%0# -+G", 0) == "+0.00000" +string.format("%0# -+G", 1) == "+1.00000" +string.format("%0# -+G", -1) == "-1.00000" +string.format("%0# -+G", 2) == "+2.00000" +string.format("%0# -+G", -2) == "-2.00000" +string.format("%0# -+G", 3) == "+3.00000" +string.format("%0# -+G", -3) == "-3.00000" +string.format("%0# -+G", nan) == "+NAN" +string.format("%0# -+G", inf) == "+INF" +string.format("%0# -+G", -inf) == "-INF" +string.format("%0# -+G", 100) == "+100.000" +string.format("%0# -+G", 10000) == "+10000.0" +string.format("%0# -+G", 100000) == "+100000." +string.format("%0# -+G", 1000000) == "+1.00000E+06" +string.format("%0# -+G", 10000000) == "+1.00000E+07" +string.format("%0# -+G", 0.01) == "+0.0100000" +string.format("%0# -+G", 0.0001) == "+0.000100000" +string.format("%0# -+G", 1e-05) == "+1.00000E-05" +string.format("%0# -+G", 1e-06) == "+1.00000E-06" +string.format("%0# -+G", 1e-07) == "+1.00000E-07" +string.format("%0# -+G", 123.456) == "+123.456" +string.format("%0# -+G", 1234560000) == "+1.23456E+09" +string.format("%0# -+G", 1.23456e-05) == "+1.23456E-05" +string.format("%0# -+G", 123.456789123) == "+123.457" +string.format("%0# -+G", 1234567891.23) == "+1.23457E+09" +string.format("%0# -+G", 1.23456789123e-05) == "+1.23457E-05" +string.format("%0# -+.0G", 0) == "+0." +string.format("%0# -+.0G", 1) == "+1." +string.format("%0# -+.0G", -1) == "-1." +string.format("%0# -+.0G", 2) == "+2." +string.format("%0# -+.0G", -2) == "-2." +string.format("%0# -+.0G", 3) == "+3." +string.format("%0# -+.0G", -3) == "-3." +string.format("%0# -+.0G", 100) == "+1.E+02" +string.format("%0# -+.0G", 10000) == "+1.E+04" +string.format("%0# -+.0G", 100000) == "+1.E+05" +string.format("%0# -+.0G", 1000000) == "+1.E+06" +string.format("%0# -+.0G", 10000000) == "+1.E+07" +string.format("%0# -+.0G", 0.01) == "+0.01" +string.format("%0# -+.0G", 0.0001) == "+0.0001" +string.format("%0# -+.0G", 1e-05) == "+1.E-05" +string.format("%0# -+.0G", 1e-06) == "+1.E-06" +string.format("%0# -+.0G", 1e-07) == "+1.E-07" +string.format("%0# -+.0G", 123.456) == "+1.E+02" +string.format("%0# -+.0G", 1234560000) == "+1.E+09" +string.format("%0# -+.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+.0G", 123.456789123) == "+1.E+02" +string.format("%0# -+.0G", 1234567891.23) == "+1.E+09" +string.format("%0# -+.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+.1G", 0) == "+0." +string.format("%0# -+.1G", 1) == "+1." +string.format("%0# -+.1G", -1) == "-1." +string.format("%0# -+.1G", 2) == "+2." +string.format("%0# -+.1G", -2) == "-2." +string.format("%0# -+.1G", 3) == "+3." +string.format("%0# -+.1G", -3) == "-3." +string.format("%0# -+.1G", 100) == "+1.E+02" +string.format("%0# -+.1G", 10000) == "+1.E+04" +string.format("%0# -+.1G", 100000) == "+1.E+05" +string.format("%0# -+.1G", 1000000) == "+1.E+06" +string.format("%0# -+.1G", 10000000) == "+1.E+07" +string.format("%0# -+.1G", 0.01) == "+0.01" +string.format("%0# -+.1G", 0.0001) == "+0.0001" +string.format("%0# -+.1G", 1e-05) == "+1.E-05" +string.format("%0# -+.1G", 1e-06) == "+1.E-06" +string.format("%0# -+.1G", 1e-07) == "+1.E-07" +string.format("%0# -+.1G", 123.456) == "+1.E+02" +string.format("%0# -+.1G", 1234560000) == "+1.E+09" +string.format("%0# -+.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+.1G", 123.456789123) == "+1.E+02" +string.format("%0# -+.1G", 1234567891.23) == "+1.E+09" +string.format("%0# -+.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+1.0G", 0) == "+0." +string.format("%0# -+1.0G", 1) == "+1." +string.format("%0# -+1.0G", -1) == "-1." +string.format("%0# -+1.0G", 2) == "+2." +string.format("%0# -+1.0G", -2) == "-2." +string.format("%0# -+1.0G", 3) == "+3." +string.format("%0# -+1.0G", -3) == "-3." +string.format("%0# -+1.0G", 100) == "+1.E+02" +string.format("%0# -+1.0G", 10000) == "+1.E+04" +string.format("%0# -+1.0G", 100000) == "+1.E+05" +string.format("%0# -+1.0G", 1000000) == "+1.E+06" +string.format("%0# -+1.0G", 10000000) == "+1.E+07" +string.format("%0# -+1.0G", 0.01) == "+0.01" +string.format("%0# -+1.0G", 0.0001) == "+0.0001" +string.format("%0# -+1.0G", 1e-05) == "+1.E-05" +string.format("%0# -+1.0G", 1e-06) == "+1.E-06" +string.format("%0# -+1.0G", 1e-07) == "+1.E-07" +string.format("%0# -+1.0G", 123.456) == "+1.E+02" +string.format("%0# -+1.0G", 1234560000) == "+1.E+09" +string.format("%0# -+1.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+1.0G", 123.456789123) == "+1.E+02" +string.format("%0# -+1.0G", 1234567891.23) == "+1.E+09" +string.format("%0# -+1.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+1.1G", 0) == "+0." +string.format("%0# -+1.1G", 1) == "+1." +string.format("%0# -+1.1G", -1) == "-1." +string.format("%0# -+1.1G", 2) == "+2." +string.format("%0# -+1.1G", -2) == "-2." +string.format("%0# -+1.1G", 3) == "+3." +string.format("%0# -+1.1G", -3) == "-3." +string.format("%0# -+1.1G", 100) == "+1.E+02" +string.format("%0# -+1.1G", 10000) == "+1.E+04" +string.format("%0# -+1.1G", 100000) == "+1.E+05" +string.format("%0# -+1.1G", 1000000) == "+1.E+06" +string.format("%0# -+1.1G", 10000000) == "+1.E+07" +string.format("%0# -+1.1G", 0.01) == "+0.01" +string.format("%0# -+1.1G", 0.0001) == "+0.0001" +string.format("%0# -+1.1G", 1e-05) == "+1.E-05" +string.format("%0# -+1.1G", 1e-06) == "+1.E-06" +string.format("%0# -+1.1G", 1e-07) == "+1.E-07" +string.format("%0# -+1.1G", 123.456) == "+1.E+02" +string.format("%0# -+1.1G", 1234560000) == "+1.E+09" +string.format("%0# -+1.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+1.1G", 123.456789123) == "+1.E+02" +string.format("%0# -+1.1G", 1234567891.23) == "+1.E+09" +string.format("%0# -+1.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+2.0G", 0) == "+0." +string.format("%0# -+2.0G", 1) == "+1." +string.format("%0# -+2.0G", -1) == "-1." +string.format("%0# -+2.0G", 2) == "+2." +string.format("%0# -+2.0G", -2) == "-2." +string.format("%0# -+2.0G", 3) == "+3." +string.format("%0# -+2.0G", -3) == "-3." +string.format("%0# -+2.0G", 100) == "+1.E+02" +string.format("%0# -+2.0G", 10000) == "+1.E+04" +string.format("%0# -+2.0G", 100000) == "+1.E+05" +string.format("%0# -+2.0G", 1000000) == "+1.E+06" +string.format("%0# -+2.0G", 10000000) == "+1.E+07" +string.format("%0# -+2.0G", 0.01) == "+0.01" +string.format("%0# -+2.0G", 0.0001) == "+0.0001" +string.format("%0# -+2.0G", 1e-05) == "+1.E-05" +string.format("%0# -+2.0G", 1e-06) == "+1.E-06" +string.format("%0# -+2.0G", 1e-07) == "+1.E-07" +string.format("%0# -+2.0G", 123.456) == "+1.E+02" +string.format("%0# -+2.0G", 1234560000) == "+1.E+09" +string.format("%0# -+2.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+2.0G", 123.456789123) == "+1.E+02" +string.format("%0# -+2.0G", 1234567891.23) == "+1.E+09" +string.format("%0# -+2.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+2.1G", 0) == "+0." +string.format("%0# -+2.1G", 1) == "+1." +string.format("%0# -+2.1G", -1) == "-1." +string.format("%0# -+2.1G", 2) == "+2." +string.format("%0# -+2.1G", -2) == "-2." +string.format("%0# -+2.1G", 3) == "+3." +string.format("%0# -+2.1G", -3) == "-3." +string.format("%0# -+2.1G", 100) == "+1.E+02" +string.format("%0# -+2.1G", 10000) == "+1.E+04" +string.format("%0# -+2.1G", 100000) == "+1.E+05" +string.format("%0# -+2.1G", 1000000) == "+1.E+06" +string.format("%0# -+2.1G", 10000000) == "+1.E+07" +string.format("%0# -+2.1G", 0.01) == "+0.01" +string.format("%0# -+2.1G", 0.0001) == "+0.0001" +string.format("%0# -+2.1G", 1e-05) == "+1.E-05" +string.format("%0# -+2.1G", 1e-06) == "+1.E-06" +string.format("%0# -+2.1G", 1e-07) == "+1.E-07" +string.format("%0# -+2.1G", 123.456) == "+1.E+02" +string.format("%0# -+2.1G", 1234560000) == "+1.E+09" +string.format("%0# -+2.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+2.1G", 123.456789123) == "+1.E+02" +string.format("%0# -+2.1G", 1234567891.23) == "+1.E+09" +string.format("%0# -+2.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+6G", nan) == "+NAN " +string.format("%0# -+6G", inf) == "+INF " +string.format("%0# -+6G", -inf) == "-INF " +string.format("%0# -+6.0G", 0) == "+0. " +string.format("%0# -+6.0G", 1) == "+1. " +string.format("%0# -+6.0G", -1) == "-1. " +string.format("%0# -+6.0G", 2) == "+2. " +string.format("%0# -+6.0G", -2) == "-2. " +string.format("%0# -+6.0G", 3) == "+3. " +string.format("%0# -+6.0G", -3) == "-3. " +string.format("%0# -+6.0G", nan) == "+NAN " +string.format("%0# -+6.0G", inf) == "+INF " +string.format("%0# -+6.0G", -inf) == "-INF " +string.format("%0# -+6.0G", 100) == "+1.E+02" +string.format("%0# -+6.0G", 10000) == "+1.E+04" +string.format("%0# -+6.0G", 100000) == "+1.E+05" +string.format("%0# -+6.0G", 1000000) == "+1.E+06" +string.format("%0# -+6.0G", 10000000) == "+1.E+07" +string.format("%0# -+6.0G", 0.01) == "+0.01 " +string.format("%0# -+6.0G", 0.0001) == "+0.0001" +string.format("%0# -+6.0G", 1e-05) == "+1.E-05" +string.format("%0# -+6.0G", 1e-06) == "+1.E-06" +string.format("%0# -+6.0G", 1e-07) == "+1.E-07" +string.format("%0# -+6.0G", 123.456) == "+1.E+02" +string.format("%0# -+6.0G", 1234560000) == "+1.E+09" +string.format("%0# -+6.0G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+6.0G", 123.456789123) == "+1.E+02" +string.format("%0# -+6.0G", 1234567891.23) == "+1.E+09" +string.format("%0# -+6.0G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+6.1G", 0) == "+0. " +string.format("%0# -+6.1G", 1) == "+1. " +string.format("%0# -+6.1G", -1) == "-1. " +string.format("%0# -+6.1G", 2) == "+2. " +string.format("%0# -+6.1G", -2) == "-2. " +string.format("%0# -+6.1G", 3) == "+3. " +string.format("%0# -+6.1G", -3) == "-3. " +string.format("%0# -+6.1G", nan) == "+NAN " +string.format("%0# -+6.1G", inf) == "+INF " +string.format("%0# -+6.1G", -inf) == "-INF " +string.format("%0# -+6.1G", 100) == "+1.E+02" +string.format("%0# -+6.1G", 10000) == "+1.E+04" +string.format("%0# -+6.1G", 100000) == "+1.E+05" +string.format("%0# -+6.1G", 1000000) == "+1.E+06" +string.format("%0# -+6.1G", 10000000) == "+1.E+07" +string.format("%0# -+6.1G", 0.01) == "+0.01 " +string.format("%0# -+6.1G", 0.0001) == "+0.0001" +string.format("%0# -+6.1G", 1e-05) == "+1.E-05" +string.format("%0# -+6.1G", 1e-06) == "+1.E-06" +string.format("%0# -+6.1G", 1e-07) == "+1.E-07" +string.format("%0# -+6.1G", 123.456) == "+1.E+02" +string.format("%0# -+6.1G", 1234560000) == "+1.E+09" +string.format("%0# -+6.1G", 1.23456e-05) == "+1.E-05" +string.format("%0# -+6.1G", 123.456789123) == "+1.E+02" +string.format("%0# -+6.1G", 1234567891.23) == "+1.E+09" +string.format("%0# -+6.1G", 1.23456789123e-05) == "+1.E-05" +string.format("%0# -+6.6G", nan) == "+NAN " +string.format("%0# -+6.6G", inf) == "+INF " +string.format("%0# -+6.6G", -inf) == "-INF " +string.format("%0# -+20G", 0) == "+0.00000 " +string.format("%0# -+20G", 1) == "+1.00000 " +string.format("%0# -+20G", -1) == "-1.00000 " +string.format("%0# -+20G", 2) == "+2.00000 " +string.format("%0# -+20G", -2) == "-2.00000 " +string.format("%0# -+20G", 3) == "+3.00000 " +string.format("%0# -+20G", -3) == "-3.00000 " +string.format("%0# -+20G", nan) == "+NAN " +string.format("%0# -+20G", inf) == "+INF " +string.format("%0# -+20G", -inf) == "-INF " +string.format("%0# -+20G", 100) == "+100.000 " +string.format("%0# -+20G", 10000) == "+10000.0 " +string.format("%0# -+20G", 100000) == "+100000. " +string.format("%0# -+20G", 1000000) == "+1.00000E+06 " +string.format("%0# -+20G", 10000000) == "+1.00000E+07 " +string.format("%0# -+20G", 0.01) == "+0.0100000 " +string.format("%0# -+20G", 0.0001) == "+0.000100000 " +string.format("%0# -+20G", 1e-05) == "+1.00000E-05 " +string.format("%0# -+20G", 1e-06) == "+1.00000E-06 " +string.format("%0# -+20G", 1e-07) == "+1.00000E-07 " +string.format("%0# -+20G", 123.456) == "+123.456 " +string.format("%0# -+20G", 1234560000) == "+1.23456E+09 " +string.format("%0# -+20G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0# -+20G", 123.456789123) == "+123.457 " +string.format("%0# -+20G", 1234567891.23) == "+1.23457E+09 " +string.format("%0# -+20G", 1.23456789123e-05) == "+1.23457E-05 " +string.format("%0# -+20.0G", 0) == "+0. " +string.format("%0# -+20.0G", 1) == "+1. " +string.format("%0# -+20.0G", -1) == "-1. " +string.format("%0# -+20.0G", 2) == "+2. " +string.format("%0# -+20.0G", -2) == "-2. " +string.format("%0# -+20.0G", 3) == "+3. " +string.format("%0# -+20.0G", -3) == "-3. " +string.format("%0# -+20.0G", nan) == "+NAN " +string.format("%0# -+20.0G", inf) == "+INF " +string.format("%0# -+20.0G", -inf) == "-INF " +string.format("%0# -+20.0G", 100) == "+1.E+02 " +string.format("%0# -+20.0G", 10000) == "+1.E+04 " +string.format("%0# -+20.0G", 100000) == "+1.E+05 " +string.format("%0# -+20.0G", 1000000) == "+1.E+06 " +string.format("%0# -+20.0G", 10000000) == "+1.E+07 " +string.format("%0# -+20.0G", 0.01) == "+0.01 " +string.format("%0# -+20.0G", 0.0001) == "+0.0001 " +string.format("%0# -+20.0G", 1e-05) == "+1.E-05 " +string.format("%0# -+20.0G", 1e-06) == "+1.E-06 " +string.format("%0# -+20.0G", 1e-07) == "+1.E-07 " +string.format("%0# -+20.0G", 123.456) == "+1.E+02 " +string.format("%0# -+20.0G", 1234560000) == "+1.E+09 " +string.format("%0# -+20.0G", 1.23456e-05) == "+1.E-05 " +string.format("%0# -+20.0G", 123.456789123) == "+1.E+02 " +string.format("%0# -+20.0G", 1234567891.23) == "+1.E+09 " +string.format("%0# -+20.0G", 1.23456789123e-05) == "+1.E-05 " +string.format("%0# -+20.1G", 0) == "+0. " +string.format("%0# -+20.1G", 1) == "+1. " +string.format("%0# -+20.1G", -1) == "-1. " +string.format("%0# -+20.1G", 2) == "+2. " +string.format("%0# -+20.1G", -2) == "-2. " +string.format("%0# -+20.1G", 3) == "+3. " +string.format("%0# -+20.1G", -3) == "-3. " +string.format("%0# -+20.1G", nan) == "+NAN " +string.format("%0# -+20.1G", inf) == "+INF " +string.format("%0# -+20.1G", -inf) == "-INF " +string.format("%0# -+20.1G", 100) == "+1.E+02 " +string.format("%0# -+20.1G", 10000) == "+1.E+04 " +string.format("%0# -+20.1G", 100000) == "+1.E+05 " +string.format("%0# -+20.1G", 1000000) == "+1.E+06 " +string.format("%0# -+20.1G", 10000000) == "+1.E+07 " +string.format("%0# -+20.1G", 0.01) == "+0.01 " +string.format("%0# -+20.1G", 0.0001) == "+0.0001 " +string.format("%0# -+20.1G", 1e-05) == "+1.E-05 " +string.format("%0# -+20.1G", 1e-06) == "+1.E-06 " +string.format("%0# -+20.1G", 1e-07) == "+1.E-07 " +string.format("%0# -+20.1G", 123.456) == "+1.E+02 " +string.format("%0# -+20.1G", 1234560000) == "+1.E+09 " +string.format("%0# -+20.1G", 1.23456e-05) == "+1.E-05 " +string.format("%0# -+20.1G", 123.456789123) == "+1.E+02 " +string.format("%0# -+20.1G", 1234567891.23) == "+1.E+09 " +string.format("%0# -+20.1G", 1.23456789123e-05) == "+1.E-05 " +string.format("%0# -+20.6G", 0) == "+0.00000 " +string.format("%0# -+20.6G", 1) == "+1.00000 " +string.format("%0# -+20.6G", -1) == "-1.00000 " +string.format("%0# -+20.6G", 2) == "+2.00000 " +string.format("%0# -+20.6G", -2) == "-2.00000 " +string.format("%0# -+20.6G", 3) == "+3.00000 " +string.format("%0# -+20.6G", -3) == "-3.00000 " +string.format("%0# -+20.6G", nan) == "+NAN " +string.format("%0# -+20.6G", inf) == "+INF " +string.format("%0# -+20.6G", -inf) == "-INF " +string.format("%0# -+20.6G", 100) == "+100.000 " +string.format("%0# -+20.6G", 10000) == "+10000.0 " +string.format("%0# -+20.6G", 100000) == "+100000. " +string.format("%0# -+20.6G", 1000000) == "+1.00000E+06 " +string.format("%0# -+20.6G", 10000000) == "+1.00000E+07 " +string.format("%0# -+20.6G", 0.01) == "+0.0100000 " +string.format("%0# -+20.6G", 0.0001) == "+0.000100000 " +string.format("%0# -+20.6G", 1e-05) == "+1.00000E-05 " +string.format("%0# -+20.6G", 1e-06) == "+1.00000E-06 " +string.format("%0# -+20.6G", 1e-07) == "+1.00000E-07 " +string.format("%0# -+20.6G", 123.456) == "+123.456 " +string.format("%0# -+20.6G", 1234560000) == "+1.23456E+09 " +string.format("%0# -+20.6G", 1.23456e-05) == "+1.23456E-05 " +string.format("%0# -+20.6G", 123.456789123) == "+123.457 " +string.format("%0# -+20.6G", 1234567891.23) == "+1.23457E+09 " +string.format("%0# -+20.6G", 1.23456789123e-05) == "+1.23457E-05 " +== Strings == += s = +string.format("%s", "") == "" +string.format("%s", "a") == "a" +string.format("%s", "aa") == "aa" +string.format("%s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%.0s", "a") == "" +string.format("%.0s", "aa") == "" +string.format("%.0s", "aaaaaaaaaa") == "" +string.format("%.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%.1s", "aa") == "a" +string.format("%.1s", "aaaaaaaaaa") == "a" +string.format("%.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%1s", "") == " " +string.format("%1.0s", "") == " " +string.format("%1.0s", "a") == " " +string.format("%1.0s", "aa") == " " +string.format("%1.0s", "aaaaaaaaaa") == " " +string.format("%1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%1.1s", "") == " " +string.format("%1.1s", "aa") == "a" +string.format("%1.1s", "aaaaaaaaaa") == "a" +string.format("%1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%1.6s", "") == " " +string.format("%1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%2s", "") == " " +string.format("%2s", "a") == " a" +string.format("%2.0s", "") == " " +string.format("%2.0s", "a") == " " +string.format("%2.0s", "aa") == " " +string.format("%2.0s", "aaaaaaaaaa") == " " +string.format("%2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%2.1s", "") == " " +string.format("%2.1s", "a") == " a" +string.format("%2.1s", "aa") == " a" +string.format("%2.1s", "aaaaaaaaaa") == " a" +string.format("%2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%2.6s", "") == " " +string.format("%2.6s", "a") == " a" +string.format("%2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%6s", "") == " " +string.format("%6s", "a") == " a" +string.format("%6s", "aa") == " aa" +string.format("%6.0s", "") == " " +string.format("%6.0s", "a") == " " +string.format("%6.0s", "aa") == " " +string.format("%6.0s", "aaaaaaaaaa") == " " +string.format("%6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%6.1s", "") == " " +string.format("%6.1s", "a") == " a" +string.format("%6.1s", "aa") == " a" +string.format("%6.1s", "aaaaaaaaaa") == " a" +string.format("%6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%6.6s", "") == " " +string.format("%6.6s", "a") == " a" +string.format("%6.6s", "aa") == " aa" +string.format("%6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%20s", "") == " " +string.format("%20s", "a") == " a" +string.format("%20s", "aa") == " aa" +string.format("%20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%20.0s", "") == " " +string.format("%20.0s", "a") == " " +string.format("%20.0s", "aa") == " " +string.format("%20.0s", "aaaaaaaaaa") == " " +string.format("%20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%20.1s", "") == " " +string.format("%20.1s", "a") == " a" +string.format("%20.1s", "aa") == " a" +string.format("%20.1s", "aaaaaaaaaa") == " a" +string.format("%20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%20.6s", "") == " " +string.format("%20.6s", "a") == " a" +string.format("%20.6s", "aa") == " aa" +string.format("%20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%+s", "") == "" +string.format("%+s", "a") == "a" +string.format("%+s", "aa") == "aa" +string.format("%+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%+.0s", "a") == "" +string.format("%+.0s", "aa") == "" +string.format("%+.0s", "aaaaaaaaaa") == "" +string.format("%+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%+.1s", "aa") == "a" +string.format("%+.1s", "aaaaaaaaaa") == "a" +string.format("%+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+1s", "") == " " +string.format("%+1.0s", "") == " " +string.format("%+1.0s", "a") == " " +string.format("%+1.0s", "aa") == " " +string.format("%+1.0s", "aaaaaaaaaa") == " " +string.format("%+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+1.1s", "") == " " +string.format("%+1.1s", "aa") == "a" +string.format("%+1.1s", "aaaaaaaaaa") == "a" +string.format("%+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%+1.6s", "") == " " +string.format("%+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+2s", "") == " " +string.format("%+2s", "a") == " a" +string.format("%+2.0s", "") == " " +string.format("%+2.0s", "a") == " " +string.format("%+2.0s", "aa") == " " +string.format("%+2.0s", "aaaaaaaaaa") == " " +string.format("%+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+2.1s", "") == " " +string.format("%+2.1s", "a") == " a" +string.format("%+2.1s", "aa") == " a" +string.format("%+2.1s", "aaaaaaaaaa") == " a" +string.format("%+2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+2.6s", "") == " " +string.format("%+2.6s", "a") == " a" +string.format("%+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+6s", "") == " " +string.format("%+6s", "a") == " a" +string.format("%+6s", "aa") == " aa" +string.format("%+6.0s", "") == " " +string.format("%+6.0s", "a") == " " +string.format("%+6.0s", "aa") == " " +string.format("%+6.0s", "aaaaaaaaaa") == " " +string.format("%+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+6.1s", "") == " " +string.format("%+6.1s", "a") == " a" +string.format("%+6.1s", "aa") == " a" +string.format("%+6.1s", "aaaaaaaaaa") == " a" +string.format("%+6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+6.6s", "") == " " +string.format("%+6.6s", "a") == " a" +string.format("%+6.6s", "aa") == " aa" +string.format("%+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%+20s", "") == " " +string.format("%+20s", "a") == " a" +string.format("%+20s", "aa") == " aa" +string.format("%+20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%+20.0s", "") == " " +string.format("%+20.0s", "a") == " " +string.format("%+20.0s", "aa") == " " +string.format("%+20.0s", "aaaaaaaaaa") == " " +string.format("%+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%+20.1s", "") == " " +string.format("%+20.1s", "a") == " a" +string.format("%+20.1s", "aa") == " a" +string.format("%+20.1s", "aaaaaaaaaa") == " a" +string.format("%+20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%+20.6s", "") == " " +string.format("%+20.6s", "a") == " a" +string.format("%+20.6s", "aa") == " aa" +string.format("%+20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%+20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%-s", "") == "" +string.format("%-s", "a") == "a" +string.format("%-s", "aa") == "aa" +string.format("%-s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%-s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%-s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%-.0s", "a") == "" +string.format("%-.0s", "aa") == "" +string.format("%-.0s", "aaaaaaaaaa") == "" +string.format("%-.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%-.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%-.1s", "aa") == "a" +string.format("%-.1s", "aaaaaaaaaa") == "a" +string.format("%-.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-1s", "") == " " +string.format("%-1.0s", "") == " " +string.format("%-1.0s", "a") == " " +string.format("%-1.0s", "aa") == " " +string.format("%-1.0s", "aaaaaaaaaa") == " " +string.format("%-1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-1.1s", "") == " " +string.format("%-1.1s", "aa") == "a" +string.format("%-1.1s", "aaaaaaaaaa") == "a" +string.format("%-1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-1.6s", "") == " " +string.format("%-1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-2s", "") == " " +string.format("%-2s", "a") == "a " +string.format("%-2.0s", "") == " " +string.format("%-2.0s", "a") == " " +string.format("%-2.0s", "aa") == " " +string.format("%-2.0s", "aaaaaaaaaa") == " " +string.format("%-2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-2.1s", "") == " " +string.format("%-2.1s", "a") == "a " +string.format("%-2.1s", "aa") == "a " +string.format("%-2.1s", "aaaaaaaaaa") == "a " +string.format("%-2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-2.6s", "") == " " +string.format("%-2.6s", "a") == "a " +string.format("%-2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-6s", "") == " " +string.format("%-6s", "a") == "a " +string.format("%-6s", "aa") == "aa " +string.format("%-6.0s", "") == " " +string.format("%-6.0s", "a") == " " +string.format("%-6.0s", "aa") == " " +string.format("%-6.0s", "aaaaaaaaaa") == " " +string.format("%-6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-6.1s", "") == " " +string.format("%-6.1s", "a") == "a " +string.format("%-6.1s", "aa") == "a " +string.format("%-6.1s", "aaaaaaaaaa") == "a " +string.format("%-6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-6.6s", "") == " " +string.format("%-6.6s", "a") == "a " +string.format("%-6.6s", "aa") == "aa " +string.format("%-6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-20s", "") == " " +string.format("%-20s", "a") == "a " +string.format("%-20s", "aa") == "aa " +string.format("%-20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%-20.0s", "") == " " +string.format("%-20.0s", "a") == " " +string.format("%-20.0s", "aa") == " " +string.format("%-20.0s", "aaaaaaaaaa") == " " +string.format("%-20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-20.1s", "") == " " +string.format("%-20.1s", "a") == "a " +string.format("%-20.1s", "aa") == "a " +string.format("%-20.1s", "aaaaaaaaaa") == "a " +string.format("%-20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-20.6s", "") == " " +string.format("%-20.6s", "a") == "a " +string.format("%-20.6s", "aa") == "aa " +string.format("%-20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%-20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%-20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%-+s", "") == "" +string.format("%-+s", "a") == "a" +string.format("%-+s", "aa") == "aa" +string.format("%-+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%-+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%-+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%-+.0s", "a") == "" +string.format("%-+.0s", "aa") == "" +string.format("%-+.0s", "aaaaaaaaaa") == "" +string.format("%-+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%-+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%-+.1s", "aa") == "a" +string.format("%-+.1s", "aaaaaaaaaa") == "a" +string.format("%-+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+1s", "") == " " +string.format("%-+1.0s", "") == " " +string.format("%-+1.0s", "a") == " " +string.format("%-+1.0s", "aa") == " " +string.format("%-+1.0s", "aaaaaaaaaa") == " " +string.format("%-+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+1.1s", "") == " " +string.format("%-+1.1s", "aa") == "a" +string.format("%-+1.1s", "aaaaaaaaaa") == "a" +string.format("%-+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%-+1.6s", "") == " " +string.format("%-+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+2s", "") == " " +string.format("%-+2s", "a") == "a " +string.format("%-+2.0s", "") == " " +string.format("%-+2.0s", "a") == " " +string.format("%-+2.0s", "aa") == " " +string.format("%-+2.0s", "aaaaaaaaaa") == " " +string.format("%-+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+2.1s", "") == " " +string.format("%-+2.1s", "a") == "a " +string.format("%-+2.1s", "aa") == "a " +string.format("%-+2.1s", "aaaaaaaaaa") == "a " +string.format("%-+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+2.6s", "") == " " +string.format("%-+2.6s", "a") == "a " +string.format("%-+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+6s", "") == " " +string.format("%-+6s", "a") == "a " +string.format("%-+6s", "aa") == "aa " +string.format("%-+6.0s", "") == " " +string.format("%-+6.0s", "a") == " " +string.format("%-+6.0s", "aa") == " " +string.format("%-+6.0s", "aaaaaaaaaa") == " " +string.format("%-+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+6.1s", "") == " " +string.format("%-+6.1s", "a") == "a " +string.format("%-+6.1s", "aa") == "a " +string.format("%-+6.1s", "aaaaaaaaaa") == "a " +string.format("%-+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+6.6s", "") == " " +string.format("%-+6.6s", "a") == "a " +string.format("%-+6.6s", "aa") == "aa " +string.format("%-+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%-+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%-+20s", "") == " " +string.format("%-+20s", "a") == "a " +string.format("%-+20s", "aa") == "aa " +string.format("%-+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%-+20.0s", "") == " " +string.format("%-+20.0s", "a") == " " +string.format("%-+20.0s", "aa") == " " +string.format("%-+20.0s", "aaaaaaaaaa") == " " +string.format("%-+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%-+20.1s", "") == " " +string.format("%-+20.1s", "a") == "a " +string.format("%-+20.1s", "aa") == "a " +string.format("%-+20.1s", "aaaaaaaaaa") == "a " +string.format("%-+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%-+20.6s", "") == " " +string.format("%-+20.6s", "a") == "a " +string.format("%-+20.6s", "aa") == "aa " +string.format("%-+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%-+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%-+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("% s", "") == "" +string.format("% s", "a") == "a" +string.format("% s", "aa") == "aa" +string.format("% s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("% s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("% s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("% .0s", "a") == "" +string.format("% .0s", "aa") == "" +string.format("% .0s", "aaaaaaaaaa") == "" +string.format("% .0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("% .0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("% .1s", "aa") == "a" +string.format("% .1s", "aaaaaaaaaa") == "a" +string.format("% .1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% .1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% .6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% .6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% .6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 1s", "") == " " +string.format("% 1.0s", "") == " " +string.format("% 1.0s", "a") == " " +string.format("% 1.0s", "aa") == " " +string.format("% 1.0s", "aaaaaaaaaa") == " " +string.format("% 1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 1.1s", "") == " " +string.format("% 1.1s", "aa") == "a" +string.format("% 1.1s", "aaaaaaaaaa") == "a" +string.format("% 1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% 1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% 1.6s", "") == " " +string.format("% 1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% 1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 2s", "") == " " +string.format("% 2s", "a") == " a" +string.format("% 2.0s", "") == " " +string.format("% 2.0s", "a") == " " +string.format("% 2.0s", "aa") == " " +string.format("% 2.0s", "aaaaaaaaaa") == " " +string.format("% 2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 2.1s", "") == " " +string.format("% 2.1s", "a") == " a" +string.format("% 2.1s", "aa") == " a" +string.format("% 2.1s", "aaaaaaaaaa") == " a" +string.format("% 2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 2.6s", "") == " " +string.format("% 2.6s", "a") == " a" +string.format("% 2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% 2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 6s", "") == " " +string.format("% 6s", "a") == " a" +string.format("% 6s", "aa") == " aa" +string.format("% 6.0s", "") == " " +string.format("% 6.0s", "a") == " " +string.format("% 6.0s", "aa") == " " +string.format("% 6.0s", "aaaaaaaaaa") == " " +string.format("% 6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 6.1s", "") == " " +string.format("% 6.1s", "a") == " a" +string.format("% 6.1s", "aa") == " a" +string.format("% 6.1s", "aaaaaaaaaa") == " a" +string.format("% 6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 6.6s", "") == " " +string.format("% 6.6s", "a") == " a" +string.format("% 6.6s", "aa") == " aa" +string.format("% 6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% 6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% 20s", "") == " " +string.format("% 20s", "a") == " a" +string.format("% 20s", "aa") == " aa" +string.format("% 20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("% 20.0s", "") == " " +string.format("% 20.0s", "a") == " " +string.format("% 20.0s", "aa") == " " +string.format("% 20.0s", "aaaaaaaaaa") == " " +string.format("% 20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% 20.1s", "") == " " +string.format("% 20.1s", "a") == " a" +string.format("% 20.1s", "aa") == " a" +string.format("% 20.1s", "aaaaaaaaaa") == " a" +string.format("% 20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% 20.6s", "") == " " +string.format("% 20.6s", "a") == " a" +string.format("% 20.6s", "aa") == " aa" +string.format("% 20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("% 20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("% 20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("% +s", "") == "" +string.format("% +s", "a") == "a" +string.format("% +s", "aa") == "aa" +string.format("% +s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("% +s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("% +s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("% +.0s", "a") == "" +string.format("% +.0s", "aa") == "" +string.format("% +.0s", "aaaaaaaaaa") == "" +string.format("% +.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("% +.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("% +.1s", "aa") == "a" +string.format("% +.1s", "aaaaaaaaaa") == "a" +string.format("% +.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% +.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% +.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% +.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +1s", "") == " " +string.format("% +1.0s", "") == " " +string.format("% +1.0s", "a") == " " +string.format("% +1.0s", "aa") == " " +string.format("% +1.0s", "aaaaaaaaaa") == " " +string.format("% +1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +1.1s", "") == " " +string.format("% +1.1s", "aa") == "a" +string.format("% +1.1s", "aaaaaaaaaa") == "a" +string.format("% +1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% +1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% +1.6s", "") == " " +string.format("% +1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% +1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +2s", "") == " " +string.format("% +2s", "a") == " a" +string.format("% +2.0s", "") == " " +string.format("% +2.0s", "a") == " " +string.format("% +2.0s", "aa") == " " +string.format("% +2.0s", "aaaaaaaaaa") == " " +string.format("% +2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +2.1s", "") == " " +string.format("% +2.1s", "a") == " a" +string.format("% +2.1s", "aa") == " a" +string.format("% +2.1s", "aaaaaaaaaa") == " a" +string.format("% +2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +2.6s", "") == " " +string.format("% +2.6s", "a") == " a" +string.format("% +2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% +2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +6s", "") == " " +string.format("% +6s", "a") == " a" +string.format("% +6s", "aa") == " aa" +string.format("% +6.0s", "") == " " +string.format("% +6.0s", "a") == " " +string.format("% +6.0s", "aa") == " " +string.format("% +6.0s", "aaaaaaaaaa") == " " +string.format("% +6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +6.1s", "") == " " +string.format("% +6.1s", "a") == " a" +string.format("% +6.1s", "aa") == " a" +string.format("% +6.1s", "aaaaaaaaaa") == " a" +string.format("% +6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +6.6s", "") == " " +string.format("% +6.6s", "a") == " a" +string.format("% +6.6s", "aa") == " aa" +string.format("% +6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% +6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% +20s", "") == " " +string.format("% +20s", "a") == " a" +string.format("% +20s", "aa") == " aa" +string.format("% +20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("% +20.0s", "") == " " +string.format("% +20.0s", "a") == " " +string.format("% +20.0s", "aa") == " " +string.format("% +20.0s", "aaaaaaaaaa") == " " +string.format("% +20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% +20.1s", "") == " " +string.format("% +20.1s", "a") == " a" +string.format("% +20.1s", "aa") == " a" +string.format("% +20.1s", "aaaaaaaaaa") == " a" +string.format("% +20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("% +20.6s", "") == " " +string.format("% +20.6s", "a") == " a" +string.format("% +20.6s", "aa") == " aa" +string.format("% +20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("% +20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("% +20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("% -s", "") == "" +string.format("% -s", "a") == "a" +string.format("% -s", "aa") == "aa" +string.format("% -s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("% -s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("% -s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("% -.0s", "a") == "" +string.format("% -.0s", "aa") == "" +string.format("% -.0s", "aaaaaaaaaa") == "" +string.format("% -.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("% -.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("% -.1s", "aa") == "a" +string.format("% -.1s", "aaaaaaaaaa") == "a" +string.format("% -.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -1s", "") == " " +string.format("% -1.0s", "") == " " +string.format("% -1.0s", "a") == " " +string.format("% -1.0s", "aa") == " " +string.format("% -1.0s", "aaaaaaaaaa") == " " +string.format("% -1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -1.1s", "") == " " +string.format("% -1.1s", "aa") == "a" +string.format("% -1.1s", "aaaaaaaaaa") == "a" +string.format("% -1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -1.6s", "") == " " +string.format("% -1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -2s", "") == " " +string.format("% -2s", "a") == "a " +string.format("% -2.0s", "") == " " +string.format("% -2.0s", "a") == " " +string.format("% -2.0s", "aa") == " " +string.format("% -2.0s", "aaaaaaaaaa") == " " +string.format("% -2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -2.1s", "") == " " +string.format("% -2.1s", "a") == "a " +string.format("% -2.1s", "aa") == "a " +string.format("% -2.1s", "aaaaaaaaaa") == "a " +string.format("% -2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -2.6s", "") == " " +string.format("% -2.6s", "a") == "a " +string.format("% -2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -6s", "") == " " +string.format("% -6s", "a") == "a " +string.format("% -6s", "aa") == "aa " +string.format("% -6.0s", "") == " " +string.format("% -6.0s", "a") == " " +string.format("% -6.0s", "aa") == " " +string.format("% -6.0s", "aaaaaaaaaa") == " " +string.format("% -6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -6.1s", "") == " " +string.format("% -6.1s", "a") == "a " +string.format("% -6.1s", "aa") == "a " +string.format("% -6.1s", "aaaaaaaaaa") == "a " +string.format("% -6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -6.6s", "") == " " +string.format("% -6.6s", "a") == "a " +string.format("% -6.6s", "aa") == "aa " +string.format("% -6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -20s", "") == " " +string.format("% -20s", "a") == "a " +string.format("% -20s", "aa") == "aa " +string.format("% -20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("% -20.0s", "") == " " +string.format("% -20.0s", "a") == " " +string.format("% -20.0s", "aa") == " " +string.format("% -20.0s", "aaaaaaaaaa") == " " +string.format("% -20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -20.1s", "") == " " +string.format("% -20.1s", "a") == "a " +string.format("% -20.1s", "aa") == "a " +string.format("% -20.1s", "aaaaaaaaaa") == "a " +string.format("% -20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -20.6s", "") == " " +string.format("% -20.6s", "a") == "a " +string.format("% -20.6s", "aa") == "aa " +string.format("% -20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("% -20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("% -20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("% -+s", "") == "" +string.format("% -+s", "a") == "a" +string.format("% -+s", "aa") == "aa" +string.format("% -+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("% -+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("% -+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("% -+.0s", "a") == "" +string.format("% -+.0s", "aa") == "" +string.format("% -+.0s", "aaaaaaaaaa") == "" +string.format("% -+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("% -+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("% -+.1s", "aa") == "a" +string.format("% -+.1s", "aaaaaaaaaa") == "a" +string.format("% -+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+1s", "") == " " +string.format("% -+1.0s", "") == " " +string.format("% -+1.0s", "a") == " " +string.format("% -+1.0s", "aa") == " " +string.format("% -+1.0s", "aaaaaaaaaa") == " " +string.format("% -+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+1.1s", "") == " " +string.format("% -+1.1s", "aa") == "a" +string.format("% -+1.1s", "aaaaaaaaaa") == "a" +string.format("% -+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("% -+1.6s", "") == " " +string.format("% -+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+2s", "") == " " +string.format("% -+2s", "a") == "a " +string.format("% -+2.0s", "") == " " +string.format("% -+2.0s", "a") == " " +string.format("% -+2.0s", "aa") == " " +string.format("% -+2.0s", "aaaaaaaaaa") == " " +string.format("% -+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+2.1s", "") == " " +string.format("% -+2.1s", "a") == "a " +string.format("% -+2.1s", "aa") == "a " +string.format("% -+2.1s", "aaaaaaaaaa") == "a " +string.format("% -+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+2.6s", "") == " " +string.format("% -+2.6s", "a") == "a " +string.format("% -+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+6s", "") == " " +string.format("% -+6s", "a") == "a " +string.format("% -+6s", "aa") == "aa " +string.format("% -+6.0s", "") == " " +string.format("% -+6.0s", "a") == " " +string.format("% -+6.0s", "aa") == " " +string.format("% -+6.0s", "aaaaaaaaaa") == " " +string.format("% -+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+6.1s", "") == " " +string.format("% -+6.1s", "a") == "a " +string.format("% -+6.1s", "aa") == "a " +string.format("% -+6.1s", "aaaaaaaaaa") == "a " +string.format("% -+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+6.6s", "") == " " +string.format("% -+6.6s", "a") == "a " +string.format("% -+6.6s", "aa") == "aa " +string.format("% -+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("% -+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("% -+20s", "") == " " +string.format("% -+20s", "a") == "a " +string.format("% -+20s", "aa") == "aa " +string.format("% -+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("% -+20.0s", "") == " " +string.format("% -+20.0s", "a") == " " +string.format("% -+20.0s", "aa") == " " +string.format("% -+20.0s", "aaaaaaaaaa") == " " +string.format("% -+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("% -+20.1s", "") == " " +string.format("% -+20.1s", "a") == "a " +string.format("% -+20.1s", "aa") == "a " +string.format("% -+20.1s", "aaaaaaaaaa") == "a " +string.format("% -+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("% -+20.6s", "") == " " +string.format("% -+20.6s", "a") == "a " +string.format("% -+20.6s", "aa") == "aa " +string.format("% -+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("% -+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("% -+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%#s", "") == "" +string.format("%#s", "a") == "a" +string.format("%#s", "aa") == "aa" +string.format("%#s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%#s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%#s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%#.0s", "a") == "" +string.format("%#.0s", "aa") == "" +string.format("%#.0s", "aaaaaaaaaa") == "" +string.format("%#.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#.1s", "aa") == "a" +string.format("%#.1s", "aaaaaaaaaa") == "a" +string.format("%#.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#1s", "") == " " +string.format("%#1.0s", "") == " " +string.format("%#1.0s", "a") == " " +string.format("%#1.0s", "aa") == " " +string.format("%#1.0s", "aaaaaaaaaa") == " " +string.format("%#1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#1.1s", "") == " " +string.format("%#1.1s", "aa") == "a" +string.format("%#1.1s", "aaaaaaaaaa") == "a" +string.format("%#1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#1.6s", "") == " " +string.format("%#1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#2s", "") == " " +string.format("%#2s", "a") == " a" +string.format("%#2.0s", "") == " " +string.format("%#2.0s", "a") == " " +string.format("%#2.0s", "aa") == " " +string.format("%#2.0s", "aaaaaaaaaa") == " " +string.format("%#2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#2.1s", "") == " " +string.format("%#2.1s", "a") == " a" +string.format("%#2.1s", "aa") == " a" +string.format("%#2.1s", "aaaaaaaaaa") == " a" +string.format("%#2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#2.6s", "") == " " +string.format("%#2.6s", "a") == " a" +string.format("%#2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#6s", "") == " " +string.format("%#6s", "a") == " a" +string.format("%#6s", "aa") == " aa" +string.format("%#6.0s", "") == " " +string.format("%#6.0s", "a") == " " +string.format("%#6.0s", "aa") == " " +string.format("%#6.0s", "aaaaaaaaaa") == " " +string.format("%#6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#6.1s", "") == " " +string.format("%#6.1s", "a") == " a" +string.format("%#6.1s", "aa") == " a" +string.format("%#6.1s", "aaaaaaaaaa") == " a" +string.format("%#6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#6.6s", "") == " " +string.format("%#6.6s", "a") == " a" +string.format("%#6.6s", "aa") == " aa" +string.format("%#6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#20s", "") == " " +string.format("%#20s", "a") == " a" +string.format("%#20s", "aa") == " aa" +string.format("%#20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%#20.0s", "") == " " +string.format("%#20.0s", "a") == " " +string.format("%#20.0s", "aa") == " " +string.format("%#20.0s", "aaaaaaaaaa") == " " +string.format("%#20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#20.1s", "") == " " +string.format("%#20.1s", "a") == " a" +string.format("%#20.1s", "aa") == " a" +string.format("%#20.1s", "aaaaaaaaaa") == " a" +string.format("%#20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#20.6s", "") == " " +string.format("%#20.6s", "a") == " a" +string.format("%#20.6s", "aa") == " aa" +string.format("%#20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%#20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%#20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%#+s", "") == "" +string.format("%#+s", "a") == "a" +string.format("%#+s", "aa") == "aa" +string.format("%#+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%#+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%#+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%#+.0s", "a") == "" +string.format("%#+.0s", "aa") == "" +string.format("%#+.0s", "aaaaaaaaaa") == "" +string.format("%#+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#+.1s", "aa") == "a" +string.format("%#+.1s", "aaaaaaaaaa") == "a" +string.format("%#+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+1s", "") == " " +string.format("%#+1.0s", "") == " " +string.format("%#+1.0s", "a") == " " +string.format("%#+1.0s", "aa") == " " +string.format("%#+1.0s", "aaaaaaaaaa") == " " +string.format("%#+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+1.1s", "") == " " +string.format("%#+1.1s", "aa") == "a" +string.format("%#+1.1s", "aaaaaaaaaa") == "a" +string.format("%#+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#+1.6s", "") == " " +string.format("%#+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+2s", "") == " " +string.format("%#+2s", "a") == " a" +string.format("%#+2.0s", "") == " " +string.format("%#+2.0s", "a") == " " +string.format("%#+2.0s", "aa") == " " +string.format("%#+2.0s", "aaaaaaaaaa") == " " +string.format("%#+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+2.1s", "") == " " +string.format("%#+2.1s", "a") == " a" +string.format("%#+2.1s", "aa") == " a" +string.format("%#+2.1s", "aaaaaaaaaa") == " a" +string.format("%#+2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+2.6s", "") == " " +string.format("%#+2.6s", "a") == " a" +string.format("%#+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+6s", "") == " " +string.format("%#+6s", "a") == " a" +string.format("%#+6s", "aa") == " aa" +string.format("%#+6.0s", "") == " " +string.format("%#+6.0s", "a") == " " +string.format("%#+6.0s", "aa") == " " +string.format("%#+6.0s", "aaaaaaaaaa") == " " +string.format("%#+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+6.1s", "") == " " +string.format("%#+6.1s", "a") == " a" +string.format("%#+6.1s", "aa") == " a" +string.format("%#+6.1s", "aaaaaaaaaa") == " a" +string.format("%#+6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+6.6s", "") == " " +string.format("%#+6.6s", "a") == " a" +string.format("%#+6.6s", "aa") == " aa" +string.format("%#+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#+20s", "") == " " +string.format("%#+20s", "a") == " a" +string.format("%#+20s", "aa") == " aa" +string.format("%#+20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%#+20.0s", "") == " " +string.format("%#+20.0s", "a") == " " +string.format("%#+20.0s", "aa") == " " +string.format("%#+20.0s", "aaaaaaaaaa") == " " +string.format("%#+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#+20.1s", "") == " " +string.format("%#+20.1s", "a") == " a" +string.format("%#+20.1s", "aa") == " a" +string.format("%#+20.1s", "aaaaaaaaaa") == " a" +string.format("%#+20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%#+20.6s", "") == " " +string.format("%#+20.6s", "a") == " a" +string.format("%#+20.6s", "aa") == " aa" +string.format("%#+20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%#+20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%#+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%#-s", "") == "" +string.format("%#-s", "a") == "a" +string.format("%#-s", "aa") == "aa" +string.format("%#-s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%#-s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%#-s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%#-.0s", "a") == "" +string.format("%#-.0s", "aa") == "" +string.format("%#-.0s", "aaaaaaaaaa") == "" +string.format("%#-.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#-.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#-.1s", "aa") == "a" +string.format("%#-.1s", "aaaaaaaaaa") == "a" +string.format("%#-.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-1s", "") == " " +string.format("%#-1.0s", "") == " " +string.format("%#-1.0s", "a") == " " +string.format("%#-1.0s", "aa") == " " +string.format("%#-1.0s", "aaaaaaaaaa") == " " +string.format("%#-1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-1.1s", "") == " " +string.format("%#-1.1s", "aa") == "a" +string.format("%#-1.1s", "aaaaaaaaaa") == "a" +string.format("%#-1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-1.6s", "") == " " +string.format("%#-1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-2s", "") == " " +string.format("%#-2s", "a") == "a " +string.format("%#-2.0s", "") == " " +string.format("%#-2.0s", "a") == " " +string.format("%#-2.0s", "aa") == " " +string.format("%#-2.0s", "aaaaaaaaaa") == " " +string.format("%#-2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-2.1s", "") == " " +string.format("%#-2.1s", "a") == "a " +string.format("%#-2.1s", "aa") == "a " +string.format("%#-2.1s", "aaaaaaaaaa") == "a " +string.format("%#-2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-2.6s", "") == " " +string.format("%#-2.6s", "a") == "a " +string.format("%#-2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-6s", "") == " " +string.format("%#-6s", "a") == "a " +string.format("%#-6s", "aa") == "aa " +string.format("%#-6.0s", "") == " " +string.format("%#-6.0s", "a") == " " +string.format("%#-6.0s", "aa") == " " +string.format("%#-6.0s", "aaaaaaaaaa") == " " +string.format("%#-6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-6.1s", "") == " " +string.format("%#-6.1s", "a") == "a " +string.format("%#-6.1s", "aa") == "a " +string.format("%#-6.1s", "aaaaaaaaaa") == "a " +string.format("%#-6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-6.6s", "") == " " +string.format("%#-6.6s", "a") == "a " +string.format("%#-6.6s", "aa") == "aa " +string.format("%#-6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-20s", "") == " " +string.format("%#-20s", "a") == "a " +string.format("%#-20s", "aa") == "aa " +string.format("%#-20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%#-20.0s", "") == " " +string.format("%#-20.0s", "a") == " " +string.format("%#-20.0s", "aa") == " " +string.format("%#-20.0s", "aaaaaaaaaa") == " " +string.format("%#-20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-20.1s", "") == " " +string.format("%#-20.1s", "a") == "a " +string.format("%#-20.1s", "aa") == "a " +string.format("%#-20.1s", "aaaaaaaaaa") == "a " +string.format("%#-20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-20.6s", "") == " " +string.format("%#-20.6s", "a") == "a " +string.format("%#-20.6s", "aa") == "aa " +string.format("%#-20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%#-20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%#-20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%#-+s", "") == "" +string.format("%#-+s", "a") == "a" +string.format("%#-+s", "aa") == "aa" +string.format("%#-+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%#-+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%#-+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%#-+.0s", "a") == "" +string.format("%#-+.0s", "aa") == "" +string.format("%#-+.0s", "aaaaaaaaaa") == "" +string.format("%#-+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#-+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%#-+.1s", "aa") == "a" +string.format("%#-+.1s", "aaaaaaaaaa") == "a" +string.format("%#-+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+1s", "") == " " +string.format("%#-+1.0s", "") == " " +string.format("%#-+1.0s", "a") == " " +string.format("%#-+1.0s", "aa") == " " +string.format("%#-+1.0s", "aaaaaaaaaa") == " " +string.format("%#-+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+1.1s", "") == " " +string.format("%#-+1.1s", "aa") == "a" +string.format("%#-+1.1s", "aaaaaaaaaa") == "a" +string.format("%#-+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%#-+1.6s", "") == " " +string.format("%#-+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+2s", "") == " " +string.format("%#-+2s", "a") == "a " +string.format("%#-+2.0s", "") == " " +string.format("%#-+2.0s", "a") == " " +string.format("%#-+2.0s", "aa") == " " +string.format("%#-+2.0s", "aaaaaaaaaa") == " " +string.format("%#-+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+2.1s", "") == " " +string.format("%#-+2.1s", "a") == "a " +string.format("%#-+2.1s", "aa") == "a " +string.format("%#-+2.1s", "aaaaaaaaaa") == "a " +string.format("%#-+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+2.6s", "") == " " +string.format("%#-+2.6s", "a") == "a " +string.format("%#-+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+6s", "") == " " +string.format("%#-+6s", "a") == "a " +string.format("%#-+6s", "aa") == "aa " +string.format("%#-+6.0s", "") == " " +string.format("%#-+6.0s", "a") == " " +string.format("%#-+6.0s", "aa") == " " +string.format("%#-+6.0s", "aaaaaaaaaa") == " " +string.format("%#-+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+6.1s", "") == " " +string.format("%#-+6.1s", "a") == "a " +string.format("%#-+6.1s", "aa") == "a " +string.format("%#-+6.1s", "aaaaaaaaaa") == "a " +string.format("%#-+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+6.6s", "") == " " +string.format("%#-+6.6s", "a") == "a " +string.format("%#-+6.6s", "aa") == "aa " +string.format("%#-+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%#-+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%#-+20s", "") == " " +string.format("%#-+20s", "a") == "a " +string.format("%#-+20s", "aa") == "aa " +string.format("%#-+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%#-+20.0s", "") == " " +string.format("%#-+20.0s", "a") == " " +string.format("%#-+20.0s", "aa") == " " +string.format("%#-+20.0s", "aaaaaaaaaa") == " " +string.format("%#-+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%#-+20.1s", "") == " " +string.format("%#-+20.1s", "a") == "a " +string.format("%#-+20.1s", "aa") == "a " +string.format("%#-+20.1s", "aaaaaaaaaa") == "a " +string.format("%#-+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%#-+20.6s", "") == " " +string.format("%#-+20.6s", "a") == "a " +string.format("%#-+20.6s", "aa") == "aa " +string.format("%#-+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%#-+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%#-+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%# s", "") == "" +string.format("%# s", "a") == "a" +string.format("%# s", "aa") == "aa" +string.format("%# s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%# s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%# s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%# .0s", "a") == "" +string.format("%# .0s", "aa") == "" +string.format("%# .0s", "aaaaaaaaaa") == "" +string.format("%# .0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# .0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# .1s", "aa") == "a" +string.format("%# .1s", "aaaaaaaaaa") == "a" +string.format("%# .1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# .1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# .6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# .6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# .6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 1s", "") == " " +string.format("%# 1.0s", "") == " " +string.format("%# 1.0s", "a") == " " +string.format("%# 1.0s", "aa") == " " +string.format("%# 1.0s", "aaaaaaaaaa") == " " +string.format("%# 1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 1.1s", "") == " " +string.format("%# 1.1s", "aa") == "a" +string.format("%# 1.1s", "aaaaaaaaaa") == "a" +string.format("%# 1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# 1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# 1.6s", "") == " " +string.format("%# 1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# 1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 2s", "") == " " +string.format("%# 2s", "a") == " a" +string.format("%# 2.0s", "") == " " +string.format("%# 2.0s", "a") == " " +string.format("%# 2.0s", "aa") == " " +string.format("%# 2.0s", "aaaaaaaaaa") == " " +string.format("%# 2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 2.1s", "") == " " +string.format("%# 2.1s", "a") == " a" +string.format("%# 2.1s", "aa") == " a" +string.format("%# 2.1s", "aaaaaaaaaa") == " a" +string.format("%# 2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 2.6s", "") == " " +string.format("%# 2.6s", "a") == " a" +string.format("%# 2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# 2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 6s", "") == " " +string.format("%# 6s", "a") == " a" +string.format("%# 6s", "aa") == " aa" +string.format("%# 6.0s", "") == " " +string.format("%# 6.0s", "a") == " " +string.format("%# 6.0s", "aa") == " " +string.format("%# 6.0s", "aaaaaaaaaa") == " " +string.format("%# 6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 6.1s", "") == " " +string.format("%# 6.1s", "a") == " a" +string.format("%# 6.1s", "aa") == " a" +string.format("%# 6.1s", "aaaaaaaaaa") == " a" +string.format("%# 6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 6.6s", "") == " " +string.format("%# 6.6s", "a") == " a" +string.format("%# 6.6s", "aa") == " aa" +string.format("%# 6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# 6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# 20s", "") == " " +string.format("%# 20s", "a") == " a" +string.format("%# 20s", "aa") == " aa" +string.format("%# 20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%# 20.0s", "") == " " +string.format("%# 20.0s", "a") == " " +string.format("%# 20.0s", "aa") == " " +string.format("%# 20.0s", "aaaaaaaaaa") == " " +string.format("%# 20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# 20.1s", "") == " " +string.format("%# 20.1s", "a") == " a" +string.format("%# 20.1s", "aa") == " a" +string.format("%# 20.1s", "aaaaaaaaaa") == " a" +string.format("%# 20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# 20.6s", "") == " " +string.format("%# 20.6s", "a") == " a" +string.format("%# 20.6s", "aa") == " aa" +string.format("%# 20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%# 20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%# 20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%# +s", "") == "" +string.format("%# +s", "a") == "a" +string.format("%# +s", "aa") == "aa" +string.format("%# +s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%# +s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%# +s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%# +.0s", "a") == "" +string.format("%# +.0s", "aa") == "" +string.format("%# +.0s", "aaaaaaaaaa") == "" +string.format("%# +.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# +.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# +.1s", "aa") == "a" +string.format("%# +.1s", "aaaaaaaaaa") == "a" +string.format("%# +.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# +.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# +.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# +.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +1s", "") == " " +string.format("%# +1.0s", "") == " " +string.format("%# +1.0s", "a") == " " +string.format("%# +1.0s", "aa") == " " +string.format("%# +1.0s", "aaaaaaaaaa") == " " +string.format("%# +1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +1.1s", "") == " " +string.format("%# +1.1s", "aa") == "a" +string.format("%# +1.1s", "aaaaaaaaaa") == "a" +string.format("%# +1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# +1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# +1.6s", "") == " " +string.format("%# +1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# +1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +2s", "") == " " +string.format("%# +2s", "a") == " a" +string.format("%# +2.0s", "") == " " +string.format("%# +2.0s", "a") == " " +string.format("%# +2.0s", "aa") == " " +string.format("%# +2.0s", "aaaaaaaaaa") == " " +string.format("%# +2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +2.1s", "") == " " +string.format("%# +2.1s", "a") == " a" +string.format("%# +2.1s", "aa") == " a" +string.format("%# +2.1s", "aaaaaaaaaa") == " a" +string.format("%# +2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +2.6s", "") == " " +string.format("%# +2.6s", "a") == " a" +string.format("%# +2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# +2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +6s", "") == " " +string.format("%# +6s", "a") == " a" +string.format("%# +6s", "aa") == " aa" +string.format("%# +6.0s", "") == " " +string.format("%# +6.0s", "a") == " " +string.format("%# +6.0s", "aa") == " " +string.format("%# +6.0s", "aaaaaaaaaa") == " " +string.format("%# +6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +6.1s", "") == " " +string.format("%# +6.1s", "a") == " a" +string.format("%# +6.1s", "aa") == " a" +string.format("%# +6.1s", "aaaaaaaaaa") == " a" +string.format("%# +6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +6.6s", "") == " " +string.format("%# +6.6s", "a") == " a" +string.format("%# +6.6s", "aa") == " aa" +string.format("%# +6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# +6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# +20s", "") == " " +string.format("%# +20s", "a") == " a" +string.format("%# +20s", "aa") == " aa" +string.format("%# +20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%# +20.0s", "") == " " +string.format("%# +20.0s", "a") == " " +string.format("%# +20.0s", "aa") == " " +string.format("%# +20.0s", "aaaaaaaaaa") == " " +string.format("%# +20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# +20.1s", "") == " " +string.format("%# +20.1s", "a") == " a" +string.format("%# +20.1s", "aa") == " a" +string.format("%# +20.1s", "aaaaaaaaaa") == " a" +string.format("%# +20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%# +20.6s", "") == " " +string.format("%# +20.6s", "a") == " a" +string.format("%# +20.6s", "aa") == " aa" +string.format("%# +20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%# +20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%# +20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%# -s", "") == "" +string.format("%# -s", "a") == "a" +string.format("%# -s", "aa") == "aa" +string.format("%# -s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%# -s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%# -s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%# -.0s", "a") == "" +string.format("%# -.0s", "aa") == "" +string.format("%# -.0s", "aaaaaaaaaa") == "" +string.format("%# -.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# -.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# -.1s", "aa") == "a" +string.format("%# -.1s", "aaaaaaaaaa") == "a" +string.format("%# -.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -1s", "") == " " +string.format("%# -1.0s", "") == " " +string.format("%# -1.0s", "a") == " " +string.format("%# -1.0s", "aa") == " " +string.format("%# -1.0s", "aaaaaaaaaa") == " " +string.format("%# -1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -1.1s", "") == " " +string.format("%# -1.1s", "aa") == "a" +string.format("%# -1.1s", "aaaaaaaaaa") == "a" +string.format("%# -1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -1.6s", "") == " " +string.format("%# -1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -2s", "") == " " +string.format("%# -2s", "a") == "a " +string.format("%# -2.0s", "") == " " +string.format("%# -2.0s", "a") == " " +string.format("%# -2.0s", "aa") == " " +string.format("%# -2.0s", "aaaaaaaaaa") == " " +string.format("%# -2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -2.1s", "") == " " +string.format("%# -2.1s", "a") == "a " +string.format("%# -2.1s", "aa") == "a " +string.format("%# -2.1s", "aaaaaaaaaa") == "a " +string.format("%# -2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -2.6s", "") == " " +string.format("%# -2.6s", "a") == "a " +string.format("%# -2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -6s", "") == " " +string.format("%# -6s", "a") == "a " +string.format("%# -6s", "aa") == "aa " +string.format("%# -6.0s", "") == " " +string.format("%# -6.0s", "a") == " " +string.format("%# -6.0s", "aa") == " " +string.format("%# -6.0s", "aaaaaaaaaa") == " " +string.format("%# -6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -6.1s", "") == " " +string.format("%# -6.1s", "a") == "a " +string.format("%# -6.1s", "aa") == "a " +string.format("%# -6.1s", "aaaaaaaaaa") == "a " +string.format("%# -6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -6.6s", "") == " " +string.format("%# -6.6s", "a") == "a " +string.format("%# -6.6s", "aa") == "aa " +string.format("%# -6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -20s", "") == " " +string.format("%# -20s", "a") == "a " +string.format("%# -20s", "aa") == "aa " +string.format("%# -20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%# -20.0s", "") == " " +string.format("%# -20.0s", "a") == " " +string.format("%# -20.0s", "aa") == " " +string.format("%# -20.0s", "aaaaaaaaaa") == " " +string.format("%# -20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -20.1s", "") == " " +string.format("%# -20.1s", "a") == "a " +string.format("%# -20.1s", "aa") == "a " +string.format("%# -20.1s", "aaaaaaaaaa") == "a " +string.format("%# -20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -20.6s", "") == " " +string.format("%# -20.6s", "a") == "a " +string.format("%# -20.6s", "aa") == "aa " +string.format("%# -20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%# -20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%# -20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%# -+s", "") == "" +string.format("%# -+s", "a") == "a" +string.format("%# -+s", "aa") == "aa" +string.format("%# -+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%# -+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%# -+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%# -+.0s", "a") == "" +string.format("%# -+.0s", "aa") == "" +string.format("%# -+.0s", "aaaaaaaaaa") == "" +string.format("%# -+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# -+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%# -+.1s", "aa") == "a" +string.format("%# -+.1s", "aaaaaaaaaa") == "a" +string.format("%# -+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+1s", "") == " " +string.format("%# -+1.0s", "") == " " +string.format("%# -+1.0s", "a") == " " +string.format("%# -+1.0s", "aa") == " " +string.format("%# -+1.0s", "aaaaaaaaaa") == " " +string.format("%# -+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+1.1s", "") == " " +string.format("%# -+1.1s", "aa") == "a" +string.format("%# -+1.1s", "aaaaaaaaaa") == "a" +string.format("%# -+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%# -+1.6s", "") == " " +string.format("%# -+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+2s", "") == " " +string.format("%# -+2s", "a") == "a " +string.format("%# -+2.0s", "") == " " +string.format("%# -+2.0s", "a") == " " +string.format("%# -+2.0s", "aa") == " " +string.format("%# -+2.0s", "aaaaaaaaaa") == " " +string.format("%# -+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+2.1s", "") == " " +string.format("%# -+2.1s", "a") == "a " +string.format("%# -+2.1s", "aa") == "a " +string.format("%# -+2.1s", "aaaaaaaaaa") == "a " +string.format("%# -+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+2.6s", "") == " " +string.format("%# -+2.6s", "a") == "a " +string.format("%# -+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+6s", "") == " " +string.format("%# -+6s", "a") == "a " +string.format("%# -+6s", "aa") == "aa " +string.format("%# -+6.0s", "") == " " +string.format("%# -+6.0s", "a") == " " +string.format("%# -+6.0s", "aa") == " " +string.format("%# -+6.0s", "aaaaaaaaaa") == " " +string.format("%# -+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+6.1s", "") == " " +string.format("%# -+6.1s", "a") == "a " +string.format("%# -+6.1s", "aa") == "a " +string.format("%# -+6.1s", "aaaaaaaaaa") == "a " +string.format("%# -+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+6.6s", "") == " " +string.format("%# -+6.6s", "a") == "a " +string.format("%# -+6.6s", "aa") == "aa " +string.format("%# -+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%# -+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%# -+20s", "") == " " +string.format("%# -+20s", "a") == "a " +string.format("%# -+20s", "aa") == "aa " +string.format("%# -+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%# -+20.0s", "") == " " +string.format("%# -+20.0s", "a") == " " +string.format("%# -+20.0s", "aa") == " " +string.format("%# -+20.0s", "aaaaaaaaaa") == " " +string.format("%# -+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%# -+20.1s", "") == " " +string.format("%# -+20.1s", "a") == "a " +string.format("%# -+20.1s", "aa") == "a " +string.format("%# -+20.1s", "aaaaaaaaaa") == "a " +string.format("%# -+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%# -+20.6s", "") == " " +string.format("%# -+20.6s", "a") == "a " +string.format("%# -+20.6s", "aa") == "aa " +string.format("%# -+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%# -+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%# -+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0s", "") == "" +string.format("%0s", "a") == "a" +string.format("%0s", "aa") == "aa" +string.format("%0s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0.0s", "a") == "" +string.format("%0.0s", "aa") == "" +string.format("%0.0s", "aaaaaaaaaa") == "" +string.format("%0.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0.1s", "aa") == "a" +string.format("%0.1s", "aaaaaaaaaa") == "a" +string.format("%0.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%01s", "") == " " +string.format("%01.0s", "") == " " +string.format("%01.0s", "a") == " " +string.format("%01.0s", "aa") == " " +string.format("%01.0s", "aaaaaaaaaa") == " " +string.format("%01.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%01.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%01.1s", "") == " " +string.format("%01.1s", "aa") == "a" +string.format("%01.1s", "aaaaaaaaaa") == "a" +string.format("%01.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%01.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%01.6s", "") == " " +string.format("%01.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%01.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%01.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%02s", "") == " " +string.format("%02s", "a") == " a" +string.format("%02.0s", "") == " " +string.format("%02.0s", "a") == " " +string.format("%02.0s", "aa") == " " +string.format("%02.0s", "aaaaaaaaaa") == " " +string.format("%02.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%02.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%02.1s", "") == " " +string.format("%02.1s", "a") == " a" +string.format("%02.1s", "aa") == " a" +string.format("%02.1s", "aaaaaaaaaa") == " a" +string.format("%02.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%02.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%02.6s", "") == " " +string.format("%02.6s", "a") == " a" +string.format("%02.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%02.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%02.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%06s", "") == " " +string.format("%06s", "a") == " a" +string.format("%06s", "aa") == " aa" +string.format("%06.0s", "") == " " +string.format("%06.0s", "a") == " " +string.format("%06.0s", "aa") == " " +string.format("%06.0s", "aaaaaaaaaa") == " " +string.format("%06.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%06.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%06.1s", "") == " " +string.format("%06.1s", "a") == " a" +string.format("%06.1s", "aa") == " a" +string.format("%06.1s", "aaaaaaaaaa") == " a" +string.format("%06.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%06.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%06.6s", "") == " " +string.format("%06.6s", "a") == " a" +string.format("%06.6s", "aa") == " aa" +string.format("%06.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%06.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%06.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%020s", "") == " " +string.format("%020s", "a") == " a" +string.format("%020s", "aa") == " aa" +string.format("%020s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%020.0s", "") == " " +string.format("%020.0s", "a") == " " +string.format("%020.0s", "aa") == " " +string.format("%020.0s", "aaaaaaaaaa") == " " +string.format("%020.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%020.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%020.1s", "") == " " +string.format("%020.1s", "a") == " a" +string.format("%020.1s", "aa") == " a" +string.format("%020.1s", "aaaaaaaaaa") == " a" +string.format("%020.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%020.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%020.6s", "") == " " +string.format("%020.6s", "a") == " a" +string.format("%020.6s", "aa") == " aa" +string.format("%020.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%020.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%020.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0+s", "") == "" +string.format("%0+s", "a") == "a" +string.format("%0+s", "aa") == "aa" +string.format("%0+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0+.0s", "a") == "" +string.format("%0+.0s", "aa") == "" +string.format("%0+.0s", "aaaaaaaaaa") == "" +string.format("%0+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0+.1s", "aa") == "a" +string.format("%0+.1s", "aaaaaaaaaa") == "a" +string.format("%0+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+1s", "") == " " +string.format("%0+1.0s", "") == " " +string.format("%0+1.0s", "a") == " " +string.format("%0+1.0s", "aa") == " " +string.format("%0+1.0s", "aaaaaaaaaa") == " " +string.format("%0+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+1.1s", "") == " " +string.format("%0+1.1s", "aa") == "a" +string.format("%0+1.1s", "aaaaaaaaaa") == "a" +string.format("%0+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0+1.6s", "") == " " +string.format("%0+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+2s", "") == " " +string.format("%0+2s", "a") == " a" +string.format("%0+2.0s", "") == " " +string.format("%0+2.0s", "a") == " " +string.format("%0+2.0s", "aa") == " " +string.format("%0+2.0s", "aaaaaaaaaa") == " " +string.format("%0+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+2.1s", "") == " " +string.format("%0+2.1s", "a") == " a" +string.format("%0+2.1s", "aa") == " a" +string.format("%0+2.1s", "aaaaaaaaaa") == " a" +string.format("%0+2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+2.6s", "") == " " +string.format("%0+2.6s", "a") == " a" +string.format("%0+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+6s", "") == " " +string.format("%0+6s", "a") == " a" +string.format("%0+6s", "aa") == " aa" +string.format("%0+6.0s", "") == " " +string.format("%0+6.0s", "a") == " " +string.format("%0+6.0s", "aa") == " " +string.format("%0+6.0s", "aaaaaaaaaa") == " " +string.format("%0+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+6.1s", "") == " " +string.format("%0+6.1s", "a") == " a" +string.format("%0+6.1s", "aa") == " a" +string.format("%0+6.1s", "aaaaaaaaaa") == " a" +string.format("%0+6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+6.6s", "") == " " +string.format("%0+6.6s", "a") == " a" +string.format("%0+6.6s", "aa") == " aa" +string.format("%0+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0+20s", "") == " " +string.format("%0+20s", "a") == " a" +string.format("%0+20s", "aa") == " aa" +string.format("%0+20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0+20.0s", "") == " " +string.format("%0+20.0s", "a") == " " +string.format("%0+20.0s", "aa") == " " +string.format("%0+20.0s", "aaaaaaaaaa") == " " +string.format("%0+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0+20.1s", "") == " " +string.format("%0+20.1s", "a") == " a" +string.format("%0+20.1s", "aa") == " a" +string.format("%0+20.1s", "aaaaaaaaaa") == " a" +string.format("%0+20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0+20.6s", "") == " " +string.format("%0+20.6s", "a") == " a" +string.format("%0+20.6s", "aa") == " aa" +string.format("%0+20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0+20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0-s", "") == "" +string.format("%0-s", "a") == "a" +string.format("%0-s", "aa") == "aa" +string.format("%0-s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0-s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0-s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0-.0s", "a") == "" +string.format("%0-.0s", "aa") == "" +string.format("%0-.0s", "aaaaaaaaaa") == "" +string.format("%0-.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0-.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0-.1s", "aa") == "a" +string.format("%0-.1s", "aaaaaaaaaa") == "a" +string.format("%0-.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-1s", "") == " " +string.format("%0-1.0s", "") == " " +string.format("%0-1.0s", "a") == " " +string.format("%0-1.0s", "aa") == " " +string.format("%0-1.0s", "aaaaaaaaaa") == " " +string.format("%0-1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-1.1s", "") == " " +string.format("%0-1.1s", "aa") == "a" +string.format("%0-1.1s", "aaaaaaaaaa") == "a" +string.format("%0-1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-1.6s", "") == " " +string.format("%0-1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-2s", "") == " " +string.format("%0-2s", "a") == "a " +string.format("%0-2.0s", "") == " " +string.format("%0-2.0s", "a") == " " +string.format("%0-2.0s", "aa") == " " +string.format("%0-2.0s", "aaaaaaaaaa") == " " +string.format("%0-2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-2.1s", "") == " " +string.format("%0-2.1s", "a") == "a " +string.format("%0-2.1s", "aa") == "a " +string.format("%0-2.1s", "aaaaaaaaaa") == "a " +string.format("%0-2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-2.6s", "") == " " +string.format("%0-2.6s", "a") == "a " +string.format("%0-2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-6s", "") == " " +string.format("%0-6s", "a") == "a " +string.format("%0-6s", "aa") == "aa " +string.format("%0-6.0s", "") == " " +string.format("%0-6.0s", "a") == " " +string.format("%0-6.0s", "aa") == " " +string.format("%0-6.0s", "aaaaaaaaaa") == " " +string.format("%0-6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-6.1s", "") == " " +string.format("%0-6.1s", "a") == "a " +string.format("%0-6.1s", "aa") == "a " +string.format("%0-6.1s", "aaaaaaaaaa") == "a " +string.format("%0-6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-6.6s", "") == " " +string.format("%0-6.6s", "a") == "a " +string.format("%0-6.6s", "aa") == "aa " +string.format("%0-6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-20s", "") == " " +string.format("%0-20s", "a") == "a " +string.format("%0-20s", "aa") == "aa " +string.format("%0-20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0-20.0s", "") == " " +string.format("%0-20.0s", "a") == " " +string.format("%0-20.0s", "aa") == " " +string.format("%0-20.0s", "aaaaaaaaaa") == " " +string.format("%0-20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-20.1s", "") == " " +string.format("%0-20.1s", "a") == "a " +string.format("%0-20.1s", "aa") == "a " +string.format("%0-20.1s", "aaaaaaaaaa") == "a " +string.format("%0-20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-20.6s", "") == " " +string.format("%0-20.6s", "a") == "a " +string.format("%0-20.6s", "aa") == "aa " +string.format("%0-20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0-20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0-20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0-+s", "") == "" +string.format("%0-+s", "a") == "a" +string.format("%0-+s", "aa") == "aa" +string.format("%0-+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0-+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0-+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0-+.0s", "a") == "" +string.format("%0-+.0s", "aa") == "" +string.format("%0-+.0s", "aaaaaaaaaa") == "" +string.format("%0-+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0-+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0-+.1s", "aa") == "a" +string.format("%0-+.1s", "aaaaaaaaaa") == "a" +string.format("%0-+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+1s", "") == " " +string.format("%0-+1.0s", "") == " " +string.format("%0-+1.0s", "a") == " " +string.format("%0-+1.0s", "aa") == " " +string.format("%0-+1.0s", "aaaaaaaaaa") == " " +string.format("%0-+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+1.1s", "") == " " +string.format("%0-+1.1s", "aa") == "a" +string.format("%0-+1.1s", "aaaaaaaaaa") == "a" +string.format("%0-+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0-+1.6s", "") == " " +string.format("%0-+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+2s", "") == " " +string.format("%0-+2s", "a") == "a " +string.format("%0-+2.0s", "") == " " +string.format("%0-+2.0s", "a") == " " +string.format("%0-+2.0s", "aa") == " " +string.format("%0-+2.0s", "aaaaaaaaaa") == " " +string.format("%0-+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+2.1s", "") == " " +string.format("%0-+2.1s", "a") == "a " +string.format("%0-+2.1s", "aa") == "a " +string.format("%0-+2.1s", "aaaaaaaaaa") == "a " +string.format("%0-+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+2.6s", "") == " " +string.format("%0-+2.6s", "a") == "a " +string.format("%0-+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+6s", "") == " " +string.format("%0-+6s", "a") == "a " +string.format("%0-+6s", "aa") == "aa " +string.format("%0-+6.0s", "") == " " +string.format("%0-+6.0s", "a") == " " +string.format("%0-+6.0s", "aa") == " " +string.format("%0-+6.0s", "aaaaaaaaaa") == " " +string.format("%0-+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+6.1s", "") == " " +string.format("%0-+6.1s", "a") == "a " +string.format("%0-+6.1s", "aa") == "a " +string.format("%0-+6.1s", "aaaaaaaaaa") == "a " +string.format("%0-+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+6.6s", "") == " " +string.format("%0-+6.6s", "a") == "a " +string.format("%0-+6.6s", "aa") == "aa " +string.format("%0-+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0-+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0-+20s", "") == " " +string.format("%0-+20s", "a") == "a " +string.format("%0-+20s", "aa") == "aa " +string.format("%0-+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0-+20.0s", "") == " " +string.format("%0-+20.0s", "a") == " " +string.format("%0-+20.0s", "aa") == " " +string.format("%0-+20.0s", "aaaaaaaaaa") == " " +string.format("%0-+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0-+20.1s", "") == " " +string.format("%0-+20.1s", "a") == "a " +string.format("%0-+20.1s", "aa") == "a " +string.format("%0-+20.1s", "aaaaaaaaaa") == "a " +string.format("%0-+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0-+20.6s", "") == " " +string.format("%0-+20.6s", "a") == "a " +string.format("%0-+20.6s", "aa") == "aa " +string.format("%0-+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0-+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0-+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0 s", "") == "" +string.format("%0 s", "a") == "a" +string.format("%0 s", "aa") == "aa" +string.format("%0 s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0 s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0 s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0 .0s", "a") == "" +string.format("%0 .0s", "aa") == "" +string.format("%0 .0s", "aaaaaaaaaa") == "" +string.format("%0 .0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 .0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 .1s", "aa") == "a" +string.format("%0 .1s", "aaaaaaaaaa") == "a" +string.format("%0 .1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 .1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 .6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 .6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 .6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 1s", "") == " " +string.format("%0 1.0s", "") == " " +string.format("%0 1.0s", "a") == " " +string.format("%0 1.0s", "aa") == " " +string.format("%0 1.0s", "aaaaaaaaaa") == " " +string.format("%0 1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 1.1s", "") == " " +string.format("%0 1.1s", "aa") == "a" +string.format("%0 1.1s", "aaaaaaaaaa") == "a" +string.format("%0 1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 1.6s", "") == " " +string.format("%0 1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 2s", "") == " " +string.format("%0 2s", "a") == " a" +string.format("%0 2.0s", "") == " " +string.format("%0 2.0s", "a") == " " +string.format("%0 2.0s", "aa") == " " +string.format("%0 2.0s", "aaaaaaaaaa") == " " +string.format("%0 2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 2.1s", "") == " " +string.format("%0 2.1s", "a") == " a" +string.format("%0 2.1s", "aa") == " a" +string.format("%0 2.1s", "aaaaaaaaaa") == " a" +string.format("%0 2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 2.6s", "") == " " +string.format("%0 2.6s", "a") == " a" +string.format("%0 2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 6s", "") == " " +string.format("%0 6s", "a") == " a" +string.format("%0 6s", "aa") == " aa" +string.format("%0 6.0s", "") == " " +string.format("%0 6.0s", "a") == " " +string.format("%0 6.0s", "aa") == " " +string.format("%0 6.0s", "aaaaaaaaaa") == " " +string.format("%0 6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 6.1s", "") == " " +string.format("%0 6.1s", "a") == " a" +string.format("%0 6.1s", "aa") == " a" +string.format("%0 6.1s", "aaaaaaaaaa") == " a" +string.format("%0 6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 6.6s", "") == " " +string.format("%0 6.6s", "a") == " a" +string.format("%0 6.6s", "aa") == " aa" +string.format("%0 6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 20s", "") == " " +string.format("%0 20s", "a") == " a" +string.format("%0 20s", "aa") == " aa" +string.format("%0 20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0 20.0s", "") == " " +string.format("%0 20.0s", "a") == " " +string.format("%0 20.0s", "aa") == " " +string.format("%0 20.0s", "aaaaaaaaaa") == " " +string.format("%0 20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 20.1s", "") == " " +string.format("%0 20.1s", "a") == " a" +string.format("%0 20.1s", "aa") == " a" +string.format("%0 20.1s", "aaaaaaaaaa") == " a" +string.format("%0 20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 20.6s", "") == " " +string.format("%0 20.6s", "a") == " a" +string.format("%0 20.6s", "aa") == " aa" +string.format("%0 20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0 20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0 20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0 +s", "") == "" +string.format("%0 +s", "a") == "a" +string.format("%0 +s", "aa") == "aa" +string.format("%0 +s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0 +s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0 +s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0 +.0s", "a") == "" +string.format("%0 +.0s", "aa") == "" +string.format("%0 +.0s", "aaaaaaaaaa") == "" +string.format("%0 +.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 +.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 +.1s", "aa") == "a" +string.format("%0 +.1s", "aaaaaaaaaa") == "a" +string.format("%0 +.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 +.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 +.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 +.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +1s", "") == " " +string.format("%0 +1.0s", "") == " " +string.format("%0 +1.0s", "a") == " " +string.format("%0 +1.0s", "aa") == " " +string.format("%0 +1.0s", "aaaaaaaaaa") == " " +string.format("%0 +1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +1.1s", "") == " " +string.format("%0 +1.1s", "aa") == "a" +string.format("%0 +1.1s", "aaaaaaaaaa") == "a" +string.format("%0 +1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 +1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 +1.6s", "") == " " +string.format("%0 +1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 +1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +2s", "") == " " +string.format("%0 +2s", "a") == " a" +string.format("%0 +2.0s", "") == " " +string.format("%0 +2.0s", "a") == " " +string.format("%0 +2.0s", "aa") == " " +string.format("%0 +2.0s", "aaaaaaaaaa") == " " +string.format("%0 +2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +2.1s", "") == " " +string.format("%0 +2.1s", "a") == " a" +string.format("%0 +2.1s", "aa") == " a" +string.format("%0 +2.1s", "aaaaaaaaaa") == " a" +string.format("%0 +2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +2.6s", "") == " " +string.format("%0 +2.6s", "a") == " a" +string.format("%0 +2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 +2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +6s", "") == " " +string.format("%0 +6s", "a") == " a" +string.format("%0 +6s", "aa") == " aa" +string.format("%0 +6.0s", "") == " " +string.format("%0 +6.0s", "a") == " " +string.format("%0 +6.0s", "aa") == " " +string.format("%0 +6.0s", "aaaaaaaaaa") == " " +string.format("%0 +6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +6.1s", "") == " " +string.format("%0 +6.1s", "a") == " a" +string.format("%0 +6.1s", "aa") == " a" +string.format("%0 +6.1s", "aaaaaaaaaa") == " a" +string.format("%0 +6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +6.6s", "") == " " +string.format("%0 +6.6s", "a") == " a" +string.format("%0 +6.6s", "aa") == " aa" +string.format("%0 +6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 +6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 +20s", "") == " " +string.format("%0 +20s", "a") == " a" +string.format("%0 +20s", "aa") == " aa" +string.format("%0 +20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0 +20.0s", "") == " " +string.format("%0 +20.0s", "a") == " " +string.format("%0 +20.0s", "aa") == " " +string.format("%0 +20.0s", "aaaaaaaaaa") == " " +string.format("%0 +20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 +20.1s", "") == " " +string.format("%0 +20.1s", "a") == " a" +string.format("%0 +20.1s", "aa") == " a" +string.format("%0 +20.1s", "aaaaaaaaaa") == " a" +string.format("%0 +20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0 +20.6s", "") == " " +string.format("%0 +20.6s", "a") == " a" +string.format("%0 +20.6s", "aa") == " aa" +string.format("%0 +20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0 +20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0 +20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0 -s", "") == "" +string.format("%0 -s", "a") == "a" +string.format("%0 -s", "aa") == "aa" +string.format("%0 -s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0 -s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0 -s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0 -.0s", "a") == "" +string.format("%0 -.0s", "aa") == "" +string.format("%0 -.0s", "aaaaaaaaaa") == "" +string.format("%0 -.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 -.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 -.1s", "aa") == "a" +string.format("%0 -.1s", "aaaaaaaaaa") == "a" +string.format("%0 -.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -1s", "") == " " +string.format("%0 -1.0s", "") == " " +string.format("%0 -1.0s", "a") == " " +string.format("%0 -1.0s", "aa") == " " +string.format("%0 -1.0s", "aaaaaaaaaa") == " " +string.format("%0 -1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -1.1s", "") == " " +string.format("%0 -1.1s", "aa") == "a" +string.format("%0 -1.1s", "aaaaaaaaaa") == "a" +string.format("%0 -1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -1.6s", "") == " " +string.format("%0 -1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -2s", "") == " " +string.format("%0 -2s", "a") == "a " +string.format("%0 -2.0s", "") == " " +string.format("%0 -2.0s", "a") == " " +string.format("%0 -2.0s", "aa") == " " +string.format("%0 -2.0s", "aaaaaaaaaa") == " " +string.format("%0 -2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -2.1s", "") == " " +string.format("%0 -2.1s", "a") == "a " +string.format("%0 -2.1s", "aa") == "a " +string.format("%0 -2.1s", "aaaaaaaaaa") == "a " +string.format("%0 -2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -2.6s", "") == " " +string.format("%0 -2.6s", "a") == "a " +string.format("%0 -2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -6s", "") == " " +string.format("%0 -6s", "a") == "a " +string.format("%0 -6s", "aa") == "aa " +string.format("%0 -6.0s", "") == " " +string.format("%0 -6.0s", "a") == " " +string.format("%0 -6.0s", "aa") == " " +string.format("%0 -6.0s", "aaaaaaaaaa") == " " +string.format("%0 -6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -6.1s", "") == " " +string.format("%0 -6.1s", "a") == "a " +string.format("%0 -6.1s", "aa") == "a " +string.format("%0 -6.1s", "aaaaaaaaaa") == "a " +string.format("%0 -6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -6.6s", "") == " " +string.format("%0 -6.6s", "a") == "a " +string.format("%0 -6.6s", "aa") == "aa " +string.format("%0 -6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -20s", "") == " " +string.format("%0 -20s", "a") == "a " +string.format("%0 -20s", "aa") == "aa " +string.format("%0 -20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0 -20.0s", "") == " " +string.format("%0 -20.0s", "a") == " " +string.format("%0 -20.0s", "aa") == " " +string.format("%0 -20.0s", "aaaaaaaaaa") == " " +string.format("%0 -20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -20.1s", "") == " " +string.format("%0 -20.1s", "a") == "a " +string.format("%0 -20.1s", "aa") == "a " +string.format("%0 -20.1s", "aaaaaaaaaa") == "a " +string.format("%0 -20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -20.6s", "") == " " +string.format("%0 -20.6s", "a") == "a " +string.format("%0 -20.6s", "aa") == "aa " +string.format("%0 -20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0 -20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0 -20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0 -+s", "") == "" +string.format("%0 -+s", "a") == "a" +string.format("%0 -+s", "aa") == "aa" +string.format("%0 -+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0 -+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0 -+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0 -+.0s", "a") == "" +string.format("%0 -+.0s", "aa") == "" +string.format("%0 -+.0s", "aaaaaaaaaa") == "" +string.format("%0 -+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 -+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0 -+.1s", "aa") == "a" +string.format("%0 -+.1s", "aaaaaaaaaa") == "a" +string.format("%0 -+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+1s", "") == " " +string.format("%0 -+1.0s", "") == " " +string.format("%0 -+1.0s", "a") == " " +string.format("%0 -+1.0s", "aa") == " " +string.format("%0 -+1.0s", "aaaaaaaaaa") == " " +string.format("%0 -+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+1.1s", "") == " " +string.format("%0 -+1.1s", "aa") == "a" +string.format("%0 -+1.1s", "aaaaaaaaaa") == "a" +string.format("%0 -+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0 -+1.6s", "") == " " +string.format("%0 -+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+2s", "") == " " +string.format("%0 -+2s", "a") == "a " +string.format("%0 -+2.0s", "") == " " +string.format("%0 -+2.0s", "a") == " " +string.format("%0 -+2.0s", "aa") == " " +string.format("%0 -+2.0s", "aaaaaaaaaa") == " " +string.format("%0 -+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+2.1s", "") == " " +string.format("%0 -+2.1s", "a") == "a " +string.format("%0 -+2.1s", "aa") == "a " +string.format("%0 -+2.1s", "aaaaaaaaaa") == "a " +string.format("%0 -+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+2.6s", "") == " " +string.format("%0 -+2.6s", "a") == "a " +string.format("%0 -+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+6s", "") == " " +string.format("%0 -+6s", "a") == "a " +string.format("%0 -+6s", "aa") == "aa " +string.format("%0 -+6.0s", "") == " " +string.format("%0 -+6.0s", "a") == " " +string.format("%0 -+6.0s", "aa") == " " +string.format("%0 -+6.0s", "aaaaaaaaaa") == " " +string.format("%0 -+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+6.1s", "") == " " +string.format("%0 -+6.1s", "a") == "a " +string.format("%0 -+6.1s", "aa") == "a " +string.format("%0 -+6.1s", "aaaaaaaaaa") == "a " +string.format("%0 -+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+6.6s", "") == " " +string.format("%0 -+6.6s", "a") == "a " +string.format("%0 -+6.6s", "aa") == "aa " +string.format("%0 -+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0 -+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0 -+20s", "") == " " +string.format("%0 -+20s", "a") == "a " +string.format("%0 -+20s", "aa") == "aa " +string.format("%0 -+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0 -+20.0s", "") == " " +string.format("%0 -+20.0s", "a") == " " +string.format("%0 -+20.0s", "aa") == " " +string.format("%0 -+20.0s", "aaaaaaaaaa") == " " +string.format("%0 -+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0 -+20.1s", "") == " " +string.format("%0 -+20.1s", "a") == "a " +string.format("%0 -+20.1s", "aa") == "a " +string.format("%0 -+20.1s", "aaaaaaaaaa") == "a " +string.format("%0 -+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0 -+20.6s", "") == " " +string.format("%0 -+20.6s", "a") == "a " +string.format("%0 -+20.6s", "aa") == "aa " +string.format("%0 -+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0 -+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0 -+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0#s", "") == "" +string.format("%0#s", "a") == "a" +string.format("%0#s", "aa") == "aa" +string.format("%0#s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0#s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0#s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0#.0s", "a") == "" +string.format("%0#.0s", "aa") == "" +string.format("%0#.0s", "aaaaaaaaaa") == "" +string.format("%0#.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#.1s", "aa") == "a" +string.format("%0#.1s", "aaaaaaaaaa") == "a" +string.format("%0#.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#1s", "") == " " +string.format("%0#1.0s", "") == " " +string.format("%0#1.0s", "a") == " " +string.format("%0#1.0s", "aa") == " " +string.format("%0#1.0s", "aaaaaaaaaa") == " " +string.format("%0#1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#1.1s", "") == " " +string.format("%0#1.1s", "aa") == "a" +string.format("%0#1.1s", "aaaaaaaaaa") == "a" +string.format("%0#1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#1.6s", "") == " " +string.format("%0#1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#2s", "") == " " +string.format("%0#2s", "a") == " a" +string.format("%0#2.0s", "") == " " +string.format("%0#2.0s", "a") == " " +string.format("%0#2.0s", "aa") == " " +string.format("%0#2.0s", "aaaaaaaaaa") == " " +string.format("%0#2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#2.1s", "") == " " +string.format("%0#2.1s", "a") == " a" +string.format("%0#2.1s", "aa") == " a" +string.format("%0#2.1s", "aaaaaaaaaa") == " a" +string.format("%0#2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#2.6s", "") == " " +string.format("%0#2.6s", "a") == " a" +string.format("%0#2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#6s", "") == " " +string.format("%0#6s", "a") == " a" +string.format("%0#6s", "aa") == " aa" +string.format("%0#6.0s", "") == " " +string.format("%0#6.0s", "a") == " " +string.format("%0#6.0s", "aa") == " " +string.format("%0#6.0s", "aaaaaaaaaa") == " " +string.format("%0#6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#6.1s", "") == " " +string.format("%0#6.1s", "a") == " a" +string.format("%0#6.1s", "aa") == " a" +string.format("%0#6.1s", "aaaaaaaaaa") == " a" +string.format("%0#6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#6.6s", "") == " " +string.format("%0#6.6s", "a") == " a" +string.format("%0#6.6s", "aa") == " aa" +string.format("%0#6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#20s", "") == " " +string.format("%0#20s", "a") == " a" +string.format("%0#20s", "aa") == " aa" +string.format("%0#20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0#20.0s", "") == " " +string.format("%0#20.0s", "a") == " " +string.format("%0#20.0s", "aa") == " " +string.format("%0#20.0s", "aaaaaaaaaa") == " " +string.format("%0#20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#20.1s", "") == " " +string.format("%0#20.1s", "a") == " a" +string.format("%0#20.1s", "aa") == " a" +string.format("%0#20.1s", "aaaaaaaaaa") == " a" +string.format("%0#20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#20.6s", "") == " " +string.format("%0#20.6s", "a") == " a" +string.format("%0#20.6s", "aa") == " aa" +string.format("%0#20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0#20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0#20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0#+s", "") == "" +string.format("%0#+s", "a") == "a" +string.format("%0#+s", "aa") == "aa" +string.format("%0#+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0#+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0#+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0#+.0s", "a") == "" +string.format("%0#+.0s", "aa") == "" +string.format("%0#+.0s", "aaaaaaaaaa") == "" +string.format("%0#+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#+.1s", "aa") == "a" +string.format("%0#+.1s", "aaaaaaaaaa") == "a" +string.format("%0#+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+1s", "") == " " +string.format("%0#+1.0s", "") == " " +string.format("%0#+1.0s", "a") == " " +string.format("%0#+1.0s", "aa") == " " +string.format("%0#+1.0s", "aaaaaaaaaa") == " " +string.format("%0#+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+1.1s", "") == " " +string.format("%0#+1.1s", "aa") == "a" +string.format("%0#+1.1s", "aaaaaaaaaa") == "a" +string.format("%0#+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#+1.6s", "") == " " +string.format("%0#+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+2s", "") == " " +string.format("%0#+2s", "a") == " a" +string.format("%0#+2.0s", "") == " " +string.format("%0#+2.0s", "a") == " " +string.format("%0#+2.0s", "aa") == " " +string.format("%0#+2.0s", "aaaaaaaaaa") == " " +string.format("%0#+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+2.1s", "") == " " +string.format("%0#+2.1s", "a") == " a" +string.format("%0#+2.1s", "aa") == " a" +string.format("%0#+2.1s", "aaaaaaaaaa") == " a" +string.format("%0#+2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+2.6s", "") == " " +string.format("%0#+2.6s", "a") == " a" +string.format("%0#+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+6s", "") == " " +string.format("%0#+6s", "a") == " a" +string.format("%0#+6s", "aa") == " aa" +string.format("%0#+6.0s", "") == " " +string.format("%0#+6.0s", "a") == " " +string.format("%0#+6.0s", "aa") == " " +string.format("%0#+6.0s", "aaaaaaaaaa") == " " +string.format("%0#+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+6.1s", "") == " " +string.format("%0#+6.1s", "a") == " a" +string.format("%0#+6.1s", "aa") == " a" +string.format("%0#+6.1s", "aaaaaaaaaa") == " a" +string.format("%0#+6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+6.6s", "") == " " +string.format("%0#+6.6s", "a") == " a" +string.format("%0#+6.6s", "aa") == " aa" +string.format("%0#+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#+20s", "") == " " +string.format("%0#+20s", "a") == " a" +string.format("%0#+20s", "aa") == " aa" +string.format("%0#+20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0#+20.0s", "") == " " +string.format("%0#+20.0s", "a") == " " +string.format("%0#+20.0s", "aa") == " " +string.format("%0#+20.0s", "aaaaaaaaaa") == " " +string.format("%0#+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#+20.1s", "") == " " +string.format("%0#+20.1s", "a") == " a" +string.format("%0#+20.1s", "aa") == " a" +string.format("%0#+20.1s", "aaaaaaaaaa") == " a" +string.format("%0#+20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0#+20.6s", "") == " " +string.format("%0#+20.6s", "a") == " a" +string.format("%0#+20.6s", "aa") == " aa" +string.format("%0#+20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0#+20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0#+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0#-s", "") == "" +string.format("%0#-s", "a") == "a" +string.format("%0#-s", "aa") == "aa" +string.format("%0#-s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0#-s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0#-s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0#-.0s", "a") == "" +string.format("%0#-.0s", "aa") == "" +string.format("%0#-.0s", "aaaaaaaaaa") == "" +string.format("%0#-.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#-.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#-.1s", "aa") == "a" +string.format("%0#-.1s", "aaaaaaaaaa") == "a" +string.format("%0#-.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-1s", "") == " " +string.format("%0#-1.0s", "") == " " +string.format("%0#-1.0s", "a") == " " +string.format("%0#-1.0s", "aa") == " " +string.format("%0#-1.0s", "aaaaaaaaaa") == " " +string.format("%0#-1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-1.1s", "") == " " +string.format("%0#-1.1s", "aa") == "a" +string.format("%0#-1.1s", "aaaaaaaaaa") == "a" +string.format("%0#-1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-1.6s", "") == " " +string.format("%0#-1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-2s", "") == " " +string.format("%0#-2s", "a") == "a " +string.format("%0#-2.0s", "") == " " +string.format("%0#-2.0s", "a") == " " +string.format("%0#-2.0s", "aa") == " " +string.format("%0#-2.0s", "aaaaaaaaaa") == " " +string.format("%0#-2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-2.1s", "") == " " +string.format("%0#-2.1s", "a") == "a " +string.format("%0#-2.1s", "aa") == "a " +string.format("%0#-2.1s", "aaaaaaaaaa") == "a " +string.format("%0#-2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-2.6s", "") == " " +string.format("%0#-2.6s", "a") == "a " +string.format("%0#-2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-6s", "") == " " +string.format("%0#-6s", "a") == "a " +string.format("%0#-6s", "aa") == "aa " +string.format("%0#-6.0s", "") == " " +string.format("%0#-6.0s", "a") == " " +string.format("%0#-6.0s", "aa") == " " +string.format("%0#-6.0s", "aaaaaaaaaa") == " " +string.format("%0#-6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-6.1s", "") == " " +string.format("%0#-6.1s", "a") == "a " +string.format("%0#-6.1s", "aa") == "a " +string.format("%0#-6.1s", "aaaaaaaaaa") == "a " +string.format("%0#-6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-6.6s", "") == " " +string.format("%0#-6.6s", "a") == "a " +string.format("%0#-6.6s", "aa") == "aa " +string.format("%0#-6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-20s", "") == " " +string.format("%0#-20s", "a") == "a " +string.format("%0#-20s", "aa") == "aa " +string.format("%0#-20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0#-20.0s", "") == " " +string.format("%0#-20.0s", "a") == " " +string.format("%0#-20.0s", "aa") == " " +string.format("%0#-20.0s", "aaaaaaaaaa") == " " +string.format("%0#-20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-20.1s", "") == " " +string.format("%0#-20.1s", "a") == "a " +string.format("%0#-20.1s", "aa") == "a " +string.format("%0#-20.1s", "aaaaaaaaaa") == "a " +string.format("%0#-20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-20.6s", "") == " " +string.format("%0#-20.6s", "a") == "a " +string.format("%0#-20.6s", "aa") == "aa " +string.format("%0#-20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0#-20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0#-20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0#-+s", "") == "" +string.format("%0#-+s", "a") == "a" +string.format("%0#-+s", "aa") == "aa" +string.format("%0#-+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0#-+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0#-+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0#-+.0s", "a") == "" +string.format("%0#-+.0s", "aa") == "" +string.format("%0#-+.0s", "aaaaaaaaaa") == "" +string.format("%0#-+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#-+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0#-+.1s", "aa") == "a" +string.format("%0#-+.1s", "aaaaaaaaaa") == "a" +string.format("%0#-+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+1s", "") == " " +string.format("%0#-+1.0s", "") == " " +string.format("%0#-+1.0s", "a") == " " +string.format("%0#-+1.0s", "aa") == " " +string.format("%0#-+1.0s", "aaaaaaaaaa") == " " +string.format("%0#-+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+1.1s", "") == " " +string.format("%0#-+1.1s", "aa") == "a" +string.format("%0#-+1.1s", "aaaaaaaaaa") == "a" +string.format("%0#-+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0#-+1.6s", "") == " " +string.format("%0#-+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+2s", "") == " " +string.format("%0#-+2s", "a") == "a " +string.format("%0#-+2.0s", "") == " " +string.format("%0#-+2.0s", "a") == " " +string.format("%0#-+2.0s", "aa") == " " +string.format("%0#-+2.0s", "aaaaaaaaaa") == " " +string.format("%0#-+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+2.1s", "") == " " +string.format("%0#-+2.1s", "a") == "a " +string.format("%0#-+2.1s", "aa") == "a " +string.format("%0#-+2.1s", "aaaaaaaaaa") == "a " +string.format("%0#-+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+2.6s", "") == " " +string.format("%0#-+2.6s", "a") == "a " +string.format("%0#-+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+6s", "") == " " +string.format("%0#-+6s", "a") == "a " +string.format("%0#-+6s", "aa") == "aa " +string.format("%0#-+6.0s", "") == " " +string.format("%0#-+6.0s", "a") == " " +string.format("%0#-+6.0s", "aa") == " " +string.format("%0#-+6.0s", "aaaaaaaaaa") == " " +string.format("%0#-+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+6.1s", "") == " " +string.format("%0#-+6.1s", "a") == "a " +string.format("%0#-+6.1s", "aa") == "a " +string.format("%0#-+6.1s", "aaaaaaaaaa") == "a " +string.format("%0#-+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+6.6s", "") == " " +string.format("%0#-+6.6s", "a") == "a " +string.format("%0#-+6.6s", "aa") == "aa " +string.format("%0#-+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0#-+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0#-+20s", "") == " " +string.format("%0#-+20s", "a") == "a " +string.format("%0#-+20s", "aa") == "aa " +string.format("%0#-+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0#-+20.0s", "") == " " +string.format("%0#-+20.0s", "a") == " " +string.format("%0#-+20.0s", "aa") == " " +string.format("%0#-+20.0s", "aaaaaaaaaa") == " " +string.format("%0#-+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0#-+20.1s", "") == " " +string.format("%0#-+20.1s", "a") == "a " +string.format("%0#-+20.1s", "aa") == "a " +string.format("%0#-+20.1s", "aaaaaaaaaa") == "a " +string.format("%0#-+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0#-+20.6s", "") == " " +string.format("%0#-+20.6s", "a") == "a " +string.format("%0#-+20.6s", "aa") == "aa " +string.format("%0#-+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0#-+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0#-+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0# s", "") == "" +string.format("%0# s", "a") == "a" +string.format("%0# s", "aa") == "aa" +string.format("%0# s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0# s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0# s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0# .0s", "a") == "" +string.format("%0# .0s", "aa") == "" +string.format("%0# .0s", "aaaaaaaaaa") == "" +string.format("%0# .0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# .0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# .1s", "aa") == "a" +string.format("%0# .1s", "aaaaaaaaaa") == "a" +string.format("%0# .1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# .1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# .6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# .6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# .6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 1s", "") == " " +string.format("%0# 1.0s", "") == " " +string.format("%0# 1.0s", "a") == " " +string.format("%0# 1.0s", "aa") == " " +string.format("%0# 1.0s", "aaaaaaaaaa") == " " +string.format("%0# 1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 1.1s", "") == " " +string.format("%0# 1.1s", "aa") == "a" +string.format("%0# 1.1s", "aaaaaaaaaa") == "a" +string.format("%0# 1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# 1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# 1.6s", "") == " " +string.format("%0# 1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# 1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 2s", "") == " " +string.format("%0# 2s", "a") == " a" +string.format("%0# 2.0s", "") == " " +string.format("%0# 2.0s", "a") == " " +string.format("%0# 2.0s", "aa") == " " +string.format("%0# 2.0s", "aaaaaaaaaa") == " " +string.format("%0# 2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 2.1s", "") == " " +string.format("%0# 2.1s", "a") == " a" +string.format("%0# 2.1s", "aa") == " a" +string.format("%0# 2.1s", "aaaaaaaaaa") == " a" +string.format("%0# 2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 2.6s", "") == " " +string.format("%0# 2.6s", "a") == " a" +string.format("%0# 2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# 2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 6s", "") == " " +string.format("%0# 6s", "a") == " a" +string.format("%0# 6s", "aa") == " aa" +string.format("%0# 6.0s", "") == " " +string.format("%0# 6.0s", "a") == " " +string.format("%0# 6.0s", "aa") == " " +string.format("%0# 6.0s", "aaaaaaaaaa") == " " +string.format("%0# 6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 6.1s", "") == " " +string.format("%0# 6.1s", "a") == " a" +string.format("%0# 6.1s", "aa") == " a" +string.format("%0# 6.1s", "aaaaaaaaaa") == " a" +string.format("%0# 6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 6.6s", "") == " " +string.format("%0# 6.6s", "a") == " a" +string.format("%0# 6.6s", "aa") == " aa" +string.format("%0# 6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# 6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# 20s", "") == " " +string.format("%0# 20s", "a") == " a" +string.format("%0# 20s", "aa") == " aa" +string.format("%0# 20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0# 20.0s", "") == " " +string.format("%0# 20.0s", "a") == " " +string.format("%0# 20.0s", "aa") == " " +string.format("%0# 20.0s", "aaaaaaaaaa") == " " +string.format("%0# 20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# 20.1s", "") == " " +string.format("%0# 20.1s", "a") == " a" +string.format("%0# 20.1s", "aa") == " a" +string.format("%0# 20.1s", "aaaaaaaaaa") == " a" +string.format("%0# 20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# 20.6s", "") == " " +string.format("%0# 20.6s", "a") == " a" +string.format("%0# 20.6s", "aa") == " aa" +string.format("%0# 20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0# 20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0# 20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0# +s", "") == "" +string.format("%0# +s", "a") == "a" +string.format("%0# +s", "aa") == "aa" +string.format("%0# +s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0# +s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0# +s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0# +.0s", "a") == "" +string.format("%0# +.0s", "aa") == "" +string.format("%0# +.0s", "aaaaaaaaaa") == "" +string.format("%0# +.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# +.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# +.1s", "aa") == "a" +string.format("%0# +.1s", "aaaaaaaaaa") == "a" +string.format("%0# +.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# +.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# +.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# +.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +1s", "") == " " +string.format("%0# +1.0s", "") == " " +string.format("%0# +1.0s", "a") == " " +string.format("%0# +1.0s", "aa") == " " +string.format("%0# +1.0s", "aaaaaaaaaa") == " " +string.format("%0# +1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +1.1s", "") == " " +string.format("%0# +1.1s", "aa") == "a" +string.format("%0# +1.1s", "aaaaaaaaaa") == "a" +string.format("%0# +1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# +1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# +1.6s", "") == " " +string.format("%0# +1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# +1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +2s", "") == " " +string.format("%0# +2s", "a") == " a" +string.format("%0# +2.0s", "") == " " +string.format("%0# +2.0s", "a") == " " +string.format("%0# +2.0s", "aa") == " " +string.format("%0# +2.0s", "aaaaaaaaaa") == " " +string.format("%0# +2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +2.1s", "") == " " +string.format("%0# +2.1s", "a") == " a" +string.format("%0# +2.1s", "aa") == " a" +string.format("%0# +2.1s", "aaaaaaaaaa") == " a" +string.format("%0# +2.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +2.6s", "") == " " +string.format("%0# +2.6s", "a") == " a" +string.format("%0# +2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# +2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +6s", "") == " " +string.format("%0# +6s", "a") == " a" +string.format("%0# +6s", "aa") == " aa" +string.format("%0# +6.0s", "") == " " +string.format("%0# +6.0s", "a") == " " +string.format("%0# +6.0s", "aa") == " " +string.format("%0# +6.0s", "aaaaaaaaaa") == " " +string.format("%0# +6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +6.1s", "") == " " +string.format("%0# +6.1s", "a") == " a" +string.format("%0# +6.1s", "aa") == " a" +string.format("%0# +6.1s", "aaaaaaaaaa") == " a" +string.format("%0# +6.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +6.6s", "") == " " +string.format("%0# +6.6s", "a") == " a" +string.format("%0# +6.6s", "aa") == " aa" +string.format("%0# +6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# +6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# +20s", "") == " " +string.format("%0# +20s", "a") == " a" +string.format("%0# +20s", "aa") == " aa" +string.format("%0# +20s", "aaaaaaaaaa") == " aaaaaaaaaa" +string.format("%0# +20.0s", "") == " " +string.format("%0# +20.0s", "a") == " " +string.format("%0# +20.0s", "aa") == " " +string.format("%0# +20.0s", "aaaaaaaaaa") == " " +string.format("%0# +20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# +20.1s", "") == " " +string.format("%0# +20.1s", "a") == " a" +string.format("%0# +20.1s", "aa") == " a" +string.format("%0# +20.1s", "aaaaaaaaaa") == " a" +string.format("%0# +20.1s", "aaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " a" +string.format("%0# +20.6s", "") == " " +string.format("%0# +20.6s", "a") == " a" +string.format("%0# +20.6s", "aa") == " aa" +string.format("%0# +20.6s", "aaaaaaaaaa") == " aaaaaa" +string.format("%0# +20.6s", "aaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0# +20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " aaaaaa" +string.format("%0# -s", "") == "" +string.format("%0# -s", "a") == "a" +string.format("%0# -s", "aa") == "aa" +string.format("%0# -s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0# -s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0# -s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0# -.0s", "a") == "" +string.format("%0# -.0s", "aa") == "" +string.format("%0# -.0s", "aaaaaaaaaa") == "" +string.format("%0# -.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# -.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# -.1s", "aa") == "a" +string.format("%0# -.1s", "aaaaaaaaaa") == "a" +string.format("%0# -.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -1s", "") == " " +string.format("%0# -1.0s", "") == " " +string.format("%0# -1.0s", "a") == " " +string.format("%0# -1.0s", "aa") == " " +string.format("%0# -1.0s", "aaaaaaaaaa") == " " +string.format("%0# -1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -1.1s", "") == " " +string.format("%0# -1.1s", "aa") == "a" +string.format("%0# -1.1s", "aaaaaaaaaa") == "a" +string.format("%0# -1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -1.6s", "") == " " +string.format("%0# -1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -2s", "") == " " +string.format("%0# -2s", "a") == "a " +string.format("%0# -2.0s", "") == " " +string.format("%0# -2.0s", "a") == " " +string.format("%0# -2.0s", "aa") == " " +string.format("%0# -2.0s", "aaaaaaaaaa") == " " +string.format("%0# -2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -2.1s", "") == " " +string.format("%0# -2.1s", "a") == "a " +string.format("%0# -2.1s", "aa") == "a " +string.format("%0# -2.1s", "aaaaaaaaaa") == "a " +string.format("%0# -2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -2.6s", "") == " " +string.format("%0# -2.6s", "a") == "a " +string.format("%0# -2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -6s", "") == " " +string.format("%0# -6s", "a") == "a " +string.format("%0# -6s", "aa") == "aa " +string.format("%0# -6.0s", "") == " " +string.format("%0# -6.0s", "a") == " " +string.format("%0# -6.0s", "aa") == " " +string.format("%0# -6.0s", "aaaaaaaaaa") == " " +string.format("%0# -6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -6.1s", "") == " " +string.format("%0# -6.1s", "a") == "a " +string.format("%0# -6.1s", "aa") == "a " +string.format("%0# -6.1s", "aaaaaaaaaa") == "a " +string.format("%0# -6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -6.6s", "") == " " +string.format("%0# -6.6s", "a") == "a " +string.format("%0# -6.6s", "aa") == "aa " +string.format("%0# -6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -20s", "") == " " +string.format("%0# -20s", "a") == "a " +string.format("%0# -20s", "aa") == "aa " +string.format("%0# -20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0# -20.0s", "") == " " +string.format("%0# -20.0s", "a") == " " +string.format("%0# -20.0s", "aa") == " " +string.format("%0# -20.0s", "aaaaaaaaaa") == " " +string.format("%0# -20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -20.1s", "") == " " +string.format("%0# -20.1s", "a") == "a " +string.format("%0# -20.1s", "aa") == "a " +string.format("%0# -20.1s", "aaaaaaaaaa") == "a " +string.format("%0# -20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -20.6s", "") == " " +string.format("%0# -20.6s", "a") == "a " +string.format("%0# -20.6s", "aa") == "aa " +string.format("%0# -20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0# -20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0# -20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0# -+s", "") == "" +string.format("%0# -+s", "a") == "a" +string.format("%0# -+s", "aa") == "aa" +string.format("%0# -+s", "aaaaaaaaaa") == "aaaaaaaaaa" +string.format("%0# -+s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaa" +string.format("%0# -+s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" +string.format("%0# -+.0s", "a") == "" +string.format("%0# -+.0s", "aa") == "" +string.format("%0# -+.0s", "aaaaaaaaaa") == "" +string.format("%0# -+.0s", "aaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# -+.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "" +string.format("%0# -+.1s", "aa") == "a" +string.format("%0# -+.1s", "aaaaaaaaaa") == "a" +string.format("%0# -+.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -+.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -+.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -+.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+1s", "") == " " +string.format("%0# -+1.0s", "") == " " +string.format("%0# -+1.0s", "a") == " " +string.format("%0# -+1.0s", "aa") == " " +string.format("%0# -+1.0s", "aaaaaaaaaa") == " " +string.format("%0# -+1.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+1.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+1.1s", "") == " " +string.format("%0# -+1.1s", "aa") == "a" +string.format("%0# -+1.1s", "aaaaaaaaaa") == "a" +string.format("%0# -+1.1s", "aaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -+1.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a" +string.format("%0# -+1.6s", "") == " " +string.format("%0# -+1.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -+1.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+1.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+2s", "") == " " +string.format("%0# -+2s", "a") == "a " +string.format("%0# -+2.0s", "") == " " +string.format("%0# -+2.0s", "a") == " " +string.format("%0# -+2.0s", "aa") == " " +string.format("%0# -+2.0s", "aaaaaaaaaa") == " " +string.format("%0# -+2.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+2.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+2.1s", "") == " " +string.format("%0# -+2.1s", "a") == "a " +string.format("%0# -+2.1s", "aa") == "a " +string.format("%0# -+2.1s", "aaaaaaaaaa") == "a " +string.format("%0# -+2.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+2.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+2.6s", "") == " " +string.format("%0# -+2.6s", "a") == "a " +string.format("%0# -+2.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -+2.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+2.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+6s", "") == " " +string.format("%0# -+6s", "a") == "a " +string.format("%0# -+6s", "aa") == "aa " +string.format("%0# -+6.0s", "") == " " +string.format("%0# -+6.0s", "a") == " " +string.format("%0# -+6.0s", "aa") == " " +string.format("%0# -+6.0s", "aaaaaaaaaa") == " " +string.format("%0# -+6.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+6.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+6.1s", "") == " " +string.format("%0# -+6.1s", "a") == "a " +string.format("%0# -+6.1s", "aa") == "a " +string.format("%0# -+6.1s", "aaaaaaaaaa") == "a " +string.format("%0# -+6.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+6.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+6.6s", "") == " " +string.format("%0# -+6.6s", "a") == "a " +string.format("%0# -+6.6s", "aa") == "aa " +string.format("%0# -+6.6s", "aaaaaaaaaa") == "aaaaaa" +string.format("%0# -+6.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+6.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa" +string.format("%0# -+20s", "") == " " +string.format("%0# -+20s", "a") == "a " +string.format("%0# -+20s", "aa") == "aa " +string.format("%0# -+20s", "aaaaaaaaaa") == "aaaaaaaaaa " +string.format("%0# -+20.0s", "") == " " +string.format("%0# -+20.0s", "a") == " " +string.format("%0# -+20.0s", "aa") == " " +string.format("%0# -+20.0s", "aaaaaaaaaa") == " " +string.format("%0# -+20.0s", "aaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+20.0s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == " " +string.format("%0# -+20.1s", "") == " " +string.format("%0# -+20.1s", "a") == "a " +string.format("%0# -+20.1s", "aa") == "a " +string.format("%0# -+20.1s", "aaaaaaaaaa") == "a " +string.format("%0# -+20.1s", "aaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+20.1s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "a " +string.format("%0# -+20.6s", "") == " " +string.format("%0# -+20.6s", "a") == "a " +string.format("%0# -+20.6s", "aa") == "aa " +string.format("%0# -+20.6s", "aaaaaaaaaa") == "aaaaaa " +string.format("%0# -+20.6s", "aaaaaaaaaaaaaaaaaaaa") == "aaaaaa " +string.format("%0# -+20.6s", "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa") == "aaaaaa " diff --git a/src/test/resources/errors/stringlibargs.lua b/src/test/resources/errors/stringlibargs.lua index f6f40077..66e64bf6 100644 --- a/src/test/resources/errors/stringlibargs.lua +++ b/src/test/resources/errors/stringlibargs.lua @@ -46,17 +46,17 @@ checkallerrors('string.find', { somestring, notastring }, 'bad argument') checkallerrors('string.find', { somestring, somestring, nonnumber }, 'bad argument') -- string.format ---local numfmts = {'%c','%d','%E','%e','%f','%g','%G','%i','%o','%u','%X','%x'} -local numfmts = { '%c', '%d', '%i', '%o', '%u', '%X', '%x' } +local numfmts = {'%c','%d','%E','%e','%f','%g','%G','%i','%o','%u','%X','%x'} local strfmts = { '%q', '%s' } -local badfmts = { '%w' } banner('string.format') checkallpass('string.format', { somestring, anylua }) checkallpass('string.format', { numfmts, somenumber }) checkallpass('string.format', { strfmts, somestring }) checkallerrors('string.format', { numfmts, notanumber }, 'bad argument') checkallerrors('string.format', { strfmts, notastring }, 'bad argument') -checkallerrors('string.format', { badfmts, somestring }, "invalid option '%w'") +checkallerrors('string.format', { { '%w' }, somestring }, "invalid option '%w'") +checkallerrors('string.format', { { '%' }, somestring }, "invalid option '%'") +checkallerrors('string.format', { { '%######s' }, somestring }, "invalid format (repeated flags)") -- string.gmatch banner('string.gmatch') diff --git a/src/test/resources/errors/stringlibargs.out b/src/test/resources/errors/stringlibargs.out index 58b1d172..c97f1532 100644 --- a/src/test/resources/errors/stringlibargs.out +++ b/src/test/resources/errors/stringlibargs.out @@ -255,6 +255,11 @@ needcheck string_char(3) 3 --- checkallpass - string.format('%c',1.25) '' - string.format('%d',1.25) '1' +- string.format('%E',1.25) '1.250000E+00' +- string.format('%e',1.25) '1.250000e+00' +- string.format('%f',1.25) '1.250000' +- string.format('%g',1.25) '1.25' +- string.format('%G',1.25) '1.25' - string.format('%i',1.25) '1' - string.format('%o',1.25) '1' - string.format('%u',1.25) '1' @@ -262,6 +267,11 @@ needcheck string_char(3) 3 - string.format('%x',1.25) '1' - string.format('%c','789') '' - string.format('%d','789') '789' +- string.format('%E','789') '7.890000E+02' +- string.format('%e','789') '7.890000e+02' +- string.format('%f','789') '789.000000' +- string.format('%g','789') '789' +- string.format('%G','789') '789' - string.format('%i','789') '789' - string.format('%o','789') '1425' - string.format('%u','789') '789' @@ -275,6 +285,11 @@ needcheck string_char(3) 3 --- checkallerrors - string.format('%c',nil) ...bad argument... - string.format('%d',nil) ...bad argument... +- string.format('%E',nil) ...bad argument... +- string.format('%e',nil) ...bad argument... +- string.format('%f',nil) ...bad argument... +- string.format('%g',nil) ...bad argument... +- string.format('%G',nil) ...bad argument... - string.format('%i',nil) ...bad argument... - string.format('%o',nil) ...bad argument... - string.format('%u',nil) ...bad argument... @@ -282,6 +297,11 @@ needcheck string_char(3) 3 - string.format('%x',nil) ...bad argument... - string.format('%c','abc') ...bad argument... - string.format('%d','abc') ...bad argument... +- string.format('%E','abc') ...bad argument... +- string.format('%e','abc') ...bad argument... +- string.format('%f','abc') ...bad argument... +- string.format('%g','abc') ...bad argument... +- string.format('%G','abc') ...bad argument... - string.format('%i','abc') ...bad argument... - string.format('%o','abc') ...bad argument... - string.format('%u','abc') ...bad argument... @@ -289,6 +309,11 @@ needcheck string_char(3) 3 - string.format('%x','abc') ...bad argument... - string.format('%c',true) ...bad argument... - string.format('%d',true) ...bad argument... +- string.format('%E',true) ...bad argument... +- string.format('%e',true) ...bad argument... +- string.format('%f',true) ...bad argument... +- string.format('%g',true) ...bad argument... +- string.format('%G',true) ...bad argument... - string.format('%i',true) ...bad argument... - string.format('%o',true) ...bad argument... - string.format('%u',true) ...bad argument... @@ -296,6 +321,11 @@ needcheck string_char(3) 3 - string.format('%x',true) ...bad argument... - string.format('%c',) ...bad argument... - string.format('%d',
) ...bad argument... +- string.format('%E',
) ...bad argument... +- string.format('%e',
) ...bad argument... +- string.format('%f',
) ...bad argument... +- string.format('%g',
) ...bad argument... +- string.format('%G',
) ...bad argument... - string.format('%i',
) ...bad argument... - string.format('%o',
) ...bad argument... - string.format('%u',
) ...bad argument... @@ -303,6 +333,11 @@ needcheck string_char(3) 3 - string.format('%x',
) ...bad argument... - string.format('%c',) ...bad argument... - string.format('%d',) ...bad argument... +- string.format('%E',) ...bad argument... +- string.format('%e',) ...bad argument... +- string.format('%f',) ...bad argument... +- string.format('%g',) ...bad argument... +- string.format('%G',) ...bad argument... - string.format('%i',) ...bad argument... - string.format('%o',) ...bad argument... - string.format('%u',) ...bad argument... @@ -310,6 +345,11 @@ needcheck string_char(3) 3 - string.format('%x',) ...bad argument... - string.format('%c',) ...bad argument... - string.format('%d',) ...bad argument... +- string.format('%E',) ...bad argument... +- string.format('%e',) ...bad argument... +- string.format('%f',) ...bad argument... +- string.format('%g',) ...bad argument... +- string.format('%G',) ...bad argument... - string.format('%i',) ...bad argument... - string.format('%o',) ...bad argument... - string.format('%u',) ...bad argument... @@ -329,6 +369,12 @@ needcheck string_char(3) 3 --- checkallerrors - string.format('%w','abc') ...invalid option '%w'... - string.format('%w',1.25) ...invalid option '%w'... +--- checkallerrors +- string.format('%','abc') ...invalid option '%'... +- string.format('%',1.25) ...invalid option '%'... +--- checkallerrors +- string.format('%######s','abc') ...invalid format (repeated flags)... +- string.format('%######s',1.25) ...invalid format (repeated flags)... ====== string.gmatch ====== --- checkallpass - string.gmatch('abc','abc')