Add writeMaxFloat and writeMaxInt