code: private Double scale(Double value, Double maxAbsolute) {
          if(maxAbsolute.equals(0.0)) {
              return Math.signum(value);
          }
          else {
              return value/maxAbsolute;
          }
      }
docs: Performs the actual rescaling handling corner cases.
  
  @param value
  @param maxAbsolute
  @return