Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Go
import "strconv"
s := strconv.FormatInt(i, 10)

When i has type int64.
import "strconv"
s := strconv.Itoa(i)

When i has type int.
import "fmt"
s := fmt.Sprintf("%d", i)

This works with all types of integers.

Sprintf does type assertions, and is slower than the strconv flavors
S : String := Integer'Image (I);

New implementation...