TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

4 pointsby sonicrocketmanover 3 years ago

2 comments

Vanitover 3 years ago
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?
sonicrocketmanover 3 years ago
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 未加载