# \#rational

**URL:** https://discourse.julialang.org/tag/rational/1440.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Example of Clang.jl wrapping C interface using GMP mpq\_t (also arrays of mpq\_t)](https://discourse.julialang.org/t/example-of-clang-jl-wrapping-c-interface-using-gmp-mpq-t-also-arrays-of-mpq-t/112864)

<div class="topic-metadata">

**Author:** [@JonT](https://discourse.julialang.org/u/JonT)\
**Replies:** 0\
**Last updated:** [April 12, 2024, 9:12am UTC](https://discourse.julialang.org/t/example-of-clang-jl-wrapping-c-interface-using-gmp-mpq-t-also-arrays-of-mpq-t/112864 "2024-04-12T09:12:22Z")

</div>

I’m stumbling through wrapping an interface to a C library using Clang.jl. Im hoping someone can. give me some hints about the best way to wrap methods passing and returning GMP mpq\_t types, or arrays of them. I found …

---

## ["Not a rational" constant?](https://discourse.julialang.org/t/not-a-rational-constant/104039)

<div class="topic-metadata">

**Author:** [@wherrera](https://discourse.julialang.org/u/wherrera)\
**Replies:** 5\
**Last updated:** [September 19, 2023, 7:23pm UTC](https://discourse.julialang.org/t/not-a-rational-constant/104039 "2023-09-19T19:23:00Z")

</div>

In porting some C code I came across a value called NaR, which was defined as Not a Rational (when returned due to error from a function returning a rational). In terms of type consistency, is there a rational in Julia …
