I read through the documentation but didn't find an answer, I tried to use the lightning-formatted-number element, but it's only used for display and can't be edited as far as I can tell.
expected: 123
actual: 123.00
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.
Sign up to join this communityI read through the documentation but didn't find an answer, I tried to use the lightning-formatted-number element, but it's only used for display and can't be edited as far as I can tell.
expected: 123
actual: 123.00
You can Just Set the step as "0" like
<template>
<lightning-input type="number" name="input7" label="Number field with currency formatter" value="123" formatter="currency" step="0"></lightning-input>
</template>