# Why does this example usage of digits! not work?

**URL:** https://discourse.julialang.org/t/why-does-this-example-usage-of-digits-not-work/108633
**Category:** New to Julia
**Tags:** question
**Created:** [January 10, 2024, 4:15pm UTC](https://discourse.julialang.org/t/why-does-this-example-usage-of-digits-not-work/108633 "2024-01-10T16:15:07Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![r32679](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@r32679](https://discourse.julialang.org/u/r32679)
#### Post date: [January 10, 2024, 4:15pm UTC](https://discourse.julialang.org/t/why-does-this-example-usage-of-digits-not-work/108633/1 "2024-01-10T16:15:07Z")

</div>

used this example  
julia\> arr=[0,0,0];  
julia\>digits!(arr,123,10)

Get this output from Julia.  
ERROR: LoadError: no method matching digits!(::Vector[Int64}, ::Int64, ::Int64)

---

<div class="post-metadata">

### Author: ![tbeason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tbeason/32/15898_2.png) [@tbeason](https://discourse.julialang.org/u/tbeason)
#### Post date: [January 10, 2024, 4:16pm UTC](https://discourse.julialang.org/t/why-does-this-example-usage-of-digits-not-work/108633/2 "2024-01-10T16:16:39Z")

</div>

The last argument is actually a keyword argument called `base`.

`digits!(array, n::Integer; base::Integer = 10)`

---

<div class="post-metadata">

### Author: ![r32679](https://avatars.discourse-cdn.com/v4/letter/r/f6c823/32.png) [@r32679](https://discourse.julialang.org/u/r32679)
#### Post date: [January 10, 2024, 4:18pm UTC](https://discourse.julialang.org/t/why-does-this-example-usage-of-digits-not-work/108633/3 "2024-01-10T16:18:22Z")

</div>

Thx!
