apitable / apitable/apitable

feat: Format decimals in formula or change the behavior of `ROUND` when convert `decimals` to `string`

Open
#576 1 comment 0 reactions 1 assignee Claimed by @Alex-hufeng View on GitHub
enhancement
Dominant language
TypeScript
Stars
15.6k
Forks
1.4k
Avg merge
20m
Merged PRs (30d)
1

Description

I have an idea for this project.

## Why?

Formated decimals will make the table much readability and pretty

## What?

![2023-03-17 16-11-46 的屏幕截图](https://user-images.githubusercontent.com/14882692/225850754-e2c26110-419c-4eb4-a276-9c7991d338b7.png)

- Formula in the picture is: `CONCATENATE(ROUND({value}/7*100, 2),"/100g")`.
- The length of column `formula` is not the same and make it not pretty

## How?

- Add functions that allow formatting decimals, similar to the command `printf` in `C` language.
- Or make the `ROUND` keep the last zero after converting to a `string`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.