Re: text.e bugs?
- Posted by cargoan Jan 11, 2015
- 2277 views
But.
include std/console.e include std/text.e display("Fmt A: [,,:14.2] Fmt B: [,,:14.2] Raw: []", {-123456.789, -123456.789, -123456.789}) display("Fmt A: [+,,:14.2] Fmt B: [+,,:14.2] Raw: []\n", { 123456.789, 123456.789, 123456.789}) display("Fmt A: [,,:14.2] Fmt B: [,,:14.2] Raw: []", {-267.4, -267.4, -267.4}) display("Fmt A: [+,,:14.2] Fmt B: [+,,:14.2] Raw: []\n", { 267.4, 267.4, 267.4}) display("Fmt A: [(,,:14.2] Fmt B: [,,:14.2] Raw: []", {-267.4, -267.4, -267.4}) display("Fmt A: [+(,,:14.2] Fmt B: [+,,:14.2] Raw: []\n", { 267.4, 267.4, 267.4}) /* output Fmt A: -,123,456.78 Fmt B: -,123,456.78 Raw: -123456.789 Fmt A: +,123,456.78 Fmt B: +,123,456.78 Raw: 123456.789 Fmt A: -,267.40 Fmt B: -,267.40 Raw: -267.4 Fmt A: +,267.40 Fmt B: +,267.40 Raw: 267.4 Fmt A: (267.4) Fmt B: -,267.40 Raw: -267.4 Fmt A: +,267.40 Fmt B: +,267.40 Raw: 267.4 */