Round value before save

This commit is contained in:
Michał Zieliński
2023-12-01 15:25:18 +01:00
parent add95e3dfe
commit d73d3ee345

View File

@@ -7,6 +7,7 @@ namespace DiunaBIWebAPI.dataProcessors
{
public static void setValue(Record record, int number, float? value)
{
value = (float)Math.Round((decimal)(value ?? 0), 2);
switch (number)
{
case 1: