Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
|
AW: Int32 on input should have specified numbers count on output
14. Okt 2010, 13:27
0. Use Abs()
1. Use log(aNumber) (base 10) to get the number of digits
2. x = ADigits - (result of 1.)
3. Result = ANumber * Math.Power(10, (result of 2.));
Just curious: What ist the reason for this? Output with fixed number of significant figures?
|