Package co.nstant.in.cbor.model

Examples of co.nstant.in.cbor.model.SinglePrecisionFloat


        bits |= nextSymbol() & 0xFF;
        bits <<= 8;
        bits |= nextSymbol() & 0xFF;
        bits <<= 8;
        bits |= nextSymbol() & 0xFF;
        return new SinglePrecisionFloat(Float.intBitsToFloat(bits));
    }
View Full Code Here


  protected DataItem convert(float value) {
    if (isHalfPrecisionEnough(value)) {
      return new HalfPrecisionFloat(value);
    } else {
      return new SinglePrecisionFloat(value);
    }
  }
View Full Code Here

    bits |= nextSymbol() & 0xFF;
    bits <<= 8;
    bits |= nextSymbol() & 0xFF;
    bits <<= 8;
    bits |= nextSymbol() & 0xFF;
    return new SinglePrecisionFloat(Float.intBitsToFloat(bits));
  }
View Full Code Here

TOP

Related Classes of co.nstant.in.cbor.model.SinglePrecisionFloat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.