有一个简单的方法来转换一个数字,印度单词,万卢比和亿卢比格式? [英] Is there an easy way to convert a number to Indian words format with lakhs and crores?

查看:262
本文介绍了有一个简单的方法来转换一个数字,印度单词,万卢比和亿卢比格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如标题,我想一个长的数字转换成格式,使用C#的话。似乎文化设置不这样做,我只是目前在做这个

As the title suggests I would like to convert a long number to the format with words using C#. The Culture settings don't seem to do this and I am just currently doing this

的String.Format(新的CultureInfo(EN-IN ),{0:C0},价格)

但对于很长的数字我宁愿字格式。我不是来自印度和只依稀熟悉系统是如何工作的。

But for very long numbers I would prefer the word format. I am not from India and only vaguely familiar with how the system works.

推荐答案

虽然我不能给你的代码本身,这里的系统

While I can't give you the code itself, here's the system


  • 1 - 一个

  • 10 - 十大

  • 1000 - 千

  • 10000 - 万家

  • 100000 - 万卢比

  • 百万 - 十大万卢比

  • 千万 - 亿卢比

  • 亿 - 十大亿卢比

  • 10亿 - 阿拉伯

  • 百亿 - 十大阿拉伯

  • 千亿 - Kharab

  • 万亿 - 十大Kharab

  • 十万亿 - 1尼尔

  • 百兆 - 10尼尔

  • 千兆 - 1核心注入

  • 1 - One
  • 10 - Ten
  • 1000 - Thousand
  • 10000 - Ten Thousand
  • 100000 - Lakh
  • 1000000 - Ten Lakh
  • 10000000 - Crore
  • 100000000 - Ten Crore
  • 1000000000 - Arab
  • 10000000000 - Ten Arab
  • 100000000000 - Kharab
  • 1000000000000 - Ten Kharab
  • 10000000000000 - 1 Neel
  • 100000000000000 - 10 Neel
  • 1000000000000000 - 1 Padm

我写了一个财务软件我做的套路,所以写不是特别难。

I had written the routines for an accounting package I made, so writing it is not particularly hard.

这篇关于有一个简单的方法来转换一个数字,印度单词,万卢比和亿卢比格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