Skip to content
Visual DialogScript
  • The Language
  • Environment
  • Screenshots
  • Customers
  • Pricing
English
  • English
  • Français
  • Deutsch
  • Nederlands
  • Español
  • 简体中文
  • 日本語
$ € 0 Discover VDS 7
  • The Language
  • Environment
  • Screenshots
  • Customers
  • Pricing
  • Discover VDS 7
  • Sign in
Documentation
  • User Guide
    • What is Visual DialogScript?
      • Overview
      • Applications for Visual DialogScript
    • What's new in Visual DialogScript 7
      • What's new
      • Compatibility issues
    • The Development Environment
      • Development Environment
      • Creating a script
      • Debugging tools
      • Compiling a script
      • Project Manager
        • Project Settings
        • Version Info
        • Folders
      • Preferences
        • Options menu
        • Editor options
        • Highlighting
        • Key assignments
        • Auto correct
        • Code templates
    • Using Tools
      • MessageBox Designer
      • Application Wizard
    • DialogScript Programming
      • DialogScript Language
      • Labels
      • Commands
      • Assignments
      • Variables
      • Strings
      • Functions
      • User Defined Command
      • User Defined Functions
      • String Lists
      • Input and Output
      • Extensions
      • Units
      • Dialogs
        • Dialog Programming
        • Creating Dialogs
        • Dialog Elements
        • Audio components (vdsfx70)
        • Image extension (vdsimg70)
        • Events
        • Screen metrics
    • Advanced Topics
      • Automating Applications
      • Creating DDE Servers
      • Creating NT Services
      • Creating CGI Programs
      • Error trapping
      • IDE Automation
      • Code signing (Authenticode)
      • Using MCI
      • XML Documents
      • JSON Documents
      • AI
      • AI streaming
      • AI Wizard
      • ZIP archives
      • Network drives
  • Reference Manual
    • Command Reference
      • Command Reference
      • AI
      • BEEP
      • BINFILE
      • BITMAP
      • BROWSER
      • CLOSEFILE
      • CLIPBOARD
      • CONSOLE
      • COMM
      • DDE
      • DIALOG
      • DIRECTORY
      • DRIVE
      • ELSE
      • ELSIF
      • END
      • ERROR
      • EXIT
      • EXITWIN
      • EXTERNAL
      • FREELIB
      • FILE
      • FONT
      • GOSUB
      • GOTO
      • HOTKEY
      • HTMLHELP
      • ICOTOBMP
      • IF
      • IMAGE
      • INFO
      • INIFILE
      • JSON
      • KILLTASK
      • LINK
      • LIST
      • Using Lists
        • Using Lists
        • Data Lists
      • LOADLIB
      • OPTION
      • PARSE
      • PLAY
      • RANDOM
      • REGISTRY
      • REM
      • REPEAT
      • RUN
      • RUNH
      • RUNM
      • RUNZ
      • SEEKFILE
      • SHELL
      • SHIFT
      • STOP
      • TASKBAR
      • TIMER
      • TITLE
      • TRACE
      • UNTIL
      • WAIT
      • WEND
      • WARN
      • WHILE
      • WINDOW
      • WINHELP
      • WRITE
      • WRITELINE
      • XMLDOC
      • ZIP
    • Function Reference
      • Function Reference
      • @ABS
      • @ADDR
      • @ADJUST
      • @AI
      • @ALT
      • @ASC
      • @ASK
      • @BINARY
      • @BINFILE
      • @BITMAP
      • @BOTH
      • @BROWSER
      • @CHR
      • @CLICK
      • @CLIPBRD
      • @CMDLINE
      • @COLORDLG
      • @COMM
      • @COMMANDS
      • @COUNT
      • @CR
      • @CTRL
      • @CURDIR
      • @DATETIME
      • @DDEITEM
      • @DDEMAC
      • @DIFF
      • @DIRDLG
      • @DIV
      • @DLGPOS
      • @DLGTEXT
      • @DRIVE
      • @ENCRYPT
      • @ENV
      • @EQUAL
      • @ERROR
      • @ESC
      • @EVAL
      • @EVENT
      • @EXPAND
      • @EXT
      • @FILE
      • @FILEDLG
      • @FILEPOS
      • @FILL
      • Floating point math functions
        • @FABS
        • @FADD
        • @FATN
        • @FCOS
        • @FDIV
        • @FEXP
        • @FINT
        • @FLN
        • @FMUL
        • @FRAC
        • @FROUND
        • @FSIN
        • @FSQT
        • @FSUB
      • @FOCUS
      • @FONTDLG
      • @FORMAT
      • @FSEP
      • @FUNCTIONS
      • @GREATER
      • @HEX
      • @HOTKEY
      • @IMAGE
      • @INDEX
      • @INIREAD
      • @INPUT
      • @ISCOMMAND
      • @ISFUNCTION
      • @ITEM
      • @ITEMS
      • @JSON
      • @KEY
      • @LEN
      • @LESS
      • @LF
      • @LIB
      • @LOWER
      • @MATCH
      • @MAX
      • @MCI
      • @MIN
      • @MOD
      • @MOUSEDOWN
      • @MOUSEPOS
      • @MSGBOX
      • @MSGPARAMS
      • @NAME
      • @NEW
      • @NEXT
      • @NOT
      • @NULL
      • @NUMERIC
      • @OK
      • @PATH
      • @PIPE
      • @POS
      • @PRED
      • @PROD
      • @QUERY
      • @RANDOM
      • @READ
      • @READLINE
      • @REGEXISTS
      • @REGREAD
      • @REGTYPE
      • @RETCODE
      • @SELECTED
      • @SENDMSG
      • @SHIFT
      • @SHORTNAME
      • @STRDEL
      • @STRINS
      • @SUBSTR
      • @STRREP
      • @STRSLICE
      • @SUCC
      • @SUM
      • @SYSINFO
      • @TAB
      • @TEXT
      • @TIMER
      • @TRIM
      • @UNEQUAL
      • @UPPER
      • @URLDECODE
      • @URLENCODE
      • @UUID
      • @VAL
      • @VERINFO
      • @VOLINFO
      • @WINACTIVE
      • @WINATPOINT
      • @WINCLASS
      • @WINDIR
      • @WINDOW
      • @WINEXISTS
      • @WINPOS
      • @WINTEXT
      • @XMLDOC
      • @ZERO
      • @ZIP
    • Dialog Elements
      • Dialog Elements Reference
      • ANIICON
      • BITBTN
      • BITCOMBO
      • BITLIST
      • BITMAP
      • BROWSER
      • BUTTON
      • CALENDAR
      • CHECK
      • COLORGRID
      • COMBO
      • DDEITEM
      • EDIT
      • EXTTEXT
      • GRADIENT
      • GROUP
      • IMAGE
      • LEVEL
      • LINE
      • LIST
      • MENU
      • PIECHART
      • PROGRESS
      • RADIO
      • SCOPE
      • RICHEDIT
      • SHAPE
      • SPIN
      • STATUS
      • STYLE
      • TAB
      • TABLE
      • TASKICON
      • TEXT
      • TIME
      • TRACKBAR
    • Compiler Directives
      • #DEFINE
      • #INCLUDE
      • #RESOURCE
  • Troubleshooting Scripts
    • Error Messages
    • Debugging Scripts
    • Frequently Asked Questions
    • Known Issues
    • Getting support
  • Licensing
    • License Agreement
    • How To Register
    • Upgrading from older version

