KoreanNumberParser 1.2.0

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

KoreanNumberParser

NuGet NuGet downloads Pack and Publish License: MIT

๐ŸŒ English | ํ•œ๊ตญ์–ด

KoreanNumberParser๋Š” ํ•œ๊ตญ์–ด ์ˆซ์ž ๋ฌธ์ž์—ด์„ int, long, decimal, double๋กœ ๋ณ€ํ™˜ํ•˜๊ณ  ์ •์ˆ˜ ๊ฐ’์„ ๋‹ค์‹œ ํ•œ๊ตญ์–ด ์ˆซ์ž ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•˜๋Š” .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๋งŒ์˜ค๋ฐฑ");
var value4 = KoreanNumber.ParseDecimal("์ผ์ ์˜ค");
var value5 = KoreanNumber.ParseDecimal("1.5์–ต");
var value6 = KoreanNumber.ParseDouble("์‚ผ์ฉœ์ผ์‚ฌ");

Console.WriteLine(value1); // 1043000021
Console.WriteLine(value2); // 40000500
Console.WriteLine(value3); // 40000500
Console.WriteLine(value4); // 1.5
Console.WriteLine(value5); // 150000000
Console.WriteLine(value6); // 3.14

๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜

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๋ฐฑ

ToKoreanString์˜ ์„ธ ๋ฒˆ์งธ ํŒŒ๋ผ๋ฏธํ„ฐ separateUnits(๊ธฐ๋ณธ๊ฐ’ true)๋Š” ๋งŒยท์–ตยท์กฐยท๊ฒฝ ๊ฐ™์€ ํฐ ๋‹จ์œ„ ๊ทธ๋ฃน ์‚ฌ์ด์— ๋„์–ด์“ฐ๊ธฐ๋ฅผ ๋„ฃ์„์ง€ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค. false๋กœ ์ง€์ •ํ•˜๋ฉด ๋„์–ด์“ฐ๊ธฐ ์—†์ด ์ด์–ด ๋ถ™์ธ ๊ฒฐ๊ณผ๋ฅผ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

var hangulJoined = KoreanNumber.ToKoreanString(40000500, KoreanNumberFormat.Hangul, separateUnits: false);
Console.WriteLine(hangulJoined); // ์‚ฌ์ฒœ๋งŒ์˜ค๋ฐฑ

์ง€์› ๋ฒ”์œ„

  • int, long ํŒŒ์‹ฑ๊ณผ ํฌ๋งทํŒ…, decimal, double ํŒŒ์‹ฑ.
  • ์†Œ์ˆ˜๋Š” ์ , ์ฉœ, . ๊ตฌ๋ถ„์ž๋กœ ํ‘œํ˜„ํ•˜๋ฉฐ ์†Œ์ˆ˜๋ถ€๋Š” ์•„๋ผ๋น„์•„ ์ˆซ์ž์™€ ํ•œ๊ธ€ ์ˆซ์ž(์˜~๊ตฌ)๋งŒ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์†Œ์ˆ˜ ๋’ค์—๋Š” ์‹ญยท๋ฐฑยท์ฒœยท๋งŒยท์–ตยท์กฐยท๊ฒฝ ๊ฐ™์€ ๋‹จ์œ„๋ฅผ ๋ถ™์ผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ: 1.5, ์ผ์ ์˜ค, ์‚ผ์ฉœ์ผ์‚ฌ, 1.5์–ต, 2.3์ฒœ๋งŒ.
  • ์˜, ๊ณต, ์ผ, ์ด, ์‚ผ, ์‚ฌ, ์˜ค, ์œก, ์น , ํŒ”, ๊ตฌ.
  • ์‹ญ, ๋ฐฑ, ์ฒœ, ๋งŒ, ์–ต, ์กฐ, ๊ฒฝ.
  • ํ•˜๋‚˜, ๋‘˜, ์…‹, ๋„ท, ์Šค๋ฌผ, ์„œ๋ฅธ, ๋งˆํ” ๊ฐ™์€ ๊ณ ์œ ์–ด ์ˆ˜์‚ฌ ์ž…๋ ฅ.
  • -, +, ๋งˆ์ด๋„ˆ์Šค, ํ”Œ๋Ÿฌ์Šค, ๊ณต๋ฐฑ, ์‰ผํ‘œ.
  • ์•„๋ผ๋น„์•„ ์ˆซ์ž์™€ ํ•œ๊ตญ์–ด ๋‹จ์œ„๊ฐ€ ์„ž์ธ ์ž…๋ ฅ.

๊ณ ์œ ์–ด ์ˆ˜์‚ฌ๋Š” ์ž…๋ ฅ ํŒŒ์‹ฑ์—์„œ๋งŒ ์ง€์›ํ•ฉ๋‹ˆ๋‹ค. ์ถœ๋ ฅ์€ ํ•ญ์ƒ ํ•œ์ž์–ด ์ˆ˜์‚ฌ ๊ธฐ๋ฐ˜์ž…๋‹ˆ๋‹ค.

์˜ˆ์™ธ

  • KoreanNumberParseException: ์ž…๋ ฅ ๋ฌธ์ž์—ด์„ ํ•œ๊ตญ์–ด ์ˆซ์ž๋กœ ํ•ด์„ํ•  ์ˆ˜ ์—†์„ ๋•Œ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
  • KoreanNumberOverflowException: ํŒŒ์‹ฑํ•œ ๊ฐ’์ด ์š”์ฒญํ•œ ํƒ€์ž…์˜ ๋ฒ”์œ„๋ฅผ ๋ฒ—์–ด๋‚  ๋•Œ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.
  • ArgumentNullException: ParseInt32, ParseInt64, ParseDecimal ๋˜๋Š” ParseDouble์— null์„ ์ „๋‹ฌํ–ˆ์„ ๋•Œ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

TryParseInt32, TryParseInt64, TryParseDecimal, TryParseDouble์€ ์‹คํŒจ ์‹œ ์˜ˆ์™ธ๋ฅผ ๋˜์ง€์ง€ ์•Š๊ณ  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.2.0 113 8/3/2026
1.1.0 131 6/26/2026
1.0.0 116 5/23/2026