The VERSION parameter of the SHOW command can be used to determine the exact version as well as the build number of the R:BASE Engine. This can also be used with CVAL to store the version as well as build number information in a variable.
See also:
(CVAL('BUILD')) to determine the exact build number of the R:BASE Front-End GUI