Skip to content

[Bug] Percentage format adding decimal on cell blurΒ #6595

@arthurpankiewicz

Description

@arthurpankiewicz

Before you submit this issue, have you checked the following

  • Is this really a problem?
  • I have searched the Github Issues for similar issues, but did not find anything.

Affected packages and versions

0.15.5

Reproduction link

This bug is reproducible in the univer sheets showcase: https://docs.univer.ai/showcase/sheets/slim-via-plugin

Video attached:

Screen.Recording.2026-02-17.at.3.17.50.PM.mov
  1. Set cell format (either using custom format, or percentage + decimal shift) to "0.0%"
  2. Input value, eg. 1, it should display 100.0%
  3. Focus/blur the cell, it stays at 100.0%
  4. Copy and paste the cell to a new one
  5. Focus/blur the new cell, it will now be 100.00%

Expected behavior

When a cell is formatted to "0.0%" (custom format or "percentage" + decimal shift), copy-pasting the value should stay in the "0.0%" format when the new cell is focused.

Actual behavior

When a cell is formatted to "0.0%" (custom format or percentage + decimal shift), and it's copy-pasted to a new cell, the new cell will change the format to "0.00%" when the cell if focused/blurred.

System information

System:
OS: macOS 26.2
CPU: (10) arm64 Apple M1 Max
Memory: 307.42 MB / 32.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 24.12.0 - /Users/arthur/.nvm/versions/node/v24.12.0/bin/node
npm: 11.6.2 - /Users/arthur/.nvm/versions/node/v24.12.0/bin/npm
Browsers:
Brave Browser: 106.1.44.101
Chrome: 144.0.7559.133
Firefox: 142.0.1
Safari: 26.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions