NumberSplitter 1.0.2.1

This perfect library can split your numbers per groups you want. All numeric variables are supported.
Example:
input: 1235439844,45432234
output: 1 235 439 844,45432234

Install-Package NumberSplitter -Version 1.0.2.1
dotnet add package NumberSplitter --version 1.0.2.1
<PackageReference Include="NumberSplitter" Version="1.0.2.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NumberSplitter --version 1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: NumberSplitter, 1.0.2.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install NumberSplitter as a Cake Addin
#addin nuget:?package=NumberSplitter&version=1.0.2.1

// Install NumberSplitter as a Cake Tool
#tool nuget:?package=NumberSplitter&version=1.0.2.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Example with integer:
int i = -9023450;
string s = i.SplitNumber(" ", 3);
output: s = "-9 023 450"
Example with decimal:
splitAfterPoint = true:
decimal d = -9023450.356755m;
string s = d.SplitNumber(" ", 3, true);
output: s = -9 023 450,356 755
splitAfterPoint = false:
decimal d = -9023450.356755m;
string s = d.SplitNumber(" ", 3, false);
output: s = -9 023 450,356755

Example with integer:
int i = -9023450;
string s = i.SplitNumber(" ", 3);
output: s = "-9 023 450"
Example with decimal:
splitAfterPoint = true:
decimal d = -9023450.356755m;
string s = d.SplitNumber(" ", 3, true);
output: s = -9 023 450,356 755
splitAfterPoint = false:
decimal d = -9023450.356755m;
string s = d.SplitNumber(" ", 3, false);
output: s = -9 023 450,356755

  • .NETStandard 2.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.2.1 74 1/12/2021