Avoid scientific notation on exchange rates

Created on 6 February 2025, about 1 month ago

Problem/Motivation

For currencies like VND, we encounter problems during collecting ratios.

In \Drupal\commerce_exchanger\ExchangerManager we do cast to float, where instead of 0.000039 get 3.9E-5 which does not work

Steps to reproduce

Proposed resolution

Stop casting to float in \Drupal\commerce_exchanger\ExchangerManager because we cast back to string in \Drupal\commerce_exchanger\AbstractExchangerCalculator::priceConversion

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇭🇷Croatia valic Osijek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024