add floats to java rewrite engine

@andreistefanescu please review.