Posted By

progeru on 06/19/13


Tagged

function Scala pow


Versions (?)

Function pow


 / Published in: Scala
 

Sample function for pow math

  1. def setPow(base: Double, exp: Double): Double = math.pow(base, exp)
  2.  
  3. println(setPow(2, 3)) // for example

Report this snippet  

You need to login to post a comment.