![]() |
AW: Mathematiknachhilfe...
Zitat:
Delphi-Quellcode:
if ShortInt(aValue) < 0 then
Result := (-ShortInt(aValue) - 1) * 100 div 127; else Result := aValue * 100 div 127; Sicher daß die $FF genau 0% entspricht und nicht 1.27% ? Wenn 1.27%, dann entspricht es einfach
Delphi-Quellcode:
, bzw.
Abs(ShortInt(aValue) / 1.27)
Delphi-Quellcode:
Abs(ShortInt(aValue) * 100 div 127)
|
AW: Mathematiknachhilfe...
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:56 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz