Einzelnen Beitrag anzeigen

Benutzerbild von jfheins
jfheins

Registriert seit: 10. Jun 2004
Ort: Garching (TUM)
4.579 Beiträge
 
#4

AW: Int32 on input should have specified numbers count on output

  Alt 14. Okt 2010, 12: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?
  Mit Zitat antworten Zitat