Leser: 1
8 Einträge, 1 Seite |
perl -e "print 1 % 0.3"
QuoteIf the operands $a and $b are floating point values and the absolute value of $b (that is abs($b)) is less than (UV_MAX + 1) , only the integer portion of $a and $b will be used in the operation (Note: here UV_MAX means the maximum of the unsigned integer type). If the absolute value of the right operand (abs($b)) is greater than or equal to (UV_MAX + 1) , "%" computes the floating-point remainder $r in the equation ($r = $a - $i*$b) where $i is a certain integer that makes $r should have the same sign as the right operand $b (not as the left operand $a like C function fmod() ) and the absolute value less than that of $b .
pq+2008-10-21 15:52:43--das ist natürlich eine komische meldung, wenn es keine null ist, aber wofür braucht
man modulo 0 komma irgendwas?
MatthiasW+2008-10-21 17:03:42--Ich berechne mir $rhs vor einer Schleife in der ich falls $lhs % $rhs == 0 speziellen Code ausführe.
8 Einträge, 1 Seite |