Exact size of ram

(imported topic written by SystemAdmin)

is there a way to check the exact value of RAM in gb? even if it is only 512MB? ex. is .512 GB?

thanks,

Braian

(imported comment written by SystemAdmin)

Try this:

//default RAM calculation in RAM analysis

q: (if (it > 128) then (((it/32)32) + (if (it mod 32 > 16) then 32 else 0) ) else it ) of (size of ram / (10241024))

A: 4096

T: 0.081 ms

I: singular integer

//Convert to floating point

q: (if (it > 128) then (((it/32)32) + (if (it mod 32 > 16) then 32 else 0) ) else it ) of (size of ram / (10241024)) as floating point

A: 4096

T: 0.019 ms

I: singular floating point

//divide by 1024 to determine GB

q: (if (it > 128) then (((it/32)32) + (if (it mod 32 > 16) then 32 else 0) ) else it ) of (size of ram / (10241024)) as floating point /1024

A: 4.000

T: 0.086 ms

I: singular floating point

//convert to string and format as desired

q: ((if (it > 128) then (((it/32)32) + (if (it mod 32 > 16) then 32 else 0) ) else it ) of (size of ram / (10241024)) as floating point /1024) as string & " GB"

A: 4.000 GB

T: 0.086 ms

I: singular string