@FRAC

Windows ✓Linux ✓macOS ⏳

Syntax

@FRAC(<value1>)

Description

This function returns the fractional part of a floating-point value.

OK

Unchanged.

Example

OPTION DECIMALSEP,"."
@FRAC(12.345) = 0.345

See also

@ABS

@DIV

@DIFF

@FABS

@FEXP

@FDIV

@FORMAT

@FSUB

@HEX

@NUMERIC

@PRED

@PROD

@SUCC

@SUM

@ZERO

Visual DialogScript

The scripting language and full IDE to build Windows apps and automations in a fraction of the time. Published by V-Softs.

Product

  • Shop
  • Quick Tour
  • The Language
  • Screenshots
  • Free trial

Help

  • FAQ
  • Doc
  • Contact
  • Open a support ticket
  • Support
  • Corporate Users

Newsletter

New releases, scripting tips and developer-only offers. No spam, ever.

Legal notice Terms of sale Licence Privacy policy Cookies
© 2026 V-Softs · Visual DialogScript · Script Windows. Compile. Ship.
Visual DialogScript — published by V-Softs. Instant download, lifetime license.
Website built and hosted by ACME SAS

We respect your data

We use cookies that are essential for the site to work. With your consent, we also use audience-measurement cookies. Learn more

Customize
VDS 7 « Renaissance »

VDS Renaissance is entering its final development phase.

The compiler, the runtime and the development environment evolve every day. The site is already online to present the project, its philosophy and its documentation. Sales will open once the first release meets our quality standards.