Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for .f format #4855

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

add support for .f format #4855

wants to merge 2 commits into from

Conversation

adhami3310
Copy link
Member

closes #2148

from math import pi
import reflex as rx

app = rx.App()


class State(rx.State):
    field: float = pi


@app.add_page
def index():
    return rx.text(f"What {State.field:.2}")

Copy link

codspeed-hq bot commented Feb 21, 2025

CodSpeed Performance Report

Merging #4855 will not alter performance

Comparing add-support-for-.f-format (49001ba) with main (8943341)

Summary

✅ 12 untouched benchmarks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rx.text component does not support formatting floats
1 participant