| |
|
|
Michael Wodrich | Wandelt Profan-Float to MS-windows @Single circa.
P:F1 - Fließkommazahl, The in a 32-bit-Fließkommazahl transformed go should.
with API-functions are often any Parameter 32-bit big, too The for Fließkommazahlen. the meets particularly too for DirectX-API To. yet had in such Make a umständliche conversion the XProfan-internen 64-bit-Fließkommazahlen into suitable stature erfolgen. with this function becomes it vastly vereinfacht: The 64-bit-Fließkommazahl (accuracy To 15 to put) becomes in a 32-bit-Fließkommazahl (accuracy To 8 to put) transformed. the Result (Bitmuster) the conversion becomes in a Longint (32 bit) stored and can so on suitable API-functions transfer go. with the Result can naturally NOT calculated go, there XProfan these Bitfolge as Integer interpret would and accordingly to a unvorhersehbaren, but sure incorrect Result come would. (solely The 0 has as Longint and 32-bit-Fließkommazahl The same Bitfolge.) an DLL-function, The a 32-bit-Fließkommawert expects, becomes The Bitfolge though correctly interpret.
|
|
|
| Programmieren, das spannendste Detektivspiel der Welt. | 06/05/05 ▲ |
|
|
|