function parseVersionFloat(semVersion) {
    var versionFloat = 0;
    var versionsSplit = ('' + semVersion)
      .replace(/[^0-9.]/g, '')
      .split('.');

    for (var i = 0; i < versionsSplit.length; ++i) {
      versionFloat += Number(versionsSplit[i]) / Math.pow(10, i * 3);
    }
    return versionFloat;
  }
/**
   * Given an semVersion String, calculate a Float value that respects it's
   * SemVersion highest value to be used when comparing versions together.
   * @param semVersion
   * @returns {number}
   */
Given an semVersion String, calculate a Float value that respects it's
SemVersion highest value to be used when comparing versions together.
@param semVersion
@returns {number}
Given an semVersion String calculate a Float value that respects it ' s SemVersion highest value to be used when comparing versions together . @param semVersion @returns { number }
function parseVersionFloat(semVersion) {
    var versionFloat = 0;
    var versionsSplit = ('' + semVersion)
      .replace(/[^0-9.]/g, '')
      .split('.');
    for (var i = 0; i < versionsSplit.length; ++i) {
      versionFloat += Number(versionsSplit[i]) / Math.pow(10, i * 3);
    }
    return versionFloat;
  }
function parseVersionFloat ( semVersion ) { var versionFloat = 0 ; var versionsSplit = ( '' + semVersion ) . replace ( / [^0-9.] / g , '' ) . split ( '.' ) ; for ( var i = 0 ; i < versionsSplit . length ; ++ i ) { versionFloat += Number ( versionsSplit [ i ] ) / Math . pow ( 10 , i * 3 ) ; } return versionFloat ; }
Given an semVersion String, calculate a Float value that respects it's
 SemVersion highest value to be used when comparing versions together.
Given an semVersion String calculate a Float value that respects it ' s SemVersion highest value to be used when comparing versions together .