web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Microsoft List rounds ...
Power Apps
Suggested Answer

Microsoft List rounds large numbers

(0) ShareShare
ReportReport
Posted on by
I have a Microsoft List in which I store creditcard numbers. Though the column is setup as a number the last three digits of the CC number are bein rounded.
I tried several things, but without any success.
Categories:
I have the same question (0)
  • Suggested answer
    Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at
     
    This issue happens because number columns in SharePoint (or Microsoft Lists) are stored as floating-point numbers, and long numbers like credit card numbers (especially 15–16 digits) get rounded or lose precision.
     
    Use a Text Column Instead
    Even though it’s numeric, credit card numbers should always be stored as text for the following reasons:
    They’re identifiers, not numbers you do math on.
    Avoid rounding or truncation.
    Retain leading zeros (if any).
    Prevent accidental formatting (like commas or decimals).
     
    In your Microsoft List:
    Change the column type from Number to Single line of text.
    You might need to create a new column, then migrate values (manually or via Power Automate).
     
    In Power Apps:
    Make sure the TextInput control binds to the text column, not a number one.
    Use TextInput.Text directly to store the value.
    Optionally validate it using IsMatch() to ensure it’s a 16-digit number:
    IsMatch(TextInput1.Text, "^\d{16}$")
     
     
    Thanks!
     
    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard