Showing posts with the label rounding

[FIXED] Round *UP* to the nearest 100 in SQL Server

Issue Is it possible to easily round a figure up to the nearest 100 (or 1000, 500, 200 etc.) in SQ…

[FIXED] How to prevent automatically rounding the decimal part of the number in .NET 6

Issue After I converted the version from .NET Core 3.1 to 6.0, I figured out that all decimal(10, 5…

[FIXED] ERROR: function round(double precision, integer) does not exist

Issue I am in the middle of migrating some queries which have been running for ages with MySQL data…

[FIXED] SQL Server: round decimal number and convert to int (within Select)

Issue I am using the following line within a Select which returns a number with decimals, e.g. 33.…

[FIXED] SQL Server rounds seconds to hours randomly

Issue I'm executing the following query. declare @Offset as int = 3600 declare @Now as datetim…