diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2021-11-20 21:31:30 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2021-11-20 21:31:30 +0100 |
| commit | 7ff7f3902e5bdcc33bfc07fa6ad71a5798d7f8d6 (patch) | |
| tree | 6e7eaaed636558c4feb88f2bb18bbb7d4c0c87be /src/IOL.Helpers/DoubleHelpers.cs | |
| parent | 4e41b1f31a7309b299398fd9dd53d499204fa6cf (diff) | |
| download | dotnet-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.cs | 13 |
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 +} |
