home > 比較編 > C, C++, Objective-C, Java, C# > arithmetic and logic >

ForNext

Only Do What Only You Can Do

026. absolute value

VBScript

JScript

Perl

PHP

Python

Ruby

PowerShell

Scala

F#

C

C++

#include <stdlib.h>

int i = -7;
abs(i);
#include <math.h>
float x = -7.77;
fabs(x)

C++Builder

VC++

C#

System.Math.Abs(-7)
System.Math.Abs(-7.77)





Java

Math.abs(-7)
Math.abs(-7.77)





Objective-C

#include <stdlib.h>

int i = -7;
abs(i);
#include <math.h>
float x = -7.77;
fabs(x)

D

VB

VB.NET

Delphi

Ada

PL/SQL

T-SQL

関数型

inserted by FC2 system