Livejournal
Log in
Post
Friends
My journal
thedeemon
все-таки можно!
May 05, 2016 09:48
Говорили, на ноль нельзя делить, а вот британские учоные научились! Берешь хаскель и делишь себе, получаешь конкретные числа:
Prelude> floor (1/0 (
Read more...
)
haskell
,
fp
,
fun
Leave a comment
Comments 19
Next
(The comment has been removed)
ex_juan_gan
May 5 2016, 03:12:42 UTC
scala> 1/0
java.lang.ArithmeticException: / by zero
Reply
(The comment has been removed)
clayrat
May 5 2016, 10:42:40 UTC
scala> 19/0
java.lang.ArithmeticException: / by zero
scala> 137/0
java.lang.ArithmeticException: / by zero
Reply
Thread 11
ex_juan_gan
May 5 2016, 03:12:03 UTC
Поздравляю!
Reply
helvegr
May 5 2016, 04:49:43 UTC
https://ghc.haskell.org/trac/ghc/ticket/3070
Reply
sassa_nf
May 5 2016, 07:15:49 UTC
ну так сколько лет тому тикету!
Reply
wizzard0
May 5 2016, 09:42:13 UTC
а откуда эта чудесная картинка о faculty of numbers?
Reply
thedeemon
May 5 2016, 10:19:16 UTC
https://www.youtube.com/watch?v=-r6NY4Kl8Ms
;)
Reply
maxim
May 5 2016, 09:43:44 UTC
$ ghci
GHCi, version 7.10.3:
http://www.haskell.org/ghc/
:? for help
Prelude> 1/0
Infinity
floor просто неправильный :-)
Reply
Next
Leave a comment
Up
Comments 19
(The comment has been removed)
java.lang.ArithmeticException: / by zero
Reply
(The comment has been removed)
java.lang.ArithmeticException: / by zero
scala> 137/0
java.lang.ArithmeticException: / by zero
Reply
Reply
Reply
Reply
Reply
Reply
$ ghci
GHCi, version 7.10.3: http://www.haskell.org/ghc/ :? for help
Prelude> 1/0
Infinity
floor просто неправильный :-)
Reply
Leave a comment