• thesmokingman@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    When you search “megabytes to bytes” the units are correct and the number is one. If you edit the form, the number might not be one and the units might not be correct. Changing units highlights the unit input.

    OP’s ostensible point posting on this community is that searching “megabytes to bytes” gave “mebibytes to bytes” in the calculator but OP’s image shows OP has changed the calculator.

    • sgh@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      1 month ago

      I don’t see any reply from OP so I’m growing confident that what you’re talking about is not OP’s point.

      Often times when coding you may want to quickly write down 2MB but you may need to type it in bytes, so either you calculate 2 * 1024 * 1024 while coding, or you remember the number 2097152.

      Now, since 2097152 is not such a common number that one would remember, you may quickly turn to the globally acclaimed oracle search engine to get such an answer, but all you get is a number in scientific notation, approximated, without an option to read it in standard decimal base. So you have to open the calculator and ask the same question again to get the answer you need.

      If it helps, try to ignore what’s in the search bar and tell me if it makes more sense.

      Edit: Additionally, if you were to NOT use the scientific notation, the length of the result would be shorter:

      2,097e+6 (8 characters) vs 2097152 (7 characters)

      • jas0n@lemmy.worldOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 month ago

        Yeah. This was the problem. i just wanted to copy and paste it quickly but they rounded it off. It’s a useless conversion. And I switched it to mebibytes as well since that’s what everyone really means when they say megabytes unless you’re making selling storage devices. =]

        Indeed, I should have just used my calculator program.