From 13e3c46bfad820c7a1f2b74b76adffd8a1159eea Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Tue, 8 Aug 2017 23:21:07 +0300 Subject: [PATCH] Double128 example updated. --- vala/long_double/test128float.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vala/long_double/test128float.vala b/vala/long_double/test128float.vala index f2107fa..2fa5102 100644 --- a/vala/long_double/test128float.vala +++ b/vala/long_double/test128float.vala @@ -14,4 +14,11 @@ void main () { stdout.printf ("Double128: ld = %e, ", ld); ld += 1; ld -= 1; stdout.printf ("(+-1) ld = %e\n", ld); + + ld = 1.234567; + stdout.printf ("ld = %e, ", ld); + d = ld; stdout.printf ("d = ld, "); + stdout.printf ("d = %e, ", d); + ld = d; stdout.printf ("ld = d, "); + stdout.printf ("ld = %e\n", ld); }