Revert removal of round and round64 #352
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#352
Loading…
Reference in New Issue
No description provided.
Delete Branch "issue-149"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Change
round
/floor
/ceil
/trunc
to return int and add*64
family which returnsint64
.2b3bf4d5ac
tod13cfd46ab
v2: Add implementation for
trunc64
.As discussed I don't think we want trunc functions, just typecast instead. In Python and Numpy, the casts already truncate:
I think numpy has this trunc function solely to be able to deal with arrays (i.e. element-wise trunc of an array). Maybe add it later when we implement numpy arrays, if it is the best solution.
d13cfd46ab
to742b264911
v3: Removed
trunc
, fixed multiple bugs related to numeric castingActually don't merge this yet, let me break the casting changes out of this PR.
742b264911
to23f0805f20
v4: Separated casting-related fixes to a separate branch (#353).