1.

Solve : VB.NET?

Answer»

OK. I got a decimal value from a division. I want only the two NUMBERS after the decimal -- no period, no numbers before or after that -- and I want it in a VARIABLE. The variable part is easy but I'm not sure how to do the first part. Any suggesstions?Just a THOUGHT, but if you have no integer value, multiply the decimal portion by 100 and STORE the results in an integer, then FORMAT to two whole number POSITIONS. This probably works in almost any language.

 8-)



Discussion

No Comment Found