This page is no longer maintained — Please continue to the home page at www.scala-lang.org

max int?

4 replies
Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Dear Scalarazzi,
What's the 2.8 blessed way of obtaining max int?
Best wishes,
--greg

--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Seth Tisue
Joined: 2008-12-16,
User offline. Last seen 34 weeks 3 days ago.
Re: max int?

>>>>> "Meredith" == Meredith Gregory writes:

Meredith> Dear Scalarazzi, What's the 2.8 blessed way of obtaining max
Meredith> int?

Int.MaxValue

Meredith Gregory
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: max int?
Dear Seth,
Many thanks! i didn't spot that in the ScalaDoc from the nightlies.
Best wishes,
--greg

On Thu, Jun 10, 2010 at 10:53 AM, Seth Tisue <seth [at] tisue [dot] net> wrote:
>>>>> "Meredith" == Meredith Gregory <lgreg [dot] meredith [at] gmail [dot] com> writes:

 Meredith> Dear Scalarazzi, What's the 2.8 blessed way of obtaining max
 Meredith> int?

Int.MaxValue

--
Seth Tisue @ Northwestern University | http://tisue.net
lead developer, NetLogo: http://ccl.northwestern.edu/netlogo/



--
L.G. Meredith
Managing Partner
Biosimilarity LLC
1219 NW 83rd St
Seattle, WA 98117

+1 206.650.3740

http://biosimilarity.blogspot.com
Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
Re: max int?

The AnyVal companion classes are are added synthetically by the compiler [1].

Beware that Double.MinValue != java.lang.Double.MIN_VALUE, but rather
-Double.MaxValue. Ditto for Float.

I wonder what needs to be done to get them into the ScalaDoc?

-jason

On Thu, Jun 10, 2010 at 11:17 PM, Meredith Gregory
wrote:
> Dear Seth,
> Many thanks! i didn't spot that in the ScalaDoc from the nightlies.
> Best wishes,
> --greg

Jason Zaugg
Joined: 2009-05-18,
User offline. Last seen 38 weeks 5 days ago.
Re: max int?

On Thu, Jun 10, 2010 at 11:32 PM, Jason Zaugg wrote:
> The AnyVal companion classes are are added synthetically by the compiler [1].

[1] https://lampsvn.epfl.ch/trac/scala/browser/scala/trunk/src/compiler/scal...

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland