The Artima Developer Community
Sponsored Link

Programming in Scala Forum
Page 112( Error)

1 reply on 1 page. Most recent reply: Feb 2, 2008 7:11 AM by Kean Heng Lim

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
swaroop belur

Posts: 3
Nickname: sbelur
Registered: Jul, 2005

Page 112( Error) Posted: Jan 2, 2008 9:16 PM
Reply to this message Reply
Advertisement
FYI:

Listing of some rich operations
-2.7 abs has a value of 2.5

-swaroop


Kean Heng Lim

Posts: 5
Nickname: 53770
Registered: Jan, 2008

Re: Page 112( Error) Posted: Feb 2, 2008 7:11 AM
Reply to this message Reply
The same err to the round. It's a Long rather then Double or Float.


scala> -2.7 abs
res5: Double = 2.7

scala> -2.7 round
res6: Long = -3

Flat View: This topic has 1 reply on 1 page
Topic: Unified errata Previous Topic   Next Topic Topic: extending multiple traits.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use