text.e bugs?
- Posted by irv Jan 09, 2015
- 2521 views
I'd appreciate anyone trying the program below and letting us know whether you have the same results. I've looked into text.e - where the problem lies, I think, but that is a huge amount of code to wade thru.
include std/console.e sequence numbers = {32, 1.2, 1.23, -1.23, -45.60, -45.61, 1499.459, -267.456, 1234567.893 ,-1234567.894} for i = 1 to length(numbers) do printf(1,"%2d Printf: %12.2f ",{i,numbers[i]}) display("Fmt A: [(,,:12.2] Fmt B: [,,:12.2] Raw: [] ",{numbers[i],numbers[i],numbers[i]}) end for /* 1 Printf: 32.00 Fmt A: 32.00 Fmt B: 32.00 Raw: 32 2 Printf: 1.20 Fmt A: 1.20 Fmt B: 1.20 Raw: 1.2 3 Printf: 1.23 Fmt A: 1.23 Fmt B: 1.23 Raw: 1.23 4 Printf: -1.23 Fmt A: (1.2) Fmt B: -1.23 Raw: -1.23 5 Printf: -45.60 Fmt A: (45.6) Fmt B: -45.60 Raw: -45.6 6 Printf: -45.61 Fmt A: (45.6) Fmt B: -45.61 Raw: -45.61 7 Printf: 1499.46 Fmt A: 1,499.45 Fmt B: 1,499.45 Raw: 1499.459 8 Printf: -267.46 Fmt A: (267.4) Fmt B: -,267.45 Raw: -267.456 9 Printf: 1234567.89 Fmt A: 1,234,567.89 Fmt B: 1,234,567.89 Raw: 1234567.893 10 Printf: -1234567.89 Fmt A: 1,234,567.8) Fmt B: 1,234,567.89 Raw: -1234567.894 */