Calculation Functions--Mathematical Functions--@ABS 绝对值

本文介绍了一个使用@ABS函数确保计算结果为正值的应用案例。通过一个具体的财务报告场景,展示了如何利用该函数处理实际销售额与预算之间的差异,确保差异值始终显示为正值。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

@ABS

The absolutevalue of a number is that number less its sign. A negative number becomespositive, while a positive number remains positive.

返回表达式的绝对值。数字的绝对值是指数字去掉它的正负号。负数变成正数,正数依然是正数。

 

Syntax

@ABS (expression)

 

Parameter

Description

Expression【表达式

Member name or mathematical expression that generates a numeric value.

成员名称或者产生数值的数学表达式

 

Example

The following example is based on the DemoBasic database. In this example, Variance needs to be presented as a positivenumber. The @ABS function is used because otherwise some combinations of Actual- Budget would return negative values.

下面的例子建立在Demo Basic 数据库上。在例子中,变化需要作为一个正数呈现。@ABS函数被使用,因为一些“Actual – Buget”组合会返回负值。

 

Variance=@ABS(Actual-Budget);

This exampleproduces the following report:

Sales                 VCR      San_Francisco

                      Jan      Feb     Mar

                      ===      ===     ===                                      

Actual              1,323    1,290   1,234

Budget              1,200    1,100   1,100

Variance              123      190     134

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值