[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #13270] Random number generation creates invalid values
From: |
anonymous |
Subject: |
[commit-cp] [bug #13270] Random number generation creates invalid values. |
Date: |
Sun, 5 Jun 2005 12:06:21 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050421 Firefox/1.0.3 (Debian package 1.0.3-2) |
Follow-up Comment #6, bug #13270 (project classpath):
I see, here's the output before and after casting to int. I also tried
casting to long, short and float, when casting to long and float it brings
the correct output, but short brings some 0's and -1 instead of the
2147483648 and -2147483648.
3.2680927015788903
-2147483648
48.676101959694606
48
15.603303272040826
15
45.18679449911908
-2147483648
50.183405249914465
-2147483648
57.99931603444814
57
38.57864976574081
38
36.30425765078901
-2147483648
31.345613996020415
31
44.611820742164916
44
24.0072916995037
-2147483648
5.759369039050663
5
45.17598697068571
45
56.54270822097954
2147483647
37.43793782159153
2147483647
8.445844681955768
8
41.26446978250817
41
0.0966193579536061
-2147483648
50.92214798727264
-2147483648
16.164099315461403
2147483647
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13270>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bug #13270] Random number generation creates invalid values., anonymous, 2005/06/02
- [commit-cp] [bug #13270] Random number generation creates invalid values., Sven de Marothy, 2005/06/02
- [commit-cp] [bug #13270] Random number generation creates invalid values., anonymous, 2005/06/02
- [commit-cp] [bug #13270] Random number generation creates invalid values., Sven de Marothy, 2005/06/02
- [commit-cp] [bug #13270] Random number generation creates invalid values., anonymous, 2005/06/03
- [commit-cp] [bug #13270] Random number generation creates invalid values., Sven de Marothy, 2005/06/04
- [commit-cp] [bug #13270] Random number generation creates invalid values.,
anonymous <=
- [commit-cp] [bug #13270] Random number generation creates invalid values., Sven de Marothy, 2005/06/05
- [commit-cp] [bug #13270] Random number generation creates invalid values., Sven de Marothy, 2005/06/07
- [commit-cp] [bug #13270] Random number generation creates invalid values., anonymous, 2005/06/07