Here you can find the source of floatToString(float boost)
public static String floatToString(float boost)
//package com.java2s; public class Main { public static String floatToString(float boost) { if (boost != 1.0f) return "^" + Float.toString(boost); return ""; }//from w w w . ja va2 s . c o m }