x++ - What is the _isMexican boolean for in the Global::Checkpower method? -


quite simply, method for, , _ismexican? online searching has proven futile.

http://msdn.microsoft.com/en-us/library/global.checkpower.aspx

this has how dynamics ax translates numeric currency values text.

try creating new job in aot following contents:

static void job1(args _args) {     info(global::numeralstotxt_es(120000.45,gendermalefemale::female,0,"mxn",1,0)); } 

the parameters follows:

  1. currency amount
  2. gender
  3. enclose (not certain)
  4. iso currency code
  5. ismexican boolean
  6. ischeck boolean

with ismexican = 1, outputs result: ciento veinte mil 45/100

with ismexican = 0, outputs result: ciento veinte mil con cuarenta y cinco centimos

so basically, text formatter translation of currency amounts given language. languages or countries have specific ways want written form appear, boolean influences it.

the checkpower method part of logic, , recursively calls iterate on powers of given currency (billions, millions, etc), each time adding proper word currency string.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -