function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dev87Dev87 

Salesforce lightning component-Input Number format %

Hello, 
I'm working with Lightning component.
I have lightning input type number and format Percent, but when I want to test that I have wrong value.
Exmple I put 8  (normaly I have 8%) but I have 800%.
My inputResult
Can someone help me please.
Best Answer chosen by Dev87
SandhyaSandhya (Salesforce Developers) 
Hi,

Use formatter="percent-fixed" instead of percent.

Please mark it as Solved if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya
 

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

Use formatter="percent-fixed" instead of percent.

Please mark it as Solved if my reply was helpful. It will make it available for other as the proper solution.
 
Thanks and Regards
Sandhya
 
This was selected as the best answer
Dev87Dev87
Thank u 
SFDC AlexSFDC Alex
Hi Sandhya,

Can you please explain the difference between "percent" and "percent-fixed"? When to use which among these two?

Thanks!