square

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • M@

    #1

    square

    What's the easiest way to square a number in mysql? I've tried ^2 and sqr()
    but it doesn't work. Doing: long_formula * long_formula just looks a mess.

    Can anyone help?


    TIA

    m@


  • Aggro

    #2
    Re: square

    M@ wrote:
    [color=blue]
    > What's the easiest way to square a number in mysql? I've tried ^2 and sqr()
    > but it doesn't work. Doing: long_formula * long_formula just looks a mess.[/color]

    Perhaps you need POW(X,Y) and SQRT(X)

    Read more about them at:
    http://dev.mysql.com/doc/mysql/en/Ma...functions.html

    Comment

    Working...