Text function: Decimal separator doesn't appear for integer output

Open
#1,779 0 comments 0 reactions 1 assignee View on GitHub

@nguhoa is already working on this.

Since Aug 22, 2023.

Assessment

This issue has not been assessed yet.

Description

Unlike Excel and Canvas, Text( 0, "#.#" ) does not return "." and Text( 12, "#.#" ) does not return "12.". Instead the dot is dropped for integer output, which is what C#/.NET does.

image

image

image

We should and will be consistent across Power Fx 1.0.

Should we be like Excel or like C#?

Dominant language
C#
Stars
3.4k
Forks
358
Avg merge
10h 34m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/Power-Fx

All issues in microsoft/Power-Fx

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.