KoreanNumberParser 1.0.0

dotnet add package KoreanNumberParser --version 1.0.0
                    
NuGet\Install-Package KoreanNumberParser -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="KoreanNumberParser" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="KoreanNumberParser" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="KoreanNumberParser" />
                    
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 KoreanNumberParser --version 1.0.0
                    
#r "nuget: KoreanNumberParser, 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 KoreanNumberParser@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=KoreanNumberParser&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=KoreanNumberParser&version=1.0.0
                    
Install as a Cake Tool

KoreanNumberParser

NuGet NuGet downloads Pack and Publish License: MIT

🌐 English | ν•œκ΅­μ–΄

KoreanNumberParserλŠ” ν•œκ΅­μ–΄ 숫자 λ¬Έμžμ—΄μ„ int와 long으둜 λ³€ν™˜ν•˜κ³ , μ •μˆ˜ 값을 λ‹€μ‹œ ν•œκ΅­μ–΄ 숫자 λ¬Έμžμ—΄λ‘œ λ³€ν™˜ν•˜λŠ” .NET λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€.

10μ–΅4천3λ°±λ§Œμ΄μ‹­μΌ, μ‚¬μ²œλ§Œ5λ°±, 4000만였백처럼 ν•œμžμ–΄ μˆ˜μ‚¬μ™€ 아라비아 μˆ«μžκ°€ μ„žμΈ ν‘œν˜„μ„ μ²˜λ¦¬ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

μ„€μΉ˜

dotnet add package KoreanNumberParser

μ‚¬μš©λ²•

using KoreanNumberParser;

var value1 = KoreanNumber.ParseInt64("10μ–΅4천3λ°±λ§Œμ΄μ‹­μΌ");
var value2 = KoreanNumber.ParseInt32("μ‚¬μ²œλ§Œ5λ°±");
var value3 = KoreanNumber.ParseInt64("4000만였백");

Console.WriteLine(value1); // 1043000021
Console.WriteLine(value2); // 40000500
Console.WriteLine(value3); // 40000500

λ¬Έμžμ—΄λ‘œ λ³€ν™˜

using KoreanNumberParser;

var hangul = KoreanNumber.ToKoreanString(40000500);
var arabicChunk = KoreanNumber.ToKoreanString(40000500, KoreanNumberFormat.ArabicChunk);
var arabicUnitDigit = KoreanNumber.ToKoreanString(40000500, KoreanNumberFormat.ArabicUnitDigit);

Console.WriteLine(hangul); // μ‚¬μ²œλ§Œμ˜€λ°±
Console.WriteLine(arabicChunk); // 4000만500
Console.WriteLine(arabicUnitDigit); // 4천만5백

지원 λ²”μœ„

  • int, long νŒŒμ‹±κ³Ό ν¬λ§·νŒ….
  • 영, 곡, 일, 이, μ‚Ό, 사, 였, 윑, μΉ , νŒ”, ꡬ.
  • μ‹­, λ°±, 천, 만, μ–΅, μ‘°, κ²½.
  • ν•˜λ‚˜, λ‘˜, μ…‹, λ„·, 슀물, μ„œλ₯Έ, λ§ˆν” 같은 κ³ μœ μ–΄ μˆ˜μ‚¬ μž…λ ₯.
  • -, +, λ§ˆμ΄λ„ˆμŠ€, ν”ŒλŸ¬μŠ€, 곡백, μ‰Όν‘œ.
  • 아라비아 μˆ«μžμ™€ ν•œκ΅­μ–΄ λ‹¨μœ„κ°€ μ„žμΈ μž…λ ₯.

κ³ μœ μ–΄ μˆ˜μ‚¬λŠ” μž…λ ₯ νŒŒμ‹±μ—μ„œλ§Œ μ§€μ›ν•©λ‹ˆλ‹€. 좜λ ₯은 항상 ν•œμžμ–΄ μˆ˜μ‚¬ κΈ°λ°˜μž…λ‹ˆλ‹€.

μ˜ˆμ™Έ

  • KoreanNumberParseException: μž…λ ₯ λ¬Έμžμ—΄μ„ ν•œκ΅­μ–΄ 숫자둜 해석할 수 없을 λ•Œ λ°œμƒν•©λ‹ˆλ‹€.
  • KoreanNumberOverflowException: νŒŒμ‹±ν•œ 값이 μš”μ²­ν•œ νƒ€μž…μ˜ λ²”μœ„λ₯Ό λ²—μ–΄λ‚  λ•Œ λ°œμƒν•©λ‹ˆλ‹€.
  • ArgumentNullException: ParseInt32 λ˜λŠ” ParseInt64에 null을 μ „λ‹¬ν–ˆμ„ λ•Œ λ°œμƒν•©λ‹ˆλ‹€.

TryParseInt32, TryParseInt64λŠ” μ‹€νŒ¨ μ‹œ μ˜ˆμ™Έλ₯Ό λ˜μ§€μ§€ μ•Šκ³  falseλ₯Ό λ°˜ν™˜ν•©λ‹ˆλ‹€.

λΌμ΄μ„ μŠ€

KoreanNumberParserλŠ” MIT λΌμ΄μ„ μŠ€λ‘œ λ°°ν¬λ©λ‹ˆλ‹€.

μ œμž‘μž

μ΄ν˜Έμ› (airtaxi)이 λ§Œλ“€μ—ˆμŠ΅λ‹ˆλ‹€.

OpenAI Codex의 도움을 λ°›μ•„ μ œμž‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.
  • .NETStandard 2.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
1.0.0 83 5/23/2026