support formatting of decimal elements

see issue #169