roc-lang / roc-lang/examples

Example suggestion: How to create number with type Dec, f32, u64,...

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

example suggestion good first issue
Dominant language
Shell
Stars
46
Forks
19
Avg merge
13h 38m
Merged PRs (30d)
19

Description

This came up on zulip yesterday.

"how to create stand alone Dec number":

2.1dec

I think we should do separate examples for every type. For code snippets we want to give the user what they need and nothing more.

Contributor guide

Open the contributing guide

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.

Research direction

Review the existing numeric examples in this repository and the issue's standalone Dec snippet first; no specific file or test is named. Add separate minimal examples for the requested numeric types, including Dec, f32, and u64, following the repository's existing example conventions.

Written by the indexing model from the issue text.

Assessment

Domain
content
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.