# Error in Julia

**URL:** <https://discourse.julialang.org/t/error-in-julia/94954>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [February 21, 2023, 10:56am UTC](https://discourse.julialang.org/t/error-in-julia/94954 "2023-02-21T10:56:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nero](https://avatars.discourse-cdn.com/v4/letter/n/9d8465/32.png) [@nero](https://discourse.julialang.org/u/nero)\
**Post date:** [February 21, 2023, 10:56am UTC](https://discourse.julialang.org/t/error-in-julia/94954/1 "2023-02-21T10:56:06Z")

</div>

Greetings  
I encountered the following error:  
[9.780207664750093e7, -4.344016826050785e7]ERROR: LoadError: MethodError: Cannot `convert` an object of type Missing to an object of type Float64  
Closest candidates are:  
convert(::Type{T}, ::ColorTypes.Gray24) where T\<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:114  
convert(::Type{T}, ::ColorTypes.Gray) where T\<:Real at ~/.julia/packages/ColorTypes/1dGw6/src/conversions.jl:113  
convert(::Type{T}, ::Base.TwicePrecision) where T\<:Number at twiceprecision.jl:273  
Could you please advise on how to solve it?  
Thanks

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [February 21, 2023, 10:58am UTC](https://discourse.julialang.org/t/error-in-julia/94954/2 "2023-02-21T10:58:29Z")

</div>

Without more code it’s unlikely that anyone can tell you more than the error message already does - you are trying to convert a missing value to Float64, which doesn’t work:

```julia
julia> convert(Float64, missing)
ERROR: MethodError: Cannot `convert` an object of type Missing to an object of type Float64

```

---

<div class="post-metadata">

**Author:** ![GHTaarn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ghtaarn/32/216007_2.png) [@GHTaarn](https://discourse.julialang.org/u/GHTaarn)\
**Post date:** [February 21, 2023, 3:19pm UTC](https://discourse.julialang.org/t/error-in-julia/94954/3 "2023-02-21T15:19:22Z")

</div>

If you are getting this error when you are starting up without trying to run any code, then information like the Julia version number, operating system and how Julia was installed will likely be relevant.

If you are getting the error while trying to run a particular piece of code, then try to find out which line of code causes this error and if possible post it here or at least describe the code in some way.
