diff --git a/app/serializers/repository_datatable/repository_number_value_serializer.rb b/app/serializers/repository_datatable/repository_number_value_serializer.rb index eaccc1dab..0b3ab792e 100644 --- a/app/serializers/repository_datatable/repository_number_value_serializer.rb +++ b/app/serializers/repository_datatable/repository_number_value_serializer.rb @@ -4,7 +4,7 @@ module RepositoryDatatable class RepositoryNumberValueSerializer < RepositoryBaseValueSerializer def value decimals = scope[:column].metadata.fetch('decimals', Constants::REPOSITORY_NUMBER_TYPE_DEFAULT_DECIMALS).to_i - value_object.data.round(value_object.data.scale.zero? ? 0 : decimals).to_s + value_object.data.round(decimals).to_s end end end