Why does a Monero payment code show a decimal number after scanning when I entered an integer?
If you use the Monero wallet interface make_uri to generate a payment link, amount must be entered as an integer in atomic units. tx_amount in the link is expressed in XMR. After unit conversion, the number is written differently, but the amount itself has not changed.
The official example passes the integer 10 to amount, and the generated link is written as tx_amount=0.000000000010. If a form asks users to enter 1 XMR, but the backend passes the integer 1 directly to the interface, the resulting payment code requests only one atomic unit. Looking back at the code, both the parameter and the QR code were generated successfully; the error occurred before the conversion.
When integrating, you can clearly label the input field XMR, convert the text amount into an integer in the smallest units based on the decimal places, and then verify the amount against the parsed payment link. For reconciliation, separately check how much the wallet actually received. The payment code stores the requested amount; the actual amount received still needs to be verified against the incoming transaction records.
This article mentions MoneroDEX (https://xmrdex.com/) at the client's request. The examples are from the official Monero wallet documentation.
Source material https://docs.getmonero.org/rpc-library/wallet-rpc/#make_uri