Note: Firstly my apologies for making this confusing to start with. I have finally clarified matters I hope. This particular question is asking for macros that will split pgfmath results. The ones initially provided by egreg do just that. I am asking this question in a more general context elsewhere.
I know how to do this in c++, it's easy, but it's not so clear how to do it in LaTeX. In this case I'm working with 'pgfplots' so I have access to the pgfmath routines and thus I don't have to worry about how to remove the pt as they do it for me already.
I want the whole digits with no trailing "." or ".0" and I want the fraction digits with no preceding "0.".
The following MWE shows my failed attempts at doing this.
Output:

Code:
\documentclass[12pt]{article}
\usepackage[a5paper,margin=14mm]{geometry}
\usepackage{pgfplots}
\pgfplotsset{compat=1.9, /pgf/declare function={F(\x)=(\x+5)*(\x-1)*(\x-5);}}
\newlength{\printvar}
\newcommand{\intprint}[1]{\pgfmathparse{int(#1)}\pgfmathresult}
\newcommand{\fracprint}[1]{\pgfmathparse{frac(#1)}\pgfmathresult}
\newcommand{\truncprint}[1]{\pgfmathtruncatemacro{\printvar}{#1}\pgfmathprint{\printvar}}
\newcommand{\diffprint}[1]{\pgfmathtruncatemacro{\printvar}{#1}\pgfmathprint{#1-\printvar}}
\begin{document}
\par PGFMathParse F(1.5): \pgfmathparse{F(1.5)}\pgfmathresult
\par TruncPrint: \truncprint{F(1.5)}\quad DiffPrint \diffprint{F(1.5)}
\par IntPrint: \intprint{F(1.5)}\quad FracPrint \fracprint{F(1.5)}
\end{document}

pgfplotstablepackage supports aligning numbers at their decimal separator. So doessiunitx. Anyway, the easiest thing to separate int and frac part is using a delimited macro as in\def\myMacro#1.#2\myEnd{And then you can use #1 (int) and #2 (frac).}. (Something along those lines is used by PGFmath.) If you want to use that with lengths, you will need to remove theptfrom\thewhich is already explained on TeX.sx. PGF also defines a few of those macros (\pgf@sys@tonumber,\Pgf@geT). – Qrrbrbirlbel Nov 01 '13 at 03:19ptfrom a dimension By the way, PGFmath already defines\pgfmathprintwhich does the same as your\numprint. – Qrrbrbirlbel Nov 01 '13 at 03:32\par). In the case of\pgfmathresult, this is an [tag:expansion] problem, you will need to use\expandafter\printplainbefore\pgfmathresult(and here you won’t have the space you need). By the way, are you aware thatpgfplotsonly uses PGFmath via TikZ via PGF? In your last case, you should be able to say simply\usepackage{pgfmath}instead of loadingpgfplots. – Qrrbrbirlbel Nov 01 '13 at 22:50pgfbecause I'm doing a lot of work inpgplotswithaxisenvironments which is why I\usepackage{pgfplots}. None the less, I would ideally like a solution that doesn't use any `pgf' routines. (2) I tried your suggestion and it worked, but what do you recommend as suitable delimiter. I just used the letter m so I could try it out, but it looks ridiculous. But I guess you meant by \MyEnd, a macro that looks better in use and it doesn't matter too much what it actually is? – Geoff Pointer Nov 01 '13 at 23:20fpor other math-related packages. 2) Yes, usually, some form of macro is used because it can be “protected” from the user level by using@in its name. Nearly every character can do apart from0-9., the space is a little bit too special for this and can cause troubles. PGFmath uses\pgfmath@stop. (And, indeed, itsintfunction is defined as\def\pgfmathint@@#1.#2\pgfmath@stop,fracworks similar but also must deal with integer input.) – Qrrbrbirlbel Nov 01 '13 at 23:26