serialize decimal