comp.lang.ada
 help / color / mirror / Atom feed
* Generic_Rational
@ 2018-02-17 11:52 hnptz
  2018-02-17 12:33 ` Generic_Rational Simon Wright
  2018-02-17 14:13 ` Generic_Rational hnptz
  0 siblings, 2 replies; 5+ messages in thread
From: hnptz @ 2018-02-17 11:52 UTC (permalink / 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
 


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-02-17 16:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-17 11:52 Generic_Rational hnptz
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

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