NumbersFactor 3.63.59.87

dotnet add package NumbersFactor --version 3.63.59.87
                    
NuGet\Install-Package NumbersFactor -Version 3.63.59.87
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NumbersFactor" Version="3.63.59.87" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="NumbersFactor" Version="3.63.59.87" />
                    
Directory.Packages.props
<PackageReference Include="NumbersFactor" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add NumbersFactor --version 3.63.59.87
                    
#r "nuget: NumbersFactor, 3.63.59.87"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package NumbersFactor@3.63.59.87
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=NumbersFactor&version=3.63.59.87
                    
Install as a Cake Addin
#tool nuget:?package=NumbersFactor&version=3.63.59.87
                    
Install as a Cake Tool

FormatNumber Class Library

The FormatNumber class provides functionality to format large numeric values into more readable forms using suffixes such as K (thousands), M (millions), and B (billions). This library is useful when you need to display numbers in a concise, user-friendly format, especially for things like counters, statistics, or any large numbers.

Features

  • FormatNumbers(uint n): Converts an integer value to a string with appropriate suffixes based on the value's magnitude.
    • Supports formatting for numbers in the ranges of:

      • Thousands (K)
      • Millions (M)
      • Billions (B)
    • Returns the formatted string in a readable format with commas for thousands and a variable number of decimal places depending on the number range.

Example Usage:

You can use the FormatNumbers method to easily format large numbers in your application.

using System;
using FormatNumber;

class Program
{
    static void Main()
    {
        uint number1 = 1500;
        uint number2 = 55000;
        uint number3 = 1200000;
        uint number4 = 300000000;

        Console.WriteLine(FormatNumber.FormatNumbers(number1)); // Output: 1.5K
        Console.WriteLine(FormatNumber.FormatNumbers(number2)); // Output: 55K
        Console.WriteLine(FormatNumber.FormatNumbers(number3)); // Output: 1.2M
        Console.WriteLine(FormatNumber.FormatNumbers(number4)); // Output: 300M
    }
}
Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8.1

    • 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 Downloads Last Updated
3.63.59.87 119 1/26/2025

New features and improvements for working with large numbers, including enhanced formatting capabilities.