GDL weirdness (bug?) with modulo command [message #88331] |
Tue, 15 April 2014 07:44  |
rjp23
Messages: 97 Registered: June 2010
|
Member |
|
|
I'm not sure if this is a bug or if I'm missing something and I know there's a fair few GDL users here.
I was using the mod command to get the remainder from a value and then fixing it to be an integer and I noticed that some of the values were wrong.
I looked into it a bit more and think I can summarise the issue as:
GDL> print, 200.0 mod 12
7.99999
GDL> print, 200D mod 12
8.0000000
i.e. if the variable is a float, the mod command doesn't return the integer that you expect it to. If it's a double then you get the expected answer.
Am I missing some subtlety here or is this a bug?
|
|
|
|
|
|
|
|
Re: GDL weirdness (bug?) with modulo command [message #88533 is a reply to message #88456] |
Thu, 08 May 2014 13:36  |
rjp23
Messages: 97 Registered: June 2010
|
Member |
|
|
On Tuesday, April 29, 2014 10:17:21 AM UTC+1, alai...@gmail.com wrote:
>
>
> Thank you for reporting it, it is now solved in the CVS.
>
>
>
> Please report bugs also to GDL bugs tracker:
>
> https://sourceforge.net/p/gnudatalanguage/bugs/
>
> (sorry but anonymous report is deactivated due to spams ...)
>
>
>
> Alain
That's excellent, thanks.
I didn't realise that the bug-tracker was being so actively monitored.
I've also reported another bug (I think?) which we found with INTERPOL.
|
|
|