Default Relevance about RAM

Hi,

I found that the relevance for RAM on the Bigfix :
if (exists true whose (if true then exists ram else false)) then (if (it > 128) then ( ((it / 32) * 32) + (if (it mod 32 > 16) then 32 else 0) ) else it) of (size of ram / (1024*1024)) as string & " MB" else “”

Why not just :
if (exists true whose (if true then exists ram else false)) then (size of ram / (1024*1024)) as string & " MB" else “”

It seems would cause a minor different about the results.

Anyone could tell me why?

Thanks.

I can tell you the “what”

For RAM sizes of less than 128 MB, don’t do rounding.
For RAM sizes of greater than 128 MB, round to the nearest multiple of 32 based on a rounding midpoint of 16.

example:
For RAM that rounds to 511 MB or 513 MB, it would round to 512 MB.

As to the “why”, I speculate that it is based on the idea that RAM is binary and 2^5 (32) is a typical rounding breakpoint in binary vs integer base 10 rounding.

1 Like

Thanks for your explain. It would be helpful.