# Difference between '::UInt64' and '::Type(UInt64)'

**URL:** https://discourse.julialang.org/t/difference-between-uint64-and-type-uint64/107355
**Category:** General Usage
**Tags:** question
**Created:** [December 9, 2023, 11:55am UTC](https://discourse.julialang.org/t/difference-between-uint64-and-type-uint64/107355 "2023-12-09T11:55:38Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![fatteneder](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fatteneder/32/33991_2.png) [@fatteneder](https://discourse.julialang.org/u/fatteneder)
#### Post date: [December 9, 2023, 12:02pm UTC](https://discourse.julialang.org/t/difference-between-uint64-and-type-uint64/107355/2 "2023-12-09T12:02:44Z")

</div>

> [@jiang\_ming\_zhang](#):
>
> For ‘::UInt64’, I know I need to input an unsigned integer with 64 bits, but what should I input for ‘::Type(UInt64)’?

You put `UInt64`. Example:

```julia-repl
julia> f(x::UInt64) = 1
f (generic function with 1 methods)

julia> f(x::Type{UInt64}) = 2
f (generic function with 2 methods)

julia> f(UInt64(5))
1

julia> f(UInt64)
2

```

---

_[View the full topic](https://discourse.julialang.org/t/difference-between-uint64-and-type-uint64/107355)._
