Daily Coding Challenge - Photo Storage

Tell us what’s happening:

it fails when encountering any floats/decimals. i dont understand why this happens.

Your code so far

function numberOfPhotos(photoSizeMb, hardDriveSizeGb) {
 let a = photoSizeMb/1000
 let b = hardDriveSizeGb/a

  return b;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:142.0) Gecko/20100101 Firefox/142.0

Challenge Information:

Daily Coding Challenge - Photo Storage
https://www.freecodecamp.org/learn/daily-coding-challenge/2025-09-19

have you checked what the output of your function is for those tests?