🌐
GitHub
github.com › go-inf
go-inf · GitHub
January 25, 2024 - Package inf (type inf.Dec) implements "infinite-precision" decimal arithmetic.
🌐
GitHub
github.com › go-inf › inf
GitHub - go-inf/inf: Package inf (type inf.Dec) implements "infinite-precision" decimal arithmetic. · GitHub
Package inf (type inf.Dec) implements "infinite-precision" decimal arithmetic. - go-inf/inf
Starred by 45 users
Forked by 16 users
Languages   Go
🌐
Go Packages
pkg.go.dev › gopkg.in › inf.v0
inf package - gopkg.in/inf.v0 - Go Packages
github.com/go-inf/inf · Open Source Insights · Package inf (type inf.Dec) implements "infinite-precision" decimal arithmetic. "Infinite precision" describes two characteristics: practically unlimited precision for decimal number representation and no support for calculating with any specific ...
🌐
GitHub
github.com › go-inf › inf › blob › master › dec.go
inf/dec.go at master · go-inf/inf
Package inf (type inf.Dec) implements "infinite-precision" decimal arithmetic. - inf/dec.go at master · go-inf/inf
Author   go-inf
🌐
GitHub
github.com › golang › go › issues › 44225
math: Type Conversion of Inf(1) to int produces a negative integer instead of a positive one · Issue #44225 · golang/go
February 11, 2021 - golang / go Public · Notifications ... · New issueCopy link · Closed · Closed · math: Type Conversion of Inf(1) to int produces a negative integer instead of a positive one#44225 ·...
Author   golang
🌐
GitHub
github.com › golang › go › issues › 3480
encoding/json: handle NaN and Inf · Issue #3480 · golang/go
April 5, 2012 - golang / go Public · Notifications · You must be signed in to change notification settings · Fork 18.9k · Star 133k · New issueCopy link · New issueCopy link · Closed · Closed · encoding/json: handle NaN and Inf#3480 · Copy link · Labels · FrozenDueToAgeUnfortunate ·
Author   golang
🌐
GitHub
github.com › golang › go › issues › 20517
typecasting +Inf to int, should result positive value · Issue #20517 · golang/go
May 28, 2017 - go program used to test: https://play.golang.org/p/EdOljzgjr0 · package main import ( "fmt" "math" ) func main() { fmt.Println(int(math.Inf(+1)), int(math.Inf(-1))) } both -Inf and +Inf result same value when converted into int · for example in java, converting +Inf to int returns Integet.MAX_VALUE which is positive ·
Author   golang
🌐
GitHub
github.com › golang › go › issues › 56023
compiler: conversion from Infinity to integer is always negative · Issue #56023 · golang/go
October 4, 2022 - Consider the conversion int64(math.Inf(+1)) I would expect a largest positive integer, but in fact the result is the largest negative integer. I have a feeling the conversion is broken. Perhaps tha...
Author   golang
🌐
GitHub
github.com › golang › go › issues › 59627
encoding/json: please document that float +inf/-inf/nan will cause json.Marshal return error · Issue #59627 · golang/go
April 14, 2023 - Document that float +inf/-inf/nan will cause json.Marshal return error or Not throwing serialization errors on basic numeric data types with valid state. What did you see instead? No document of this kind of thing and return json: unsupported value: NaN · Should golang standard library document possible/common error type of a package or a function like windows api document(https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-deletefilew) or linux man (https://linux.die.net/man/3/mmap)?
Author   golang
Find elsewhere
🌐
GitHub
github.com › golang › go › issues › 74797
encoding/json/v2: unexpected support for Inf in map[string]any value · Issue #74797 · golang/go
July 29, 2025 - inf := math.Inf(1) json.Marshal(inf) json.Marshal(struct{ F float64 }{inf}) json.Marshal(map[string]any{"k": inf}) v1 returns "json: unsupported value: +Inf" in all three cases. v2 (including v1 with GOEXPERIMENT=jsonv2) returns "json: u...
Author   golang
🌐
GitHub
github.com › golang › go
GitHub - golang/go: The Go programming language · GitHub
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Starred by 135K users
Forked by 19K users
Languages   Go 90.2% | Assembly 5.1% | HTML 4.3% | C 0.2% | Shell 0.1% | Perl 0.1%
🌐
GitHub
github.com › vaughan0 › go-ini
GitHub - vaughan0/go-ini: INI parsing library for Go. · GitHub
INI parsing library for Go. Contribute to vaughan0/go-ini development by creating an account on GitHub.
Starred by 96 users
Forked by 50 users
Languages   Go
🌐
GitHub
github.com › golang
Go · GitHub
The Go Programming Language. Go has 61 repositories available. Follow their code on GitHub.
🌐
GitHub
github.com › golang › go › issues › 29320
math/cmplx: hyperbolic sinh, cosh and tanh give wrong result for Inf input · Issue #29320 · golang/go
December 18, 2018 - Run the code at https://play.golang.org/p/8dz30xSTLdI. Notice that sinh(inf) and cosh(inf) are inf, and tanh(inf) is 1.
Author   golang
🌐
GitHub
github.com › Infisical › go-sdk
GitHub - Infisical/go-sdk · GitHub
If you’re working with Go, the official Infisical Go SDK package is the easiest way to fetch and work with secrets for your application.
Starred by 17 users
Forked by 10 users
Languages   Go
🌐
GitHub
github.com › Infisical › infisical-go-client
GitHub - Infisical/infisical-go-client · GitHub
Contribute to Infisical/infisical-go-client development by creating an account on GitHub.
Author   Infisical
🌐
GitHub
github.com › golang › go › issues › 30387
Divide Float64(0) output Inf+ · Issue #30387 · golang/go
February 25, 2019 - golang / go Public · Notifications · You must be signed in to change notification settings · Fork 18.5k · Star 131k · New issueCopy link · New issueCopy link · Closed · Closed · Divide Float64(0) output Inf+#30387 · Copy link · Labels · FrozenDueToAge ·
Author   golang
🌐
Educative
educative.io › answers › what-is-the-inf-function-in-golang
What is the Inf function in golang?
The Go programming language uses the Inf function to generate an infinite value · To use this function, you must import the math package in your file and access the Inf function within it using the . notation (math.Inf).
🌐
GitHub
github.com › golang › build › blob › master › go.mod
build/go.mod at master · golang/build
google.golang.org/protobuf v1.34.2 · gopkg.in/inf.v0 v0.9.1 · rsc.io/github v0.3.1-0.20240418182958-01bebb0c456a · rsc.io/markdown v0.0.0-20240306144322-0bf8f97ee8ef · ) · require ( cloud.google.com/go v0.110.7 // indirect · cloud.google.com/go/container v1.24.0 // indirect ·
Author   golang