towerops/src/towerops_baseline_ffi.erl
2026-03-21 18:36:12 -05:00

14 lines
324 B
Erlang

-module(towerops_baseline_ffi).
-export([float_sqrt/1, float_round_to/2, float_round/1, list_at/2]).
float_sqrt(Value) ->
math:sqrt(Value).
float_round_to(Value, Decimals) ->
'Elixir.Float':'round'(Value, Decimals).
float_round(Value) ->
round(Value).
list_at(List, Index) ->
lists:nth(Index + 1, List).