IALweb Homepage
Forum Home Forum Home > Programmazione > Programmazione > C/C++ - VISUAL C++
  New Posts New Posts RSS Feed - Conversione float
  FAQ FAQ  Forum Search   Events   Register Register  Login Login


Topic ClosedConversione float

 Post Reply Post Reply
tibe02 View Drop Down
Nuovo Utente
Nuovo Utente

Joined: 30/Ago/2003
Status: Offline
Points: 15
Direct Link To This Post Topic: Conversione float
    Posted: 16/Lug/2009 at 12:02
Qualcuno mi sa spiegare perchè nel codice seguente fP2 = 49 e iP2 = 48

float fPeriodo = 0;
float fTOSC = 0;
float fP2 = 0;
int iP2 = 0;

fPeriodo = 0.0002;
fTOSC = 0.00000025;
fP2 = (fPeriodo/(4*fTOSC*4))-1;
iP2 = fP2;

Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 10.17
Copyright ©2001-2013 Web Wiz Ltd.

This page was generated in 0,063 seconds.