The Artima Developer Community
Sponsored Link

Scala Buzz
Scala Corner Case: Int * Int => Long

0 replies on 1 page.

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 0 replies on 1 page
Caoyuan Deng

Posts: 165
Nickname: dcaoyuan
Registered: Jan, 2008

Caoyuan Deng is an independent developer
Scala Corner Case: Int * Int => Long Posted: Sep 9, 2010 11:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Scala Buzz by Caoyuan Deng.
Original Post: Scala Corner Case: Int * Int => Long
Feed Title: Blogs about Scala from Caoyuan
Feed URL: http://blogtrader.org/page/dcaoyuan/feed/entries/atom?tags=scala
Feed Description: Blogs about Scala from Caoyuan Deng
Latest Scala Buzz Posts
Latest Scala Buzz Posts by Caoyuan Deng
Latest Posts From Blogs about Scala from Caoyuan

Advertisement
scala> val ONE_DAY = 24 * 60 * 60 * 1000
ONE_DAY: Int = 86400000
scala> var manyDays: Long = ONE_DAY * 10000
manyDays: Long = 711573504
scala> var manyDays: Long = ONE_DAY * 10000L
manyDays: Long = 864000000000
scala> ONE_DAY * 10000
res1: Int = 711573504

Read: Scala Corner Case: Int * Int => Long

Topic: Generators in Scala Previous Topic   Next Topic Topic: Announcing - The Kojo Learning Environment

Sponsored Links



Google
  Web Artima.com   

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