File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Go: A question about "methods on types"

 
atul khot
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Mark,

Here goes ;-) a code snippet from gotour,



What is happening on line 18?

The syntax
-math.Sqrt2
is this the same as
-math.Sqrt(2)

The lack of parenthesis stumped me...
I understand the rest...

--- thanks atul
 
atul khot
Ranch Hand
Posts: 64
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess math.Sqrt2 is some constant in the math package...

--- cheerio atul
 
Mark Summerfield
author
Ranch Hand
Posts: 37
Linux VI Editor Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Atul,

Yes you're right math.Sqrt2 is a predefined constant.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic