.net - strings.formatnumber is limiting to 15 characters? -
we have .net visual basic project uses function strings.formatnumber
used because of flexibility, namely number of decimal places allowed dynamic variable. have come across nasty bug in function seems round 15 digits
so
? strings.formatnumber("123456789012345.66", 2,microsoft.visualbasic.tristate.true,microsoft.visualbasic.tristate.false,microsoft.visualbasic.tristate.false) results 123456789012345.00 ? strings.formatnumber("12345678901234.66", 2,microsoft.visualbasic.tristate.true,microsoft.visualbasic.tristate.false,microsoft.visualbasic.tristate.false) results 12345678901234.60 ? strings.formatnumber("1234567890123.66", 2,microsoft.visualbasic.tristate.true,microsoft.visualbasic.tristate.false,microsoft.visualbasic.tristate.false) results 1234567890123.66 ? strings.formatnumber("1234567890123456666.66", 2,microsoft.visualbasic.tristate.true,microsoft.visualbasic.tristate.false,microsoft.visualbasic.tristate.false) results 1234567890123460000.00
so 2 questions
- why function this?
- is there .net function can use turn strings numbers , return string , number of decimals can dynamic?
Comments
Post a Comment