mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 09:53:36 +00:00
Estimated hours taken: 0.25
string_format_test.exp:
string_format_test.exp2:
string_format_test.m:
Avoid a problem where exponents can be represented by -00 or +00, by
changing the numbers to have a non-zero exponent.
25 lines
903 B
Plaintext
25 lines
903 B
Plaintext
First 0x20 characters of fig 1.4 in MG are
|
|
`In the beginning there was the t'.
|
|
First 0x1b characters of fig 1.4 in MG are
|
|
`In the beginning there was '.
|
|
First 0x25 characters of fig 1.4 in MG are
|
|
`In the beginning there was the text, '.
|
|
|
|
Following line should have 3, 4, 1 significant figures.
|
|
Strangly, 1.00e+01+ 10.000= 2E+01
|
|
|
|
|
|
!%0 10.5i!%0+10.5i!%0 -10.5i!%0+-10.5i!
|
|
!% 10.5i!%+10.5i!% -10.5i!%+-10.5i!
|
|
!% 10.5x!%+10.5x!% -10.5x!%+-10.5x!
|
|
!%#10.x!%#+10.x!%#-10.x!%#+-10.x!
|
|
|
|
! -00031! -00031!-00031 !-00031 !
|
|
! 00031! +00031! 00031 !+00031 !
|
|
! -00031! -00031!-00031 !-00031 !
|
|
! 00031! +00031! 00031 !+00031 !
|
|
!ffffffffffffffe1!ffffffffffffffe1!ffffffffffffffe1!ffffffffffffffe1!
|
|
! 0001f! 0001f!0001f !0001f !
|
|
!0xffffffffffffffe1!0xffffffffffffffe1!0xffffffffffffffe1!0xffffffffffffffe1!
|
|
! 0x1f! 0x1f!0x1f !0x1f !
|