Requires: Numeric periodic rate, Numeric delay, Numeric payment amount, and optional non-negative whole-number payment count. The rate must be greater than -1. Payment count defaults to 1.
Returns: Numeric present value.
Best for: discounted recurring payments and finance projections.
PV(0.1, 1, 222, 2)
Use the rate per payment period—for example, a monthly rate when each period is one month. When paymentCount is 0, the result is 0.
Requires: a Numeric angle in radians whose result remains finite.
Returns: Numeric.
Best for: slopes and right-triangle calculations.
Tan(Radians(45))
Use Radians before Sin, Cos, Tan, or Cot when your source angle is stored in degrees.
Last modified on September 7, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"FarmTrace documentation","description":"Public guidance for FarmTrace Dsync, Device Kit, and the formula language.","colors":{"primary":"#1B6F45","light":"#4ADE80","dark":"#278A56"},"logo":{"light":"https://mintcdn.com/farmtrace/dU8dLDBOMj0npTRB/logo/light.svg?fit=max\u0026auto=format\u0026n=dU8dLDBOMj0npTRB\u0026q=85\u0026s=a32d62b068cf7f7610b6dbdfe9819f6a","dark":"https://mintcdn.com/farmtrace/dU8dLDBOMj0npTRB/logo/dark.svg?fit=max\u0026auto=format\u0026n=dU8dLDBOMj0npTRB\u0026q=85\u0026s=f209a8925c59e1d88e8f71da098175b7","href":"https://farmtrace.co.za"},"favicon":"https://mintcdn.com/farmtrace/dU8dLDBOMj0npTRB/favicon.png?fit=max\u0026auto=format\u0026n=dU8dLDBOMj0npTRB\u0026q=85\u0026s=cdb3c190e3d23b4128d11251a1cac33b","appearance":{"default":"system"},"background":{"decoration":"gradient","color":{"light":"#F3F4F1","dark":"#0B1F12"}},"navbar":{"links":[{"href":"https://farmtrace.co.za","label":"FarmTrace website"},{"href":"mailto:support@farmtrace.co.za","label":"Support"}],"primary":{"type":"button","label":"Visit FarmTrace","href":"https://farmtrace.co.za"}},"seo":{"indexing":"all"},"fonts":{"family":"Geist"},"icons":{"library":"lucide"},"styling":{"eyebrows":"section","codeblocks":{"theme":{"light":"github-light","dark":"github-dark"}},"latex":true},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"farmtrace","hasAudioNarration":false,"actualSubdomain":"farmtrace","customDomains":["docs.farmtrace.co.za"],"gitSource":{"type":"github","owner":"farmtracedev","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6a9ecfb050567d98f662842a","collectionId":"820c3df3-54bd-4eda-b24a-9dc94f6432f1","liveDeploymentHistoryId":"6a9ecfb050567d98f662842a","schemaVersion":"v3"},"entitlements":{},"buildId":"6a9ecfb050567d98f662842a","clientVersion":"0.0.4067","searchFilterCounts":[{"language":"default","tag":"Dsync","count":34},{"language":"default","tag":"Formula reference","count":16},{"language":"default","tag":"Configuration","count":8},{"language":"default","tag":"Device Kit","count":5},{"language":"default","tag":"Device Kit guides","count":5},{"language":"default","tag":"Function setup","count":4},{"language":"default","tag":"Dsync guides","count":3},{"language":"default","tag":"Formula language","count":3},{"language":"default","tag":"Start here","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[],"page":{"pagePath":"reference/numeric","slug":"/reference/numeric","pageMetadata":{"title":"Numeric functions","description":"Calculate angles, logarithms, present value, constants, and random values.","href":"/reference/numeric"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Calculate angles, logarithms, present value, constants, and random values.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Numeric functions return finite Numeric values. Inputs outside a function’s mathematical domain produce a formula error instead of `,_jsx(_components.code,{children:`NaN`}),` or infinity.`]}),`\n`,_jsx(Heading,{level:`2`,id:`acos`,children:_jsx(_components.code,{children:`Acos`})}),`\n`,_jsx(_components.p,{children:`Returns the arccosine of a number in radians.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Acos(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric value from `,_jsx(_components.code,{children:`-1`}),` through `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` geometry and calculations that start with a cosine ratio.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Acos(0.5)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`asin`,children:_jsx(_components.code,{children:`Asin`})}),`\n`,_jsx(_components.p,{children:`Returns the arcsine of a number in radians.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Asin(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric value from `,_jsx(_components.code,{children:`-1`}),` through `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` geometry and calculations that start with a sine ratio.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Asin(0.5)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`atan`,children:_jsx(_components.code,{children:`Atan`})}),`\n`,_jsx(_components.p,{children:`Returns the arctangent of a number in radians.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Atan(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` slopes, bearings, and right-triangle calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Atan([Rise] / [Run])`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cos`,children:_jsx(_components.code,{children:`Cos`})}),`\n`,_jsx(_components.p,{children:`Returns the cosine of an angle.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Cos(radians)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` geometry, oscillation, and vector calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Cos(Radians(60))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`cot`,children:_jsx(_components.code,{children:`Cot`})}),`\n`,_jsx(_components.p,{children:`Returns the cotangent of an angle.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Cot(radians)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in radians where the tangent is not zero.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` geometry formulas that use adjacent divided by opposite.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Cot(Radians(45))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`degrees`,children:_jsx(_components.code,{children:`Degrees`})}),`\n`,_jsx(_components.p,{children:`Converts an angle from radians to degrees.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Degrees(radians)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric angle in degrees.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` displaying a calculated angle in familiar units.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Degrees(Pi() / 2)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`exp`,children:_jsx(_components.code,{children:`Exp`})}),`\n`,_jsxs(_components.p,{children:[`Raises Euler’s number `,_jsx(_components.code,{children:`e`}),` to a supplied power.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Exp(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric exponent whose result remains finite.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` growth, decay, and continuous compounding.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Exp(2)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`frac`,children:_jsx(_components.code,{children:`Frac`})}),`\n`,_jsx(_components.p,{children:`Returns the fractional part left after truncating a number toward zero.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Frac(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` separating whole and fractional quantities.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Frac(12.75)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`For negative inputs, the fractional result is also negative.`}),`\n`,_jsx(Heading,{level:`2`,id:`int`,children:_jsx(_components.code,{children:`Int`})}),`\n`,_jsx(_components.p,{children:`Returns the integer part of a number by truncating toward zero.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Int(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` whole Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` extracting completed units without rounding.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Int(12.75)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`ln`,children:_jsx(_components.code,{children:`Ln`})}),`\n`,_jsxs(_components.p,{children:[`Returns the natural logarithm, using base `,_jsx(_components.code,{children:`e`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Ln(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a positive Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` exponential models and continuous growth calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Ln(Exp(2))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`log`,children:_jsx(_components.code,{children:`Log`})}),`\n`,_jsx(_components.p,{children:`Returns the base-10 logarithm.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Log(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a positive Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` orders of magnitude and logarithmic scales.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Log(1000)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`pi`,children:_jsx(_components.code,{children:`Pi`})}),`\n`,_jsx(_components.p,{children:`Returns the mathematical constant π.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Pi()`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` no arguments.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` circle, angle, and periodic calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Pi() * [Radius] ^ 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`pv`,children:_jsx(_components.code,{children:`PV`})}),`\n`,_jsx(_components.p,{children:`Calculates the present value of zero or more equal future payments.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`PV(rate, periodsUntilFirstPayment, payment[, paymentCount])`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` Numeric periodic rate, Numeric delay, Numeric payment amount, and optional non-negative whole-number payment count. The rate must be greater than `,_jsx(_components.code,{children:`-1`}),`. Payment count defaults to `,_jsx(_components.code,{children:`1`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric present value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` discounted recurring payments and finance projections.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`PV(0.1, 1, 222, 2)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsxs(_components.p,{children:[`Use the rate per payment period—for example, a monthly rate when each period is one month. When `,_jsx(_components.code,{children:`paymentCount`}),` is `,_jsx(_components.code,{children:`0`}),`, the result is `,_jsx(_components.code,{children:`0`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`radians`,children:_jsx(_components.code,{children:`Radians`})}),`\n`,_jsx(_components.p,{children:`Converts an angle from degrees to radians.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Radians(degrees)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in degrees.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` preparing degree-based data for trigonometric functions.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Sin(Radians(30))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`random`,children:_jsx(_components.code,{children:`Random`})}),`\n`,_jsx(_components.p,{children:`Creates a pseudo-random number for the current evaluation.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Random()`}),` or `,_jsx(_components.code,{children:`Random(minimum, maximum)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` no arguments, or two Numeric bounds where `,_jsx(_components.code,{children:`maximum`}),` is greater than `,_jsx(_components.code,{children:`minimum`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric from `,_jsx(_components.code,{children:`0`}),` up to but not including `,_jsx(_components.code,{children:`1`}),`, or from the supplied minimum up to but not including the maximum.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` sampling, shuffling keys, and non-security-sensitive variation.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Random()`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Random(10, 20)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Do not use `,_jsx(_components.code,{children:`Random`}),` for passwords, access tokens, signatures, or other security decisions.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`sin`,children:_jsx(_components.code,{children:`Sin`})}),`\n`,_jsx(_components.p,{children:`Returns the sine of an angle.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Sin(radians)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in radians.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` geometry, oscillation, and vector calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Sin(Radians(30))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`sqrt`,children:_jsx(_components.code,{children:`Sqrt`})}),`\n`,_jsx(_components.p,{children:`Returns the square root of a number.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Sqrt(number)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a non-negative Numeric value.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` distances, standard deviation steps, and geometric calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Sqrt([Area])`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tan`,children:_jsx(_components.code,{children:`Tan`})}),`\n`,_jsx(_components.p,{children:`Returns the tangent of an angle.`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Syntax:`}),` `,_jsx(_components.code,{children:`Tan(radians)`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Requires:`}),` a Numeric angle in radians whose result remains finite.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Returns:`}),` Numeric.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Best for:`}),` slopes and right-triangle calculations.`]}),`\n`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light github-dark`,style:{backgroundColor:`#fff`,\"--shiki-dark-bg\":`#24292e`,color:`#24292e`,\"--shiki-dark\":`#e1e4e8`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Tan(Radians(45))`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`Radians`}),` before `,_jsx(_components.code,{children:`Sin`}),`, `,_jsx(_components.code,{children:`Cos`}),`, `,_jsx(_components.code,{children:`Tan`}),`, or `,_jsx(_components.code,{children:`Cot`}),` when your source angle is stored in degrees.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":{"theme":{"light":"github-light","dark":"github-dark"}},"config":{},"pageMetadata":{"title":"Numeric functions","description":"Calculate angles, logarithms, present value, constants, and random values.","href":"/reference/numeric"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Acos","slug":"acos","depth":2,"children":[]},{"title":"Asin","slug":"asin","depth":2,"children":[]},{"title":"Atan","slug":"atan","depth":2,"children":[]},{"title":"Cos","slug":"cos","depth":2,"children":[]},{"title":"Cot","slug":"cot","depth":2,"children":[]},{"title":"Degrees","slug":"degrees","depth":2,"children":[]},{"title":"Exp","slug":"exp","depth":2,"children":[]},{"title":"Frac","slug":"frac","depth":2,"children":[]},{"title":"Int","slug":"int","depth":2,"children":[]},{"title":"Ln","slug":"ln","depth":2,"children":[]},{"title":"Log","slug":"log","depth":2,"children":[]},{"title":"Pi","slug":"pi","depth":2,"children":[]},{"title":"PV","slug":"pv","depth":2,"children":[]},{"title":"Radians","slug":"radians","depth":2,"children":[]},{"title":"Random","slug":"random","depth":2,"children":[]},{"title":"Sin","slug":"sin","depth":2,"children":[]},{"title":"Sqrt","slug":"sqrt","depth":2,"children":[]},{"title":"Tan","slug":"tan","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"farmtrace","siteName":"FarmTrace documentation","title":"Numeric functions - FarmTrace documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-07T13:14:21.455Z","gitLastModified":"2026-09-07T12:27:48.000Z","originalFileLocation":"reference/numeric.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Calculate angles, logarithms, present value, constants, and random values.\">\u003cmeta data-mint-head name=\"application-name\" content=\"FarmTrace documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Numeric functions - FarmTrace documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Calculate angles, logarithms, present value, constants, and random values.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"FarmTrace documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.farmtrace.co.za/reference/numeric\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://farmtrace.mintlify.app/_mintlify/api/og/v2?division=Formula+reference\u0026amp;title=Numeric+functions\u0026amp;description=Calculate+angles%2C+logarithms%2C+present+value%2C+constants%2C+and+random+values.\u0026amp;theme=09ecce6343d2410fee452256\u0026amp;signature=1e6c8033b1554c4c457e92b0fd1e92130cfde767823416a5797a18ef21e0853f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Numeric functions - FarmTrace documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Calculate angles, logarithms, present value, constants, and random values.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://farmtrace.mintlify.app/_mintlify/api/og/v2?division=Formula+reference\u0026amp;title=Numeric+functions\u0026amp;description=Calculate+angles%2C+logarithms%2C+present+value%2C+constants%2C+and+random+values.\u0026amp;theme=09ecce6343d2410fee452256\u0026amp;signature=1e6c8033b1554c4c457e92b0fd1e92130cfde767823416a5797a18ef21e0853f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/farmtrace/Ko51b9WVXdxCGCIX/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"FarmTrace documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1B6F45\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.farmtrace.co.za/reference/numeric\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/reference/numeric.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.farmtrace.co.za/#organization\",\"name\":\"FarmTrace documentation\",\"url\":\"https://docs.farmtrace.co.za\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/farmtrace/dU8dLDBOMj0npTRB/logo/light.svg?fit=max\u0026auto=format\u0026n=dU8dLDBOMj0npTRB\u0026q=85\u0026s=a32d62b068cf7f7610b6dbdfe9819f6a\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.farmtrace.co.za#website\",\"name\":\"FarmTrace documentation\",\"url\":\"https://docs.farmtrace.co.za\",\"publisher\":{\"@id\":\"https://docs.farmtrace.co.za/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.farmtrace.co.za/reference/numeric#webpage\",\"url\":\"https://docs.farmtrace.co.za/reference/numeric\",\"name\":\"Numeric functions\",\"description\":\"Calculate angles, logarithms, present value, constants, and random values.\",\"dateModified\":\"2026-09-07T12:27:48.000Z\",\"isPartOf\":{\"@id\":\"https://docs.farmtrace.co.za#website\"},\"breadcrumb\":{\"@id\":\"https://docs.farmtrace.co.za/reference/numeric#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.farmtrace.co.za/reference/numeric#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Formula reference\",\"item\":\"https://docs.farmtrace.co.za/reference/index\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Numeric functions\",\"item\":\"https://docs.farmtrace.co.za/reference/numeric\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.farmtrace.co.za/reference/numeric#article\",\"headline\":\"Numeric functions\",\"name\":\"Numeric functions\",\"description\":\"Calculate angles, logarithms, present value, constants, and random values.\",\"url\":\"https://docs.farmtrace.co.za/reference/numeric\",\"mainEntityOfPage\":{\"@id\":\"https://docs.farmtrace.co.za/reference/numeric#webpage\"},\"dateModified\":\"2026-09-07T12:27:48.000Z\",\"publisher\":{\"@id\":\"https://docs.farmtrace.co.za/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.farmtrace.co.za#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"FarmTrace documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"FarmTrace documentation","nav":{"global":null,"tabs":[{"tab":"Start here","icon":"compass","pages":[{"title":"Start here","href":""}]},{"tab":"Dsync","icon":"sprout","groups":[{"group":"Dsync guides","icon":"book-open","pages":[{"title":"Dsync","href":"/dsync"},{"title":"Field operations","href":"/dsync/field-operations"},{"title":"Sync and connectivity","href":"/dsync/sync-and-connectivity"}]},{"group":"Function setup","icon":"braces","pages":[{"title":"Function setup","href":"/dsync/function-setup"},{"title":"Form fields","href":"/dsync/function-setup/form-fields"},{"title":"Component types","href":"/dsync/function-setup/component-types"},{"title":"Component fields","href":"/dsync/function-setup/component-fields"}]},{"group":"Configuration","icon":"sliders-horizontal","pages":[{"title":"Table Setup Guide","href":"/dsync/table-setup"},{"title":"Table setup fields","href":"/dsync/table-setup/table-fields"},{"title":"Filters and role access","href":"/dsync/table-setup/filters-and-roles"},{"title":"Table screen fields","href":"/dsync/table-setup/screen-fields"},{"title":"Table screens","href":"/dsync/table-setup/table-screen"},{"title":"Reference data and scanning","href":"/dsync/table-setup/reference-data"},{"title":"Configuration patterns","href":"/dsync/table-setup/configuration-patterns"},{"title":"Troubleshooting and limitations","href":"/dsync/table-setup/troubleshooting"}]},{"group":"Formula language","icon":"braces","pages":[{"title":"Write your first formula","href":"/getting-started/write-your-first-formula"},{"title":"Values and references","href":"/getting-started/values-and-references"},{"title":"Formula Contexts","href":"/getting-started/formula-contexts"}]},{"group":"Formula reference","icon":"book-open","pages":[{"title":"Formula index","href":"/reference/index"},{"title":"Conversion functions","href":"/reference/conversion"},{"title":"Text functions","href":"/reference/text"},{"title":"Date functions","href":"/reference/date"},{"title":"Time functions","href":"/reference/time"},{"title":"Timestamp functions","description":"Use the current moment or construct an exact UTC timestamp.","href":"/reference/timestamp"},{"title":"Numeric functions","href":"/reference/numeric"},{"title":"Rounding functions","description":"Round numbers, durations, and times to a chosen significance.","href":"/reference/rounding"},{"title":"Aggregation functions","href":"/reference/aggregation"},{"title":"Null handling functions","href":"/reference/nulls"},{"title":"Duration functions","href":"/reference/duration"},{"title":"Location functions","href":"/reference/location"},{"title":"Special functions","href":"/reference/special"},{"title":"Session functions","href":"/reference/session"},{"title":"Ask and Parameter","href":"/reference/ask"},{"title":"Operators","href":"/reference/operators"}]}]},{"tab":"Device Kit","icon":"microchip","pages":[{"title":"Device Kit","href":"/device-kit"}]}]},"basePath":"","title":"Numeric functions - FarmTrace documentation","buildId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","deploymentId":"dpl_9VVk5y1P8k1ATeJguVngy9Q3cmbD","dynamics":[],"chunks":[]}