JuliaPhysics / JuliaPhysics/Unitful.jl

Add method for rationalize

Open
#681 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Julia
Stars
675
Forks
124
Avg merge
3h 38m
Merged PRs (30d)
1

Description

Request to add a method for rationalize like
`rationalize(x::Quantity) = rationalize(ustrip(x))*unit(x)`
since it returns an error otherwise

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no file or test, so start by searching for the Quantity type and existing rationalize methods or tests. Confirm the requested behavior for rationalize on a Quantity, including preservation of its unit, and verify that the call no longer errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.