Converting Available video memory to MB form

Blitz3D Forums/Blitz3D Programming/Converting Available video memory to MB form

and also is there a way to get the Available free ram??