skip to Main Content

The calculation result always a 'NaN' – Jquery

let z = document.getElementById('id_z') let x = document.getElementById('id_x') let y = document.getElementById('id_y') $("#id_a, #id_b, #id_c, #id_d, #id_e").keyup(function () { let a = $('#id_a').val() let b = $('#id_b').val() let c = $('#id_c').val() let d = $('#id_d').val() let e = $('#id_e').val() z.value…

VIEW QUESTION

Average from Array – PHP

<?php $games = [ ["Call of Duty", "Shooter", 59.95], ["Rocket League", "Sport", 19.95], ["Assassins Creed", "RP", 49.95] ]; ?> // i have an assignment where they want me to get the average string length from the titles and a average…

VIEW QUESTION

PHP Math fail (hexadecimal)

Im trying to do a php multiplication of two 32bit long hexadecimal valuey with PHP and it seems it is messing up this calculation, the same happens if i multiplicate it as decimal value. The calculation is as example: 0xB5365D09…

VIEW QUESTION
Back To Top
Search