Jin.ChineseNumberConverter 1.0.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Jin.ChineseNumberConverter --version 1.0.0
                    
NuGet\Install-Package Jin.ChineseNumberConverter -Version 1.0.0
                    
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="Jin.ChineseNumberConverter" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Jin.ChineseNumberConverter" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Jin.ChineseNumberConverter" />
                    
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 Jin.ChineseNumberConverter --version 1.0.0
                    
#r "nuget: Jin.ChineseNumberConverter, 1.0.0"
                    
#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 Jin.ChineseNumberConverter@1.0.0
                    
#: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=Jin.ChineseNumberConverter&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Jin.ChineseNumberConverter&version=1.0.0
                    
Install as a Cake Tool

说明

这是一个用于将数字转换为中文形式的库。目前支持ushort、short、uint、int、ulong、long六种类型,支持转换为大写及小写。

基本用法

using ChineseNumberConverter;

//输出:六万五千五百三十五
Console.WriteLine(ushort.MaxValue.ToChineseString());
//输出:三万二千七百六十七
Console.WriteLine(short.MaxValue.ToChineseString());
//输出:二十一亿四千七百四十八万三千六百四十七
Console.WriteLine(int.MaxValue.ToChineseString());
//输出:四十二亿九千四百九十六万七千二百九十五
Console.WriteLine(uint.MaxValue.ToChineseString());
//输出:九百二十二京三千三百七十二兆〇三百六十八亿五千四百七十七万五千八百〇七
Console.WriteLine(long.MaxValue.ToChineseString());
//输出:一千八百四十四京六千七百四十四兆〇七百三十七亿〇九百五十五万一千六百一十五
Console.WriteLine(ulong.MaxValue.ToChineseString());

//转换为中文大写
//输出:壹仟捌佰肆拾肆京陆仟柒佰肆拾肆兆零柒佰叁拾柒亿零玖佰伍拾伍万壹仟陆佰壹拾伍
Console.WriteLine(ulong.MaxValue.ToChineseString(new ChineseNumberConverterOptions { UseUpperCase = true }));
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.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 Downloads Last Updated