summaryrefslogtreecommitdiffstats
path: root/src/IOL.Helpers/DoubleHelpers.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2021-11-20 21:31:30 +0100
committerivarlovlie <git@ivarlovlie.no>2021-11-20 21:31:30 +0100
commit7ff7f3902e5bdcc33bfc07fa6ad71a5798d7f8d6 (patch)
tree6e7eaaed636558c4feb88f2bb18bbb7d4c0c87be /src/IOL.Helpers/DoubleHelpers.cs
parent4e41b1f31a7309b299398fd9dd53d499204fa6cf (diff)
downloaddotnet-helpers-7ff7f3902e5bdcc33bfc07fa6ad71a5798d7f8d6.tar.xz
dotnet-helpers-7ff7f3902e5bdcc33bfc07fa6ad71a5798d7f8d6.zip
Change to file-scoped namespaces.
Add ConditionalWhere to QueryableHelpers.cs
Diffstat (limited to 'src/IOL.Helpers/DoubleHelpers.cs')
-rw-r--r--src/IOL.Helpers/DoubleHelpers.cs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/IOL.Helpers/DoubleHelpers.cs b/src/IOL.Helpers/DoubleHelpers.cs
index 91d88ee..44f01d5 100644
--- a/src/IOL.Helpers/DoubleHelpers.cs
+++ b/src/IOL.Helpers/DoubleHelpers.cs
@@ -1,11 +1,10 @@
using System;
-namespace IOL.Helpers
+namespace IOL.Helpers;
+
+public static class DoubleHelpers
{
- public static class DoubleHelpers
- {
- public static string ToStringWithFixedDecimalPoints(this double value) {
- return $"{Math.Truncate(value * 10) / 10:0.0}";
- }
+ public static string ToStringWithFixedDecimalPoints(this double value) {
+ return $"{Math.Truncate(value * 10) / 10:0.0}";
}
-} \ No newline at end of file
+}