Child pages
  • Ability to cut trailing zeroes from field value being displayed
Skip to end of metadata
Go to start of metadata

Imported from: http://groups.google.com/group/in-portal-dev/browse_thread/thread/fd096383b0ac3637#

In-Portal has powerful number formatting engine, that allows to format numbers, stored in database in the way you need using sprintf function.

However I recently stumbled upon situation, where I need to remove trailing zeroes from a formatted number, that was displayed, e.g. make "545.00" appear as "545", but keep "345.22" as is.

Patch attached gives ability to enable such behavior for any database field needed via adding "cut_zeros" option to field definition in unit config.

cut_zeros_number_formatting.patch

Related Tasks

INP-929 - Getting issue details... STATUS

1 Comment

  1. Used in rRRG2181 at Sep 30 2011, 13:53.