Jump to Content
XRPL Hooks - Smart Contract proposal for the XRP Ledger
HomeConcepts & DocsFunctionsChangelog
XRPL Hooks - Smart Contract proposal for the XRP Ledger
Functions
HomeConcepts & DocsFunctionsChangelog

Overview

  • Hook API Conventions
  • Return Codes

Developer Defined

  • hook
  • cbak

Control

  • accept
  • rollback

Utilities

  • util_raddr
  • util_accid
  • util_verify
  • util_sha512h
  • util_keylet

Serialization

  • sto_subfield
  • sto_subarray
  • sto_emplace
  • sto_erase
  • sto_validate

Emitted Transaction

  • etxn_burden
  • etxn_details
  • etxn_fee_base
  • etxn_nonce
  • etxn_reserve
  • etxn_generation
  • emit

Float

  • float_set
  • float_multiply
  • float_mulratio
  • float_negate
  • float_compare
  • float_sum
  • float_sto
  • float_sto_set
  • float_invert
  • float_divide
  • float_one
  • float_exponent
  • float_mantissa
  • float_sign
  • float_int
  • float_root
  • float_log

Ledger

  • fee_base
  • ledger_seq
  • ledger_last_hash
  • ledger_last_time
  • ledger_nonce
  • ledger_keylet

Hook Context

  • hook_account
  • hook_hash
  • hook_param
  • hook_param_set
  • hook_skip
  • hook_pos
  • hook_again

Slot

  • slot
  • slot_clear
  • slot_count
  • slot_set
  • slot_size
  • slot_subarray
  • slot_subfield
  • slot_type
  • xpop_slot
  • slot_float

State

  • state
  • state_set
  • state_foreign
  • state_foreign_set

Trace (Debug)

  • trace
  • trace_num
  • trace_float

Originating Transaction

  • otxn_burden
  • otxn_field
  • otxn_generation
  • otxn_id
  • otxn_type
  • otxn_slot
  • otxn_param
  • meta_slot

Websocket APIs

  • account_info
  • account_namespace
Powered by 

float_one

Return the number 1 represented in an XFL enclosing number

Concepts

  • Floating Point Numbers (XFL)

Behaviour

  • Return one(1) as an XFL int64_t

Definition

int64_t float_one ();

Example

int64_t still_one =
    float_one();

Parameters

This function has no parameters.

Return Code

TypeDescription
int64_tThe XFL (xls17) enclosing number