WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Programmierung (http://www.wcm.at/forum/forumdisplay.php?f=17)
-   -   vbs bei zahl komma entfernen (http://www.wcm.at/forum/showthread.php?t=219487)

chrisne 12.07.2007 21:10

vbs bei zahl komma entfernen
 
hi,

ich bekomme bei einer berechnung zb. 12,332343434 hinaus.
ich will, als ergebnis aber nur "12" haben.

hat wer eine idee?

danke

pong 12.07.2007 21:32

Definier eine Ganzzahl und schmeiß es dort rein

pong

chrisne 12.07.2007 21:41

auch eine idee.
habe es jetzt einmal auf die schnelle so gemacht:

comma = instr(1,percentUsedC,",")
disk_c = left(percentUsedC,comma-1)

flinx 13.07.2007 07:31

Gibs da nicht Fix(x) oder Int(x) dafür?

chrisne 13.07.2007 07:59

ja kann sein.
ich bin kein programmierer ;-)


Alle Zeitangaben in WEZ +2. Es ist jetzt 21:54 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag