system
February 8, 2013, 4:48am
1
(imported topic written by SystemAdmin)
Hi Everyone,
any idea about relevance for ram that if size of ram is greater than 1024 mb it will be in gb format else mb format.
ex.
if size of ram > 1024 mb then size of ram in GB else size of ram in MB
tthanks in advance,
braian
system
February 9, 2013, 6:12am
2
(imported comment written by SystemAdmin)
Give this a try…
if (size of ram /1024/1024) > 1024 then (size of ram /1024/1024/1024 as floating point) as string & "gb" else (size of ram /1024/1024 as floating point) as string & "mb"
system
February 10, 2013, 10:53am
3
(imported comment written by SystemAdmin)
Here is another example that may be useful. Referring to everything in GB but converting it to floating point. For instance 512MB would be .5GB.
http://www.ibm.com/developerworks/forums/thread.jspa?threadID=468100