Class: PrecisionRecord
- Inherits:
-
BiffRecord
- Object
- BiffRecord
- PrecisionRecord
- 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
Instance Method Summary collapse
-
#initialize(boolean) ⇒ PrecisionRecord
constructor
A new instance of PrecisionRecord.
Methods inherited from BiffRecord
Constructor Details
#initialize(boolean) ⇒ PrecisionRecord
Returns a new instance of PrecisionRecord.
459 460 461 |
# File 'lib/surpass/biff_record.rb', line 459 def initialize(boolean) @record_data = boolean ? [1].pack('v') : [0].pack('v') end |