# Wrap and inherit Number

**URL:** <https://discourse.julialang.org/t/wrap-and-inherit-number/4799>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 12, 2017, 11:24am UTC](https://discourse.julialang.org/t/wrap-and-inherit-number/4799 "2017-07-12T11:24:34Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [July 12, 2017, 1:50pm UTC](https://discourse.julialang.org/t/wrap-and-inherit-number/4799/14 "2017-07-12T13:50:58Z")

</div>

A few weeks ago @Per shared the intention to work on a library that may suit your needs, if your type will be a subtype of `AbstractFloat` (but it may not be the case):

> [@AbstractFloat math (Is anybody already doing this?)](https://discourse.julialang.org/t/abstractfloat-math-is-anybody-already-doing-this/4363):
>
> I’m planning an open-source (MIT license) project to do in my spare time, but I thought it might be a good idea to check with the community first, in case anybody is already doing something similar. My idea is to write a package AbstractFloatMath (working title) of pure-Julia routines for common mathematical functions (sin, log, sqrt, …) that will take AbstractFloat arguments, i.e. work with any user defined type that is \<: AbstractFloat. For a new floating-point type, it will be enough to i…

---

_[View the full topic](https://discourse.julialang.org/t/wrap-and-inherit-number/4799)._
