Category talk:Wren-fmt: Difference between revisions
→Source code: Fixed a bug in 'g', h', 'gc' and 'hc' formats when dealing with scientific notation.
(→Source code: Added 'zp' format for complex numbers.) |
(→Source code: Fixed a bug in 'g', h', 'gc' and 'hc' formats when dealing with scientific notation.) |
||
Line 464:
static g(w, n, p) {
var f = f(w, n, p)
if (f.contains("e")) return f
if (f.contains(".") && (f[-1] == "0" || f[-1] == " ")) {
var l1 = f.count
Line 477 ⟶ 478:
static h(w, n, p) {
var f = f(w, n, p)
if (f.contains("e")) return f
if (f.contains(".") && (f[-1] == "0" || f[-1] == " ")) {
var l1 = f.count
Line 534 ⟶ 536:
static gc(w, n, p) {
var f = fc(w, n, p)
if (f.contains("e")) return f
if (f.contains(".") && (f[-1] == "0" || f[-1] == " ")) {
var l1 = f.count
Line 547 ⟶ 550:
static hc(w, n, p) {
var f = fc(w, n, p)
if (f.contains("e")) return f
if (f.contains(".") && (f[-1] == "0" || f[-1] == " ")) {
var l1 = f.count
|