comp.lang.ada
 help / color / mirror / Atom feed
From: hnptz@yahoo.de
Subject: Generic_Rational
Date: Sat, 17 Feb 2018 03:52:47 -0800 (PST)
Date: 2018-02-17T03:52:47-08:00	[thread overview]
Message-ID: <e021a833-75f7-4f58-9eb8-eaf44af84fdd@googlegroups.com> (raw)

On http://rosettacode.org/wiki/Arithmetic/Rational/Ada there is an Ada-package which is OK as it is. It says that the package can be instantiated with any integer type. However, I tried to instantiate it with Long_Integer.
I also used Ada.Numerics.Long_Elementary_Functions. 

Now, the Test_Rational programm does not work anymore. The function "/" is perhaps not in compliance with Long_Integer. I wonder if the declarative part in Test_Rational has a false effect.

What are your suggestions to make it working for Long_Integer numbers as well?

best,

montgrimpulo
 


             reply	other threads:[~2018-02-17 11:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-17 11:52 hnptz [this message]
2018-02-17 12:33 ` Generic_Rational Simon Wright
2018-02-17 14:13 ` Generic_Rational hnptz
2018-02-17 14:47   ` Generic_Rational Simon Wright
2018-02-17 16:41   ` Generic_Rational Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox