TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Currency, a Go package to do currency computations

1 点作者 bnkamalesh将近 5 年前

1 comment

bnkamalesh将近 5 年前
Currency package helps you do exactly what it says, currency computations. It lets you do sub-unit(e.g. cents is a sub-unit of dollar) manipulations as well. It takes care of carry over values in division, i.e. consider 1 dollar divided by 3, it'll return 3 currency instances with 34, 33, 33 as the values instead of 33.3333.
评论 #23904816 未加载