I found a strange behavior when using the ROUND function with the third parameter to truncate a float number:
declare @f2 float = 1.24;
select round(@f2, 2, 1)
Outputs:
1.23
I am fully aware of the approximately nature of floating point types, but it doesn't seem correct for such a "simple" number.
Code run on: Microsoft SQL Server 2019 (RTM-CU18) (KB5017593) - 15.0.4261.1 (X64) Sep 12 2022 15:07:06 Copyright (C) 2019 Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2019 Standard 10.0 (Build 17763: )