float type conversion hexadecimal

 
/ ** 
* binary conversion type
* /
public class RadixChangeUtil {

/ **
* a float type converted to hexadecimal
* @param changeData * @return * / public static String HEXADECIMAL ( a float changeData) { return Integer. ToHexString (the Float. the floatToIntBits (changeData)) ; } / ** * 16 hex converted to float * @param changeData * @return * / public static float hexToTen (String changeData) { return the float. intBitsToFloat (Integer. the parseInt (changeData , 16)) ; }














}
 

Guess you like

Origin www.cnblogs.com/riyueqian/p/11705934.html