KoreanNumberParser 1.2.0
dotnet add package KoreanNumberParser --version 1.2.0
NuGet\Install-Package KoreanNumberParser -Version 1.2.0
<PackageReference Include="KoreanNumberParser" Version="1.2.0" />
<PackageVersion Include="KoreanNumberParser" Version="1.2.0" />
<PackageReference Include="KoreanNumberParser" />
paket add KoreanNumberParser --version 1.2.0
#r "nuget: KoreanNumberParser, 1.2.0"
#:package KoreanNumberParser@1.2.0
#addin nuget:?package=KoreanNumberParser&version=1.2.0
#tool nuget:?package=KoreanNumberParser&version=1.2.0
KoreanNumberParser
๐ 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 | Versions 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. |
-
.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.