Mailinglisten-Archive |
Hallo Leute,
ich wollte eine kleine Funktion schreiben, die einen DEM-Wert nach EUR
umrechnet:
function EURtoDEM($preis) {
settype($preis, "double");
$preis *= 1.95586;
return $preis;
}
Das funzt aber überhaupt net, die Funktion gibt immer das aus, was auch
reingekommen ist. Es gibt auch keine Fehlermeldung. Zuerst habe ich gedacht,
daß es daran liegt, daß $preis ein string ist, aber die Umwandlung bringt auch
nix.
--
Mit freundlichen Grüßen
Andreas Korinek
info_(at)_bonsai-welt.de
===========================================================================
Microsoft is a cross between The Borg and the Ferengi. Unfortunately they
use Borg to do their marketing and Ferengi to do their programming.
Simon Slavin, in the Monastery.
===========================================================================
php::bar PHP Wiki - Listenarchive