Real Type

Using approximate data types such as float and real can save lots of storage when the exact number is not required. In case of performance data this is not a problem even if we are out by few KBs in a GB scale.

For example, reading file statistics sys.dm_io_virtual_file_stats gives the following value for num_of_bytes_read:

1447418880

In a Real data type this would be:

1.447419E+09

Quick conversion to Mega Bytes reveals negligible loss of accuracy:

Taking it one step further and simulating even larger number:

And even bigger 2705311284433920 bytes:

Last updated