Salve a tutti
ho questa query per convertire da feet,inches a cm
mi restituisce il risultato con la virgola, come faccio ad arrotondare?
Codice PHP:
SELECT
he_id,
cm,
feet_inch,
(cast(substr(feet_inch,1,locate(",",feet_inch)-1) as unsigned)*30.48)+
(cast(substr(feet_inch,locate(",",feet_inch)+1) as unsigned)*2.54) AS Centimeters
FROM
actor
INNER JOIN
height
ON
actor.actor_id = height.actor_id