In LibreOffice Calc the format with zero decimal places and zero leading zeros does this. It is coded as
#
. Does this method work in OpenOffice alike?