module PDF::Core
Public Class Methods
real(num, precision = 4)
click to toggle source
NOTE Makes v1.6.x work with the modified precision settings (0.5f) in Prawn
2.4 while preserving existing behavior
# File lib/asciidoctor/pdf/ext/pdf-core.rb, line 8 def real num, precision = 4 ("%.#{precision}f" % num).sub(/((?<!\.)0)+\z/, '') end
Also aliased as: _initial_real
real_params(array)
click to toggle source
# File lib/asciidoctor/pdf/ext/pdf-core.rb, line 13 def real_params array return array.map {|e| real e, 5 }.join(' ') if (caller_locations 1, 1)[0].base_label == 'transformation_matrix' _initial_real_params array end
Also aliased as: _initial_real_params