All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cgta.oscala.extensions.DoubleExtensions.scala Maven / Gradle / Ivy

The newest version!
package cgta.oscala
package extensions


//////////////////////////////////////////////////////////////
// Copyright (c) 2014 Ben Jackman, Jeff Gomberg
// All Rights Reserved
// please contact [email protected] or [email protected]
// for licensing inquiries
// Created by bjackman @ 8/15/14 11:12 PM
//////////////////////////////////////////////////////////////

class DoubleExtensions(val d: Double) extends AnyVal {
  def divideByAtLeastOne(denom: Double) = d / math.max(denom, 1d)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy