# Scalar Types

> NumKong for Go

`import "github.com/ashvardanian/NumKong"`

## DimensionsPerValue

DimensionsPerValue returns how many logical dimensions of dtype share one stored value, such as 8 for "u1".

```go
func DimensionsPerValue(dtype string) int
```

It panics on any name other than "f64", "f32", "i8", "u8" and "u1".

## DimensionsToValues

DimensionsToValues returns how many stored values hold dimensions logical dimensions of dtype.

```go
func DimensionsToValues(dtype string, dimensions int) int
```

The dimensions must be a multiple of [DimensionsPerValue](#DimensionsPerValue) for dtype.

