Use Strutils::format and add half support.