Skip to content

Commit

Permalink
Merge pull request #4 from SRadyukov/quotation_to_i
Browse files Browse the repository at this point in the history
quotation units is number
  • Loading branch information
blackchestnut authored Jun 20, 2023
2 parents 84db22e + bb312f5 commit bbb3425
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/invest_tinkoff/v2/quotation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.create price
units = price.to_i
nano = ((price.to_d - units) * 1_000_000_000).to_i
new(
"#{price.positive? ? '' : '-'}#{units.abs}",
"#{price.positive? ? '' : '-'}#{units.abs}".to_i,
nano
)
end
Expand Down

0 comments on commit bbb3425

Please sign in to comment.