# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # Tiny Float

# +
import sys
sys.setrecursionlimit(2000)

def tinyFloat(a, half):
    if half == 0.0:
        return ...     # base case, what to return as the final answer?
    return tinyFloat(..., ...)    # what recursive call shall we make here?

tinyFloat(1.0, 0.5)  # what is the result, we can start with 1.0 and its half 0.5
# -

5e-324.hex()

f'{5e-324:.324f}'

StarcoderdataJupyterScriptsDedupFiltered