Class: PrecisionRecord

Inherits:
BiffRecord show all
Defined in:
lib/surpass/biff_record.rb

Overview

This record stores if formulas use the real cell values for calculation or the values displayed on the screen. In BIFF2- BIFF4 this record is part of the Calculation Settings Block. In BIFF5-BIFF8 it is stored in the Workbook Globals Substream.

Record PRECISION, BIFF2-BIFF8:

Offset Size Contents 0 2 0 = Use displayed values;

1 = Use real cell values

Constant Summary collapse

RECORD_ID =
0x000E

Constants inherited from BiffRecord

BiffRecord::BIFF_LIMIT, BiffRecord::CONTINUE_RECORD_ID

Instance Attribute Summary

Attributes inherited from BiffRecord

#record_data

Instance Method Summary collapse

Methods inherited from BiffRecord

#record_header, #to_biff

Constructor Details

#initialize(boolean) ⇒ PrecisionRecord

Returns a new instance of PrecisionRecord.



456
457
458
# File 'lib/surpass/biff_record.rb', line 456

def initialize(boolean)
  @record_data = boolean ? [1].pack('v') : [0].pack('v')
end