domanda...

« Older   Newer »
  Share  
erma96
icon14  CAT_IMG Posted on 25/6/2009, 08:38     +1   -1




Stò cercando di creare un hex-rgb converter, e avrei bisogno che dopo aver effettuato una divisione, il programma non riportasse i numeri dopo la virgola.
Es. 14/8= 1,75 e lui me lo fa diventare 1

sapete se è possibile?
 
Top
I.Ren
CAT_IMG Posted on 25/6/2009, 09:11     +1   -1




semplice! usa la funzione Int.

esempio:

CODICE
$numero =1,51231231232
$int = Int($numero)
MsgBox(0,'',$numero&@cr&$int)
 
Top
erma96
CAT_IMG Posted on 26/6/2009, 09:32     +1   -1




grazie mille!
 
Top
2 replies since 25/6/2009, 08:38   47 views
  Share