<?php
$width = 2034;
$height = 847;
bcscale(5);
$fig = (int) str_pad('1', 4, '0');
$ratio = (ceil(bcdiv(bcdiv(1200, bcdiv($width, 100)) , 100) * $fig) / $fig)
var_dump($ratio);
$newWidth = bcmul($width, $ratio);
$newHeight = bcmul($height, $ratio);
var_dump($newWidth);
var_dump($newHeight);
- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
- Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/0fuf3 on line 9
Process exited with code 255.
preferences:
189.7 ms | 1399 KiB | 62 Q