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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A terrible way to calculate absolute value in Python

4 点作者 sonicrocketman超过 3 年前

2 条评论

Vanit超过 3 年前
I've never used Python, but if there's an issue here it's probably because the value has to traverse through being a string and any opinions in the to/from string conversions could cause unexpected mutations to floats?
sonicrocketman超过 3 年前
For anyone who's able to, I'd love to hear how my awful method compares with other real methods. (i.e. not accounting for some mathematical nuance, performance, etc)
评论 #28283591 未加载
评论 #28283763 未加载
评论 #28283482 未加载
评论 #28283540 未加载